Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/host/
Dxhci-mem.c59 for (i = 0; i < TRBS_PER_SEGMENT; i++) in xhci_segment_alloc()
107 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = in xhci_link_segments()
111 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()
120 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()
141 ring->num_trbs_free += (TRBS_PER_SEGMENT - 1) * num_segs; in xhci_link_rings()
144 ring->last_seg->trbs[TRBS_PER_SEGMENT-1].link.control in xhci_link_rings()
146 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()
387 ring->last_seg->trbs[TRBS_PER_SEGMENT - 1].link.control |= in xhci_ring_alloc()
434 sizeof(union xhci_trb)*TRBS_PER_SEGMENT); in xhci_reinit_cached_ring()
[all …]
Dxhci.h1324 #define TRBS_PER_SEGMENT 256 macro
1326 #define MAX_RSVD_CMD_TRBS (TRBS_PER_SEGMENT - 3)
1327 #define TRB_SEGMENT_SIZE (TRBS_PER_SEGMENT*16)
Dxhci-dbg.c335 for (i = 0; i < TRBS_PER_SEGMENT; ++i) { in xhci_debug_segment()
Dxhci-ring.c85 if (segment_offset >= TRBS_PER_SEGMENT) in xhci_trb_virt_to_dma()
97 return (trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()
111 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()
1693 &cur_seg->trbs[TRBS_PER_SEGMENT - 1]); in trb_in_td()
Dxhci.c824 sizeof(union xhci_trb) * (TRBS_PER_SEGMENT - 1)); in xhci_clear_command_ring()
825 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring()
836 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_clear_command_ring()