Home
last modified time | relevance | path

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

/DragonOS-0.1.3/kernel/src/driver/usb/xhci/
Dxhci.c37 static uint64_t xhci_create_ring(int trbs);
38 static uint64_t xhci_create_event_ring(int trbs, uint64_t *ret_ring_addr);
543 static uint64_t xhci_create_ring(int trbs) in xhci_create_ring() argument
545 int total_size = trbs * sizeof(struct xhci_TRB_t); in xhci_create_ring()
563 static uint64_t xhci_create_event_ring(int trbs, uint64_t *ret_ring_addr) in xhci_create_event_ring() argument
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()
581 *(uint64_t *)(table_vaddr + 8) = trbs; in xhci_create_event_ring()