Lines Matching refs:num_trbs
284 unsigned int num_trbs) in room_on_ring() argument
288 if (ring->num_trbs_free < num_trbs) in room_on_ring()
293 if (ring->num_trbs_free < num_trbs + num_trbs_in_deq_seg) in room_on_ring()
2214 ep_ring->num_trbs_free += td->num_trbs - 1; in finish_td()
2436 ep->ring->num_trbs_free += td->num_trbs - 1; in skip_isoc_td()
3134 u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) in prepare_ring() argument
3169 if (room_on_ring(xhci, ep_ring, num_trbs)) in prepare_ring()
3179 num_trbs_needed = num_trbs - ep_ring->num_trbs_free; in prepare_ring()
3229 unsigned int num_trbs, in prepare_transfer() argument
3249 num_trbs, mem_flags); in prepare_transfer()
3276 unsigned int num_trbs; in count_trbs() local
3278 num_trbs = DIV_ROUND_UP(len + (addr & (TRB_MAX_BUFF_SIZE - 1)), in count_trbs()
3280 if (num_trbs == 0) in count_trbs()
3281 num_trbs++; in count_trbs()
3283 return num_trbs; in count_trbs()
3294 unsigned int i, len, full_len, num_trbs = 0; in count_sg_trbs_needed() local
3300 num_trbs += count_trbs(sg_dma_address(sg), len); in count_sg_trbs_needed()
3307 return num_trbs; in count_sg_trbs_needed()
3523 unsigned int num_trbs; in xhci_queue_bulk_tx() local
3541 num_trbs = count_sg_trbs_needed(urb); in xhci_queue_bulk_tx()
3543 num_trbs = count_trbs_needed(urb); in xhci_queue_bulk_tx()
3549 num_trbs, urb, 0, mem_flags); in xhci_queue_bulk_tx()
3636 td->num_trbs++; in xhci_queue_bulk_tx()
3663 urb_priv->td[1].num_trbs++; in xhci_queue_bulk_tx()
3677 int num_trbs; in xhci_queue_ctrl_tx() local
3698 num_trbs = 2; in xhci_queue_ctrl_tx()
3705 num_trbs++; in xhci_queue_ctrl_tx()
3708 num_trbs, urb, 0, mem_flags); in xhci_queue_ctrl_tx()
3714 td->num_trbs = num_trbs; in xhci_queue_ctrl_tx()
4032 td->num_trbs = trbs_per_td; in xhci_queue_isoc_tx()
4170 int num_tds, num_trbs, i; in xhci_queue_isoc_tx_prepare() local
4180 num_trbs = 0; in xhci_queue_isoc_tx_prepare()
4183 num_trbs += count_isoc_trbs_needed(urb, i); in xhci_queue_isoc_tx_prepare()
4189 num_trbs, mem_flags); in xhci_queue_isoc_tx_prepare()