Home
last modified time | relevance | path

Searched refs:num_trbs (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-6.6/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-gadget.c317 int num_trbs) in cdns2_prepare_ring()
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 in cdns2_count_trbs()
315 cdns2_prepare_ring(struct cdns2_device *pdev, struct cdns2_endpoint *pep, int num_trbs) cdns2_prepare_ring() argument
415 unsigned int i, len, full_len, num_trbs = 0; cdns2_count_sg_trbs() local
498 cdns2_ep_tx_isoc(struct cdns2_endpoint *pep, struct cdns2_request *preq, int num_trbs) cdns2_ep_tx_isoc() argument
767 int num_trbs; cdns2_ep_run_transfer() local
[all...]
/kernel/linux/linux-6.6/drivers/usb/cdns3/
H A Dcdnsp-ring.c233 * Check to see if there's room to enqueue num_trbs on the ring and make sure
238 unsigned int num_trbs) in cdnsp_room_on_ring()
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()
1621 * queue num_trbs.
1626 int num_trbs, in cdnsp_prepare_ring()
1643 if (cdnsp_room_on_ring(pdev, ep_ring, num_trbs)) in cdnsp_prepare_ring()
1648 num_trbs_needed = num_trbs - ep_ring->num_trbs_free; in cdnsp_prepare_ring()
1673 unsigned int num_trbs) in cdnsp_prepare_transfer()
1685 num_trbs, GFP_ATOMI in cdnsp_prepare_transfer()
236 cdnsp_room_on_ring(struct cdnsp_device *pdev, struct cdnsp_ring *ring, unsigned int num_trbs) cdnsp_room_on_ring() argument
1623 cdnsp_prepare_ring(struct cdnsp_device *pdev, struct cdnsp_ring *ep_ring, u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) cdnsp_prepare_ring() argument
1671 cdnsp_prepare_transfer(struct cdnsp_device *pdev, struct cdnsp_request *preq, unsigned int num_trbs) cdnsp_prepare_transfer() argument
1705 unsigned int num_trbs; cdnsp_count_trbs() local
1722 unsigned int i, len, full_len, num_trbs = 0; count_sg_trbs_needed() local
1871 unsigned int num_trbs; cdnsp_queue_bulk_tx() local
2017 int num_trbs; cdnsp_queue_ctrl_tx() local
[all...]
H A 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()
1162 if ((priv_ep->enqueue + num_trb) >= (priv_ep->num_trbs - 1)) { in cdns3_ep_run_transfer()
1170 if (doorbell && dma_index == priv_ep->num_trbs - 1) { in cdns3_ep_run_transfer()
1176 link_trb = priv_ep->trb_pool + (priv_ep->num_trbs - 1); in cdns3_ep_run_transfer()
1532 if ((current_index == (priv_ep->num_trbs in cdns3_trb_handled()
[all...]
H A Dcdnsp-mem.c423 unsigned int num_trbs, in cdnsp_ring_expansion()
432 num_segs_needed = (num_trbs + (TRBS_PER_SEGMENT - 1) - 1) / in cdnsp_ring_expansion()
421 cdnsp_ring_expansion(struct cdnsp_device *pdev, struct cdnsp_ring *ring, unsigned int num_trbs, gfp_t flags) cdnsp_ring_expansion() argument
H A Dcdnsp-gadget.h1494 unsigned int num_trbs, gfp_t flags);
H A Dcdns3-gadget.h1127 * @num_trbs: number of all TRBs in transfer ring
1177 int num_trbs; member
/kernel/linux/linux-5.10/drivers/usb/host/
H A Dxhci-ring.c256 * Check to see if there's room to enqueue num_trbs on the ring and make sure
260 unsigned int num_trbs) in room_on_ring()
264 if (ring->num_trbs_free < num_trbs) in room_on_ring()
269 if (ring->num_trbs_free < num_trbs + num_trbs_in_deq_seg) in room_on_ring()
2101 ep_ring->num_trbs_free += td->num_trbs - 1; in finish_td()
2343 ep->ring->num_trbs_free += td->num_trbs - 1; in skip_isoc_td()
3074 * Does various checks on the endpoint ring, and makes it ready to queue num_trbs.
3078 u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) in prepare_ring()
3111 if (room_on_ring(xhci, ep_ring, num_trbs)) in prepare_ring()
3121 num_trbs_needed = num_trbs in prepare_ring()
259 room_on_ring(struct xhci_hcd *xhci, struct xhci_ring *ring, unsigned int num_trbs) room_on_ring() argument
3077 prepare_ring(struct xhci_hcd *xhci, struct xhci_ring *ep_ring, u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) prepare_ring() argument
3155 prepare_transfer(struct xhci_hcd *xhci, struct xhci_virt_device *xdev, unsigned int ep_index, unsigned int stream_id, unsigned int num_trbs, struct urb *urb, unsigned int td_index, gfp_t mem_flags) prepare_transfer() argument
3205 unsigned int num_trbs; count_trbs() local
3223 unsigned int i, len, full_len, num_trbs = 0; count_sg_trbs_needed() local
3452 unsigned int num_trbs; xhci_queue_bulk_tx() local
3606 int num_trbs; xhci_queue_ctrl_tx() local
4099 int num_tds, num_trbs, i; xhci_queue_isoc_tx_prepare() local
[all...]
H 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()
H A Dxhci.h1558 unsigned int num_trbs; member
2043 unsigned int num_trbs, gfp_t flags);
H A Dxhci-mem.c424 unsigned int num_trbs, gfp_t flags) in xhci_ring_expansion()
432 num_segs_needed = (num_trbs + (TRBS_PER_SEGMENT - 1) - 1) / in xhci_ring_expansion()
423 xhci_ring_expansion(struct xhci_hcd *xhci, struct xhci_ring *ring, unsigned int num_trbs, gfp_t flags) xhci_ring_expansion() argument
/kernel/linux/linux-6.6/drivers/usb/host/
H A Dxhci-ring.c311 * Check to see if there's room to enqueue num_trbs on the ring and make sure
317 unsigned int num_trbs) in xhci_ring_expansion_needed()
327 trbs_past_seg = enq_used + num_trbs - (TRBS_PER_SEGMENT - 1); in xhci_ring_expansion_needed()
345 num_trbs, trbs_past_seg % TRBS_PER_SEGMENT); in xhci_ring_expansion_needed()
3212 * Does various checks on the endpoint ring, and makes it ready to queue num_trbs.
3216 u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) in prepare_ring()
3251 new_segs = xhci_ring_expansion_needed(xhci, ep_ring, num_trbs); in prepare_ring()
3252 } else if (xhci_num_trbs_free(xhci, ep_ring) <= num_trbs) { in prepare_ring()
3308 unsigned int num_trbs, in prepare_transfer()
3328 num_trbs, mem_flag in prepare_transfer()
316 xhci_ring_expansion_needed(struct xhci_hcd *xhci, struct xhci_ring *ring, unsigned int num_trbs) xhci_ring_expansion_needed() argument
3215 prepare_ring(struct xhci_hcd *xhci, struct xhci_ring *ep_ring, u32 ep_state, unsigned int num_trbs, gfp_t mem_flags) prepare_ring() argument
3304 prepare_transfer(struct xhci_hcd *xhci, struct xhci_virt_device *xdev, unsigned int ep_index, unsigned int stream_id, unsigned int num_trbs, struct urb *urb, unsigned int td_index, gfp_t mem_flags) prepare_transfer() argument
3355 unsigned int num_trbs; count_trbs() local
3373 unsigned int i, len, full_len, num_trbs = 0; count_sg_trbs_needed() local
3602 unsigned int num_trbs; xhci_queue_bulk_tx() local
3756 int num_trbs; xhci_queue_ctrl_tx() local
4248 int num_tds, num_trbs, i; xhci_queue_isoc_tx_prepare() local
[all...]
H 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()
H A Dxhci.h1577 unsigned int num_trbs; member
2081 unsigned int num_trbs, gfp_t flags);
/kernel/linux/linux-5.10/drivers/usb/dwc3/
H A Dgadget.c183 req->num_trbs = 0; in dwc3_gadget_del_and_unmap_request()
1015 req->num_trbs++; in dwc3_prepare_one_trb()
1157 unsigned int num_trbs = 1; in dwc3_prepare_last_sg() local
1160 num_trbs++; in dwc3_prepare_last_sg()
1162 if (dwc3_calc_trbs_left(dep) < num_trbs) in dwc3_prepare_last_sg()
1165 req->needs_extra_trb = num_trbs > 1; in dwc3_prepare_last_sg()
1178 return num_trbs; in dwc3_prepare_last_sg()
1190 unsigned int num_trbs = req->num_trbs; in dwc3_prepare_trbs_sg() local
1269 return req->num_trbs in dwc3_prepare_trbs_sg()
[all...]
H A Dcore.h887 * @num_trbs: number of TRBs used by this request
915 unsigned int num_trbs; member
/kernel/linux/linux-5.10/drivers/usb/cdns3/
H A Dgadget.c230 int num_trbs = ring_size / TRB_SIZE; in cdns3_allocate_trb_pool() local
249 priv_ep->num_trbs = num_trbs; in cdns3_allocate_trb_pool()
255 link_trb = (priv_ep->trb_pool + (priv_ep->num_trbs - 1)); in cdns3_allocate_trb_pool()
342 cdns3_ep_inc_trb(&priv_ep->enqueue, &priv_ep->pcs, priv_ep->num_trbs); in cdns3_ep_inc_enq()
352 cdns3_ep_inc_trb(&priv_ep->dequeue, &priv_ep->ccs, priv_ep->num_trbs); in cdns3_ep_inc_deq()
1157 if ((priv_ep->enqueue + num_trb) >= (priv_ep->num_trbs - 1)) { in cdns3_ep_run_transfer()
1165 if (doorbell && dma_index == priv_ep->num_trbs - 1) { in cdns3_ep_run_transfer()
1171 link_trb = priv_ep->trb_pool + (priv_ep->num_trbs - 1); in cdns3_ep_run_transfer()
1527 if ((current_index == (priv_ep->num_trbs in cdns3_trb_handled()
[all...]
H A Dgadget.h1126 * @num_trbs: number of all TRBs in transfer ring
1176 int num_trbs; member
/kernel/linux/linux-6.6/drivers/usb/dwc3/
H A Dgadget.c201 req->num_trbs = 0; in dwc3_gadget_del_and_unmap_request()
1261 req->num_trbs++; in dwc3_prepare_one_trb()
1408 unsigned int num_trbs = 1; in dwc3_prepare_last_sg() local
1411 num_trbs++; in dwc3_prepare_last_sg()
1413 if (dwc3_calc_trbs_left(dep) < num_trbs) in dwc3_prepare_last_sg()
1416 req->needs_extra_trb = num_trbs > 1; in dwc3_prepare_last_sg()
1429 return num_trbs; in dwc3_prepare_last_sg()
1441 unsigned int num_trbs = req->num_trbs; in dwc3_prepare_trbs_sg() local
1530 return req->num_trbs in dwc3_prepare_trbs_sg()
[all...]
H A Dcore.h931 * @num_trbs: number of TRBs used by this request
961 unsigned int num_trbs; member

Completed in 57 milliseconds