• Home
  • Raw
  • Download

Lines Matching refs:rtx

86 	struct serialbuffer __iomem *rtx;  in serial_mpc8xx_probe()  local
115 rtx = (struct serialbuffer __iomem *)&cp->cp_dpmem[CPM_SERIAL_BASE]; in serial_mpc8xx_probe()
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()
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()
149 setbits_be16(&rtx->rxbd.cbd_sc, BD_SC_EMPTY | BD_SC_WRAP); in serial_mpc8xx_probe()
154 out_be32(&rtx->rxindex, 0); in serial_mpc8xx_probe()
176 struct serialbuffer __iomem *rtx; in serial_mpc8xx_putc() local
181 rtx = (struct serialbuffer __iomem *)&cpmp->cp_dpmem[CPM_SERIAL_BASE]; in serial_mpc8xx_putc()
184 out_8(&rtx->txbuf, c); in serial_mpc8xx_putc()
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()
198 struct serialbuffer __iomem *rtx; in serial_mpc8xx_getc() local
202 rtx = (struct serialbuffer __iomem *)&cpmp->cp_dpmem[CPM_SERIAL_BASE]; in serial_mpc8xx_getc()
205 while (in_be16(&rtx->rxbd.cbd_sc) & BD_SC_EMPTY) in serial_mpc8xx_getc()
211 rxindex = in_be32(&rtx->rxindex); in serial_mpc8xx_getc()
212 c = in_8(rtx->rxbuf + rxindex); 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()
220 out_be32(&rtx->rxindex, rxindex); in serial_mpc8xx_getc()
228 struct serialbuffer __iomem *rtx; in serial_mpc8xx_pending() local
233 rtx = (struct serialbuffer __iomem *)&cpmp->cp_dpmem[CPM_SERIAL_BASE]; in serial_mpc8xx_pending()
235 return !(in_be16(&rtx->rxbd.cbd_sc) & BD_SC_EMPTY); in serial_mpc8xx_pending()