Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/driver/usb/xhci/
Dxhci.c199 static __always_inline void __xhci_write_trb(struct xhci_ep_info_t *ep_info, struct xhci_TRB_t *trb) in __xhci_write_trb() argument
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()
205 struct xhci_TRB_normal_t *ptr = (struct xhci_TRB_normal_t *)(ep_info->current_ep_ring_vaddr); in __xhci_write_trb()
210 ptr->cycle = ep_info->current_ep_ring_cycle; in __xhci_write_trb()
211 ep_info->current_ep_ring_vaddr = ep_info->ep_ring_vbase; in __xhci_write_trb()
212 ep_info->current_ep_ring_cycle ^= 1; in __xhci_write_trb()
943 xhci_hc[id].ports[port_id].ep_info[ep_num].ep_ring_vbase = xhci_create_ring(XHCI_TRBS_PER_RING); in xhci_initialize_ep()
945 ep_ctx.tr_dequeue_ptr = virt_2_phys(xhci_hc[id].ports[port_id].ep_info[ep_num].ep_ring_vbase); in xhci_initialize_ep()
948 xhci_hc[id].ports[port_id].ep_info[ep_num].current_ep_ring_vaddr = in xhci_initialize_ep()
[all …]
Dxhci.h514 struct xhci_ep_info_t ep_info[32]; // 各个端点的信息 member