Lines Matching refs:num_trbs
260 unsigned int num_trbs) in room_on_ring() argument
264 if (ring->num_trbs_free < num_trbs) in room_on_ring()
269 if (ring->num_trbs_free < num_trbs + num_trbs_in_deq_seg) in room_on_ring()
2762 u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) in prepare_ring() argument
2795 if (room_on_ring(xhci, ep_ring, num_trbs)) in prepare_ring()
2805 num_trbs_needed = num_trbs - ep_ring->num_trbs_free; in prepare_ring()
2843 unsigned int num_trbs, in prepare_transfer() argument
2862 num_trbs, mem_flags); in prepare_transfer()
2889 unsigned int num_trbs; in count_trbs() local
2891 num_trbs = DIV_ROUND_UP(len + (addr & (TRB_MAX_BUFF_SIZE - 1)), in count_trbs()
2893 if (num_trbs == 0) in count_trbs()
2894 num_trbs++; in count_trbs()
2896 return num_trbs; in count_trbs()
2907 unsigned int i, len, full_len, num_trbs = 0; in count_sg_trbs_needed() local
2913 num_trbs += count_trbs(sg_dma_address(sg), len); in count_sg_trbs_needed()
2920 return num_trbs; in count_sg_trbs_needed()
3127 unsigned int num_trbs; in xhci_queue_bulk_tx() local
3145 num_trbs = count_sg_trbs_needed(urb); in xhci_queue_bulk_tx()
3147 num_trbs = count_trbs_needed(urb); in xhci_queue_bulk_tx()
3153 num_trbs, urb, 0, mem_flags); in xhci_queue_bulk_tx()
3272 int num_trbs; in xhci_queue_ctrl_tx() local
3293 num_trbs = 2; in xhci_queue_ctrl_tx()
3300 num_trbs++; in xhci_queue_ctrl_tx()
3303 num_trbs, urb, 0, mem_flags); in xhci_queue_ctrl_tx()
3737 int num_tds, num_trbs, i; in xhci_queue_isoc_tx_prepare() local
3747 num_trbs = 0; in xhci_queue_isoc_tx_prepare()
3750 num_trbs += count_isoc_trbs_needed(urb, i); in xhci_queue_isoc_tx_prepare()
3756 num_trbs, mem_flags); in xhci_queue_isoc_tx_prepare()