Lines Matching +full:75 +full:- +full:ec

1 // SPDX-License-Identifier: GPL-2.0-or-later
49 #define DUMMY_READ() smc->hw.mc_dummy = (u_short) inp(ADDR(B0_RAP))
52 while ((inpw(FM_A(FM_STMCHN)) & FM_SNPPND) && k) k--;\
59 while (!(inpw(FM_A(FM_AFSTAT)) & FM_DONE) && k) k--;\
76 #define MA smc->hw.fddi_canon_addr
78 #define MA smc->hw.fddi_home_addr
114 smc->mib.m[MAC0].fddiMACFrame_Ct = in mac_update_counter()
115 (smc->mib.m[MAC0].fddiMACFrame_Ct & 0xffff0000L) in mac_update_counter()
117 smc->mib.m[MAC0].fddiMACLost_Ct = in mac_update_counter()
118 (smc->mib.m[MAC0].fddiMACLost_Ct & 0xffff0000L) in mac_update_counter()
120 smc->mib.m[MAC0].fddiMACError_Ct = in mac_update_counter()
121 (smc->mib.m[MAC0].fddiMACError_Ct & 0xffff0000L) in mac_update_counter()
123 smc->mib.m[MAC0].fddiMACT_Neg = mac_get_tneg(smc) ; in mac_update_counter()
155 /* smc->hw.mc_dummy = *((short volatile far *)(addr)))*/
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()
256 outpw(FM_A(FM_RPXA1),rbc_ram_addr) ; /* a1-send pointer */ in init_rbc()
275 smc->hw.fp.rx[QUEUE_R1] = queue = &smc->hw.fp.rx_q[QUEUE_R1] ; in init_rx()
276 queue->rx_bmu_ctl = (HW_PTR) ADDR(B0_R1_CSR) ; in init_rx()
277 queue->rx_bmu_dsc = (HW_PTR) ADDR(B4_R1_DA) ; in init_rx()
282 smc->hw.fp.rx[QUEUE_R2] = queue = &smc->hw.fp.rx_q[QUEUE_R2] ; in init_rx()
283 queue->rx_bmu_ctl = (HW_PTR) ADDR(B0_R2_CSR) ; in init_rx()
284 queue->rx_bmu_dsc = (HW_PTR) ADDR(B4_R2_DA) ; in init_rx()
292 outpw(FM_A(FM_TSYNC),(unsigned int) (((-sync_bw) >> 5) & 0xffff) ) ; in set_formac_tsync()
305 smc->hw.fp.tx[QUEUE_S] = queue = &smc->hw.fp.tx_q[QUEUE_S] ; in init_tx()
306 queue->tx_bmu_ctl = (HW_PTR) ADDR(B0_XS_CSR) ; in init_tx()
307 queue->tx_bmu_dsc = (HW_PTR) ADDR(B5_XS_DA) ; in init_tx()
310 set_formac_tsync(smc,smc->ess.sync_bw) ; in init_tx()
316 smc->hw.fp.tx[QUEUE_A0] = queue = &smc->hw.fp.tx_q[QUEUE_A0] ; in init_tx()
317 queue->tx_bmu_ctl = (HW_PTR) ADDR(B0_XA_CSR) ; in init_tx()
318 queue->tx_bmu_dsc = (HW_PTR) ADDR(B5_XA_DA) ; in init_tx()
327 u_long *ec ; in mac_counter_init() local
330 * clear FORMAC+ frame-, lost- and error counter in mac_counter_init()
338 ec = (u_long *)&smc->hw.fp.err_stats ; in mac_counter_init()
339 for (i = (sizeof(struct err_st)/sizeof(long)) ; i ; i--) in mac_counter_init()
340 *ec++ = 0L ; in mac_counter_init()
341 smc->mib.m[MAC0].fddiMACRingOp_Ct = 0 ; in mac_counter_init()
349 long t_requ = smc->mib.m[MAC0].fddiMACT_Req ; in set_formac_addr()
352 outpw(FM_A(FM_LAIL),(unsigned short)((smc->hw.fddi_home_addr.a[4]<<8) + in set_formac_addr()
353 smc->hw.fddi_home_addr.a[5])) ; in set_formac_addr()
354 outpw(FM_A(FM_LAIC),(unsigned short)((smc->hw.fddi_home_addr.a[2]<<8) + in set_formac_addr()
355 smc->hw.fddi_home_addr.a[3])) ; in set_formac_addr()
356 outpw(FM_A(FM_LAIM),(unsigned short)((smc->hw.fddi_home_addr.a[0]<<8) + in set_formac_addr()
357 smc->hw.fddi_home_addr.a[1])) ; in set_formac_addr()
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()
403 for (i = (len + 3)/4 ; i ; i--) { in copy_tx_mac()
419 ----------------------------------------------------------------
449 memcpy((char *)a+1, (char *) &smc->mib.m[MAC0].fddiMACUpstreamNbr, ETH_ALEN); in directed_beacon()
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()
477 td = TX_DESCRIPTOR | ((((u_int)len-1)&3)<<27) ; in build_claim_beacon()
478 mac = &smc->hw.fp.mac_sfb ; in build_claim_beacon()
479 mac->mac_fc = FC_CLAIM ; in build_claim_beacon()
481 mac->mac_source = mac->mac_dest = MA ; in build_claim_beacon()
483 set_int((char *)mac->mac_info,(int)t_request) ; 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()
494 td = TX_DESCRIPTOR | ((((u_int)len-1)&3)<<27) ; in build_claim_beacon()
495 mac->mac_fc = FC_BEACON ; in build_claim_beacon()
496 mac->mac_source = MA ; in build_claim_beacon()
497 mac->mac_dest = null_addr ; /* DA == 0 in beacon frame */ in build_claim_beacon()
498 set_int((char *) mac->mac_info,((int)BEACON_INFO<<24) + 0 ) ; 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()
510 td = TX_DESCRIPTOR | ((((u_int)len-1)&3)<<27) ; in build_claim_beacon()
511 mac->mac_fc = FC_BEACON ; in build_claim_beacon()
512 mac->mac_source = MA ; in build_claim_beacon()
513 mac->mac_dest = dbeacon_multi ; /* multicast */ in build_claim_beacon()
514 set_int((char *) mac->mac_info,((int)DBEACON_INFO<<24) + 0 ) ; in build_claim_beacon()
515 set_int((char *) mac->mac_info+4,0) ; in build_claim_beacon()
516 set_int((char *) mac->mac_info+8,0) ; 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()
538 outpw(FM_A(FM_CMDREG1),FM_ICLLS) ; /* clear s-frame lock */ in formac_tx_restart()
539 outpw(FM_A(FM_CMDREG1),FM_ICLLA0) ; /* clear a-frame lock */ in formac_tx_restart()
574 - when it queues the first frame,
577 - when it escapes from the function llc_restart_tx
649 smc->hw.mac_ring_is_up = TRUE ; in mac_ring_up()
659 smc->hw.mac_ring_is_up = FALSE ; in mac_ring_up()
663 /*--------------------------- ISR handling ----------------------------------*/
677 /* (jd) 22-Feb-1999 in mac2_irq()
690 change_s2l = smc->hw.fp.s2l ^ code_s2l ; in mac2_irq()
691 change_s2u = smc->hw.fp.s2u ^ code_s2u ; in mac2_irq()
694 (!smc->hw.mac_ring_is_up && ((code_s2l & FM_SRNGOP)))) { in mac2_irq()
698 smc->mib.m[MAC0].fddiMACRingOp_Ct++ ; in mac2_irq()
707 smc->mib.m[MAC0].fddiMACNotCopied_Ct++ ; in mac2_irq()
711 smc->hw.mac_ct.mac_r_restart_counter++ ; in mac2_irq()
752 smc->r.dup_addr_test = DA_FAILED ; 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()
760 smc->mib.m[MAC0].fddiMACTvxExpired_Ct++ ; in mac2_irq()
762 if (!(change_s2l & FM_SRNGOP) && (smc->hw.fp.s2l & FM_SRNGOP)) { in mac2_irq()
768 smc->mib.m[MAC0].fddiMACRingOp_Ct++ ; 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()
780 smc->mib.m[MAC0].fddiMACFrame_Ct += 0x10000L ; in mac2_irq()
782 smc->mib.m[MAC0].fddiMACError_Ct += 0x10000L ; in mac2_irq()
784 smc->mib.m[MAC0].fddiMACLost_Ct += 0x10000L ; in mac2_irq()
790 smc->hw.fp.s2l = code_s2l ; in mac2_irq()
791 smc->hw.fp.s2u = code_s2u ; in mac2_irq()
804 smc->hw.mac_ct.mac_r_restart_counter++ ; in mac3_irq()
832 smc->hw.mac_ring_is_up = FALSE ; in formac_offline()
833 smc->hw.hw_state = STOPPED ; in formac_offline()
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()
858 if (smc->s.sas == SMT_DAS) in init_fplus()
859 smc->hw.fp.mdr3init |= FM_MENDAS ; in init_fplus()
861 smc->hw.mac_ct.mac_nobuf_counter = 0 ; in init_fplus()
862 smc->hw.mac_ct.mac_r_restart_counter = 0 ; 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()
872 smc->hw.mac_ring_is_up = 0 ; in init_fplus()
877 smc->hw.mac_pa.t_neg = (u_long)0 ; in init_fplus()
878 smc->hw.mac_pa.t_pri = (u_long)0 ; in init_fplus()
899 outpw(FM_A(FM_MDREG2),smc->hw.fp.mdr2init) ; in init_mac()
921 build_claim_beacon(smc,smc->mib.m[MAC0].fddiMACT_Req) ; 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()
937 * or one of FFDF, FFB8, FF91 (-0x27 etc..) in init_mac()
939 t_max = (u_short)(smc->mib.m[MAC0].fddiMACT_Max/32) ; in init_mac()
942 if ((t_max == 0xfffe) || (t_max - x == 0x16)) in init_mac()
943 t_max-- ; in init_mac()
947 if (smc->mib.m[MAC0].fddiMACTvxValue < (u_long) (- US2BCLK(52))) { in init_mac()
948 outpw(FM_A(FM_TVX), (u_short) (- US2BCLK(52))/255 & MB) ; in init_mac()
951 (u_short)((smc->mib.m[MAC0].fddiMACTvxValue/255) & MB)) ; in init_mac()
954 outpw(FM_A(FM_CMDREG1),FM_ICLLS) ; /* clear s-frame lock */ in init_mac()
955 outpw(FM_A(FM_CMDREG1),FM_ICLLA0) ; /* clear a-frame lock */ in init_mac()
961 rtm_init(smc) ; /* RT-Monitor */ in init_mac()
975 if (!smc->hw.hw_is_64bit) { in init_mac()
980 smc->hw.hw_state = STOPPED ; in init_mac()
983 smc->hw.hw_state = STARTED ; in init_mac()
1015 /*-------------------------- interface functions ----------------------------*/
1067 p = own->a ; in mac_get_mc_table()
1072 for (i = 0, tb = smc->hw.fp.mc.table ; i < FPMAX_MULTICAST ; i++, tb++){ in mac_get_mc_table()
1073 if (!tb->n) { /* not used */ in mac_get_mc_table()
1078 if (!ether_addr_equal((char *)&tb->a, (char *)own)) 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()
1104 if (!tb->perm) { in mac_clear_multicast()
1105 tb->n = 0 ; 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()
1162 tb->n++ ; in mac_add_multicast()
1163 tb->a = own ; in mac_add_multicast()
1164 tb->perm = (can & 0x80) ? 1 : 0 ; 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()
1227 if (tb->n) { in mac_update_multicast()
1234 (u_short)((tb->a.a[0]<<8)+tb->a.a[1])) ; in mac_update_multicast()
1236 (u_short)((tb->a.a[2]<<8)+tb->a.a[3])) ; in mac_update_multicast()
1238 (u_short)((tb->a.a[4]<<8)+tb->a.a[5])) ; in mac_update_multicast()
1254 used -- use mac_drv_rx_mode() instead of.
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()
1309 ----------------------------------------------------------------
1349 (int)smc->mib.a[PATH0].fddiPATHT_Rmode); in rtm_set_timer()
1350 outpd(ADDR(B2_RTM_INI),smc->mib.a[PATH0].fddiPATHT_Rmode) ; in rtm_set_timer()
1358 ------------------------------------------------------------- in smt_split_up_fifo()
1360 ------------------------------------------------------------- in smt_split_up_fifo()
1368 | x 0 | x 1-3 | x < 3 in smt_split_up_fifo()
1369 ---------------------------------------------------------------------- in smt_split_up_fifo()
1370 | 63,75 kB | 54,75 | R1_RxD in smt_split_up_fifo()
1371 rx queue 1 | RX_FIFO_SPACE | RX_LARGE_FIFO| ------------- * 63,75 kB in smt_split_up_fifo()
1373 ---------------------------------------------------------------------- in smt_split_up_fifo()
1375 rx queue 2 | 0 kB | RX_SMALL_FIFO| ------------- * 63,75 kB in smt_split_up_fifo()
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()
1406 ------------------------------------------------------------- in smt_split_up_fifo()
1408 ------------------------------------------------------------- in smt_split_up_fifo()
1413 ----------------------------------------------------------------------- in smt_split_up_fifo()
1416 ----------------------------------------------------------------------- in smt_split_up_fifo()
1426 if (smc->mib.a[PATH0].fddiPATHSbaPayload) { in smt_split_up_fifo()
1428 smc->hw.fp.fifo.fifo_config_mode |= in smt_split_up_fifo()
1429 smc->mib.fddiESSSynchTxMode | SYNC_TRAFFIC_ON ; 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()