Lines Matching refs:ep_index

1159 unsigned int xhci_get_endpoint_address(unsigned int ep_index)  in xhci_get_endpoint_address()  argument
1161 unsigned int number = DIV_ROUND_UP(ep_index, 2); in xhci_get_endpoint_address()
1162 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; in xhci_get_endpoint_address()
1179 unsigned int xhci_get_endpoint_flag_from_index(unsigned int ep_index) in xhci_get_endpoint_flag_from_index() argument
1181 return 1 << (ep_index + 1); in xhci_get_endpoint_flag_from_index()
1246 unsigned int ep_index, struct urb *urb) in xhci_check_maxpacket() argument
1257 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket()
1291 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_check_maxpacket()
1293 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1301 xhci_dbg_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1303 xhci_dbg_ctx(xhci, out_ctx, ep_index); in xhci_check_maxpacket()
1329 unsigned int slot_id, ep_index; in xhci_urb_enqueue() local
1338 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_enqueue()
1383 ep_index, urb); in xhci_urb_enqueue()
1398 slot_id, ep_index); in xhci_urb_enqueue()
1406 if (xhci->devs[slot_id]->eps[ep_index].ep_state & in xhci_urb_enqueue()
1411 } else if (xhci->devs[slot_id]->eps[ep_index].ep_state & in xhci_urb_enqueue()
1419 slot_id, ep_index); in xhci_urb_enqueue()
1429 slot_id, ep_index); in xhci_urb_enqueue()
1438 slot_id, ep_index); in xhci_urb_enqueue()
1465 unsigned int ep_index; in xhci_urb_to_transfer_ring() local
1470 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_to_transfer_ring()
1472 ep = &xhci->devs[slot_id]->eps[ep_index]; in xhci_urb_to_transfer_ring()
1481 slot_id, ep_index); in xhci_urb_to_transfer_ring()
1492 slot_id, ep_index, in xhci_urb_to_transfer_ring()
1537 unsigned int ep_index; in xhci_urb_dequeue() local
1583 ep_index = xhci_get_endpoint_index(&urb->ep->desc); in xhci_urb_dequeue()
1584 ep = &xhci->devs[urb->dev->slot_id]->eps[ep_index]; in xhci_urb_dequeue()
1623 ep_index, 0); in xhci_urb_dequeue()
1650 unsigned int ep_index; in xhci_drop_endpoint() local
1680 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_drop_endpoint()
1681 ep_ctx = xhci_get_ep_ctx(xhci, out_ctx, ep_index); in xhci_drop_endpoint()
1690 if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL) in xhci_drop_endpoint()
1730 unsigned int ep_index; in xhci_add_endpoint() local
1767 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_add_endpoint()
1771 if (virt_dev->eps[ep_index].ring && in xhci_add_endpoint()
2886 unsigned int slot_id, unsigned int ep_index, in xhci_setup_input_ctx_for_quirk() argument
2904 xhci->devs[slot_id]->out_ctx, ep_index); in xhci_setup_input_ctx_for_quirk()
2905 ep_ctx = xhci_get_ep_ctx(xhci, in_ctx, ep_index); in xhci_setup_input_ctx_for_quirk()
2918 added_ctxs = xhci_get_endpoint_flag_from_index(ep_index); in xhci_setup_input_ctx_for_quirk()
2925 unsigned int ep_index, struct xhci_td *td) in xhci_cleanup_stalled_ring() argument
2933 ep = &xhci->devs[udev->slot_id]->eps[ep_index]; in xhci_cleanup_stalled_ring()
2938 ep_index, ep->stopped_stream, td, &deq_state); in xhci_cleanup_stalled_ring()
2950 ep_index, ep->stopped_stream, &deq_state); in xhci_cleanup_stalled_ring()
2961 ep_index, &deq_state); in xhci_cleanup_stalled_ring()
2999 unsigned int ep_index; in xhci_check_streams_endpoint() local
3014 ep_index = xhci_get_endpoint_index(&ep->desc); in xhci_check_streams_endpoint()
3015 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_check_streams_endpoint()
3025 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
3098 unsigned int ep_index; in xhci_calculate_no_streams_bitmask() local
3107 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_calculate_no_streams_bitmask()
3108 ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; in xhci_calculate_no_streams_bitmask()
3158 unsigned int ep_index; in xhci_alloc_streams() local
3218 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3219 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; in xhci_alloc_streams()
3232 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3233 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, in xhci_alloc_streams()
3236 if (!vdev->eps[ep_index].stream_info) in xhci_alloc_streams()
3247 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3248 ep_ctx = xhci_get_ep_ctx(xhci, config_cmd->in_ctx, ep_index); in xhci_alloc_streams()
3251 vdev->out_ctx, ep_index); in xhci_alloc_streams()
3253 vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3275 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3276 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3278 udev->slot_id, ep_index); in xhci_alloc_streams()
3279 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; in xhci_alloc_streams()
3290 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_alloc_streams()
3291 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_alloc_streams()
3292 vdev->eps[ep_index].stream_info = NULL; in xhci_alloc_streams()
3296 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; in xhci_alloc_streams()
3297 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_alloc_streams()
3319 unsigned int ep_index; in xhci_free_streams() local
3339 ep_index = xhci_get_endpoint_index(&eps[0]->desc); in xhci_free_streams()
3340 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3352 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3353 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_free_streams()
3354 xhci->devs[udev->slot_id]->eps[ep_index].ep_state |= in xhci_free_streams()
3358 vdev->out_ctx, ep_index); in xhci_free_streams()
3360 &vdev->eps[ep_index]); in xhci_free_streams()
3381 ep_index = xhci_get_endpoint_index(&eps[i]->desc); in xhci_free_streams()
3382 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); in xhci_free_streams()
3383 vdev->eps[ep_index].stream_info = NULL; in xhci_free_streams()
3387 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; in xhci_free_streams()
3388 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; in xhci_free_streams()