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()
1005 struct xhci_ep_context_t ep; in xhci_set_address() local
1016 __read_from_ep(id, slot_vaddr, 1, &ep); in xhci_set_address()
1017 ep.err_cnt = 3; in xhci_set_address()
1019 …kdebug("ep.type=%d, max_packet=%d, dequeue_ptr=%#018lx", ep.ep_type, ep.max_packet_size, ep.tr_deq… in xhci_set_address()
1022 __write_ep(id, input_ctx_buffer, 2, &ep); in xhci_set_address()
1063 static int xhci_setup_stage(struct xhci_ep_info_t *ep, const struct usb_request_packet_t *packet, in xhci_setup_stage() argument
1075 trb.cycle = ep->current_ep_ring_cycle; in xhci_setup_stage()
1082 __xhci_write_trb(ep, (struct xhci_TRB_t *)&trb); in xhci_setup_stage()
1098 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
1120 trb.cycle = ep->current_ep_ring_cycle; in xhci_data_stage()
1124 __xhci_write_trb(ep, (struct xhci_TRB_t *)&trb); in xhci_data_stage()
1139 trb.cycle = ep->current_ep_ring_cycle; in xhci_data_stage()
1142 __xhci_write_trb(ep, (struct xhci_TRB_t *)&trb); in xhci_data_stage()
1155 static int xhci_status_stage(struct xhci_ep_info_t *ep, uint8_t direction, uint64_t status_buf_vadd… in xhci_status_stage() argument
1164 trb.cycle = ep->current_ep_ring_cycle; in xhci_status_stage()
1169 __xhci_write_trb(ep, (struct xhci_TRB_t *)&trb); in xhci_status_stage()
1180 trb.cycle = ep->current_ep_ring_cycle; in xhci_status_stage()
1182 __xhci_write_trb(ep, (struct xhci_TRB_t *)&trb); in xhci_status_stage()
1732 struct xhci_ep_context_t ep = {0}; in xhci_configure_endpoint() local
1749 __read_from_ep(id, slot_context_vaddr, ep_num, &ep); in xhci_configure_endpoint()
1751 ep.err_cnt = 3; in xhci_configure_endpoint()
1753 __write_ep(id, input_ctx_buffer, ep_num + 1, &ep); in xhci_configure_endpoint()