Home
last modified time | relevance | path

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

/linux/drivers/usb/cdns3/
A Dcdnsp-ring.c1616 int num_trbs, in cdnsp_prepare_ring() argument
1675 num_trbs, GFP_ATOMIC); in cdnsp_prepare_transfer()
1695 unsigned int num_trbs; in cdnsp_count_trbs() local
1699 if (num_trbs == 0) in cdnsp_count_trbs()
1700 num_trbs++; in cdnsp_count_trbs()
1702 return num_trbs; in cdnsp_count_trbs()
1726 return num_trbs; in count_sg_trbs_needed()
1861 unsigned int num_trbs; in cdnsp_queue_bulk_tx() local
1890 num_trbs++; in cdnsp_queue_bulk_tx()
2003 int num_trbs; in cdnsp_queue_ctrl_tx() local
[all …]
A 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()
2391 priv_ep->free_trbs = priv_ep->num_trbs - 1; in cdns3_gadget_ep_enable()
A 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()
A Dcdns3-gadget.h1174 int num_trbs; member
A Dcdnsp-gadget.h1494 unsigned int num_trbs, gfp_t flags);
/linux/drivers/usb/host/
A Dxhci-ring.c284 unsigned int num_trbs) in room_on_ring() argument
3345 if (num_trbs == 0) in count_trbs()
3346 num_trbs++; in count_trbs()
3348 return num_trbs; in count_trbs()
3372 return num_trbs; in count_sg_trbs_needed()
3701 td->num_trbs++; in xhci_queue_bulk_tx()
3742 int num_trbs; in xhci_queue_ctrl_tx() local
3763 num_trbs = 2; in xhci_queue_ctrl_tx()
3770 num_trbs++; in xhci_queue_ctrl_tx()
3779 td->num_trbs = num_trbs; in xhci_queue_ctrl_tx()
[all …]
A 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()
A Dxhci.h1571 unsigned int num_trbs; member
2045 unsigned int num_trbs, gfp_t flags);
A 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/drivers/usb/dwc3/
A Dgadget.c1318 req->num_trbs++; in dwc3_prepare_one_trb()
1353 unsigned int num_trbs = 1; in dwc3_prepare_last_sg() local
1356 num_trbs++; in dwc3_prepare_last_sg()
1358 if (dwc3_calc_trbs_left(dep) < num_trbs) in dwc3_prepare_last_sg()
1361 req->needs_extra_trb = num_trbs > 1; in dwc3_prepare_last_sg()
1374 return num_trbs; in dwc3_prepare_last_sg()
1386 unsigned int num_trbs = req->num_trbs; in dwc3_prepare_trbs_sg() local
1465 return req->num_trbs - num_trbs; in dwc3_prepare_trbs_sg()
1931 for (i = 0; i < req->num_trbs; i++) { in dwc3_gadget_ep_skip_trbs()
1939 req->num_trbs = 0; in dwc3_gadget_ep_skip_trbs()
[all …]
A Dcore.h935 unsigned int num_trbs; member

Completed in 64 milliseconds