Home
last modified time | relevance | path

Searched refs:tbdf (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/drivers/spi/
H A Dmpc8xx_spi.c37 cbd_t __iomem *tbdf, *rbdf; in mpc8xx_spi_probe() local
132 tbdf = (cbd_t __iomem *)&cp->cp_dpmem[CPM_SPI_BASE_TX]; in mpc8xx_spi_probe()
135 clrbits_be16(&tbdf->cbd_sc, BD_SC_READY); in mpc8xx_spi_probe()
150 cbd_t __iomem *tbdf, *rbdf; in mpc8xx_spi_xfer() local
157 tbdf = (cbd_t __iomem *)&cp->cp_dpmem[CPM_SPI_BASE_TX]; in mpc8xx_spi_xfer()
164 out_be32(&tbdf->cbd_bufaddr, (ulong)dout); in mpc8xx_spi_xfer()
165 out_be16(&tbdf->cbd_sc, BD_SC_READY | BD_SC_LAST | BD_SC_WRAP); in mpc8xx_spi_xfer()
166 out_be16(&tbdf->cbd_datlen, count); in mpc8xx_spi_xfer()
188 if ((in_be16(&tbdf->cbd_sc) & BD_SC_READY) == 0) in mpc8xx_spi_xfer()
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dserial_scc.c78 volatile cbd_t *tbdf, *rbdf; in mpc85xx_serial_init() local
113 tbdf = rbdf + 1; in mpc85xx_serial_init()
114 tbdf->cbd_bufaddr = ((uint) (rbdf+2)) + 1; in mpc85xx_serial_init()
115 tbdf->cbd_sc = BD_SC_WRAP; in mpc85xx_serial_init()
185 volatile cbd_t *tbdf; in mpc85xx_serial_putc() local
192 tbdf = (cbd_t *)&(cpm->im_dprambase[up->scc_genscc.scc_tbase]); in mpc85xx_serial_putc()
196 while (tbdf->cbd_sc & BD_SC_READY) in mpc85xx_serial_putc()
201 *(volatile char *)tbdf->cbd_bufaddr = c; in mpc85xx_serial_putc()
202 tbdf->cbd_datlen = 1; in mpc85xx_serial_putc()
203 tbdf->cbd_sc |= BD_SC_READY; in mpc85xx_serial_putc()