Lines Matching refs:ep_ctx
1404 struct xhci_ep_ctx *ep_ctx; in xhci_check_maxpacket() local
1411 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket()
1412 hw_max_packet_size = MAX_PACKET_DECODED(le32_to_cpu(ep_ctx->ep_info2)); in xhci_check_maxpacket()
1447 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1448 ep_ctx->ep_info &= cpu_to_le32(~EP_STATE_MASK);/* must clear */ in xhci_check_maxpacket()
1449 ep_ctx->ep_info2 &= cpu_to_le32(~MAX_PACKET_MASK); in xhci_check_maxpacket()
1450 ep_ctx->ep_info2 |= cpu_to_le32(MAX_PACKET(max_packet_size)); in xhci_check_maxpacket()
1754 struct xhci_ep_ctx *ep_ctx; in xhci_drop_endpoint() local
1784 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_drop_endpoint()
1788 if ((GET_EP_CTX_STATE(ep_ctx) == EP_STATE_DISABLED) || in xhci_drop_endpoint()
1839 struct xhci_ep_ctx *ep_ctx; in xhci_add_endpoint() local
1930 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, ep_index); in xhci_add_endpoint()
1931 trace_xhci_add_endpoint(ep_ctx); in xhci_add_endpoint()
1944 struct xhci_ep_ctx *ep_ctx; in xhci_zero_in_ctx() local
1967 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->in_ctx, i); in xhci_zero_in_ctx()
1968 ep_ctx->ep_info = 0; in xhci_zero_in_ctx()
1969 ep_ctx->ep_info2 = 0; in xhci_zero_in_ctx()
1970 ep_ctx->deq = 0; in xhci_zero_in_ctx()
1971 ep_ctx->tx_info = 0; in xhci_zero_in_ctx()
3016 struct xhci_ep_ctx *ep_ctx; in xhci_setup_input_ctx_for_quirk() local
3030 ep_ctx = xhci_get_ep_ctx(xhci, in_ctx, ep_index); in xhci_setup_input_ctx_for_quirk()
3041 ep_ctx->deq = cpu_to_le64(addr | deq_state->new_cycle_state); in xhci_setup_input_ctx_for_quirk()
3526 struct xhci_ep_ctx *ep_ctx; in xhci_alloc_streams() local
3529 ep_ctx = xhci_get_ep_ctx(xhci, config_cmd->in_ctx, ep_index); in xhci_alloc_streams()
3533 xhci_setup_streams_ep_input_ctx(xhci, ep_ctx, in xhci_alloc_streams()
3635 struct xhci_ep_ctx *ep_ctx; in xhci_free_streams() local
3638 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_free_streams()
3644 xhci_setup_no_streams_ep_input_ctx(ep_ctx, in xhci_free_streams()