• Home
  • Raw
  • Download

Lines Matching refs:fp

170 	smc->hw.fp.fifo.rbc_ram_start = 0 ;  in init_ram()
171 smc->hw.fp.fifo.rbc_ram_end = in init_ram()
172 smc->hw.fp.fifo.rbc_ram_start + RBC_MEM_SIZE ; in init_ram()
174 MARW(smc->hw.fp.fifo.rbc_ram_start) ; in init_ram()
175 for (i = smc->hw.fp.fifo.rbc_ram_start; in init_ram()
176 i < (u_short) (smc->hw.fp.fifo.rbc_ram_end-1); i++) in init_ram()
190 outpw(FM_A(FM_RPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* RPR1 */ in set_recvptr()
191 outpw(FM_A(FM_SWPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* SWPR1 */ in set_recvptr()
192 outpw(FM_A(FM_WPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* WPR1 */ in set_recvptr()
193 outpw(FM_A(FM_EARV1),smc->hw.fp.fifo.tx_s_start-1) ; /* EARV1 */ in set_recvptr()
198 if (smc->hw.fp.fifo.rx2_fifo_size) { in set_recvptr()
199 outpw(FM_A(FM_RPR2),smc->hw.fp.fifo.rx2_fifo_start) ; in set_recvptr()
200 outpw(FM_A(FM_SWPR2),smc->hw.fp.fifo.rx2_fifo_start) ; in set_recvptr()
201 outpw(FM_A(FM_WPR2),smc->hw.fp.fifo.rx2_fifo_start) ; in set_recvptr()
202 outpw(FM_A(FM_EARV2),smc->hw.fp.fifo.rbc_ram_end-1) ; in set_recvptr()
205 outpw(FM_A(FM_RPR2),smc->hw.fp.fifo.rbc_ram_end-1) ; in set_recvptr()
206 outpw(FM_A(FM_SWPR2),smc->hw.fp.fifo.rbc_ram_end-1) ; in set_recvptr()
207 outpw(FM_A(FM_WPR2),smc->hw.fp.fifo.rbc_ram_end-1) ; in set_recvptr()
208 outpw(FM_A(FM_EARV2),smc->hw.fp.fifo.rbc_ram_end-1) ; in set_recvptr()
222 outpw(FM_A(FM_RPXA0),smc->hw.fp.fifo.tx_a0_start) ; /* RPXA0 */ in set_txptr()
223 outpw(FM_A(FM_SWPXA0),smc->hw.fp.fifo.tx_a0_start) ; /* SWPXA0 */ in set_txptr()
224 outpw(FM_A(FM_WPXA0),smc->hw.fp.fifo.tx_a0_start) ; /* WPXA0 */ in set_txptr()
225 outpw(FM_A(FM_EAA0),smc->hw.fp.fifo.rx2_fifo_start-1) ; /* EAA0 */ in set_txptr()
230 if (smc->hw.fp.fifo.tx_s_size) { in set_txptr()
231 outpw(FM_A(FM_RPXS),smc->hw.fp.fifo.tx_s_start) ; in set_txptr()
232 outpw(FM_A(FM_SWPXS),smc->hw.fp.fifo.tx_s_start) ; in set_txptr()
233 outpw(FM_A(FM_WPXS),smc->hw.fp.fifo.tx_s_start) ; in set_txptr()
234 outpw(FM_A(FM_EAS),smc->hw.fp.fifo.tx_a0_start-1) ; in set_txptr()
237 outpw(FM_A(FM_RPXS),smc->hw.fp.fifo.tx_a0_start-1) ; in set_txptr()
238 outpw(FM_A(FM_SWPXS),smc->hw.fp.fifo.tx_a0_start-1) ; in set_txptr()
239 outpw(FM_A(FM_WPXS),smc->hw.fp.fifo.tx_a0_start-1) ; in set_txptr()
240 outpw(FM_A(FM_EAS),smc->hw.fp.fifo.tx_a0_start-1) ; in set_txptr()
254 rbc_ram_addr = smc->hw.fp.fifo.rx2_fifo_start - 1 ; in init_rbc()
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()
316 smc->hw.fp.tx[QUEUE_A0] = queue = &smc->hw.fp.tx_q[QUEUE_A0] ; in init_tx()
338 ec = (u_long *)&smc->hw.fp.err_stats ; in mac_counter_init()
361 outpw(FM_A(FM_LAGL),(unsigned short)((smc->hw.fp.group_addr.a[4]<<8) + in set_formac_addr()
362 smc->hw.fp.group_addr.a[5])) ; in set_formac_addr()
363 outpw(FM_A(FM_LAGC),(unsigned short)((smc->hw.fp.group_addr.a[2]<<8) + in set_formac_addr()
364 smc->hw.fp.group_addr.a[3])) ; in set_formac_addr()
365 outpw(FM_A(FM_LAGM),(unsigned short)((smc->hw.fp.group_addr.a[0]<<8) + in set_formac_addr()
366 smc->hw.fp.group_addr.a[1])) ; in set_formac_addr()
453 MARW(smc->hw.fp.fifo.rbc_ram_start+DBEACON_FRAME_OFF+4) ; in directed_beacon()
458 outpw(FM_A(FM_SABC),smc->hw.fp.fifo.rbc_ram_start + DBEACON_FRAME_OFF) ; in directed_beacon()
478 mac = &smc->hw.fp.mac_sfb ; in build_claim_beacon()
486 smc->hw.fp.fifo.rbc_ram_start + CLAIM_FRAME_OFF,len) ; in build_claim_beacon()
488 outpw(FM_A(FM_SACL),smc->hw.fp.fifo.rbc_ram_start + CLAIM_FRAME_OFF) ; in build_claim_beacon()
501 smc->hw.fp.fifo.rbc_ram_start + BEACON_FRAME_OFF,len) ; in build_claim_beacon()
503 outpw(FM_A(FM_SABC),smc->hw.fp.fifo.rbc_ram_start + BEACON_FRAME_OFF) ; in build_claim_beacon()
519 smc->hw.fp.fifo.rbc_ram_start + DBEACON_FRAME_OFF,len) ; in build_claim_beacon()
522 outpw(FM_A(FM_EACB),smc->hw.fp.fifo.rx1_fifo_start-1) ; in build_claim_beacon()
531 SETMASK(FM_A(FM_MDREG1),smc->hw.fp.rx_mode,FM_ADDRX) ; in formac_rcv_restart()
690 change_s2l = smc->hw.fp.s2l ^ code_s2l ; in mac2_irq()
691 change_s2u = smc->hw.fp.s2u ^ code_s2u ; in mac2_irq()
756 smc->hw.fp.err_stats.err_bec_stat++ ; in mac2_irq()
758 smc->hw.fp.err_stats.err_clm_stat++ ; in mac2_irq()
762 if (!(change_s2l & FM_SRNGOP) && (smc->hw.fp.s2l & FM_SRNGOP)) { in mac2_irq()
772 smc->hw.fp.err_stats.err_phinv++ ; in mac2_irq()
774 smc->hw.fp.err_stats.err_sifg_det++ ; in mac2_irq()
776 smc->hw.fp.err_stats.err_tkiss++ ; in mac2_irq()
778 smc->hw.fp.err_stats.err_tkerr++ ; in mac2_irq()
790 smc->hw.fp.s2l = code_s2l ; in mac2_irq()
791 smc->hw.fp.s2u = code_s2u ; in mac2_irq()
843 smc->hw.fp.rx_mode, FM_MMODE | FM_SELRA | FM_ADDRX) ; in formac_online()
851 smc->hw.fp.nsa_mode = FM_MRNNSAFNMA ; in init_fplus()
852 smc->hw.fp.rx_mode = FM_MDAMA ; in init_fplus()
853 smc->hw.fp.group_addr = fddi_broadcast ; in init_fplus()
854 smc->hw.fp.func_addr = 0 ; in init_fplus()
855 smc->hw.fp.frselreg_init = 0 ; in init_fplus()
859 smc->hw.fp.mdr3init |= FM_MENDAS ; in init_fplus()
864 smc->hw.fp.fm_st1u = (HW_PTR) ADDR(B0_ST1U) ; in init_fplus()
865 smc->hw.fp.fm_st1l = (HW_PTR) ADDR(B0_ST1L) ; in init_fplus()
866 smc->hw.fp.fm_st2u = (HW_PTR) ADDR(B0_ST2U) ; in init_fplus()
867 smc->hw.fp.fm_st2l = (HW_PTR) ADDR(B0_ST2L) ; in init_fplus()
868 smc->hw.fp.fm_st3u = (HW_PTR) ADDR(B0_ST3U) ; in init_fplus()
869 smc->hw.fp.fm_st3l = (HW_PTR) ADDR(B0_ST3L) ; in init_fplus()
871 smc->hw.fp.s2l = smc->hw.fp.s2u = 0 ; in init_fplus()
899 outpw(FM_A(FM_MDREG2),smc->hw.fp.mdr2init) ; in init_mac()
928 outpw(FM_A(FM_MDREG1),MDR1INIT | FM_SELRA | smc->hw.fp.rx_mode) ; in init_mac()
929 outpw(FM_A(FM_MDREG2),smc->hw.fp.mdr2init) ; in init_mac()
930 outpw(FM_A(FM_MDREG3),smc->hw.fp.mdr3init) ; in init_mac()
931 outpw(FM_A(FM_FRSELREG),smc->hw.fp.frselreg_init) ; in init_mac()
1072 for (i = 0, tb = smc->hw.fp.mc.table ; i < FPMAX_MULTICAST ; i++, tb++){ in mac_get_mc_table()
1101 smc->hw.fp.os_slots_used = 0 ; /* note the SMT addresses */ in mac_clear_multicast()
1103 for (i = 0, tb = smc->hw.fp.mc.table ; i < FPMAX_MULTICAST ; i++, tb++){ in mac_clear_multicast()
1147 if (smc->hw.fp.smt_slots_used >= SMT_MAX_MULTI) { in mac_add_multicast()
1152 if (smc->hw.fp.os_slots_used >= FPMAX_MULTICAST-SMT_MAX_MULTI) { in mac_add_multicast()
1167 smc->hw.fp.smt_slots_used++ ; in mac_add_multicast()
1169 smc->hw.fp.os_slots_used++ ; in mac_add_multicast()
1206 if (smc->hw.fp.func_addr) { in mac_update_multicast()
1207 fu = (u_char *) &smc->hw.fp.func_addr ; in mac_update_multicast()
1226 for (i = 0, tb = smc->hw.fp.mc.table; i < FPMAX_MULTICAST; i++, tb++) { in mac_update_multicast()
1272 smc->hw.fp.rx_prom |= RX_MODE_ALL_MULTI ; in mac_set_rx_mode()
1275 smc->hw.fp.rx_prom &= ~RX_MODE_ALL_MULTI ; in mac_set_rx_mode()
1278 smc->hw.fp.rx_prom |= RX_MODE_PROM ; in mac_set_rx_mode()
1281 smc->hw.fp.rx_prom &= ~RX_MODE_PROM ; in mac_set_rx_mode()
1284 smc->hw.fp.nsa_mode = FM_MDAMA ; in mac_set_rx_mode()
1285 smc->hw.fp.rx_mode = (smc->hw.fp.rx_mode & ~FM_ADDET) | in mac_set_rx_mode()
1286 smc->hw.fp.nsa_mode ; in mac_set_rx_mode()
1289 smc->hw.fp.nsa_mode = FM_MRNNSAFNMA ; in mac_set_rx_mode()
1290 smc->hw.fp.rx_mode = (smc->hw.fp.rx_mode & ~FM_ADDET) | in mac_set_rx_mode()
1291 smc->hw.fp.nsa_mode ; in mac_set_rx_mode()
1294 if (smc->hw.fp.rx_prom & RX_MODE_PROM) { in mac_set_rx_mode()
1295 smc->hw.fp.rx_mode = FM_MLIMPROM ; in mac_set_rx_mode()
1297 else if (smc->hw.fp.rx_prom & RX_MODE_ALL_MULTI) { in mac_set_rx_mode()
1298 smc->hw.fp.rx_mode = smc->hw.fp.nsa_mode | FM_EXGPA0 ; in mac_set_rx_mode()
1301 smc->hw.fp.rx_mode = smc->hw.fp.nsa_mode ; in mac_set_rx_mode()
1302 SETMASK(FM_A(FM_MDREG1),smc->hw.fp.rx_mode,FM_ADDRX) ; in mac_set_rx_mode()
1387 smc->hw.fp.fifo.rx1_fifo_size = RX_FIFO_SPACE ; in smt_split_up_fifo()
1388 smc->hw.fp.fifo.rx2_fifo_size = 0 ; in smt_split_up_fifo()
1393 smc->hw.fp.fifo.rx1_fifo_size = RX_LARGE_FIFO ; in smt_split_up_fifo()
1394 smc->hw.fp.fifo.rx2_fifo_size = RX_SMALL_FIFO ; in smt_split_up_fifo()
1397 smc->hw.fp.fifo.rx1_fifo_size = RX_FIFO_SPACE * in smt_split_up_fifo()
1399 smc->hw.fp.fifo.rx2_fifo_size = RX_FIFO_SPACE * in smt_split_up_fifo()
1428 smc->hw.fp.fifo.fifo_config_mode |= in smt_split_up_fifo()
1433 smc->hw.fp.fifo.fifo_config_mode &= in smt_split_up_fifo()
1440 if (smc->hw.fp.fifo.fifo_config_mode & SYNC_TRAFFIC_ON) { in smt_split_up_fifo()
1441 if (smc->hw.fp.fifo.fifo_config_mode & SEND_ASYNC_AS_SYNC) { in smt_split_up_fifo()
1442 smc->hw.fp.fifo.tx_s_size = TX_LARGE_FIFO ; in smt_split_up_fifo()
1443 smc->hw.fp.fifo.tx_a0_size = TX_SMALL_FIFO ; in smt_split_up_fifo()
1446 smc->hw.fp.fifo.tx_s_size = TX_MEDIUM_FIFO ; in smt_split_up_fifo()
1447 smc->hw.fp.fifo.tx_a0_size = TX_MEDIUM_FIFO ; in smt_split_up_fifo()
1451 smc->hw.fp.fifo.tx_s_size = 0 ; in smt_split_up_fifo()
1452 smc->hw.fp.fifo.tx_a0_size = TX_FIFO_SPACE ; in smt_split_up_fifo()
1455 smc->hw.fp.fifo.rx1_fifo_start = smc->hw.fp.fifo.rbc_ram_start + in smt_split_up_fifo()
1457 smc->hw.fp.fifo.tx_s_start = smc->hw.fp.fifo.rx1_fifo_start + in smt_split_up_fifo()
1458 smc->hw.fp.fifo.rx1_fifo_size ; in smt_split_up_fifo()
1459 smc->hw.fp.fifo.tx_a0_start = smc->hw.fp.fifo.tx_s_start + in smt_split_up_fifo()
1460 smc->hw.fp.fifo.tx_s_size ; in smt_split_up_fifo()
1461 smc->hw.fp.fifo.rx2_fifo_start = smc->hw.fp.fifo.tx_a0_start + in smt_split_up_fifo()
1462 smc->hw.fp.fifo.tx_a0_size ; in smt_split_up_fifo()
1464 DB_SMT("FIFO split: mode = %x", smc->hw.fp.fifo.fifo_config_mode); in smt_split_up_fifo()
1466 smc->hw.fp.fifo.rbc_ram_start, smc->hw.fp.fifo.rbc_ram_end); in smt_split_up_fifo()
1468 smc->hw.fp.fifo.rx1_fifo_start, smc->hw.fp.fifo.tx_s_start); in smt_split_up_fifo()
1470 smc->hw.fp.fifo.tx_a0_start, smc->hw.fp.fifo.rx2_fifo_start); in smt_split_up_fifo()
1480 if (!smc->hw.fp.fifo.tx_s_size && smc->mib.a[PATH0].fddiPATHSbaPayload){ in formac_reinit_tx()