Lines Matching refs:ep_ctx

616 	struct xhci_ep_ctx *ep_ctx;  in xhci_get_hw_deq()  local
626 ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); in xhci_get_hw_deq()
627 return le64_to_cpu(ep_ctx->deq); in xhci_get_hw_deq()
1098 struct xhci_ep_ctx *ep_ctx; in xhci_handle_cmd_stop_ep() local
1116 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_stop_ep()
1118 trace_xhci_handle_cmd_stop_ep(ep_ctx); in xhci_handle_cmd_stop_ep()
1135 switch (GET_EP_CTX_STATE(ep_ctx)) { in xhci_handle_cmd_stop_ep()
1339 struct xhci_ep_ctx *ep_ctx; in xhci_handle_cmd_set_deq() local
1358 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_set_deq()
1361 trace_xhci_handle_cmd_set_deq_ep(ep_ctx); in xhci_handle_cmd_set_deq()
1373 ep_state = GET_EP_CTX_STATE(ep_ctx); in xhci_handle_cmd_set_deq()
1417 deq = le64_to_cpu(ep_ctx->deq) & ~EP_CTX_CYCLE_MASK; in xhci_handle_cmd_set_deq()
1471 struct xhci_ep_ctx *ep_ctx; in xhci_handle_cmd_reset_ep() local
1479 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in xhci_handle_cmd_reset_ep()
1480 trace_xhci_handle_cmd_reset_ep(ep_ctx); in xhci_handle_cmd_reset_ep()
1531 struct xhci_ep_ctx *ep_ctx; in xhci_handle_cmd_config_ep() local
1554 ep_ctx = xhci_get_ep_ctx(xhci, virt_dev->out_ctx, ep_index); in xhci_handle_cmd_config_ep()
1555 trace_xhci_handle_cmd_config_ep(ep_ctx); in xhci_handle_cmd_config_ep()
2151 static bool xhci_halted_host_endpoint(struct xhci_ep_ctx *ep_ctx, unsigned int comp_code) in xhci_halted_host_endpoint() argument
2167 if (GET_EP_CTX_STATE(ep_ctx) == EP_STATE_HALTED) in xhci_halted_host_endpoint()
2191 struct xhci_ep_ctx *ep_ctx; in finish_td() local
2193 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep->ep_index); in finish_td()
2219 if (GET_EP_CTX_STATE(ep_ctx) != EP_STATE_HALTED) { in finish_td()
2290 struct xhci_ep_ctx *ep_ctx; in process_ctrl_td() local
2296 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep->ep_index); in process_ctrl_td()
2340 if (!xhci_halted_host_endpoint(ep_ctx, trb_comp_code)) in process_ctrl_td()
2623 struct xhci_ep_ctx *ep_ctx; in handle_tx_event() local
2638 ep_ctx = xhci_get_ep_ctx(xhci, ep->vdev->out_ctx, ep_index); in handle_tx_event()
2640 if (GET_EP_CTX_STATE(ep_ctx) == EP_STATE_DISABLED) { in handle_tx_event()
2916 if (xhci_halted_host_endpoint(ep_ctx, trb_comp_code)) in handle_tx_event()
3274 struct xhci_ep_ctx *ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in prepare_transfer() local
3284 ret = prepare_ring(xhci, ep_ring, GET_EP_CTX_STATE(ep_ctx), in prepare_transfer()
3384 static void check_interval(struct urb *urb, struct xhci_ep_ctx *ep_ctx) in check_interval() argument
3389 xhci_interval = EP_INTERVAL_TO_UFRAMES(le32_to_cpu(ep_ctx->ep_info)); in check_interval()
3422 struct xhci_ep_ctx *ep_ctx; in xhci_queue_intr_tx() local
3424 ep_ctx = xhci_get_ep_ctx(xhci, xhci->devs[slot_id]->out_ctx, ep_index); in xhci_queue_intr_tx()
3425 check_interval(urb, ep_ctx); in xhci_queue_intr_tx()
4197 struct xhci_ep_ctx *ep_ctx; in xhci_queue_isoc_tx_prepare() local
4207 ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); in xhci_queue_isoc_tx_prepare()
4217 ret = prepare_ring(xhci, ep_ring, GET_EP_CTX_STATE(ep_ctx), in xhci_queue_isoc_tx_prepare()
4226 check_interval(urb, ep_ctx); in xhci_queue_isoc_tx_prepare()
4230 if (GET_EP_CTX_STATE(ep_ctx) == EP_STATE_RUNNING) { in xhci_queue_isoc_tx_prepare()