Lines Matching refs:ep_num

45 …id xhci_initialize_ep(const int id, const uint64_t slot_vaddr, const int port_id, const int ep_num,
65 …c inline int xhci_get_endpoint_desc(const struct usb_interface_desc *if_desc, const uint8_t ep_num,
69 static int xhci_configure_endpoint(const int id, const int port_id, const uint8_t ep_num, const uin…
137 static __always_inline void __write_ep(int id, uint64_t slot_vaddr, int ep_num, struct xhci_ep_cont… in __write_ep() argument
139 …memcpy((void *)(slot_vaddr + ep_num * xhci_hc[id].context_size), ep, sizeof(struct xhci_ep_context… in __write_ep()
150 static __always_inline void __read_from_ep(int id, uint64_t slot_vaddr, int ep_num, struct xhci_ep_… in __read_from_ep() argument
152 …memcpy(ep, (void *)(slot_vaddr + ep_num * xhci_hc[id].context_size), sizeof(struct xhci_ep_context… in __read_from_ep()
931 …id xhci_initialize_ep(const int id, const uint64_t slot_vaddr, const int port_id, const int ep_num, in xhci_initialize_ep() argument
941 xhci_hc[id].ports[port_id].ep_info[ep_num].ep_ring_vbase = xhci_create_ring(XHCI_TRBS_PER_RING); in xhci_initialize_ep()
943 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()
946 xhci_hc[id].ports[port_id].ep_info[ep_num].current_ep_ring_vaddr = in xhci_initialize_ep()
947 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_cycle = xhci_ep_get_dequeue_cycle_state… in xhci_initialize_ep()
981 ep_ctx.ep_type = ((ep_num % 2) ? XHCI_EP_TYPE_INTR_IN : XHCI_EP_TYPE_INTR_OUT); in xhci_initialize_ep()
989 __write_ep(id, slot_vaddr, ep_num, &ep_ctx); in xhci_initialize_ep()
1504 …c inline int xhci_get_endpoint_desc(const struct usb_interface_desc *if_desc, const uint8_t ep_num, in xhci_get_endpoint_desc() argument
1509 BUG_ON(ep_num >= if_desc->num_endpoints); in xhci_get_endpoint_desc()
1511 …*ep_desc = (struct usb_endpoint_desc *)((uint64_t)(if_desc + 1) + ep_num * sizeof(struct usb_endpo… in xhci_get_endpoint_desc()
1720 static int xhci_configure_endpoint(const int id, const int port_id, const uint8_t ep_num, const uin… in xhci_configure_endpoint() argument
1727 …xhci_initialize_ep(id, slot_context_vaddr, port_id, ep_num, xhci_hc[id].ports[port_id].dev_desc->m… in xhci_configure_endpoint()
1728 … usb_get_max_burst_from_ep(ep_desc), ep_type, (ep_num % 2) ? XHCI_DIR_IN_BIT : XHCI_DIR_OUT_BIT, in xhci_configure_endpoint()
1736 __write4b(input_ctx_buffer + 4, (1 << ep_num) | 1); in xhci_configure_endpoint()
1742 slot.entries = (ep_num > slot.entries) ? ep_num : slot.entries; in xhci_configure_endpoint()
1749 __read_from_ep(id, slot_context_vaddr, ep_num, &ep); in xhci_configure_endpoint()
1753 __write_ep(id, input_ctx_buffer, ep_num + 1, &ep); in xhci_configure_endpoint()
1768 kerror("port_id:%d, configure endpoint %d failed", port_id, ep_num); in xhci_configure_endpoint()
1776 ksuccess("port_id:%d, ep:%d successfully configured.", port_id, ep_num); in xhci_configure_endpoint()