Lines Matching refs:ep_index
532 int ep_index; in xhci_set_configuration() local
603 ep_index = xhci_get_ep_index(endpt_desc); in xhci_set_configuration()
604 ep_ctx[ep_index] = xhci_get_ep_ctx(ctrl, in_ctx, ep_index); in xhci_set_configuration()
607 virt_dev->eps[ep_index].ring = xhci_ring_alloc(ctrl, 1, true); in xhci_set_configuration()
608 if (!virt_dev->eps[ep_index].ring) in xhci_set_configuration()
615 ep_ctx[ep_index]->ep_info = in xhci_set_configuration()
619 ep_ctx[ep_index]->ep_info2 = cpu_to_le32(EP_TYPE(ep_type)); in xhci_set_configuration()
620 ep_ctx[ep_index]->ep_info2 |= in xhci_set_configuration()
627 ep_ctx[ep_index]->ep_info2 |= in xhci_set_configuration()
631 trb_64 = xhci_virt_to_bus(ctrl, virt_dev->eps[ep_index].ring->enqueue); in xhci_set_configuration()
632 ep_ctx[ep_index]->deq = cpu_to_le64(trb_64 | in xhci_set_configuration()
633 virt_dev->eps[ep_index].ring->cycle_state); in xhci_set_configuration()
641 ep_ctx[ep_index]->tx_info = in xhci_set_configuration()
651 ep_ctx[ep_index]->reserved[0] = in xhci_set_configuration()
806 int ep_index = 0; /* control endpoint */ in xhci_check_maxpacket() local
818 ep_ctx = xhci_get_ep_ctx(ctrl, out_ctx, ep_index); in xhci_check_maxpacket()
829 ctrl->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
831 ep_ctx = xhci_get_ep_ctx(ctrl, in_ctx, ep_index); in xhci_check_maxpacket()