/linux/drivers/net/fddi/skfp/ |
A D | rmt.c | 161 if (!smc->r.rm_join && !smc->r.rm_loop && in rmt_fsm() 189 if (smc->r.rm_join || smc->r.rm_loop) { in rmt_fsm() 276 start_rmt_timer2(smc,smc->s.rmt_t_poll,RM_TIMEOUT_POLL) ; in rmt_fsm() 283 start_rmt_timer2(smc,smc->s.rmt_t_poll,RM_TIMEOUT_POLL); in rmt_fsm() 328 start_rmt_timer1(smc,smc->s.rmt_t_stuck, in rmt_fsm() 360 smc->r.rm_join && smc->r.bn_flag) { in rmt_fsm() 406 start_rmt_timer1(smc,smc->s.rmt_t_stuck, in rmt_fsm() 430 smc->r.rm_join && smc->r.bn_flag) { in rmt_fsm() 620 smt_timer_stop(smc,&smc->r.rmt_timer0) ; in stop_rmt_timer0() 630 smt_timer_stop(smc,&smc->r.rmt_timer1) ; in stop_rmt_timer1() [all …]
|
A D | cfm.c | 115 if ( !THRU_ENABLED(smc) && smc->y[PB].cf_join ) { in selection_criteria() 259 cfm_state_change(smc,(int)smc->mib.fddiSMTCF_State) ; in cfm() 286 if (smc->s.sas && (smc->y[PA].cf_join || smc->y[PA].cf_loop || in cfm_fsm() 287 smc->y[PB].cf_join || smc->y[PB].cf_loop)) { in cfm_fsm() 293 !smc->y[PA].wc_flag) || smc->y[PA].cf_loop) { in cfm_fsm() 299 !smc->y[PB].wc_flag) || smc->y[PB].cf_loop) { in cfm_fsm() 326 if ( (smc->y[PA].wc_flag || !smc->y[PA].cf_join) && in cfm_fsm() 436 if (smc->y[PB].wc_flag || !smc->y[PB].cf_join) { in cfm_fsm() 469 if (!smc->y[PB].cf_join || smc->y[PB].wc_flag) { in cfm_fsm() 492 if (smc->y[PA].cf_loop || smc->y[PB].cf_loop) { in cfm_fsm() [all …]
|
A D | ecm.c | 99 smc->e.sb_flag = 0 ; in ecm_init() 126 ecm_state_change(smc,(int)smc->mib.fddiSMTECMState) ; in ecm() 139 smc->mib.fddiSMTBypassPresent = sm_pm_bypass_present(smc) ; in ecm_fsm() 208 start_ecm_timer(smc,MIB2US(smc->mib.fddiSMTTrace_MaxExpiration), in ecm_fsm() 243 start_ecm_timer(smc,smc->s.ecm_td_min,EC_TIMEOUT_TD) ; in ecm_fsm() 285 start_ecm_timer(smc,smc->s.ecm_test_done,EC_TEST_DONE) ; in ecm_fsm() 329 start_ecm_timer(smc,smc->s.ecm_in_max,EC_TIMEOUT_INMAX) ; in ecm_fsm() 349 start_ecm_timer(smc,smc->s.ecm_check_poll,0) ; in ecm_fsm() 385 start_ecm_timer(smc,smc->s.ecm_check_poll,0) ; in ecm_fsm() 390 start_ecm_timer(smc,smc->s.ecm_i_max,EC_TIMEOUT_IMAX) ; in ecm_fsm() [all …]
|
A D | fplustm.c | 123 smc->mib.m[MAC0].fddiMACT_Neg = mac_get_tneg(smc) ; in mac_update_counter() 275 smc->hw.fp.rx[QUEUE_R1] = queue = &smc->hw.fp.rx_q[QUEUE_R1] ; in init_rx() 282 smc->hw.fp.rx[QUEUE_R2] = queue = &smc->hw.fp.rx_q[QUEUE_R2] ; in init_rx() 305 smc->hw.fp.tx[QUEUE_S] = queue = &smc->hw.fp.tx_q[QUEUE_S] ; in init_tx() 310 set_formac_tsync(smc,smc->ess.sync_bw) ; in init_tx() 871 smc->hw.fp.s2l = smc->hw.fp.s2u = 0 ; in init_fplus() 921 build_claim_beacon(smc,smc->mib.m[MAC0].fddiMACT_Req) ; in init_mac() 1285 smc->hw.fp.rx_mode = (smc->hw.fp.rx_mode & ~FM_ADDET) | in mac_set_rx_mode() 1290 smc->hw.fp.rx_mode = (smc->hw.fp.rx_mode & ~FM_ADDET) | in mac_set_rx_mode() 1298 smc->hw.fp.rx_mode = smc->hw.fp.nsa_mode | FM_EXGPA0 ; in mac_set_rx_mode() [all …]
|
A D | smt.c | 154 smc->mib.m[MAC0].fddiMACSMTAddress = smc->hw.fddi_home_addr ; in smt_agent_init() 161 driver_get_bia(smc,&smc->mib.fddiSMTStationId.sid_node) ; in smt_agent_init() 195 smt_timer_start(smc,&smc->sm.smt_timer, (u_long)1000000L, in smt_agent_task() 379 smc->sm.pend[SMT_TID_NIF] = smt_get_tid(smc) ; in smt_event() 440 smt_timer_start(smc,&smc->sm.smt_timer, (u_long)1000000L, in smt_event() 511 sba(smc,NIF) ; in smt_received_pack() 955 smc->sm.pend[SMT_TID_NIF_TEST] = smt_get_tid(smc) ; in smt_send_nif_request() 966 smc->sm.pend[SMT_TID_ECF] = smt_get_tid(smc) ; in smt_send_ecf_request() 967 smt_send_ecf(smc,dest, FC_SMT_INFO, smc->sm.pend[SMT_TID_ECF], in smt_send_ecf_request() 1426 SK_UNUSED(smc) ; in smt_fill_version() [all …]
|
A D | srf.c | 73 memset((char *)smc->evcs,0,sizeof(smc->evcs)) ; in smt_init_evc() 75 evc = smc->evcs ; in smt_init_evc() 99 smc->evcs[0].evc_cond_state = &smc->mib.fddiSMTPeerWrapFlag ; in smt_init_evc() 110 smc->evcs[4].evc_multiple = &smc->mib.m[MAC0].fddiMACMultiple_N ; in smt_init_evc() 111 smc->evcs[5].evc_multiple = &smc->mib.m[MAC0].fddiMACMultiple_P ; in smt_init_evc() 207 smt_set_timestamp(smc,smc->mib.fddiSMTTransitionTimeStamp) ; in smt_srf_event() 260 smt_send_srf(smc) ; in smt_srf_event() 266 smt_send_srf(smc) ; in smt_srf_event() 272 smt_send_srf(smc) ; in smt_srf_event() 282 smt_send_srf(smc) ; in smt_srf_event() [all …]
|
A D | hwmtm.c | 450 smc->os.hwm.txd_tx_pipe = smc->os.hwm.txd_tx_tail = NULL ; in init_fddi_driver() 451 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = smc->os.hwm.pass_DB = 0 ; in init_fddi_driver() 453 smc->os.hwm.queued_rx_frames = smc->os.hwm.queued_txd_mb = 0 ; in init_fddi_driver() 474 init_plc(smc) ; in init_fddi_driver() 559 phys = repair_txd_ring(smc,smc->hw.fp.tx[QUEUE_A0]) ; in mac_drv_repair_descr() 564 phys = repair_txd_ring(smc,smc->hw.fp.tx[QUEUE_S]) ; in mac_drv_repair_descr() 573 phys = repair_rxd_ring(smc,smc->hw.fp.rx[QUEUE_R1]) ; in mac_drv_repair_descr() 856 if (smc->q.ev_get != smc->q.ev_put) { in fddi_isr() 1006 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = FALSE ; in mac_drv_rx_mode() 1671 if(!(smc->os.hwm.tx_mb = smt_get_mbuf(smc))) { in hwm_tx_frag() [all …]
|
A D | drvfbi.c | 66 #define OEMID(smc,i) smc->hw.oem_id->oi_id[i] argument 97 hwt_wait_time(smc,hwt_quick_read(smc),MS2BCLK(10)) ; in card_start() 167 hwt_wait_time(smc,hwt_quick_read(smc),MS2BCLK(10)) ; in card_stop() 252 hwt_restart(smc); in timer_irq() 253 smc->hw.t_stop = smc->hw.t_start; in timer_irq() 262 SK_UNUSED(smc) ; in pcm_get_s_port() 305 smc->hw.fddi_home_addr = smc->hw.fddi_phys_addr ; in read_address() 318 card_start(smc) ; in init_board() 369 SK_UNUSED(smc) ; in plc_clear_irq() 468 SK_UNUSED(smc) ; in llc_recover_tx() [all …]
|
A D | ess.c | 206 dump_smt(smc, in ess_raf_received_pack() 456 smc->ess.sync_bw = 0 ; in process_bw_alloc() 466 ess_config_fifo(smc) ; in process_bw_alloc() 467 set_formac_tsync(smc,smc->ess.sync_bw) ; in process_bw_alloc() 533 ess_send_frame(smc,mb) ; in ess_send_response() 543 smc->ess.timer_count++ ; in ess_timer_poll() 546 ess_send_alc_req(smc) ; in ess_timer_poll() 584 req->smt.smt_tid = smc->ess.alloc_trans_id = smt_get_tid(smc) ; in ess_send_alc_req() 655 ess_send_frame(smc,mb) ; in ess_send_alc_req() 686 (void)process_bw_alloc(smc,(long)smc->mib.a[PATH0].fddiPATHSbaPayload, in ess_para_change() [all …]
|
A D | queue.c | 28 smc->q.ev_put = smc->q.ev_get = smc->q.ev_queue ; in ev_init() 39 if (++smc->q.ev_put == &smc->q.ev_queue[MAX_EVENT]) in queue_event() 40 smc->q.ev_put = smc->q.ev_queue ; in queue_event() 42 if (smc->q.ev_put == smc->q.ev_get) { in queue_event() 70 ev = smc->q.ev_get ; in ev_dispatcher() 76 ecm(smc,(int)ev->event) ; in ev_dispatcher() 105 ev = smc->q.ev_queue ; in ev_dispatcher() 108 smc->q.ev_get = ev; in ev_dispatcher() 122 ev_dispatcher(smc) ; in smt_online() 138 SK_UNUSED(smc) ; in do_smt_flag() [all …]
|
A D | smtinit.c | 30 #define OEMID(smc,i) oem_id[i] argument 33 #define OEMID(smc,i) smc->hw.oem_id->oi_mark[i] argument 47 mib = &smc->mib ; in set_oem_spec_val() 52 if (OEMID(smc,0) == 'I') { in set_oem_spec_val() 84 smc->y[p].mib = & smc->mib.p[p] ; in init_smt() 87 set_oem_spec_val(smc) ; in init_smt() 88 (void) smt_set_mac_opvalues(smc) ; in init_smt() 92 ev_init(smc) ; /* event queue */ in init_smt() 94 smt_init_evc(smc) ; /* evcs in MIB */ in init_smt() 107 ecm(smc,0) ; /* ECM state machine */ in init_smt() [all …]
|
A D | smttimer.c | 25 smc->t.st_queue = NULL; in smt_timer_init() 28 hwt_init(smc) ; in smt_timer_init() 41 hwt_stop(smc) ; in smt_timer_stop() 65 timer->tm_smc = smc ; in smt_timer_start() 68 if (!smc->t.st_queue) { in smt_timer_start() 72 hwt_start(smc,time) ; in smt_timer_start() 78 timer_done(smc,0) ; in smt_timer_start() 99 hwt_start(smc,smc->t.st_queue->tm_delta) ; in smt_timer_start() 104 smt_timer_start(smc,&smc->t.st_fast,32L, EV_TOKEN(EVENT_SMT,SM_FAST)); in smt_force_irq() 109 timer_done(smc,1) ; in smt_timer_done() [all …]
|
A D | hwt.c | 63 smc->hw.t_stop = 0L ; in hwt_start() 117 smc->hw.t_start = 0 ; in hwt_init() 118 smc->hw.t_stop = 0 ; in hwt_init() 121 hwt_restart(smc) ; in hwt_init() 140 hwt_stop(smc) ; in hwt_restart() 162 hwt_stop(smc) ; in hwt_read() 168 hwt_restart(smc) ; in hwt_read() 169 smc->hw.t_stop = smc->hw.t_start ; in hwt_read() 172 smc->hw.t_stop = smc->hw.t_start - tr ; in hwt_read() 174 return smc->hw.t_stop; in hwt_read() [all …]
|
A D | skfddi.c | 264 smc->os.dev = dev; in skfp_init_one() 269 smc->os.dev = dev; in skfp_init_one() 270 smc->hw.slot = -1; in skfp_init_one() 271 smc->hw.iop = mem; in skfp_init_one() 303 smc->os.LocalRxBuffer, smc->os.LocalRxBufferDMA); in skfp_init_one() 507 smt_online(smc, 1); in skfp_open() 555 card_stop(smc); in skfp_close() 612 bp = &smc->os; in skfp_interrupt() 628 fddi_isr(smc); in skfp_interrupt() 1313 virt = (void *) (smc->os.SharedMemAddr + smc->os.SharedMemHeap); in mac_drv_get_space() [all …]
|
A D | pcmplc.c | 58 struct s_smc *smc , 392 SK_UNUSED(smc) ; in init_plc() 408 plc_init(smc,p) ; in real_init_plc() 479 SK_UNUSED(smc) ; in plc_go_state() 529 SK_UNUSED(smc) ; in plc_send_bits() 882 sm_ph_lem_start(smc,np,(int)smc->s.lct_short) ; /* enable LEM */ in pcm_fsm() 1030 SK_UNUSED(smc) ; in sm_ph_linestate() 1170 lem_evaluate(smc,&smc->y[np]) ; in sm_lem_evaluate() 1884 SK_UNUSED(smc) ; in get_pcm_state() 1906 SK_UNUSED(smc) ; in get_linestate() [all …]
|
A D | smtdef.c | 81 smt_init_mib(smc,level) ; in smt_reset_defaults() 87 smt = &smc->s ; in smt_reset_defaults() 139 smt_init_sba(smc,level) ; in smt_reset_defaults() 144 smc->hw.pci_fix_value = 0 ; in smt_reset_defaults() 163 mib = &smc->mib ; in smt_init_mib() 169 memset(((char *)smc)+ in smt_init_mib() 252 smc->y[port].mib = NULL; in smt_init_mib() 296 smt_get_event_word(smc)); in smt_set_mac_opvalues() 304 switch (smc->s.sas) { in smt_fixup_mib() 315 smc->mib.fddiSMTMaster_Ct = NUMPHYS - smc->mib.fddiSMTNonMaster_Ct ; in smt_fixup_mib() [all …]
|
/linux/drivers/net/fddi/skfp/h/ |
A D | cmtdef.h | 61 #define DB_TEST (smc->debug) 497 void ecm_init(struct s_smc *smc); 499 void rmt_init(struct s_smc *smc); 501 void pcm_init(struct s_smc *smc); 521 void ev_init(struct s_smc *smc); 535 #define smt_panic(smc,text) argument 586 void rtm_irq(struct s_smc *smc); 629 #define smt_init_evc(smc) argument 640 #define dump_smt(smc,sm,text) argument 658 #define SMT_PANIC(smc,nr,msg) smt_panic (smc, msg) argument [all …]
|
/linux/net/smc/ |
A D | smc_close.c | 28 if (smc->listen_smc && current_work() != &smc->smc_listen_work) in smc_clcsock_release() 31 if (smc->clcsock) { in smc_clcsock_release() 32 tcp = smc->clcsock; in smc_clcsock_release() 33 smc->clcsock = NULL; in smc_clcsock_release() 82 smc->sk.sk_state_change(&smc->sk); in smc_close_wake_tx_prepared() 129 if (sk->sk_state != SMC_INIT && smc->clcsock && smc->clcsock->sk) { in smc_close_active_abort() 131 if (smc->clcsock && smc->clcsock->sk) in smc_close_active_abort() 213 if (smc->clcsock && smc->clcsock->sk) { in smc_close_active() 214 smc->clcsock->sk->sk_data_ready = smc->clcsk_data_ready; in smc_close_active() 236 if (smc->clcsock && smc->clcsock->sk) { in smc_close_active() [all …]
|
A D | af_smc.c | 72 smc->clcsock->sk->sk_prot->keepalive(smc->clcsock->sk, val); in smc_set_keepalive() 137 smc->clcsock->file->private_data = smc->sk.sk_socket; in smc_restore_fallback_changes() 512 smc->conn.tx_off = bufsize * smc->conn.peer_rmbe_idx; in smcd_conn_save_peer_info() 579 if (smc->sk.sk_socket && smc->sk.sk_socket->file) { in smc_switch_to_fallback() 580 smc->clcsock->file = smc->sk.sk_socket->file; in smc_switch_to_fallback() 581 smc->clcsock->file->private_data = smc->clcsock; in smc_switch_to_fallback() 1117 return smc_connect_fallback(smc, smc->fallback_rsn); in __smc_connect() 1208 smc->sk.sk_err = smc->clcsock->sk->sk_err; in smc_connect_work() 1236 smc->sk.sk_state_change(&smc->sk); in smc_connect_work() 1238 smc->clcsock->sk->sk_write_space(smc->clcsock->sk); in smc_connect_work() [all …]
|
A D | smc_rx.c | 59 struct sock *sk = &smc->sk; in smc_rx_update_consumer() 106 struct smc_sock *smc; member 114 struct smc_sock *smc = priv->smc; in smc_rx_pipe_buf_release() local 116 struct sock *sk = &smc->sk; in smc_rx_pipe_buf_release() 122 conn = &smc->conn; in smc_rx_pipe_buf_release() 146 struct smc_sock *smc) in smc_rx_splice() argument 157 priv->smc = smc; in smc_rx_splice() 171 sock_hold(&smc->sk); in smc_rx_splice() 200 struct sock *sk = &smc->sk; in smc_rx_wait() 301 sk = &smc->sk; in smc_rx_recvmsg() [all …]
|
A D | smc_stats.h | 86 struct smc_stats_tech smc[2]; member 99 this_cpu_inc((*stats).smc[t].key ## _cnt); \ 104 this_cpu_add((*stats).smc[t].key ## _bytes, r); \ 188 SMC_STAT_RMB(smc, reuse, is_smcd, is_rx) 191 SMC_STAT_RMB(smc, alloc, is_smcd, is_rx) 194 SMC_STAT_RMB(smc, dgrade, is_smcd, is_rx) 199 #define SMC_STAT_RMB_TX_FULL(smc, is_smcd) \ argument 200 SMC_STAT_RMB(smc, buf_full, is_smcd, false) 211 #define SMC_STAT_RMB_RX_FULL(smc, is_smcd) \ argument 212 SMC_STAT_RMB(smc, buf_full, is_smcd, true) [all …]
|
A D | smc_cdc.c | 31 struct smc_sock *smc; in smc_cdc_tx_handler() local 35 bh_lock_sock(&smc->sk); in smc_cdc_tx_handler() 304 sock_put(&smc->sk); in smc_cdc_msg_validate() 341 smc->sk.sk_data_ready(&smc->sk); in smc_cdc_msg_recv_action() 344 smc->sk.sk_data_ready(&smc->sk); in smc_cdc_msg_recv_action() 359 smc->sk.sk_write_space(&smc->sk); in smc_cdc_msg_recv_action() 368 if (smc->clcsock && smc->clcsock->sk) in smc_cdc_msg_recv_action() 373 sock_put(&smc->sk); in smc_cdc_msg_recv_action() 380 sock_hold(&smc->sk); in smc_cdc_msg_recv() 398 struct smc_sock *smc; in smcd_cdc_rx_tsklet() local [all …]
|
A D | smc_diag.c | 36 struct smc_sock *smc = smc_sk(sk); in smc_diag_msg_common_fill() local 41 if (!smc->clcsock) in smc_diag_msg_common_fill() 76 struct smc_sock *smc = smc_sk(sk); in __smc_diag_dump() local 90 if (smc->use_fallback) in __smc_diag_dump() 92 else if (smc->conn.lgr && smc->conn.lgr->is_smcd) in __smc_diag_dump() 106 smc->conn.alert_token_local) { in __smc_diag_dump() 145 if (smc->conn.lgr && !smc->conn.lgr->is_smcd && in __smc_diag_dump() 149 .role = smc->conn.lgr->role, in __smc_diag_dump() 158 smc->conn.lnk->gid); in __smc_diag_dump() 160 smc->conn.lnk->peer_gid); in __smc_diag_dump() [all …]
|
/linux/drivers/net/ethernet/smsc/ |
A D | smc91c92_cs.c | 314 smc->p_dev = link; in smc91c92_probe() 856 i = osi_setup(link, smc->manfid, smc->cardid); break; in smc91c92_config() 873 smc->duplex = 0; in smc91c92_config() 874 smc->rx_ovrn = 0; in smc91c92_config() 1238 smc->rx_ovrn = 0; in smc_start_xmit() 1289 smc->tx_err++; in smc_tx_err() 1716 struct smc_private *smc = from_timer(smc, t, media); in media_check() local 1735 smc->rx_ovrn = 0; in media_check() 1757 smc->fast_poll--; in media_check() 1799 if (smc->tx_err || (smc->media_status & EPH_16COL)) in media_check() [all …]
|
/linux/Documentation/devicetree/bindings/memory-controllers/ |
A D | atmel,ebi.txt | 83 - atmel,smc-ncs-rd-setup-ns 84 - atmel,smc-nrd-setup-ns 85 - atmel,smc-ncs-wr-setup-ns 86 - atmel,smc-nwe-setup-ns 87 - atmel,smc-ncs-rd-pulse-ns 88 - atmel,smc-nrd-pulse-ns 90 - atmel,smc-nwe-pulse-ns 91 - atmel,smc-nwe-cycle-ns 92 - atmel,smc-nrd-cycle-ns 93 - atmel,smc-tdf-ns [all …]
|