Searched refs:TRB_SIZE (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/usb/cdns3/ |
H A D | cdns3-gadget.h | 1014 #define TRB_SIZE (sizeof(struct cdns3_trb)) macro 1015 #define TRB_RING_SIZE (TRB_SIZE * TRBS_PER_SEGMENT) 1016 #define TRB_STREAM_RING_SIZE (TRB_SIZE * TRBS_PER_STREAM_SEGMENT) 1017 #define TRB_ISO_RING_SIZE (TRB_SIZE * TRBS_PER_ISOC_SEGMENT) 1018 #define TRB_CTRL_RING_SIZE (TRB_SIZE * 2)
|
H A D | cdns3-gadget.c | 122 return dma_index / TRB_SIZE; in cdns3_get_dma_pos() 216 int num_trbs = ring_size / TRB_SIZE; in cdns3_allocate_trb_pool() 1398 priv_req->start_trb * TRB_SIZE), in cdns3_ep_run_transfer() 2736 ((priv_req->end_trb + 1) * TRB_SIZE))); in cdns3_gadget_ep_dequeue()
|
/openbmc/linux/drivers/usb/gadget/udc/cdns2/ |
H A D | cdns2-gadget.h | 449 #define TRB_SIZE (sizeof(struct cdns2_trb)) macro 455 #define TR_SEG_SIZE (TRB_SIZE * (TRBS_PER_SEGMENT + TRB_ISO_RESERVED))
|
H A D | cdns2-gadget.c | 81 return dma_index / TRB_SIZE; in cdns2_get_dma_pos() 652 (ring->enqueue * TRB_SIZE)); in cdns2_ep_tx_bulk() 732 buffer = pep->ring.dma + pep->ring.dequeue * TRB_SIZE; in cdns2_prepare_first_isoc_transfer() 754 writel(pep->ring.dma + (TRBS_PER_SEGMENT * TRB_SIZE), in cdns2_prepare_first_isoc_transfer() 1795 ((preq->end_trb + 1) * TRB_SIZE))); in cdns2_gadget_ep_dequeue()
|
/openbmc/qemu/hw/usb/ |
H A D | hcd-xhci.c | 130 #define TRB_SIZE 16 macro 626 addr = intr->er_start + TRB_SIZE*intr->er_ep_idx; in xhci_write_event() 627 if (dma_memory_write(xhci->as, addr, &ev_trb, TRB_SIZE, in xhci_write_event() 655 erdp >= (intr->er_start + TRB_SIZE*intr->er_size)) { in xhci_event() 663 dp_idx = (erdp - intr->er_start) / TRB_SIZE; in xhci_event() 693 if (dma_memory_read(xhci->as, ring->dequeue, trb, TRB_SIZE, in xhci_ring_fetch() 718 ring->dequeue += TRB_SIZE; in xhci_ring_fetch() 745 if (dma_memory_read(xhci->as, dequeue, &trb, TRB_SIZE, in xhci_ring_chain_length() 773 dequeue += TRB_SIZE; in xhci_ring_chain_length() 789 } while (length < TRB_LINK_LIMIT * 65536 / TRB_SIZE); in xhci_ring_chain_length() [all …]
|