Home
last modified time | relevance | path

Searched refs:trb (Results 1 – 7 of 7) sorted by relevance

/openbmc/u-boot/drivers/usb/dwc3/
H A Dep0.c53 struct dwc3_trb *trb; in dwc3_ep0_start_trans() local
64 trb = &dwc->ep0_trb[dep->free_slot]; in dwc3_ep0_start_trans()
69 trb->bpl = lower_32_bits(buf_dma); in dwc3_ep0_start_trans()
70 trb->bph = upper_32_bits(buf_dma); in dwc3_ep0_start_trans()
71 trb->size = len; in dwc3_ep0_start_trans()
72 trb->ctrl = type; in dwc3_ep0_start_trans()
74 trb->ctrl |= (DWC3_TRB_CTRL_HWO in dwc3_ep0_start_trans()
78 trb->ctrl |= DWC3_TRB_CTRL_CHN; in dwc3_ep0_start_trans()
80 trb->ctrl |= (DWC3_TRB_CTRL_IOC in dwc3_ep0_start_trans()
84 dwc3_flush_cache((uintptr_t)trb, sizeof(*trb)); in dwc3_ep0_start_trans()
[all …]
H A Dgadget.c244 req->trb = NULL; in dwc3_gadget_giveback()
324 struct dwc3_trb *trb) in dwc3_trb_dma_offset() argument
326 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset()
703 struct dwc3_trb *trb; in dwc3_prepare_one_trb() local
711 trb = &dep->trb_pool[dep->free_slot & DWC3_TRB_MASK]; in dwc3_prepare_one_trb()
713 if (!req->trb) { in dwc3_prepare_one_trb()
715 req->trb = trb; in dwc3_prepare_one_trb()
716 req->trb_dma = dwc3_trb_dma_offset(dep, trb); in dwc3_prepare_one_trb()
726 trb->size = DWC3_TRB_SIZE_LENGTH(length); in dwc3_prepare_one_trb()
727 trb->bpl = lower_32_bits(dma); in dwc3_prepare_one_trb()
[all …]
H A Dcore.h602 struct dwc3_trb *trb; member
/openbmc/qemu/hw/usb/
H A Dhcd-xhci.c407 static const char *trb_name(XHCITRB *trb) in trb_name() argument
409 return lookup_name(TRB_TYPE(*trb), TRBType_names, in trb_name()
691 static TRBType xhci_ring_fetch(XHCIState *xhci, XHCIRing *ring, XHCITRB *trb, in xhci_ring_fetch() argument
698 if (dma_memory_read(xhci->as, ring->dequeue, trb, TRB_SIZE, in xhci_ring_fetch()
704 trb->addr = ring->dequeue; in xhci_ring_fetch()
705 trb->ccs = ring->ccs; in xhci_ring_fetch()
706 le64_to_cpus(&trb->parameter); in xhci_ring_fetch()
707 le32_to_cpus(&trb->status); in xhci_ring_fetch()
708 le32_to_cpus(&trb->control); in xhci_ring_fetch()
710 trace_usb_xhci_fetch_trb(ring->dequeue, trb_name(trb), in xhci_ring_fetch()
[all …]
H A Dtrace-events160 usb_xhci_queue_event(uint32_t vector, uint32_t idx, const char *trb, const char *evt, uint64_t para…
/openbmc/u-boot/drivers/usb/host/
H A Dxhci-ring.c36 struct xhci_segment *seg, union xhci_trb *trb) in last_trb() argument
39 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()
41 return TRB_TYPE_LINK_LE32(trb->link.control); in last_trb()
57 union xhci_trb *trb) in last_trb_on_last_seg() argument
60 return ((trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()
63 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; in last_trb_on_last_seg()
185 struct xhci_generic_trb *trb; in queue_trb() local
188 trb = &ring->enqueue->generic; in queue_trb()
191 trb->field[i] = cpu_to_le32(trb_fields[i]); in queue_trb()
193 xhci_flush_cache((uintptr_t)trb, sizeof(struct xhci_generic_trb)); in queue_trb()
[all …]
H A Dxhci.h1235 unsigned long trb_addr(struct xhci_segment *seg, union xhci_trb *trb);