Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/usb/cdns3/
H A Ddebug.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()
H A Dgadget.h969 #define TRBS_PER_SEGMENT 600 macro
975 #if TRBS_PER_SEGMENT < 2
995 TRBS_PER_ISOC_SEGMENT : TRBS_PER_SEGMENT)
1011 #define TRB_RING_SIZE (TRB_SIZE * TRBS_PER_SEGMENT)
H A Dtrace.h447 (TRBS_PER_SEGMENT * 65) + CDNS3_MSG_MAX)
H A Dgadget.c1181 TRBS_PER_SEGMENT > 2) in cdns3_ep_run_transfer()
1469 if (TRBS_PER_SEGMENT == 2 && priv_ep->type != USB_ENDPOINT_XFER_ISOC) { in cdns3_trb_handled()
1550 TRBS_PER_SEGMENT == 2) in cdns3_transfer_completed()
/OK3568_Linux_fs/u-boot/drivers/usb/cdns3/
H A Ddebug.h140 if (trb_per_sector > TRBS_PER_SEGMENT) in cdns3_dbg_ring()
141 trb_per_sector = TRBS_PER_SEGMENT; in cdns3_dbg_ring()
143 if (trb_per_sector > TRBS_PER_SEGMENT) { in cdns3_dbg_ring()
H A Dgadget.h968 #define TRBS_PER_SEGMENT 40 macro
972 #if TRBS_PER_SEGMENT < 2
986 TRBS_PER_ISOC_SEGMENT : TRBS_PER_SEGMENT)
1002 #define TRB_RING_SIZE (TRB_SIZE * TRBS_PER_SEGMENT)
H A Dgadget.c877 TRBS_PER_SEGMENT > 2) in cdns3_ep_run_transfer()
1098 if (TRBS_PER_SEGMENT == 2 && priv_ep->type != USB_ENDPOINT_XFER_ISOC) { in cdns3_request_handled()
1163 TRBS_PER_SEGMENT == 2) in cdns3_transfer_completed()
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A 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()
320 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_initialize_ring_info()
451 ring->last_seg->trbs[TRBS_PER_SEGMENT - 1].link.control |= in xhci_ring_alloc()
489 num_segs_needed = (num_trbs + (TRBS_PER_SEGMENT - 1) - 1) / in xhci_ring_expansion()
[all …]
H A 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()
H A Dxhci.h1523 #define TRBS_PER_SEGMENT 256 macro
1525 #define MAX_RSVD_CMD_TRBS (TRBS_PER_SEGMENT - 3)
1526 #define TRB_SEGMENT_SIZE (TRBS_PER_SEGMENT*16)
H A Dxhci-debugfs.c203 for (i = 0; i < TRBS_PER_SEGMENT; i++) { in xhci_ring_dump_segment()
H A 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()
2098 &cur_seg->trbs[TRBS_PER_SEGMENT - 1]); in trb_in_td()
3150 if (event_loop++ < TRBS_PER_SEGMENT / 2) in xhci_irq()
H A Dxhci.c875 sizeof(union xhci_trb) * (TRBS_PER_SEGMENT - 1)); in xhci_clear_command_ring()
876 seg->trbs[TRBS_PER_SEGMENT - 1].link.control &= in xhci_clear_command_ring()
887 ring->num_trbs_free = ring->num_segs * (TRBS_PER_SEGMENT - 1) - 1; in xhci_clear_command_ring()
/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Dxhci-mem.c226 prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr = val_64; in xhci_link_segments()
232 val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control); in xhci_link_segments()
236 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments()
334 prev->trbs[TRBS_PER_SEGMENT-1].link.control |= in xhci_ring_alloc()
563 entry->seg_size = cpu_to_le32(TRBS_PER_SEGMENT); in xhci_mem_init()
H A Dxhci-ring.c40 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()
61 return ((trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()
H A Dxhci.c1482 *size = (TRBS_PER_SEGMENT - 2) * TRB_MAX_BUFF_SIZE; in xhci_get_max_xfer_size()
/OK3568_Linux_fs/u-boot/include/usb/
H A Dxhci.h992 #define TRBS_PER_SEGMENT 64 macro
994 #define MAX_RSVD_CMD_TRBS (TRBS_PER_SEGMENT - 3)
995 #define SEGMENT_SIZE (TRBS_PER_SEGMENT*16)
/OK3568_Linux_fs/kernel/drivers/usb/early/
H A Dxhci-dbc.c401 if (ring->enqueue >= &ring->segment->trbs[TRBS_PER_SEGMENT - 1]) { in xdbc_queue_trb()
822 if (xdbc.evt_ring.dequeue == &xdbc.evt_seg.trbs[TRBS_PER_SEGMENT]) { in xdbc_handle_events()