Lines Matching refs:bdstatus
712 u32 bdstatus; in recycle_one_rxbd() local
714 bdstatus = in_be32((u32 __iomem *)ep->e_rxbd); in recycle_one_rxbd()
715 bdstatus = R_I | R_E | (bdstatus & R_W); in recycle_one_rxbd()
716 out_be32((u32 __iomem *)ep->e_rxbd, bdstatus); in recycle_one_rxbd()
718 if (bdstatus & R_W) in recycle_one_rxbd()
726 u32 bdstatus; in recycle_rxbds() local
732 bdstatus = in_be32((u32 __iomem *)bd); in recycle_rxbds()
734 while (!(bdstatus & R_E) && !(bdstatus & BD_LENGTH_MASK) && !stop) { in recycle_rxbds()
735 bdstatus = R_E | R_I | (bdstatus & R_W); in recycle_rxbds()
736 out_be32((u32 __iomem *)bd, bdstatus); in recycle_rxbds()
738 if (bdstatus & R_W) in recycle_rxbds()
743 bdstatus = in_be32((u32 __iomem *)bd); in recycle_rxbds()
754 u32 bdstatus; in ep_recycle_rxbds() local
758 bdstatus = in_be32((u32 __iomem *)bd); in ep_recycle_rxbds()
759 if (!(bdstatus & R_E) && !(bdstatus & BD_LENGTH_MASK)) { in ep_recycle_rxbds()
764 bdstatus = in_be32((u32 __iomem *)bd); in ep_recycle_rxbds()
766 if (bdstatus & R_W) in ep_recycle_rxbds()
820 u32 bdstatus, length; in qe_ep0_rx() local
831 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_rx()
832 length = bdstatus & BD_LENGTH_MASK; in qe_ep0_rx()
834 while (!(bdstatus & R_E) && length) { in qe_ep0_rx()
835 if ((bdstatus & R_F) && (bdstatus & R_L) in qe_ep0_rx()
836 && !(bdstatus & R_ERROR)) { in qe_ep0_rx()
848 switch (bdstatus & R_PID) { in qe_ep0_rx()
860 if ((bdstatus & R_PID) == R_PID_SETUP) in qe_ep0_rx()
873 if (bdstatus & R_W) in qe_ep0_rx()
878 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_rx()
879 length = bdstatus & BD_LENGTH_MASK; in qe_ep0_rx()
940 u32 bdstatus, length; in ep_rx_tasklet() local
956 bdstatus = in_be32((u32 __iomem *)bd); in ep_rx_tasklet()
957 length = bdstatus & BD_LENGTH_MASK; in ep_rx_tasklet()
959 while (!(bdstatus & R_E) && length) { in ep_rx_tasklet()
968 if ((bdstatus & R_F) && (bdstatus & R_L) in ep_rx_tasklet()
969 && !(bdstatus & R_ERROR)) { in ep_rx_tasklet()
976 switch (bdstatus & R_PID) { in ep_rx_tasklet()
995 out_be32((u32 __iomem *)bd, bdstatus & BD_STATUS_MASK); in ep_rx_tasklet()
1001 if (bdstatus & R_W) in ep_rx_tasklet()
1006 bdstatus = in_be32((u32 __iomem *)bd); in ep_rx_tasklet()
1007 length = bdstatus & BD_LENGTH_MASK; in ep_rx_tasklet()
1072 u32 bdstatus, pidmask; in qe_ep_tx() local
1086 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep_tx()
1088 if (!(bdstatus & (T_R | BD_LENGTH_MASK))) { in qe_ep_tx()
1097 bdstatus = (bdstatus&T_W); in qe_ep_tx()
1099 bdstatus |= T_R | T_I | T_L | T_TC in qe_ep_tx()
1102 bdstatus |= T_R | T_I | T_L | frame_get_length(frame); in qe_ep_tx()
1115 bdstatus |= T_CNF; in qe_ep_tx()
1116 bdstatus |= pidmask; in qe_ep_tx()
1117 out_be32((u32 __iomem *)bd, bdstatus); in qe_ep_tx()
1124 if (bdstatus & T_W) in qe_ep_tx()
1365 u32 bdstatus; in qe_ep0_txconf() local
1368 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_txconf()
1369 while (!(bdstatus & T_R) && (bdstatus & ~T_W)) { in qe_ep0_txconf()
1373 out_be32((u32 __iomem *)bd, bdstatus & T_W); in qe_ep0_txconf()
1375 if (bdstatus & T_W) in qe_ep0_txconf()
1381 if (bdstatus & DEVICE_T_ERROR) { in qe_ep0_txconf()
1383 if (bdstatus & T_TO) in qe_ep0_txconf()
1385 if (bdstatus & T_UN) in qe_ep0_txconf()
1392 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_txconf()
1421 u32 bdstatus; in qe_ep_txconf() local
1425 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep_txconf()
1426 while (!(bdstatus & T_R) && (bdstatus & ~T_W)) { in qe_ep_txconf()
1428 if (bdstatus & DEVICE_T_ERROR) { in qe_ep_txconf()
1430 if (bdstatus & T_TO) in qe_ep_txconf()
1432 if (bdstatus & T_UN) in qe_ep_txconf()
1437 out_be32((u32 __iomem *)bd, bdstatus & T_W); in qe_ep_txconf()
1439 if (bdstatus & T_W) in qe_ep_txconf()
1447 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep_txconf()
1475 u32 bdstatus, length; in ep_req_rx() local
1488 bdstatus = in_be32((u32 __iomem *)bd); in ep_req_rx()
1489 length = bdstatus & BD_LENGTH_MASK; in ep_req_rx()
1491 while (!(bdstatus & R_E) && length) { in ep_req_rx()
1494 if ((bdstatus & R_F) && (bdstatus & R_L) in ep_req_rx()
1495 && !(bdstatus & R_ERROR)) { in ep_req_rx()
1501 switch (bdstatus & R_PID) { in ep_req_rx()
1540 out_be32((u32 __iomem *)bd, (bdstatus & BD_STATUS_MASK)); in ep_req_rx()
1544 if (bdstatus & R_W) in ep_req_rx()
1549 bdstatus = in_be32((u32 __iomem *)bd); in ep_req_rx()
1550 length = bdstatus & BD_LENGTH_MASK; in ep_req_rx()