Lines Matching refs:num_trbs

321 					       unsigned int num_trbs)  in xhci_ring_expansion_needed()  argument
331 trbs_past_seg = enq_used + num_trbs - (TRBS_PER_SEGMENT - 1); in xhci_ring_expansion_needed()
353 num_trbs, new_segs); in xhci_ring_expansion_needed()
3175 u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) in prepare_ring() argument
3210 new_segs = xhci_ring_expansion_needed(xhci, ep_ring, num_trbs); in prepare_ring()
3211 } else if (xhci_num_trbs_free(ep_ring) <= num_trbs) { in prepare_ring()
3265 unsigned int num_trbs, in prepare_transfer() argument
3285 num_trbs, mem_flags); in prepare_transfer()
3312 unsigned int num_trbs; in count_trbs() local
3314 num_trbs = DIV_ROUND_UP(len + (addr & (TRB_MAX_BUFF_SIZE - 1)), in count_trbs()
3316 if (num_trbs == 0) in count_trbs()
3317 num_trbs++; in count_trbs()
3319 return num_trbs; in count_trbs()
3330 unsigned int i, len, full_len, num_trbs = 0; in count_sg_trbs_needed() local
3336 num_trbs += count_trbs(sg_dma_address(sg), len); in count_sg_trbs_needed()
3343 return num_trbs; in count_sg_trbs_needed()
3558 unsigned int num_trbs; in xhci_queue_bulk_tx() local
3576 num_trbs = count_sg_trbs_needed(urb); in xhci_queue_bulk_tx()
3578 num_trbs = count_trbs_needed(urb); in xhci_queue_bulk_tx()
3584 num_trbs, urb, 0, mem_flags); in xhci_queue_bulk_tx()
3710 int num_trbs; in xhci_queue_ctrl_tx() local
3731 num_trbs = 2; in xhci_queue_ctrl_tx()
3738 num_trbs++; in xhci_queue_ctrl_tx()
3741 num_trbs, urb, 0, mem_flags); in xhci_queue_ctrl_tx()
4199 int num_tds, num_trbs, i; in xhci_queue_isoc_tx_prepare() local
4209 num_trbs = 0; in xhci_queue_isoc_tx_prepare()
4212 num_trbs += count_isoc_trbs_needed(urb, i); in xhci_queue_isoc_tx_prepare()
4218 num_trbs, mem_flags); in xhci_queue_isoc_tx_prepare()