Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/usb/host/
Dxhci-mem.c59 for (i = 0; i < TRBS_PER_SEGMENT; i++) in xhci_segment_alloc()
108 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = in xhci_link_segments()
112 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()
121 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()
142 ring->num_trbs_free += (TRBS_PER_SEGMENT - 1) * num_segs; in xhci_link_rings()
145 ring->last_seg->trbs[TRBS_PER_SEGMENT-1].link.control in xhci_link_rings()
147 last->trbs[TRBS_PER_SEGMENT-1].link.control in xhci_link_rings()
314 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_initialize_ring_info()
390 ring->last_seg->trbs[TRBS_PER_SEGMENT - 1].link.control |= in xhci_ring_alloc()
423 num_segs_needed = (num_trbs + (TRBS_PER_SEGMENT - 1) - 1) / in xhci_ring_expansion()
[all …]
Dxhci.h1488 #define TRBS_PER_SEGMENT 256 macro
1490 #define MAX_RSVD_CMD_TRBS (TRBS_PER_SEGMENT - 3)
1491 #define TRB_SEGMENT_SIZE (TRBS_PER_SEGMENT*16)
Dxhci-debugfs.c201 for (i = 0; i < TRBS_PER_SEGMENT; i++) { in xhci_ring_dump_segment()
Dxhci-ring.c75 if (segment_offset >= TRBS_PER_SEGMENT) in xhci_trb_virt_to_dma()
92 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in last_trb_on_seg()
1700 &cur_seg->trbs[TRBS_PER_SEGMENT - 1]); in trb_in_td()
Dxhci.c863 sizeof(union xhci_trb) * (TRBS_PER_SEGMENT - 1)); in xhci_clear_command_ring()
864 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring()
875 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_clear_command_ring()
/Linux-v4.19/drivers/usb/early/
Dxhci-dbc.c400 if (ring->enqueue >= &ring->segment->trbs[TRBS_PER_SEGMENT - 1]) { in xdbc_queue_trb()
828 if (xdbc.evt_ring.dequeue == &xdbc.evt_seg.trbs[TRBS_PER_SEGMENT]) { in xdbc_handle_events()