Lines Matching refs:bdstatus
715 u32 bdstatus; in recycle_one_rxbd() local
717 bdstatus = in_be32((u32 __iomem *)ep->e_rxbd); in recycle_one_rxbd()
718 bdstatus = R_I | R_E | (bdstatus & R_W); in recycle_one_rxbd()
719 out_be32((u32 __iomem *)ep->e_rxbd, bdstatus); in recycle_one_rxbd()
721 if (bdstatus & R_W) in recycle_one_rxbd()
729 u32 bdstatus; in recycle_rxbds() local
735 bdstatus = in_be32((u32 __iomem *)bd); in recycle_rxbds()
737 while (!(bdstatus & R_E) && !(bdstatus & BD_LENGTH_MASK) && !stop) { in recycle_rxbds()
738 bdstatus = R_E | R_I | (bdstatus & R_W); in recycle_rxbds()
739 out_be32((u32 __iomem *)bd, bdstatus); in recycle_rxbds()
741 if (bdstatus & R_W) in recycle_rxbds()
746 bdstatus = in_be32((u32 __iomem *)bd); in recycle_rxbds()
757 u32 bdstatus; in ep_recycle_rxbds() local
761 bdstatus = in_be32((u32 __iomem *)bd); in ep_recycle_rxbds()
762 if (!(bdstatus & R_E) && !(bdstatus & BD_LENGTH_MASK)) { in ep_recycle_rxbds()
767 bdstatus = in_be32((u32 __iomem *)bd); in ep_recycle_rxbds()
769 if (bdstatus & R_W) in ep_recycle_rxbds()
823 u32 bdstatus, length; in qe_ep0_rx() local
834 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_rx()
835 length = bdstatus & BD_LENGTH_MASK; in qe_ep0_rx()
837 while (!(bdstatus & R_E) && length) { in qe_ep0_rx()
838 if ((bdstatus & R_F) && (bdstatus & R_L) in qe_ep0_rx()
839 && !(bdstatus & R_ERROR)) { in qe_ep0_rx()
851 switch (bdstatus & R_PID) { in qe_ep0_rx()
863 if ((bdstatus & R_PID) == R_PID_SETUP) in qe_ep0_rx()
876 if (bdstatus & R_W) in qe_ep0_rx()
881 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_rx()
882 length = bdstatus & BD_LENGTH_MASK; in qe_ep0_rx()
943 u32 bdstatus, length; in ep_rx_tasklet() local
959 bdstatus = in_be32((u32 __iomem *)bd); in ep_rx_tasklet()
960 length = bdstatus & BD_LENGTH_MASK; in ep_rx_tasklet()
962 while (!(bdstatus & R_E) && length) { in ep_rx_tasklet()
971 if ((bdstatus & R_F) && (bdstatus & R_L) in ep_rx_tasklet()
972 && !(bdstatus & R_ERROR)) { in ep_rx_tasklet()
979 switch (bdstatus & R_PID) { in ep_rx_tasklet()
998 out_be32((u32 __iomem *)bd, bdstatus & BD_STATUS_MASK); in ep_rx_tasklet()
1004 if (bdstatus & R_W) in ep_rx_tasklet()
1009 bdstatus = in_be32((u32 __iomem *)bd); in ep_rx_tasklet()
1010 length = bdstatus & BD_LENGTH_MASK; in ep_rx_tasklet()
1075 u32 bdstatus, pidmask; in qe_ep_tx() local
1089 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep_tx()
1091 if (!(bdstatus & (T_R | BD_LENGTH_MASK))) { in qe_ep_tx()
1100 bdstatus = (bdstatus&T_W); in qe_ep_tx()
1102 bdstatus |= T_R | T_I | T_L | T_TC in qe_ep_tx()
1105 bdstatus |= T_R | T_I | T_L | frame_get_length(frame); in qe_ep_tx()
1118 bdstatus |= T_CNF; in qe_ep_tx()
1119 bdstatus |= pidmask; in qe_ep_tx()
1120 out_be32((u32 __iomem *)bd, bdstatus); in qe_ep_tx()
1127 if (bdstatus & T_W) in qe_ep_tx()
1368 u32 bdstatus; in qe_ep0_txconf() local
1371 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_txconf()
1372 while (!(bdstatus & T_R) && (bdstatus & ~T_W)) { in qe_ep0_txconf()
1376 out_be32((u32 __iomem *)bd, bdstatus & T_W); in qe_ep0_txconf()
1378 if (bdstatus & T_W) in qe_ep0_txconf()
1384 if (bdstatus & DEVICE_T_ERROR) { in qe_ep0_txconf()
1386 if (bdstatus & T_TO) in qe_ep0_txconf()
1388 if (bdstatus & T_UN) in qe_ep0_txconf()
1395 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep0_txconf()
1424 u32 bdstatus; in qe_ep_txconf() local
1428 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep_txconf()
1429 while (!(bdstatus & T_R) && (bdstatus & ~T_W)) { in qe_ep_txconf()
1431 if (bdstatus & DEVICE_T_ERROR) { in qe_ep_txconf()
1433 if (bdstatus & T_TO) in qe_ep_txconf()
1435 if (bdstatus & T_UN) in qe_ep_txconf()
1440 out_be32((u32 __iomem *)bd, bdstatus & T_W); in qe_ep_txconf()
1442 if (bdstatus & T_W) in qe_ep_txconf()
1450 bdstatus = in_be32((u32 __iomem *)bd); in qe_ep_txconf()
1478 u32 bdstatus, length; in ep_req_rx() local
1491 bdstatus = in_be32((u32 __iomem *)bd); in ep_req_rx()
1492 length = bdstatus & BD_LENGTH_MASK; in ep_req_rx()
1494 while (!(bdstatus & R_E) && length) { in ep_req_rx()
1497 if ((bdstatus & R_F) && (bdstatus & R_L) in ep_req_rx()
1498 && !(bdstatus & R_ERROR)) { in ep_req_rx()
1504 switch (bdstatus & R_PID) { in ep_req_rx()
1543 out_be32((u32 __iomem *)bd, (bdstatus & BD_STATUS_MASK)); in ep_req_rx()
1547 if (bdstatus & R_W) in ep_req_rx()
1552 bdstatus = in_be32((u32 __iomem *)bd); in ep_req_rx()
1553 length = bdstatus & BD_LENGTH_MASK; in ep_req_rx()