Lines Matching refs:num_trbs

238 			       unsigned int num_trbs)  in cdnsp_room_on_ring()  argument
242 if (ring->num_trbs_free < num_trbs) in cdnsp_room_on_ring()
248 if (ring->num_trbs_free < num_trbs + num_trbs_in_deq_seg) in cdnsp_room_on_ring()
1628 int num_trbs, in cdnsp_prepare_ring() argument
1645 if (cdnsp_room_on_ring(pdev, ep_ring, num_trbs)) in cdnsp_prepare_ring()
1650 num_trbs_needed = num_trbs - ep_ring->num_trbs_free; in cdnsp_prepare_ring()
1675 unsigned int num_trbs) in cdnsp_prepare_transfer() argument
1687 num_trbs, GFP_ATOMIC); in cdnsp_prepare_transfer()
1707 unsigned int num_trbs; in cdnsp_count_trbs() local
1709 num_trbs = DIV_ROUND_UP(len + (addr & (TRB_MAX_BUFF_SIZE - 1)), in cdnsp_count_trbs()
1711 if (num_trbs == 0) in cdnsp_count_trbs()
1712 num_trbs++; in cdnsp_count_trbs()
1714 return num_trbs; in cdnsp_count_trbs()
1724 unsigned int i, len, full_len, num_trbs = 0; in count_sg_trbs_needed() local
1731 num_trbs += cdnsp_count_trbs(sg_dma_address(sg), len); in count_sg_trbs_needed()
1738 return num_trbs; in count_sg_trbs_needed()
1873 unsigned int num_trbs; in cdnsp_queue_bulk_tx() local
1889 num_trbs = count_sg_trbs_needed(preq); in cdnsp_queue_bulk_tx()
1891 num_trbs = count_trbs_needed(preq); in cdnsp_queue_bulk_tx()
1902 num_trbs++; in cdnsp_queue_bulk_tx()
1905 ret = cdnsp_prepare_transfer(pdev, preq, num_trbs); in cdnsp_queue_bulk_tx()
2047 int num_trbs; in cdnsp_queue_ctrl_tx() local
2056 num_trbs = (pdev->three_stage_setup) ? 2 : 1; in cdnsp_queue_ctrl_tx()
2062 num_trbs++; in cdnsp_queue_ctrl_tx()
2066 ret = cdnsp_prepare_transfer(pdev, preq, num_trbs); in cdnsp_queue_ctrl_tx()