Home
last modified time | relevance | path

Searched refs:TRBS_PER_SEGMENT (Results 1 – 23 of 23) sorted by relevance

/openbmc/linux/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-debug.h126 if (TRBS_PER_SEGMENT > 40) { in cdns2_raw_ring()
128 "\t\tTransfer ring %d too big\n", TRBS_PER_SEGMENT); in cdns2_raw_ring()
133 for (i = 0; i < TRBS_PER_SEGMENT; ++i) { in cdns2_raw_ring()
H A Dcdns2-gadget.c141 link_trb = (ring->trbs + (TRBS_PER_SEGMENT - 1)); in cdns2_alloc_tr_segment()
188 cdns2_ep_inc_trb(&ring->enqueue, &ring->pcs, TRBS_PER_SEGMENT); in cdns2_ep_inc_enq()
194 cdns2_ep_inc_trb(&ring->dequeue, &ring->ccs, TRBS_PER_SEGMENT); in cdns2_ep_inc_deq()
230 if (trb == (pep->ring.trbs + (TRBS_PER_SEGMENT - 1))) in cdns2_next_trb()
332 if ((ring->enqueue + num_trbs) >= (TRBS_PER_SEGMENT - 1)) { in cdns2_prepare_ring()
337 if (doorbell && dma_index == TRBS_PER_SEGMENT - 1) { in cdns2_prepare_ring()
343 link_trb = ring->trbs + (TRBS_PER_SEGMENT - 1); in cdns2_prepare_ring()
353 if (pep->type == USB_ENDPOINT_XFER_ISOC || TRBS_PER_SEGMENT > 2) in cdns2_prepare_ring()
366 struct cdns2_trb *link_trb = pep->ring.trbs + (TRBS_PER_SEGMENT - 1); in cdns2_dbg_request_trbs()
735 trb = &pep->ring.trbs[TRBS_PER_SEGMENT]; in cdns2_prepare_first_isoc_transfer()
[all …]
H A Dcdns2-gadget.h417 #define TRBS_PER_SEGMENT 600 macro
431 #if TRBS_PER_SEGMENT < 2
455 #define TR_SEG_SIZE (TRB_SIZE * (TRBS_PER_SEGMENT + TRB_ISO_RESERVED))
H A Dcdns2-trace.h445 (TRBS_PER_SEGMENT * 65) + CDNS2_MSG_MAX)
458 (TRBS_PER_SEGMENT * 65) + CDNS2_MSG_MAX))
/openbmc/linux/drivers/usb/cdns3/
H A Dcdnsp-mem.c56 for (i = 0; i < TRBS_PER_SEGMENT; i++) in cdnsp_segment_alloc()
118 link = &prev->trbs[TRBS_PER_SEGMENT - 1].link; in cdnsp_link_segments()
151 ring->num_trbs_free += (TRBS_PER_SEGMENT - 1) * num_segs; in cdnsp_link_rings()
154 ring->last_seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in cdnsp_link_rings()
156 last->trbs[TRBS_PER_SEGMENT - 1].link.control |= in cdnsp_link_rings()
318 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in cdnsp_initialize_ring_info()
399 ring->last_seg->trbs[TRBS_PER_SEGMENT - 1].link.control |= in cdnsp_ring_alloc()
432 num_segs_needed = (num_trbs + (TRBS_PER_SEGMENT - 1) - 1) / in cdnsp_ring_expansion()
433 (TRBS_PER_SEGMENT - 1); in cdnsp_ring_expansion()
1046 entry->seg_size = cpu_to_le32(TRBS_PER_SEGMENT); in cdnsp_alloc_erst()
H A Dcdns3-gadget.h973 #define TRBS_PER_SEGMENT 600 macro
979 #if TRBS_PER_SEGMENT < 2
999 TRBS_PER_ISOC_SEGMENT : TRBS_PER_SEGMENT)
1015 #define TRB_RING_SIZE (TRB_SIZE * TRBS_PER_SEGMENT)
H A Dcdns3-debug.h138 if (trb_per_sector > TRBS_PER_SEGMENT) { in cdns3_dbg_ring()
H A Dcdnsp-gadget.h1147 #define TRBS_PER_SEGMENT 256 macro
1150 #define TRB_SEGMENT_SIZE (TRBS_PER_SEGMENT * 16)
H A Dcdnsp-ring.c76 if (trb < seg->trbs || segment_offset >= TRBS_PER_SEGMENT) in cdnsp_trb_virt_to_dma()
94 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in cdnsp_last_trb_on_seg()
550 temp_trb = &cur_seg->trbs[TRBS_PER_SEGMENT - 1]; in cdnsp_trb_in_td()
H A Dcdns3-trace.h438 GET_TRBS_PER_SEGMENT(priv_ep->type) > TRBS_PER_SEGMENT ?
H A Dcdns3-gadget.c1186 TRBS_PER_SEGMENT > 2) in cdns3_ep_run_transfer()
1523 if (TRBS_PER_SEGMENT == 2 && priv_ep->type != USB_ENDPOINT_XFER_ISOC) { in cdns3_trb_handled()
1614 TRBS_PER_SEGMENT == 2) in cdns3_transfer_completed()
H A Dcdnsp-gadget.c1374 sizeof(union cdnsp_trb) * (TRBS_PER_SEGMENT - 1)); in cdnsp_clear_cmd_ring()
/openbmc/u-boot/drivers/usb/host/
H A Dxhci-mem.c225 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = val_64; in xhci_link_segments()
231 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()
235 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()
333 prev->trbs[TRBS_PER_SEGMENT-1].link.control |= in xhci_ring_alloc()
562 entry->seg_size = cpu_to_le32(TRBS_PER_SEGMENT); in xhci_mem_init()
H A Dxhci.h991 #define TRBS_PER_SEGMENT 64 macro
993 #define MAX_RSVD_CMD_TRBS (TRBS_PER_SEGMENT - 3)
994 #define SEGMENT_SIZE (TRBS_PER_SEGMENT*16)
H A Dxhci-ring.c39 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()
60 return ((trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()
H A Dxhci.c1476 *size = (TRBS_PER_SEGMENT - 2) * TRB_MAX_BUFF_SIZE; in xhci_get_max_xfer_size()
/openbmc/linux/drivers/usb/host/
H A Dxhci-mem.c60 for (i = 0; i < TRBS_PER_SEGMENT; i++) in xhci_segment_alloc()
110 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = in xhci_link_segments()
114 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()
119 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()
148 ring->last_seg->trbs[TRBS_PER_SEGMENT-1].link.control in xhci_link_rings()
150 last->trbs[TRBS_PER_SEGMENT-1].link.control in xhci_link_rings()
317 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_initialize_ring_info()
399 ring->last_seg->trbs[TRBS_PER_SEGMENT - 1].link.control |= in xhci_ring_alloc()
1793 entry->seg_size = cpu_to_le32(TRBS_PER_SEGMENT); in xhci_alloc_erst()
H A Dxhci-ring.c79 if (segment_offset >= TRBS_PER_SEGMENT) in xhci_trb_virt_to_dma()
96 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in last_trb_on_seg()
297 return ring->num_segs * (TRBS_PER_SEGMENT - 1); in xhci_num_trbs_free()
302 last_on_seg = &enq_seg->trbs[TRBS_PER_SEGMENT - 1]; in xhci_num_trbs_free()
328 trbs_past_seg = enq_used + num_trbs - (TRBS_PER_SEGMENT - 1); in xhci_ring_expansion_needed()
343 new_segs = 1 + (trbs_past_seg / (TRBS_PER_SEGMENT - 1)); in xhci_ring_expansion_needed()
352 num_trbs, trbs_past_seg % TRBS_PER_SEGMENT); in xhci_ring_expansion_needed()
2164 &cur_seg->trbs[TRBS_PER_SEGMENT - 1]); in trb_in_td()
3252 if (event_loop++ < TRBS_PER_SEGMENT / 2) in xhci_irq()
H A Dxhci-dbgcap.c392 erst->entries[0].seg_size = cpu_to_le32(TRBS_PER_SEGMENT); in dbc_erst_alloc()
454 union xhci_trb *trb = &seg->trbs[TRBS_PER_SEGMENT - 1]; in xhci_dbc_ring_alloc()
801 if (ring->dequeue == &ring->deq_seg->trbs[TRBS_PER_SEGMENT - 1]) { in inc_evt_deq()
H A Dxhci.h1269 * TRBS_PER_SEGMENT must be a multiple of 4,
1273 #define TRBS_PER_SEGMENT 256 macro
1275 #define MAX_RSVD_CMD_TRBS (TRBS_PER_SEGMENT - 3)
1276 #define TRB_SEGMENT_SIZE (TRBS_PER_SEGMENT*16)
H A Dxhci-debugfs.c204 for (i = 0; i < TRBS_PER_SEGMENT; i++) { in xhci_ring_dump_segment()
H A Dxhci.c739 sizeof(union xhci_trb) * (TRBS_PER_SEGMENT - 1)); in xhci_clear_command_ring()
740 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring()
751 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_clear_command_ring()
/openbmc/linux/drivers/usb/early/
H A Dxhci-dbc.c401 if (ring->enqueue >= &ring->segment->trbs[TRBS_PER_SEGMENT - 1]) { in xdbc_queue_trb()
824 if (xdbc.evt_ring.dequeue == &xdbc.evt_seg.trbs[TRBS_PER_SEGMENT]) { in xdbc_handle_events()