Home
last modified time | relevance | path

Searched refs:num_trbs (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/usb/cdns3/
Dcdnsp-ring.c238 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()
1616 int num_trbs, in cdnsp_prepare_ring() argument
1633 if (cdnsp_room_on_ring(pdev, ep_ring, num_trbs)) in cdnsp_prepare_ring()
1638 num_trbs_needed = num_trbs - ep_ring->num_trbs_free; in cdnsp_prepare_ring()
1663 unsigned int num_trbs) in cdnsp_prepare_transfer() argument
1675 num_trbs, GFP_ATOMIC); in cdnsp_prepare_transfer()
1695 unsigned int num_trbs; in cdnsp_count_trbs() local
1697 num_trbs = DIV_ROUND_UP(len + (addr & (TRB_MAX_BUFF_SIZE - 1)), in cdnsp_count_trbs()
[all …]
Dcdns3-gadget.c215 int num_trbs = ring_size / TRB_SIZE; in cdns3_allocate_trb_pool() local
234 priv_ep->num_trbs = num_trbs; in cdns3_allocate_trb_pool()
240 link_trb = (priv_ep->trb_pool + (priv_ep->num_trbs - 1)); in cdns3_allocate_trb_pool()
327 cdns3_ep_inc_trb(&priv_ep->enqueue, &priv_ep->pcs, priv_ep->num_trbs); in cdns3_ep_inc_enq()
337 cdns3_ep_inc_trb(&priv_ep->dequeue, &priv_ep->ccs, priv_ep->num_trbs); in cdns3_ep_inc_deq()
1156 if ((priv_ep->enqueue + num_trb) >= (priv_ep->num_trbs - 1)) { in cdns3_ep_run_transfer()
1164 if (doorbell && dma_index == priv_ep->num_trbs - 1) { in cdns3_ep_run_transfer()
1170 link_trb = priv_ep->trb_pool + (priv_ep->num_trbs - 1); in cdns3_ep_run_transfer()
1477 if ((current_index == (priv_ep->num_trbs - 1)) && in cdns3_trb_handled()
2402 priv_ep->free_trbs = priv_ep->num_trbs - 1; in cdns3_gadget_ep_enable()
Dcdnsp-mem.c423 unsigned int num_trbs, in cdnsp_ring_expansion() argument
432 num_segs_needed = (num_trbs + (TRBS_PER_SEGMENT - 1) - 1) / in cdnsp_ring_expansion()
Dcdns3-gadget.h1174 int num_trbs; member
Dcdnsp-gadget.h1494 unsigned int num_trbs, gfp_t flags);
/linux-6.1.9/drivers/usb/host/
Dxhci-ring.c284 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()
2217 ep_ring->num_trbs_free += td->num_trbs - 1; in finish_td()
2439 ep->ring->num_trbs_free += td->num_trbs - 1; in skip_isoc_td()
3143 u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) in prepare_ring() argument
3178 if (room_on_ring(xhci, ep_ring, num_trbs)) in prepare_ring()
3188 num_trbs_needed = num_trbs - ep_ring->num_trbs_free; in prepare_ring()
3238 unsigned int num_trbs, in prepare_transfer() argument
3258 num_trbs, mem_flags); in prepare_transfer()
[all …]
Dxhci-dbgcap.c250 unsigned int num_trbs; in xhci_dbc_queue_bulk_tx() local
255 num_trbs = count_trbs(req->dma, req->length); in xhci_dbc_queue_bulk_tx()
256 WARN_ON(num_trbs != 1); in xhci_dbc_queue_bulk_tx()
257 if (ring->num_trbs_free < num_trbs) in xhci_dbc_queue_bulk_tx()
Dxhci.h1573 unsigned int num_trbs; member
2071 unsigned int num_trbs, gfp_t flags);
Dxhci-mem.c424 unsigned int num_trbs, gfp_t flags) in xhci_ring_expansion() argument
432 num_segs_needed = (num_trbs + (TRBS_PER_SEGMENT - 1) - 1) / in xhci_ring_expansion()
/linux-6.1.9/drivers/usb/dwc3/
Dgadget.c1242 req->num_trbs++; in dwc3_prepare_one_trb()
1389 unsigned int num_trbs = 1; in dwc3_prepare_last_sg() local
1392 num_trbs++; in dwc3_prepare_last_sg()
1394 if (dwc3_calc_trbs_left(dep) < num_trbs) in dwc3_prepare_last_sg()
1397 req->needs_extra_trb = num_trbs > 1; in dwc3_prepare_last_sg()
1410 return num_trbs; in dwc3_prepare_last_sg()
1422 unsigned int num_trbs = req->num_trbs; in dwc3_prepare_trbs_sg() local
1501 return req->num_trbs - num_trbs; in dwc3_prepare_trbs_sg()
2007 for (i = 0; i < req->num_trbs; i++) { in dwc3_gadget_ep_skip_trbs()
2015 req->num_trbs = 0; in dwc3_gadget_ep_skip_trbs()
[all …]
Dcore.h952 unsigned int num_trbs; member