Searched refs:xhci_TRB_t (Results 1 – 2 of 2) sorted by relevance
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/ |
D | xhci.c | 43 static int xhci_send_command(int id, struct xhci_TRB_t *trb, const bool do_ring); 109 static __always_inline void xhci_get_trb(struct xhci_TRB_t *trb, const uint64_t address) in xhci_get_trb() 122 static __always_inline void xhci_set_trb(struct xhci_TRB_t *trb, const uint64_t address) in xhci_set_trb() 199 static __always_inline void __xhci_write_trb(struct xhci_ep_info_t *ep_info, struct xhci_TRB_t *trb) in __xhci_write_trb() 201 memcpy((void *)ep_info->current_ep_ring_vaddr, trb, sizeof(struct xhci_TRB_t)); in __xhci_write_trb() 203 ep_info->current_ep_ring_vaddr += sizeof(struct xhci_TRB_t); in __xhci_write_trb() 545 int total_size = trbs * sizeof(struct xhci_TRB_t); in xhci_create_ring() 551 xhci_TRB_set_link_cmd(vaddr + total_size - sizeof(struct xhci_TRB_t)); in xhci_create_ring() 572 const uint64_t seg_vaddr = (const uint64_t)kmalloc(trbs * sizeof(struct xhci_TRB_t), 0); in xhci_create_event_ring() 577 memset((void *)seg_vaddr, 0, trbs * sizeof(struct xhci_TRB_t)); in xhci_create_event_ring() [all …]
|
D | xhci.h | 199 struct xhci_TRB_t struct
|