Home
last modified time | relevance | path

Searched refs:rxbd (Results 1 – 10 of 10) sorted by relevance

/external/u-boot/arch/powerpc/cpu/mpc85xx/
Dether_fcc.c111 cbd_t rxbd[PKTBUFSRX]; member
177 if (rtx.rxbd[rxIdx].cbd_sc & BD_ENET_RX_EMPTY) { in fec_recv()
181 length = rtx.rxbd[rxIdx].cbd_datlen; in fec_recv()
183 if (rtx.rxbd[rxIdx].cbd_sc & 0x003f) { in fec_recv()
184 printf("fec: rx error %04x\n", rtx.rxbd[rxIdx].cbd_sc); in fec_recv()
193 rtx.rxbd[rxIdx].cbd_datlen = 0; in fec_recv()
197 rtx.rxbd[PKTBUFSRX - 1].cbd_sc = (BD_ENET_RX_WRAP | BD_ENET_RX_EMPTY); in fec_recv()
201 rtx.rxbd[rxIdx].cbd_sc = BD_ENET_RX_EMPTY; in fec_recv()
263 rtx.rxbd[i].cbd_sc = BD_ENET_RX_EMPTY; in fec_init()
264 rtx.rxbd[i].cbd_datlen = 0; in fec_init()
[all …]
/external/u-boot/drivers/net/
Dmcffec.c200 if (info->rxbd[info->rxIdx].cbd_sc & BD_ENET_RX_EMPTY) { in fec_recv()
205 length = info->rxbd[info->rxIdx].cbd_datlen; in fec_recv()
207 if (info->rxbd[info->rxIdx].cbd_sc & 0x003f) { in fec_recv()
210 info->rxbd[info->rxIdx].cbd_sc); in fec_recv()
214 info->rxbd[info->rxIdx].cbd_sc); in fec_recv()
227 info->rxbd[info->rxIdx].cbd_datlen = 0; in fec_recv()
231 info->rxbd[PKTBUFSRX - 1].cbd_sc = BD_ENET_RX_W_E; in fec_recv()
234 info->rxbd[info->rxIdx].cbd_sc = BD_ENET_RX_EMPTY; in fec_recv()
477 info->rxbd[i].cbd_sc = BD_ENET_RX_EMPTY; in fec_init()
478 info->rxbd[i].cbd_datlen = 0; /* Reset */ in fec_init()
[all …]
Dtsec.c284 while (!(in_be16(&priv->rxbd[priv->rx_idx].status) & RXBD_EMPTY)) { in tsec_recv()
285 int length = in_be16(&priv->rxbd[priv->rx_idx].length); in tsec_recv()
286 u16 status = in_be16(&priv->rxbd[priv->rx_idx].status); in tsec_recv()
295 out_be16(&priv->rxbd[priv->rx_idx].length, 0); in tsec_recv()
301 out_be16(&priv->rxbd[priv->rx_idx].status, status); in tsec_recv()
320 if (!(in_be16(&priv->rxbd[priv->rx_idx].status) & RXBD_EMPTY)) { in tsec_recv()
321 int length = in_be16(&priv->rxbd[priv->rx_idx].length); in tsec_recv()
322 u16 status = in_be16(&priv->rxbd[priv->rx_idx].status); in tsec_recv()
327 buf = in_be32(&priv->rxbd[priv->rx_idx].bufptr); in tsec_recv()
348 out_be16(&priv->rxbd[priv->rx_idx].length, 0); in tsec_free_pkt()
[all …]
Dfsl_mcdmafec.c245 cbd_t *prbd = &info->rxbd[info->rxIdx]; in fec_recv()
399 info->rxbd[i].cbd_sc = BD_ENET_RX_EMPTY; in fec_init()
400 info->rxbd[i].cbd_datlen = PKTSIZE_ALIGN; in fec_init()
401 info->rxbd[i].cbd_bufaddr = (uint) net_rx_packets[i]; in fec_init()
403 info->rxbd[PKTBUFSRX - 1].cbd_sc |= BD_ENET_RX_WRAP; in fec_init()
430 (s8 *) info->rxbd, /*Source Address */ in fec_init()
526 fec_info[i].rxbd = (cbd_t *)((u32)fec_info[i].rxbd + tmp); in mcdmafec_initialize()
527 tmp = (u32)fec_info[i].rxbd; in mcdmafec_initialize()
537 fec_info[i].rxbd = in mcdmafec_initialize()
549 (int)fec_info[i].rxbd, (int)fec_info[i].txbd); in mcdmafec_initialize()
Dmpc8xx_fec.c104 cbd_t rxbd[PKTBUFSRX]; /* Rx BD */ member
225 if (in_be16(&rtx->rxbd[rxIdx].cbd_sc) & BD_ENET_RX_EMPTY) { in fec_recv()
230 length = in_be16(&rtx->rxbd[rxIdx].cbd_datlen); in fec_recv()
232 if (!(in_be16(&rtx->rxbd[rxIdx].cbd_sc) & 0x003f)) { in fec_recv()
251 out_be16(&rtx->rxbd[rxIdx].cbd_datlen, 0); in fec_recv()
255 out_be16(&rtx->rxbd[PKTBUFSRX - 1].cbd_sc, in fec_recv()
259 out_be16(&rtx->rxbd[rxIdx].cbd_sc, BD_ENET_RX_EMPTY); in fec_recv()
570 out_be16(&rtx->rxbd[i].cbd_sc, BD_ENET_RX_EMPTY); in fec_init()
571 out_be16(&rtx->rxbd[i].cbd_datlen, 0); /* Reset */ in fec_init()
572 out_be32(&rtx->rxbd[i].cbd_bufaddr, (uint)net_rx_packets[i]); in fec_init()
[all …]
/external/u-boot/drivers/net/fm/
Deth.c225 struct fm_port_bd *rxbd; in fm_eth_rx_port_parameter_init() local
275 rxbd = (struct fm_port_bd *)rx_bd_ring_base; in fm_eth_rx_port_parameter_init()
277 muram_writew(&rxbd->status, RxBD_EMPTY); in fm_eth_rx_port_parameter_init()
278 muram_writew(&rxbd->len, 0); in fm_eth_rx_port_parameter_init()
283 muram_writew(&rxbd->buf_ptr_hi, (u16)buf_hi); in fm_eth_rx_port_parameter_init()
284 out_be32(&rxbd->buf_ptr_lo, buf_lo); in fm_eth_rx_port_parameter_init()
285 rxbd++; in fm_eth_rx_port_parameter_init()
576 struct fm_port_bd *rxbd, *rxbd_base; in fm_eth_recv() local
585 rxbd = fm_eth->cur_rxbd; in fm_eth_recv()
586 status = muram_readw(&rxbd->status); in fm_eth_recv()
[all …]
/external/u-boot/drivers/serial/
Dserial_mpc8xx.c31 cbd_t rxbd; /* Rx BD */ member
119 out_be32(&rtx->rxbd.cbd_bufaddr, (__force uint)&rtx->rxbuf); in smc_init()
120 out_be16(&rtx->rxbd.cbd_sc, 0); in smc_init()
146 setbits_be16(&rtx->rxbd.cbd_sc, BD_SC_EMPTY | BD_SC_WRAP); in smc_init()
206 while (in_be16(&rtx->rxbd.cbd_sc) & BD_SC_EMPTY) in smc_getc()
217 if (rxindex >= in_be16(&rtx->rxbd.cbd_datlen)) { in smc_getc()
219 setbits_be16(&rtx->rxbd.cbd_sc, BD_SC_EMPTY); in smc_getc()
233 return !(in_be16(&rtx->rxbd.cbd_sc) & BD_SC_EMPTY); in smc_tstc()
/external/u-boot/arch/m68k/include/asm/
Dfsl_mcdmafec.h73 cbd_t *rxbd; /* Rx BD */ member
Dfec.h96 cbd_t *rxbd; /* Rx BD */ member
/external/u-boot/include/
Dtsec.h397 struct rxbd8 __iomem rxbd[PKTBUFSRX]; member