Lines Matching refs:num_trbs
233 * Check to see if there's room to enqueue num_trbs on the ring and make sure
238 unsigned int num_trbs)
242 if (ring->num_trbs_free < num_trbs)
248 if (ring->num_trbs_free < num_trbs + num_trbs_in_deq_seg)
1621 * queue num_trbs.
1626 int num_trbs,
1643 if (cdnsp_room_on_ring(pdev, ep_ring, num_trbs))
1648 num_trbs_needed = num_trbs - ep_ring->num_trbs_free;
1673 unsigned int num_trbs)
1685 num_trbs, GFP_ATOMIC);
1705 unsigned int num_trbs;
1707 num_trbs = DIV_ROUND_UP(len + (addr & (TRB_MAX_BUFF_SIZE - 1)),
1709 if (num_trbs == 0)
1710 num_trbs++;
1712 return num_trbs;
1722 unsigned int i, len, full_len, num_trbs = 0;
1729 num_trbs += cdnsp_count_trbs(sg_dma_address(sg), len);
1736 return num_trbs;
1871 unsigned int num_trbs;
1887 num_trbs = count_sg_trbs_needed(preq);
1889 num_trbs = count_trbs_needed(preq);
1900 num_trbs++;
1903 ret = cdnsp_prepare_transfer(pdev, preq, num_trbs);
2017 int num_trbs;
2026 num_trbs = (pdev->three_stage_setup) ? 2 : 1;
2032 num_trbs++;
2036 ret = cdnsp_prepare_transfer(pdev, preq, num_trbs);