Home
last modified time | relevance | path

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

/drivers/usb/host/
Dxhci-dbg.c242 void xhci_print_trb_offsets(struct xhci_hcd *xhci, union xhci_trb *trb) in xhci_print_trb_offsets() argument
247 i*4, trb->generic.field[i]); in xhci_print_trb_offsets()
253 void xhci_debug_trb(struct xhci_hcd *xhci, union xhci_trb *trb) in xhci_debug_trb() argument
256 u32 type = le32_to_cpu(trb->link.control) & TRB_TYPE_BITMASK; in xhci_debug_trb()
261 xhci_print_trb_offsets(xhci, trb); in xhci_debug_trb()
263 address = le64_to_cpu(trb->link.segment_ptr); in xhci_debug_trb()
267 GET_INTR_TARGET(le32_to_cpu(trb->link.intr_target))); in xhci_debug_trb()
269 le32_to_cpu(trb->link.control) & TRB_CYCLE); in xhci_debug_trb()
271 le32_to_cpu(trb->link.control) & LINK_TOGGLE); in xhci_debug_trb()
273 le32_to_cpu(trb->link.control) & TRB_NO_SNOOP); in xhci_debug_trb()
[all …]
Dxhci-ring.c80 union xhci_trb *trb) in xhci_trb_virt_to_dma() argument
84 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma()
87 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma()
90 return seg->dma + (segment_offset * sizeof(*trb)); in xhci_trb_virt_to_dma()
97 struct xhci_segment *seg, union xhci_trb *trb) in last_trb_on_last_seg() argument
100 return (trb == &seg->trbs[TRBS_PER_SEGMENT]) && in last_trb_on_last_seg()
103 return le32_to_cpu(trb->link.control) & LINK_TOGGLE; in last_trb_on_last_seg()
111 struct xhci_segment *seg, union xhci_trb *trb) in last_trb() argument
114 return trb == &seg->trbs[TRBS_PER_SEGMENT]; in last_trb()
116 return TRB_TYPE_LINK_LE32(trb->link.control); in last_trb()
[all …]
Dxhci.h1612 void xhci_print_trb_offsets(struct xhci_hcd *xhci, union xhci_trb *trb);
1613 void xhci_debug_trb(struct xhci_hcd *xhci, union xhci_trb *trb);
1768 dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb);
/drivers/usb/dwc3/
Dgadget.c236 req->trb = NULL; in dwc3_gadget_giveback()
320 struct dwc3_trb *trb) in dwc3_trb_dma_offset() argument
322 u32 offset = (char *) trb - (char *) dep->trb_pool; in dwc3_trb_dma_offset()
685 struct dwc3_trb *trb; in dwc3_prepare_one_trb() local
694 trb = &dep->trb_pool[dep->free_slot & DWC3_TRB_MASK]; in dwc3_prepare_one_trb()
703 if (!req->trb) { in dwc3_prepare_one_trb()
705 req->trb = trb; in dwc3_prepare_one_trb()
706 req->trb_dma = dwc3_trb_dma_offset(dep, trb); in dwc3_prepare_one_trb()
709 trb->size = DWC3_TRB_SIZE_LENGTH(length); in dwc3_prepare_one_trb()
710 trb->bpl = lower_32_bits(dma); in dwc3_prepare_one_trb()
[all …]
Dep0.c79 struct dwc3_trb *trb; in dwc3_ep0_start_trans() local
90 trb = dwc->ep0_trb; in dwc3_ep0_start_trans()
92 trb->bpl = lower_32_bits(buf_dma); in dwc3_ep0_start_trans()
93 trb->bph = upper_32_bits(buf_dma); in dwc3_ep0_start_trans()
94 trb->size = len; in dwc3_ep0_start_trans()
95 trb->ctrl = type; in dwc3_ep0_start_trans()
97 trb->ctrl |= (DWC3_TRB_CTRL_HWO in dwc3_ep0_start_trans()
547 struct dwc3_trb *trb; in dwc3_ep0_complete_data() local
561 trb = dwc->ep0_trb; in dwc3_ep0_complete_data()
562 length = trb->size & DWC3_TRB_SIZE_MASK; in dwc3_ep0_complete_data()
Dcore.h524 struct dwc3_trb *trb; member
/drivers/net/tokenring/
Dlanstreamer.h276 __u16 trb; member
Dolympic.h250 u16 trb; /* be16 */ member
Dolympic.c598 olympic_priv->trb = swab16(readw(init_srb+16)); in olympic_open()
Dlanstreamer.c761 streamer_priv->trb = ntohs(readw(streamer_mmio + LAPDINC)); in streamer_open()