/drivers/usb/dwc3/ |
H A D | trace.h | 199 TP_PROTO(struct dwc3_ep *dep, struct dwc3_trb *trb), 200 TP_ARGS(dep, trb), 203 __field(struct dwc3_trb *, trb) 211 __entry->trb = trb; 212 __entry->bpl = trb->bpl; 213 __entry->bph = trb->bph; 214 __entry->size = trb->size; 215 __entry->ctrl = trb->ctrl; 217 TP_printk("%s: trb [all...] |
H A D | ep0.c | 62 struct dwc3_trb *trb; local 73 trb = dwc->ep0_trb; 75 trb->bpl = lower_32_bits(buf_dma); 76 trb->bph = upper_32_bits(buf_dma); 77 trb->size = len; 78 trb->ctrl = type; 80 trb->ctrl |= (DWC3_TRB_CTRL_HWO 780 struct dwc3_trb *trb; local 792 trb = dwc->ep0_trb; 798 status = DWC3_TRB_SIZE_TRBSTS(trb 852 struct dwc3_trb *trb; local [all...] |
H A D | gadget.c | 244 * Skip LINK TRB. We can't use req->trb and check for 256 req->trb = NULL; 341 struct dwc3_trb *trb) 343 u32 offset = (char *) trb - (char *) dep->trb_pool; 362 dev_err(dep->dwc->dev, "failed to allocate trb pool for %s\n", 733 struct dwc3_trb *trb; local 741 trb = &dep->trb_pool[dep->free_slot & DWC3_TRB_MASK]; 743 if (!req->trb) { 745 req->trb = trb; 340 dwc3_trb_dma_offset(struct dwc3_ep *dep, struct dwc3_trb *trb) argument 1761 __dwc3_cleanup_done_trbs(struct dwc3 *dwc, struct dwc3_ep *dep, struct dwc3_request *req, struct dwc3_trb *trb, const struct dwc3_event_depevt *event, int status) argument 1843 struct dwc3_trb *trb; local [all...] |
H A D | core.h | 417 * @current_trb: index of current used trb 596 struct dwc3_trb *trb; member in struct:dwc3_request 615 * @ep0_trb: trb which is used for the ctrl_req
|
/drivers/usb/host/ |
H A D | xhci-dbg.c | 242 void xhci_print_trb_offsets(struct xhci_hcd *xhci, union xhci_trb *trb) argument 247 i*4, trb->generic.field[i]); 253 void xhci_debug_trb(struct xhci_hcd *xhci, union xhci_trb *trb) argument 256 u32 type = le32_to_cpu(trb->link.control) & TRB_TYPE_BITMASK; 261 xhci_print_trb_offsets(xhci, trb); 263 address = le64_to_cpu(trb->link.segment_ptr); 267 GET_INTR_TARGET(le32_to_cpu(trb->link.intr_target))); 269 le32_to_cpu(trb->link.control) & TRB_CYCLE); 271 le32_to_cpu(trb->link.control) & LINK_TOGGLE); 273 le32_to_cpu(trb 316 union xhci_trb *trb = seg->trbs; local [all...] |
H A D | xhci-trace.h | 119 __dynamic_array(u8, trb, sizeof(struct xhci_generic_trb)) 127 memcpy(__get_dynamic_array(trb), trb_va,
|
H A D | xhci-ring.c | 77 union xhci_trb *trb) 81 if (!seg || !trb || trb < seg->trbs) 84 segment_offset = trb - seg->trbs; 87 return seg->dma + (segment_offset * sizeof(*trb)); 94 struct xhci_segment *seg, union xhci_trb *trb) 97 return (trb == &seg->trbs[TRBS_PER_SEGMENT]) && 100 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; 108 struct xhci_segment *seg, union xhci_trb *trb) 111 return trb 76 xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb) argument 93 last_trb_on_last_seg(struct xhci_hcd *xhci, struct xhci_ring *ring, struct xhci_segment *seg, union xhci_trb *trb) argument 107 last_trb(struct xhci_hcd *xhci, struct xhci_ring *ring, struct xhci_segment *seg, union xhci_trb *trb) argument 126 next_trb(struct xhci_hcd *xhci, struct xhci_ring *ring, struct xhci_segment **seg, union xhci_trb **trb) argument 627 xhci_handle_cmd_stop_ep(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, struct xhci_event_cmd *event) argument 946 xhci_handle_cmd_set_deq(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, u32 cmd_comp_code) argument 1040 xhci_handle_cmd_reset_ep(struct xhci_hcd *xhci, int slot_id, union xhci_trb *trb, u32 cmd_comp_code) argument 2729 struct xhci_generic_trb *trb; local [all...] |
H A D | xhci.h | 1089 /* Pointer to command TRB, or the value passed by the event data trb */ 1647 void xhci_print_trb_offsets(struct xhci_hcd *xhci, union xhci_trb *trb); 1648 void xhci_debug_trb(struct xhci_hcd *xhci, union xhci_trb *trb); 1788 dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb);
|
/drivers/usb/gadget/udc/ |
H A D | mv_u3d_core.c | 203 /* Free trb for the request */ 249 dev_err(u3d->dev, "add trb to non-empty queue!\n"); 256 /* Configure the trb address and set the DCS bit. 257 * Both DCS bit and own bit in trb should be set. 285 struct mv_u3d_trb *trb; local 295 trb = kzalloc(sizeof(*trb), GFP_ATOMIC); 296 if (!trb) 306 kfree(trb); 311 trb 345 mv_u3d_build_trb_chain(struct mv_u3d_req *req, unsigned *length, struct mv_u3d_trb *trb, int *is_last) argument 416 struct mv_u3d_trb *trb; local [all...] |