Home
last modified time | relevance | path

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

/drivers/usb/cdns3/
Dcdns3-debug.h139 if (trb_per_sector > TRBS_PER_SEGMENT) in cdns3_dbg_ring()
140 trb_per_sector = TRBS_PER_SEGMENT; in cdns3_dbg_ring()
142 if (trb_per_sector > TRBS_PER_SEGMENT) { in cdns3_dbg_ring()
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()
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)
Dcdnsp-gadget.h1144 #define TRBS_PER_SEGMENT 256 macro
1147 #define TRB_SEGMENT_SIZE (TRBS_PER_SEGMENT * 16)
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()
Dcdns3-trace.h444 (TRBS_PER_SEGMENT * 65) + CDNS3_MSG_MAX)
Dcdns3-gadget.c1184 TRBS_PER_SEGMENT > 2) in cdns3_ep_run_transfer()
1521 if (TRBS_PER_SEGMENT == 2 && priv_ep->type != USB_ENDPOINT_XFER_ISOC) { in cdns3_trb_handled()
1612 TRBS_PER_SEGMENT == 2) in cdns3_transfer_completed()
Dcdnsp-gadget.c1374 sizeof(union cdnsp_trb) * (TRBS_PER_SEGMENT - 1)); in cdnsp_clear_cmd_ring()
/drivers/usb/host/
Dxhci-mem.c59 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()
147 ring->num_trbs_free += (TRBS_PER_SEGMENT - 1) * num_segs; in xhci_link_rings()
150 ring->last_seg->trbs[TRBS_PER_SEGMENT-1].link.control in xhci_link_rings()
152 last->trbs[TRBS_PER_SEGMENT-1].link.control in xhci_link_rings()
321 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_initialize_ring_info()
452 ring->last_seg->trbs[TRBS_PER_SEGMENT - 1].link.control |= in xhci_ring_alloc()
490 num_segs_needed = (num_trbs + (TRBS_PER_SEGMENT - 1) - 1) / in xhci_ring_expansion()
[all …]
Dxhci-dbgcap.c390 erst->entries[0].seg_size = cpu_to_le32(TRBS_PER_SEGMENT); in dbc_erst_alloc()
452 union xhci_trb *trb = &seg->trbs[TRBS_PER_SEGMENT - 1]; in xhci_dbc_ring_alloc()
742 if (ring->dequeue == &ring->deq_seg->trbs[TRBS_PER_SEGMENT - 1]) { in inc_evt_deq()
Dxhci.h1526 #define TRBS_PER_SEGMENT 256 macro
1528 #define MAX_RSVD_CMD_TRBS (TRBS_PER_SEGMENT - 3)
1529 #define TRB_SEGMENT_SIZE (TRBS_PER_SEGMENT*16)
Dxhci-ring.c78 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()
291 last_on_seg = &start_seg->trbs[TRBS_PER_SEGMENT - 1]; in xhci_num_trbs_to()
2040 &cur_seg->trbs[TRBS_PER_SEGMENT - 1]); in trb_in_td()
3090 if (event_loop++ < TRBS_PER_SEGMENT / 2) in xhci_irq()
Dxhci-debugfs.c204 for (i = 0; i < TRBS_PER_SEGMENT; i++) { in xhci_ring_dump_segment()
Dxhci.c900 sizeof(union xhci_trb) * (TRBS_PER_SEGMENT - 1)); in xhci_clear_command_ring()
901 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring()
912 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_clear_command_ring()
/drivers/usb/early/
Dxhci-dbc.c401 if (ring->enqueue >= &ring->segment->trbs[TRBS_PER_SEGMENT - 1]) { in xdbc_queue_trb()
825 if (xdbc.evt_ring.dequeue == &xdbc.evt_seg.trbs[TRBS_PER_SEGMENT]) { in xdbc_handle_events()