Searched refs:cbd_sc (Results 1 – 10 of 10) sorted by relevance
/external/u-boot/arch/powerpc/cpu/mpc85xx/ |
D | ether_fcc.c | 134 for(i=0; rtx.txbd[txIdx].cbd_sc & BD_ENET_TX_READY; i++) { 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() 164 result = rtx.txbd[txIdx].cbd_sc & BD_ENET_TX_STATS; in fec_send() 177 if (rtx.rxbd[rxIdx].cbd_sc & BD_ENET_RX_EMPTY) { 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() 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() [all …]
|
D | serial_scc.c | 112 rbdf->cbd_sc = BD_SC_EMPTY | BD_SC_WRAP; in mpc85xx_serial_init() 115 tbdf->cbd_sc = BD_SC_WRAP; in mpc85xx_serial_init() 196 while (tbdf->cbd_sc & BD_SC_READY) in mpc85xx_serial_putc() 203 tbdf->cbd_sc |= BD_SC_READY; in mpc85xx_serial_putc() 218 while (rbdf->cbd_sc & BD_SC_EMPTY) in mpc85xx_serial_getc() 224 rbdf->cbd_sc |= BD_SC_EMPTY; in mpc85xx_serial_getc() 238 return ((rbdf->cbd_sc & BD_SC_EMPTY) == 0); in mpc85xx_serial_tstc()
|
/external/u-boot/drivers/serial/ |
D | serial_mpc8xx.c | 120 out_be16(&rtx->rxbd.cbd_sc, 0); in smc_init() 123 out_be16(&rtx->txbd.cbd_sc, 0); in smc_init() 145 setbits_be16(&rtx->txbd.cbd_sc, BD_SC_WRAP); in smc_init() 146 setbits_be16(&rtx->rxbd.cbd_sc, BD_SC_EMPTY | BD_SC_WRAP); in smc_init() 183 setbits_be16(&rtx->txbd.cbd_sc, BD_SC_READY); in smc_putc() 185 while (in_be16(&rtx->txbd.cbd_sc) & BD_SC_READY) in smc_putc() 206 while (in_be16(&rtx->rxbd.cbd_sc) & BD_SC_EMPTY) 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/drivers/net/ |
D | fsl_mcdmafec.c | 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() [all …]
|
D | mcffec.c | 131 while ((info->txbd[info->txIdx].cbd_sc & BD_ENET_TX_READY) && in fec_send() 142 info->txbd[info->txIdx].cbd_sc |= BD_ENET_TX_RDY_LST; in fec_send() 164 while ((info->txbd[info->txIdx].cbd_sc & BD_ENET_TX_READY) && in fec_send() 176 info->txbd[info->txIdx].cbd_sc, in fec_send() 177 (info->txbd[info->txIdx].cbd_sc & 0x003C) >> 2); in fec_send() 181 rc = (info->txbd[info->txIdx].cbd_sc & BD_ENET_TX_STATS); in fec_send() 200 if (info->rxbd[info->rxIdx].cbd_sc & BD_ENET_RX_EMPTY) { 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() [all …]
|
D | mpc8xx_fec.c | 182 while ((in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_READY) && in fec_send() 192 setbits_be16(&rtx->txbd[txIdx].cbd_sc, in fec_send() 200 while ((in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_READY) && in fec_send() 209 rc = in_be16(&rtx->txbd[txIdx].cbd_sc) & BD_ENET_TX_STATS; in fec_send() 225 if (in_be16(&rtx->rxbd[rxIdx].cbd_sc) & BD_ENET_RX_EMPTY) { in fec_recv() 232 if (!(in_be16(&rtx->rxbd[rxIdx].cbd_sc) & 0x003f)) { 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() 574 setbits_be16(&rtx->rxbd[PKTBUFSRX - 1].cbd_sc, BD_ENET_RX_WRAP); in fec_init() [all …]
|
/external/u-boot/drivers/spi/ |
D | mpc8xx_spi.c | 180 clrbits_be16(&tbdf->cbd_sc, BD_SC_READY); in spi_init_f() 181 clrbits_be16(&rbdf->cbd_sc, BD_SC_EMPTY); in spi_init_f() 302 out_be16(&tbdf->cbd_sc, BD_SC_READY | BD_SC_LAST | BD_SC_WRAP); in spi_xfer() 306 out_be16(&rbdf->cbd_sc, BD_SC_EMPTY | BD_SC_WRAP); in spi_xfer() 324 if ((in_be16(&tbdf->cbd_sc) & BD_SC_READY) == 0) in spi_xfer()
|
/external/u-boot/arch/m68k/include/asm/ |
D | fec.h | 22 ushort cbd_sc; /* Status and Control */ member
|
/external/u-boot/arch/powerpc/include/asm/ |
D | cpm_8xx.h | 73 ushort cbd_sc; /* Status and Control */ member
|
D | cpm_85xx.h | 107 ushort cbd_sc; /* Status and Control */ member
|