Home
last modified time | relevance | path

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

/external/u-boot/arch/powerpc/cpu/mpc85xx/
Dether_fcc.c112 cbd_t txbd[TX_BUF_CNT]; member
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()
[all …]
/external/u-boot/drivers/net/fm/
Deth.c312 struct fm_port_bd *txbd; in fm_eth_tx_port_parameter_init() local
348 txbd = (struct fm_port_bd *)tx_bd_ring_base; in fm_eth_tx_port_parameter_init()
350 muram_writew(&txbd->status, TxBD_LAST); in fm_eth_tx_port_parameter_init()
351 muram_writew(&txbd->len, 0); in fm_eth_tx_port_parameter_init()
352 muram_writew(&txbd->buf_ptr_hi, 0); in fm_eth_tx_port_parameter_init()
353 out_be32(&txbd->buf_ptr_lo, 0); in fm_eth_tx_port_parameter_init()
354 txbd++; in fm_eth_tx_port_parameter_init()
518 struct fm_port_bd *txbd, *txbd_base; in fm_eth_send() local
524 txbd = fm_eth->cur_txbd; in fm_eth_send()
527 for (i = 0; muram_readw(&txbd->status) & TxBD_READY; i++) { in fm_eth_send()
[all …]
/external/u-boot/drivers/net/
Dmcffec.c132 while ((info->txbd[info->txIdx].cbd_sc & BD_ENET_TX_READY) && in fec_send()
141 info->txbd[info->txIdx].cbd_bufaddr = (uint) packet; in fec_send()
142 info->txbd[info->txIdx].cbd_datlen = length; in fec_send()
143 info->txbd[info->txIdx].cbd_sc |= BD_ENET_TX_RDY_LST; in fec_send()
165 while ((info->txbd[info->txIdx].cbd_sc & BD_ENET_TX_READY) && in fec_send()
177 info->txbd[info->txIdx].cbd_sc, in fec_send()
178 (info->txbd[info->txIdx].cbd_sc & 0x003C) >> 2); in fec_send()
182 rc = (info->txbd[info->txIdx].cbd_sc & BD_ENET_TX_STATS); in fec_send()
490 info->txbd[i].cbd_sc = BD_ENET_TX_LAST | BD_ENET_TX_TC; in fec_init()
491 info->txbd[i].cbd_datlen = 0; /* Reset */ in fec_init()
[all …]
Dfsl_mcdmafec.c190 pUsedTbd = &info->txbd[info->usedTbdIdx]; in fec_send()
222 pTbd = &info->txbd[info->txIdx]; in fec_send()
238 return (int)(info->txbd[info->txIdx].cbd_sc & BD_ENET_TX_STATS); in fec_send()
409 info->txbd[i].cbd_sc = 0; in fec_init()
410 info->txbd[i].cbd_datlen = 0; in fec_init()
411 info->txbd[i].cbd_bufaddr = (uint) (&info->txbuf[0]); in fec_init()
413 info->txbd[CONFIG_SYS_TX_ETH_BUFFER - 1].cbd_sc |= BD_ENET_TX_WRAP; in fec_init()
445 (s8 *) info->txbd, /*Source Address */ in fec_init()
529 fec_info[i].txbd = in mcdmafec_initialize()
530 (cbd_t *)((u32)fec_info[i].txbd + tmp + in mcdmafec_initialize()
[all …]
Dmpc8xx_fec.c106 cbd_t txbd[TX_BUF_CNT]; /* Tx BD */ member
183 while ((in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_READY) && in fec_send()
191 out_be32(&rtx->txbd[txIdx].cbd_bufaddr, (uint)packet); in fec_send()
192 out_be16(&rtx->txbd[txIdx].cbd_datlen, length); in fec_send()
193 setbits_be16(&rtx->txbd[txIdx].cbd_sc, in fec_send()
201 while ((in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_READY) && in fec_send()
210 rc = in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_STATS; in fec_send()
583 out_be16(&rtx->txbd[i].cbd_sc, BD_ENET_TX_LAST | BD_ENET_TX_TC); in fec_init()
584 out_be16(&rtx->txbd[i].cbd_datlen, 0); /* Reset */ in fec_init()
585 out_be32(&rtx->txbd[i].cbd_bufaddr, (uint)txbuf); in fec_init()
[all …]
Dtsec.c268 in_be16(&priv->txbd[priv->tx_idx].status) & TXBD_READY; in tsec_send()
276 out_be32(&priv->txbd[priv->tx_idx].bufptr, (u32)packet); in tsec_send()
277 out_be16(&priv->txbd[priv->tx_idx].length, length); in tsec_send()
278 status = in_be16(&priv->txbd[priv->tx_idx].status); in tsec_send()
279 out_be16(&priv->txbd[priv->tx_idx].status, status | in tsec_send()
287 in_be16(&priv->txbd[priv->tx_idx].status) & TXBD_READY; in tsec_send()
296 result = in_be16(&priv->txbd[priv->tx_idx].status) & TXBD_STATS; in tsec_send()
512 out_be32(&regs->tbase, (u32)&priv->txbd[0]); in startup_tsec()
526 out_be16(&priv->txbd[i].status, 0); in startup_tsec()
527 out_be16(&priv->txbd[i].length, 0); in startup_tsec()
[all …]
/external/u-boot/drivers/serial/
Dserial_mpc8xx.c33 cbd_t txbd; /* Tx BD */ member
125 out_be32(&rtx->txbd.cbd_bufaddr, (__force uint)&rtx->txbuf); in serial_mpc8xx_probe()
126 out_be16(&rtx->txbd.cbd_sc, 0); in serial_mpc8xx_probe()
148 setbits_be16(&rtx->txbd.cbd_sc, BD_SC_WRAP); in serial_mpc8xx_probe()
185 out_be16(&rtx->txbd.cbd_datlen, 1); in serial_mpc8xx_putc()
186 setbits_be16(&rtx->txbd.cbd_sc, BD_SC_READY); in serial_mpc8xx_putc()
188 while (in_be16(&rtx->txbd.cbd_sc) & BD_SC_READY) in serial_mpc8xx_putc()
/external/u-boot/arch/m68k/include/asm/
Dfsl_mcdmafec.h74 cbd_t *txbd; /* Tx BD */ member
Dfec.h97 cbd_t *txbd; /* Tx BD */ member
/external/u-boot/include/
Dtsec.h398 struct txbd8 __iomem txbd[TX_BUF_CNT]; member