Lines Matching refs:txIdx
102 static uint txIdx; /* index of the current TX buffer */ variable
134 for(i=0; rtx.txbd[txIdx].cbd_sc & BD_ENET_TX_READY; i++) { in fec_send()
141 rtx.txbd[txIdx].cbd_bufaddr = (uint)packet; in fec_send()
142 rtx.txbd[txIdx].cbd_datlen = length; in fec_send()
143 rtx.txbd[txIdx].cbd_sc |= (BD_ENET_TX_READY | BD_ENET_TX_LAST | \ in fec_send()
146 for(i=0; rtx.txbd[txIdx].cbd_sc & BD_ENET_TX_READY; i++) { in fec_send()
154 printf("cycles: 0x%x txIdx=0x%04x status: 0x%04x\n", i, txIdx,rtx.txbd[txIdx].cbd_sc); in fec_send()
157 printf("%08x %08x %08x %08x\n",*((uint *)rtx.txbd[txIdx].cbd_bufaddr+i*4),\ in fec_send()
158 …*((uint *)rtx.txbd[txIdx].cbd_bufaddr + i*4 + 1),*((uint *)rtx.txbd[txIdx].cbd_bufaddr + i*4 + 2),… in fec_send()
159 *((uint *)rtx.txbd[txIdx].cbd_bufaddr + i*4 + 3)); in fec_send()
164 result = rtx.txbd[txIdx].cbd_sc & BD_ENET_TX_STATS; in fec_send()
165 txIdx = (txIdx + 1) % TX_BUF_CNT; in fec_send()
258 txIdx = 0; in fec_init()
312 pram_ptr->fen_genfcc.fcc_tbase = (unsigned int)(&rtx.txbd[txIdx]); in fec_init()