Lines Matching refs:bd

287 	struct qe_bd __iomem *bd;  in qe_epbds_reset()  local
297 bd = ep->rxbase; in qe_epbds_reset()
299 out_be32((u32 __iomem *)bd, R_E | R_I); in qe_epbds_reset()
300 bd++; in qe_epbds_reset()
302 out_be32((u32 __iomem *)bd, R_E | R_I | R_W); in qe_epbds_reset()
304 bd = ep->txbase; in qe_epbds_reset()
306 out_be32(&bd->buf, 0); in qe_epbds_reset()
307 out_be32((u32 __iomem *)bd, 0); in qe_epbds_reset()
308 bd++; in qe_epbds_reset()
310 out_be32((u32 __iomem *)bd, T_W); in qe_epbds_reset()
357 struct qe_bd __iomem *bd; in qe_ep_bd_init() local
389 bd = ep->rxbase; in qe_ep_bd_init()
391 out_be32(&bd->buf, 0); in qe_ep_bd_init()
392 out_be32((u32 __iomem *)bd, 0); in qe_ep_bd_init()
393 bd++; in qe_ep_bd_init()
395 out_be32(&bd->buf, 0); in qe_ep_bd_init()
396 out_be32((u32 __iomem *)bd, R_W); in qe_ep_bd_init()
398 bd = ep->txbase; in qe_ep_bd_init()
400 out_be32(&bd->buf, 0); in qe_ep_bd_init()
401 out_be32((u32 __iomem *)bd, 0); in qe_ep_bd_init()
402 bd++; in qe_ep_bd_init()
404 out_be32(&bd->buf, 0); in qe_ep_bd_init()
405 out_be32((u32 __iomem *)bd, T_W); in qe_ep_bd_init()
415 struct qe_bd __iomem *bd; in qe_ep_rxbd_update() local
421 bd = ep->rxbase; in qe_ep_rxbd_update()
464 out_be32(&bd->buf, tmp); in qe_ep_rxbd_update()
465 out_be32((u32 __iomem *)bd, (R_E | R_I)); in qe_ep_rxbd_update()
467 bd++; in qe_ep_rxbd_update()
469 out_be32(&bd->buf, tmp); in qe_ep_rxbd_update()
470 out_be32((u32 __iomem *)bd, (R_E | R_I | R_W)); in qe_ep_rxbd_update()
730 struct qe_bd __iomem *bd, *nextbd; in recycle_rxbds() local
734 bd = ep->e_rxbd; in recycle_rxbds()
735 bdstatus = in_be32((u32 __iomem *)bd); in recycle_rxbds()
739 out_be32((u32 __iomem *)bd, bdstatus); in recycle_rxbds()
742 bd = ep->rxbase; in recycle_rxbds()
744 bd++; in recycle_rxbds()
746 bdstatus = in_be32((u32 __iomem *)bd); in recycle_rxbds()
747 if (stopatnext && (bd == nextbd)) in recycle_rxbds()
751 ep->e_rxbd = bd; in recycle_rxbds()
756 struct qe_bd __iomem *bd = ep->n_rxbd; in ep_recycle_rxbds() local
761 bdstatus = in_be32((u32 __iomem *)bd); in ep_recycle_rxbds()
763 bd = ep->rxbase + in ep_recycle_rxbds()
767 bdstatus = in_be32((u32 __iomem *)bd); in ep_recycle_rxbds()
770 bd = ep->rxbase; in ep_recycle_rxbds()
772 bd++; in ep_recycle_rxbds()
774 ep->e_rxbd = bd; in ep_recycle_rxbds()
822 struct qe_bd __iomem *bd; in qe_ep0_rx() local
833 bd = ep->n_rxbd; in qe_ep0_rx()
834 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_rx()
846 vaddr = (u32)phys_to_virt(in_be32(&bd->buf)); in qe_ep0_rx()
877 bd = ep->rxbase; in qe_ep0_rx()
879 bd++; in qe_ep0_rx()
881 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_rx()
886 ep->n_rxbd = bd; in qe_ep0_rx()
941 struct qe_bd __iomem *bd; in ep_rx_tasklet() local
958 bd = ep->n_rxbd; in ep_rx_tasklet()
959 bdstatus = in_be32((u32 __iomem *)bd); in ep_rx_tasklet()
974 vaddr = (u32)phys_to_virt(in_be32(&bd->buf)); in ep_rx_tasklet()
998 out_be32((u32 __iomem *)bd, bdstatus & BD_STATUS_MASK); in ep_rx_tasklet()
1005 bd = ep->rxbase; in ep_rx_tasklet()
1007 bd++; in ep_rx_tasklet()
1009 bdstatus = in_be32((u32 __iomem *)bd); in ep_rx_tasklet()
1013 ep->n_rxbd = bd; in ep_rx_tasklet()
1028 struct qe_bd __iomem *bd; in qe_ep_rx() local
1039 bd = ep->n_rxbd; in qe_ep_rx()
1041 swoffs = (u16)(bd - ep->rxbase); in qe_ep_rx()
1073 struct qe_bd __iomem *bd; in qe_ep_tx() local
1088 bd = ep->n_txbd; in qe_ep_tx()
1089 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep_tx()
1099 out_be32(&bd->buf, paddr); in qe_ep_tx()
1120 out_be32((u32 __iomem *)bd, bdstatus); in qe_ep_tx()
1366 struct qe_bd __iomem *bd; in qe_ep0_txconf() local
1370 bd = ep->c_txbd; in qe_ep0_txconf()
1371 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_txconf()
1376 out_be32((u32 __iomem *)bd, bdstatus & T_W); in qe_ep0_txconf()
1377 out_be32(&bd->buf, 0); in qe_ep0_txconf()
1394 bd = ep->c_txbd; in qe_ep0_txconf()
1395 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_txconf()
1422 struct qe_bd __iomem *bd; in qe_ep_txconf() local
1427 bd = ep->c_txbd; in qe_ep_txconf()
1428 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep_txconf()
1440 out_be32((u32 __iomem *)bd, bdstatus & T_W); in qe_ep_txconf()
1441 out_be32(&bd->buf, 0); in qe_ep_txconf()
1449 bd = ep->c_txbd; in qe_ep_txconf()
1450 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep_txconf()
1477 struct qe_bd __iomem *bd; in ep_req_rx() local
1490 bd = ep->n_rxbd; in ep_req_rx()
1491 bdstatus = in_be32((u32 __iomem *)bd); in ep_req_rx()
1500 vaddr = (u32)phys_to_virt(in_be32(&bd->buf)); in ep_req_rx()
1543 out_be32((u32 __iomem *)bd, (bdstatus & BD_STATUS_MASK)); in ep_req_rx()
1548 bd = ep->rxbase; in ep_req_rx()
1550 bd++; in ep_req_rx()
1552 bdstatus = in_be32((u32 __iomem *)bd); in ep_req_rx()
1556 ep->n_rxbd = bd; in ep_req_rx()
2175 struct qe_bd __iomem *bd; in tx_irq() local
2185 bd = ep->c_txbd; in tx_irq()
2186 if (!(in_be32((u32 __iomem *)bd) & T_R) in tx_irq()
2187 && (in_be32(&bd->buf))) { in tx_irq()
2204 struct qe_bd __iomem *bd; in rx_irq() local
2210 bd = ep->n_rxbd; in rx_irq()
2211 if (!(in_be32((u32 __iomem *)bd) & R_E) in rx_irq()
2212 && (in_be32(&bd->buf))) { in rx_irq()