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.c201 if (info->rxbd[info->rxIdx].cbd_sc & BD_ENET_RX_EMPTY) { in fec_recv()
206 length = info->rxbd[info->rxIdx].cbd_datlen; in fec_recv()
208 if (info->rxbd[info->rxIdx].cbd_sc & 0x003f) { in fec_recv()
211 info->rxbd[info->rxIdx].cbd_sc); in fec_recv()
215 info->rxbd[info->rxIdx].cbd_sc); in fec_recv()
228 info->rxbd[info->rxIdx].cbd_datlen = 0; in fec_recv()
232 info->rxbd[PKTBUFSRX - 1].cbd_sc = BD_ENET_RX_W_E; in fec_recv()
235 info->rxbd[info->rxIdx].cbd_sc = BD_ENET_RX_EMPTY; in fec_recv()
478 info->rxbd[i].cbd_sc = BD_ENET_RX_EMPTY; in fec_init()
479 info->rxbd[i].cbd_datlen = 0; /* Reset */ in fec_init()
[all …]
Dtsec.c307 while (!(in_be16(&priv->rxbd[priv->rx_idx].status) & RXBD_EMPTY)) { in tsec_recv()
308 int length = in_be16(&priv->rxbd[priv->rx_idx].length); in tsec_recv()
309 u16 status = in_be16(&priv->rxbd[priv->rx_idx].status); in tsec_recv()
318 out_be16(&priv->rxbd[priv->rx_idx].length, 0); in tsec_recv()
324 out_be16(&priv->rxbd[priv->rx_idx].status, status); in tsec_recv()
343 if (!(in_be16(&priv->rxbd[priv->rx_idx].status) & RXBD_EMPTY)) { in tsec_recv()
344 int length = in_be16(&priv->rxbd[priv->rx_idx].length); in tsec_recv()
345 u16 status = in_be16(&priv->rxbd[priv->rx_idx].status); in tsec_recv()
350 buf = in_be32(&priv->rxbd[priv->rx_idx].bufptr); in tsec_recv()
371 out_be16(&priv->rxbd[priv->rx_idx].length, 0); in tsec_free_pkt()
[all …]
Dfsl_mcdmafec.c246 cbd_t *prbd = &info->rxbd[info->rxIdx]; in fec_recv()
400 info->rxbd[i].cbd_sc = BD_ENET_RX_EMPTY; in fec_init()
401 info->rxbd[i].cbd_datlen = PKTSIZE_ALIGN; in fec_init()
402 info->rxbd[i].cbd_bufaddr = (uint) net_rx_packets[i]; in fec_init()
404 info->rxbd[PKTBUFSRX - 1].cbd_sc |= BD_ENET_RX_WRAP; in fec_init()
431 (s8 *) info->rxbd, /*Source Address */ in fec_init()
527 fec_info[i].rxbd = (cbd_t *)((u32)fec_info[i].rxbd + tmp); in mcdmafec_initialize()
528 tmp = (u32)fec_info[i].rxbd; in mcdmafec_initialize()
538 fec_info[i].rxbd = in mcdmafec_initialize()
550 (int)fec_info[i].rxbd, (int)fec_info[i].txbd); in mcdmafec_initialize()
Dmpc8xx_fec.c105 cbd_t rxbd[PKTBUFSRX]; /* Rx BD */ member
226 if (in_be16(&rtx->rxbd[rxIdx].cbd_sc) & BD_ENET_RX_EMPTY) { in fec_recv()
231 length = in_be16(&rtx->rxbd[rxIdx].cbd_datlen); in fec_recv()
233 if (!(in_be16(&rtx->rxbd[rxIdx].cbd_sc) & 0x003f)) { in fec_recv()
252 out_be16(&rtx->rxbd[rxIdx].cbd_datlen, 0); in fec_recv()
256 out_be16(&rtx->rxbd[PKTBUFSRX - 1].cbd_sc, in fec_recv()
260 out_be16(&rtx->rxbd[rxIdx].cbd_sc, BD_ENET_RX_EMPTY); in fec_recv()
571 out_be16(&rtx->rxbd[i].cbd_sc, BD_ENET_RX_EMPTY); in fec_init()
572 out_be16(&rtx->rxbd[i].cbd_datlen, 0); /* Reset */ in fec_init()
573 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.c32 cbd_t rxbd; /* Rx BD */ member
122 out_be32(&rtx->rxbd.cbd_bufaddr, (__force uint)&rtx->rxbuf); in serial_mpc8xx_probe()
123 out_be16(&rtx->rxbd.cbd_sc, 0); in serial_mpc8xx_probe()
149 setbits_be16(&rtx->rxbd.cbd_sc, BD_SC_EMPTY | BD_SC_WRAP); in serial_mpc8xx_probe()
205 while (in_be16(&rtx->rxbd.cbd_sc) & BD_SC_EMPTY) in serial_mpc8xx_getc()
216 if (rxindex >= in_be16(&rtx->rxbd.cbd_datlen)) { in serial_mpc8xx_getc()
218 setbits_be16(&rtx->rxbd.cbd_sc, BD_SC_EMPTY); in serial_mpc8xx_getc()
235 return !(in_be16(&rtx->rxbd.cbd_sc) & BD_SC_EMPTY); in serial_mpc8xx_pending()
/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.h399 struct rxbd8 __iomem rxbd[PKTBUFSRX]; member