Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/usb/gadget/udc/cdns2/
Dcdns2-gadget.c317 int num_trbs) in cdns2_prepare_ring() argument
326 if (num_trbs > ring->free_trbs) { in cdns2_prepare_ring()
332 if ((ring->enqueue + num_trbs) >= (TRBS_PER_SEGMENT - 1)) { in cdns2_prepare_ring()
368 int num_trbs = preq->num_of_trb; in cdns2_dbg_request_trbs() local
371 while (i < num_trbs) { in cdns2_dbg_request_trbs()
375 num_trbs = num_trbs - i; in cdns2_dbg_request_trbs()
386 unsigned int num_trbs = 1; in cdns2_count_trbs() local
394 num_trbs = DIV_ROUND_UP(len + in cdns2_count_trbs()
399 num_trbs = pep->dir ? num_trbs * pep->interval : 1; in cdns2_count_trbs()
406 num_trbs++; in cdns2_count_trbs()
[all …]
/linux-6.12.1/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()
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()
[all …]
Dcdns3-gadget.c216 int num_trbs = ring_size / TRB_SIZE; in cdns3_allocate_trb_pool() local
235 priv_ep->num_trbs = num_trbs; in cdns3_allocate_trb_pool()
241 link_trb = (priv_ep->trb_pool + (priv_ep->num_trbs - 1)); in cdns3_allocate_trb_pool()
328 cdns3_ep_inc_trb(&priv_ep->enqueue, &priv_ep->pcs, priv_ep->num_trbs); in cdns3_ep_inc_enq()
338 cdns3_ep_inc_trb(&priv_ep->dequeue, &priv_ep->ccs, priv_ep->num_trbs); in cdns3_ep_inc_deq()
1163 if ((priv_ep->enqueue + num_trb) >= (priv_ep->num_trbs - 1)) { in cdns3_ep_run_transfer()
1171 if (doorbell && dma_index == priv_ep->num_trbs - 1) { in cdns3_ep_run_transfer()
1177 link_trb = priv_ep->trb_pool + (priv_ep->num_trbs - 1); in cdns3_ep_run_transfer()
1533 if ((current_index == (priv_ep->num_trbs - 1)) && in cdns3_trb_handled()
2476 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.h1495 unsigned int num_trbs, gfp_t flags);
/linux-6.12.1/drivers/usb/host/
Dxhci-ring.c321 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()
[all …]
Dxhci-dbgcap.c267 unsigned int num_trbs; in xhci_dbc_queue_bulk_tx() local
272 num_trbs = count_trbs(req->dma, req->length); in xhci_dbc_queue_bulk_tx()
273 WARN_ON(num_trbs != 1); in xhci_dbc_queue_bulk_tx()
274 if (ring->num_trbs_free < num_trbs) in xhci_dbc_queue_bulk_tx()
Dxhci.h1796 unsigned int num_trbs, gfp_t flags);
/linux-6.12.1/drivers/usb/dwc3/
Dgadget.c201 req->num_trbs = 0; in dwc3_gadget_del_and_unmap_request()
1239 req->num_trbs++; in dwc3_prepare_one_trb()
1386 unsigned int num_trbs = 1; in dwc3_prepare_last_sg() local
1389 num_trbs++; in dwc3_prepare_last_sg()
1391 if (dwc3_calc_trbs_left(dep) < num_trbs) in dwc3_prepare_last_sg()
1394 req->needs_extra_trb = num_trbs > 1; in dwc3_prepare_last_sg()
1407 return num_trbs; in dwc3_prepare_last_sg()
1419 unsigned int num_trbs = req->num_trbs; in dwc3_prepare_trbs_sg() local
1508 return req->num_trbs - num_trbs; in dwc3_prepare_trbs_sg()
2014 for (i = 0; i < req->num_trbs; i++) { in dwc3_gadget_ep_skip_trbs()
[all …]
Dcore.h979 unsigned int num_trbs; member