Home
last modified time | relevance | path

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

/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()
1619 int num_trbs, in cdnsp_prepare_ring() argument
1636 if (cdnsp_room_on_ring(pdev, ep_ring, num_trbs)) in cdnsp_prepare_ring()
1641 num_trbs_needed = num_trbs - ep_ring->num_trbs_free; in cdnsp_prepare_ring()
1666 unsigned int num_trbs) in cdnsp_prepare_transfer() argument
1678 num_trbs, GFP_ATOMIC); in cdnsp_prepare_transfer()
1698 unsigned int num_trbs; in cdnsp_count_trbs() local
1700 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()
1526 if ((current_index == (priv_ep->num_trbs - 1)) && in cdns3_trb_handled()
2469 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.h1177 int num_trbs; member
Dcdnsp-gadget.h1494 unsigned int num_trbs, gfp_t flags);
/drivers/usb/host/
Dxhci-ring.c305 unsigned int num_trbs) in room_on_ring() argument
309 if (ring->num_trbs_free < num_trbs) in room_on_ring()
314 if (ring->num_trbs_free < num_trbs + num_trbs_in_deq_seg) in room_on_ring()
2511 ep->ring->num_trbs_free += td->num_trbs - 1; in skip_isoc_td()
3209 u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) in prepare_ring() argument
3244 if (room_on_ring(xhci, ep_ring, num_trbs)) in prepare_ring()
3254 num_trbs_needed = num_trbs - ep_ring->num_trbs_free; in prepare_ring()
3304 unsigned int num_trbs, in prepare_transfer() argument
3324 num_trbs, mem_flags); in prepare_transfer()
3351 unsigned int num_trbs; in count_trbs() local
[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.h1580 unsigned int num_trbs; member
2069 unsigned int num_trbs, gfp_t flags);
Dxhci-mem.c426 unsigned int num_trbs, gfp_t flags) in xhci_ring_expansion() argument
434 num_segs_needed = (num_trbs + (TRBS_PER_SEGMENT - 1) - 1) / in xhci_ring_expansion()
/drivers/usb/dwc3/
Dgadget.c201 req->num_trbs = 0; in dwc3_gadget_del_and_unmap_request()
1261 req->num_trbs++; in dwc3_prepare_one_trb()
1403 unsigned int num_trbs = 1; in dwc3_prepare_last_sg() local
1406 num_trbs++; in dwc3_prepare_last_sg()
1408 if (dwc3_calc_trbs_left(dep) < num_trbs) in dwc3_prepare_last_sg()
1411 req->needs_extra_trb = num_trbs > 1; in dwc3_prepare_last_sg()
1424 return num_trbs; in dwc3_prepare_last_sg()
1436 unsigned int num_trbs = req->num_trbs; in dwc3_prepare_trbs_sg() local
1515 return req->num_trbs - num_trbs; in dwc3_prepare_trbs_sg()
2022 for (i = 0; i < req->num_trbs; i++) { in dwc3_gadget_ep_skip_trbs()
[all …]
Dcore.h944 unsigned int num_trbs; member