Lines Matching refs:ep

53 static int xhci_setup_stage(struct xhci_ep_info_t *ep, const struct usb_request_packet_t *packet,
55 static int xhci_data_stage(struct xhci_ep_info_t *ep, uint64_t buf_vaddr, uint8_t trb_type, const u…
57 static int xhci_status_stage(struct xhci_ep_info_t *ep, uint8_t direction, uint64_t status_buf_vadd…
137 …lways_inline void __write_ep(int id, uint64_t slot_vaddr, int ep_num, struct xhci_ep_context_t *ep) 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 …s_inline void __read_from_ep(int id, uint64_t slot_vaddr, int ep_num, struct xhci_ep_context_t *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()
1007 struct xhci_ep_context_t ep; in xhci_set_address() local
1018 __read_from_ep(id, slot_vaddr, 1, &ep); in xhci_set_address()
1019 ep.err_cnt = 3; in xhci_set_address()
1021 …kdebug("ep.type=%d, max_packet=%d, dequeue_ptr=%#018lx", ep.ep_type, ep.max_packet_size, ep.tr_deq… in xhci_set_address()
1024 __write_ep(id, input_ctx_buffer, 2, &ep); in xhci_set_address()
1065 static int xhci_setup_stage(struct xhci_ep_info_t *ep, const struct usb_request_packet_t *packet, in xhci_setup_stage() argument
1077 trb.cycle = ep->current_ep_ring_cycle; in xhci_setup_stage()
1084 __xhci_write_trb(ep, (struct xhci_TRB_t *)&trb); in xhci_setup_stage()
1100 static int xhci_data_stage(struct xhci_ep_info_t *ep, uint64_t buf_vaddr, uint8_t trb_type, const u… in xhci_data_stage() argument
1122 trb.cycle = ep->current_ep_ring_cycle; in xhci_data_stage()
1126 __xhci_write_trb(ep, (struct xhci_TRB_t *)&trb); in xhci_data_stage()
1141 trb.cycle = ep->current_ep_ring_cycle; in xhci_data_stage()
1144 __xhci_write_trb(ep, (struct xhci_TRB_t *)&trb); in xhci_data_stage()
1157 static int xhci_status_stage(struct xhci_ep_info_t *ep, uint8_t direction, uint64_t status_buf_vadd… in xhci_status_stage() argument
1166 trb.cycle = ep->current_ep_ring_cycle; in xhci_status_stage()
1171 __xhci_write_trb(ep, (struct xhci_TRB_t *)&trb); in xhci_status_stage()
1182 trb.cycle = ep->current_ep_ring_cycle; in xhci_status_stage()
1184 __xhci_write_trb(ep, (struct xhci_TRB_t *)&trb); in xhci_status_stage()
1734 struct xhci_ep_context_t ep = {0}; in xhci_configure_endpoint() local
1751 __read_from_ep(id, slot_context_vaddr, ep_num, &ep); in xhci_configure_endpoint()
1753 ep.err_cnt = 3; in xhci_configure_endpoint()
1755 __write_ep(id, input_ctx_buffer, ep_num + 1, &ep); in xhci_configure_endpoint()