Searched refs:trb (Results 1 – 10 of 10) sorted by relevance
/drivers/usb/host/ |
D | xhci-dbg.c | 242 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 …]
|
D | xhci-ring.c | 80 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 …]
|
D | xhci.h | 1612 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/ |
D | gadget.c | 236 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 …]
|
D | ep0.c | 79 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()
|
D | core.h | 524 struct dwc3_trb *trb; member
|
/drivers/net/tokenring/ |
D | lanstreamer.h | 276 __u16 trb; member
|
D | olympic.h | 250 u16 trb; /* be16 */ member
|
D | olympic.c | 598 olympic_priv->trb = swab16(readw(init_srb+16)); in olympic_open()
|
D | lanstreamer.c | 761 streamer_priv->trb = ntohs(readw(streamer_mmio + LAPDINC)); in streamer_open()
|