Searched refs:trb (Results 1 – 9 of 9) sorted by relevance
/drivers/usb/dwc3/ |
D | trace.h | 213 TP_PROTO(struct dwc3_ep *dep, struct dwc3_trb *trb), 214 TP_ARGS(dep, trb), 217 __field(struct dwc3_trb *, trb) 225 __entry->trb = trb; 226 __entry->bpl = trb->bpl; 227 __entry->bph = trb->bph; 228 __entry->size = trb->size; 229 __entry->ctrl = trb->ctrl; 232 __get_str(name), __entry->trb, __entry->bph, __entry->bpl, 238 TP_PROTO(struct dwc3_ep *dep, struct dwc3_trb *trb), [all …]
|
D | ep0.c | 61 struct dwc3_trb *trb; in dwc3_ep0_prepare_one_trb() local 66 trb = &dwc->ep0_trb[dep->free_slot]; in dwc3_ep0_prepare_one_trb() 71 trb->bpl = lower_32_bits(buf_dma); in dwc3_ep0_prepare_one_trb() 72 trb->bph = upper_32_bits(buf_dma); in dwc3_ep0_prepare_one_trb() 73 trb->size = len; in dwc3_ep0_prepare_one_trb() 74 trb->ctrl = type; in dwc3_ep0_prepare_one_trb() 76 trb->ctrl |= (DWC3_TRB_CTRL_HWO in dwc3_ep0_prepare_one_trb() 80 trb->ctrl |= DWC3_TRB_CTRL_CHN; in dwc3_ep0_prepare_one_trb() 82 trb->ctrl |= (DWC3_TRB_CTRL_IOC in dwc3_ep0_prepare_one_trb() 85 trace_dwc3_prepare_trb(dep, trb); in dwc3_ep0_prepare_one_trb() [all …]
|
D | gadget.c | 258 req->trb = NULL; in dwc3_gadget_giveback() 367 struct dwc3_trb *trb) in dwc3_trb_dma_offset() argument 369 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset() 810 struct dwc3_trb *trb; in dwc3_prepare_one_trb() local 818 trb = &dep->trb_pool[dep->free_slot & DWC3_TRB_MASK]; in dwc3_prepare_one_trb() 820 if (!req->trb) { in dwc3_prepare_one_trb() 822 req->trb = trb; in dwc3_prepare_one_trb() 823 req->trb_dma = dwc3_trb_dma_offset(dep, trb); in dwc3_prepare_one_trb() 833 trb->size = DWC3_TRB_SIZE_LENGTH(length); in dwc3_prepare_one_trb() 834 trb->bpl = lower_32_bits(dma); in dwc3_prepare_one_trb() [all …]
|
D | core.h | 630 struct dwc3_trb *trb; member
|
/drivers/usb/host/ |
D | xhci-dbg.c | 259 void xhci_print_trb_offsets(struct xhci_hcd *xhci, union xhci_trb *trb) in xhci_print_trb_offsets() argument 264 i*4, trb->generic.field[i]); in xhci_print_trb_offsets() 270 void xhci_debug_trb(struct xhci_hcd *xhci, union xhci_trb *trb) in xhci_debug_trb() argument 273 u32 type = le32_to_cpu(trb->link.control) & TRB_TYPE_BITMASK; in xhci_debug_trb() 278 xhci_print_trb_offsets(xhci, trb); in xhci_debug_trb() 280 address = le64_to_cpu(trb->link.segment_ptr); in xhci_debug_trb() 284 GET_INTR_TARGET(le32_to_cpu(trb->link.intr_target))); in xhci_debug_trb() 286 le32_to_cpu(trb->link.control) & TRB_CYCLE); in xhci_debug_trb() 288 le32_to_cpu(trb->link.control) & LINK_TOGGLE); in xhci_debug_trb() 290 le32_to_cpu(trb->link.control) & TRB_NO_SNOOP); in xhci_debug_trb() [all …]
|
D | xhci-ring.c | 77 union xhci_trb *trb) in xhci_trb_virt_to_dma() argument 81 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma() 84 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma() 87 return seg->dma + (segment_offset * sizeof(*trb)); in xhci_trb_virt_to_dma() 94 struct xhci_segment *seg, union xhci_trb *trb) in last_trb_on_last_seg() argument 97 return (trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg() 100 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; in last_trb_on_last_seg() 108 struct xhci_segment *seg, union xhci_trb *trb) in last_trb() argument 111 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb() 113 return TRB_TYPE_LINK_LE32(trb->link.control); in last_trb() [all …]
|
D | xhci-trace.h | 126 __dynamic_array(u8, trb, sizeof(struct xhci_generic_trb)) 134 memcpy(__get_dynamic_array(trb), trb_va,
|
D | xhci.h | 1740 void xhci_print_trb_offsets(struct xhci_hcd *xhci, union xhci_trb *trb); 1741 void xhci_debug_trb(struct xhci_hcd *xhci, union xhci_trb *trb); 1881 dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb);
|
/drivers/usb/gadget/udc/ |
D | mv_u3d_core.c | 285 struct mv_u3d_trb *trb; in mv_u3d_build_trb_one() local 295 trb = kzalloc(sizeof(*trb), GFP_ATOMIC); in mv_u3d_build_trb_one() 296 if (!trb) in mv_u3d_build_trb_one() 306 kfree(trb); in mv_u3d_build_trb_one() 311 trb->trb_dma = *dma; in mv_u3d_build_trb_one() 312 trb->trb_hw = trb_hw; in mv_u3d_build_trb_one() 342 return trb; in mv_u3d_build_trb_one() 346 struct mv_u3d_trb *trb, int *is_last) in mv_u3d_build_trb_chain() argument 358 trb->trb_dma = 0; in mv_u3d_build_trb_chain() 363 trb->trb_hw->buf_addr_lo = cpu_to_le32(temp); in mv_u3d_build_trb_chain() [all …]
|