Lines Matching refs:cbd_sc
190 if (pUsedTbd->cbd_sc & BD_ENET_TX_READY) { in fec_send()
200 pUsedTbd->cbd_sc = BD_ENET_TX_WRAP; in fec_send()
202 pUsedTbd->cbd_sc = 0; in fec_send()
224 pTbd->cbd_sc |= BD_ENET_TX_LAST | BD_ENET_TX_TC | BD_ENET_TX_READY; in fec_send()
233 while (pTbd->cbd_sc & BD_ENET_TX_READY) { in fec_send()
237 return (int)(info->txbd[info->txIdx].cbd_sc & BD_ENET_TX_STATS); in fec_send()
277 if (!(prbd->cbd_sc & BD_ENET_RX_EMPTY)) { in fec_recv()
278 if ((prbd->cbd_sc & BD_ENET_RX_LAST) && in fec_recv()
279 !(prbd->cbd_sc & BD_ENET_RX_ERR) && in fec_recv()
293 prbd->cbd_sc = (BD_ENET_RX_WRAP | BD_ENET_RX_EMPTY); in fec_recv()
295 prbd->cbd_sc = BD_ENET_RX_EMPTY; in fec_recv()
399 info->rxbd[i].cbd_sc = BD_ENET_RX_EMPTY; in fec_init()
403 info->rxbd[PKTBUFSRX - 1].cbd_sc |= BD_ENET_RX_WRAP; in fec_init()
408 info->txbd[i].cbd_sc = 0; in fec_init()
412 info->txbd[CONFIG_SYS_TX_ETH_BUFFER - 1].cbd_sc |= BD_ENET_TX_WRAP; in fec_init()