Lines Matching refs:vdev
1661 struct xhci_virt_device *vdev;
1674 vdev = xhci->devs[urb->dev->slot_id];
1676 if (!vdev || !urb_priv)
1680 ep = &vdev->eps[ep_index];
2887 struct xhci_virt_device *vdev, int i)
2889 struct xhci_virt_ep *ep = &vdev->eps[i];
3126 struct xhci_virt_device *vdev;
3140 vdev = xhci->devs[udev->slot_id];
3141 if (!vdev)
3145 ep = &vdev->eps[ep_index];
3181 struct xhci_virt_device *vdev;
3194 vdev = xhci->devs[udev->slot_id];
3197 * vdev may be lost due to xHC restore error and re-initialization
3198 * during S3/S4 resume. A new vdev will be allocated later by
3201 if (!udev->slot_id || !vdev)
3204 ep = &vdev->eps[ep_index];
3279 xhci_setup_input_ctx_for_config_ep(xhci, cfg_cmd->in_ctx, vdev->out_ctx,
3281 xhci_endpoint_copy(xhci, cfg_cmd->in_ctx, vdev->out_ctx, ep_index);
3468 struct xhci_virt_device *vdev;
3526 vdev = xhci->devs[udev->slot_id];
3532 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS;
3547 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci,
3551 if (!vdev->eps[ep_index].stream_info)
3566 vdev->out_ctx, ep_index);
3568 vdev->eps[ep_index].stream_info);
3574 vdev->out_ctx, ctrl_ctx,
3591 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS;
3594 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS;
3601 xhci_debugfs_create_stream_files(xhci, vdev, ep_index);
3610 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info);
3611 vdev->eps[ep_index].stream_info = NULL;
3615 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS;
3616 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS;
3617 xhci_endpoint_zero(xhci, vdev, eps[i]);
3635 struct xhci_virt_device *vdev;
3643 vdev = xhci->devs[udev->slot_id];
3659 command = vdev->eps[ep_index].stream_info->free_streams_command;
3677 vdev->out_ctx, ep_index);
3679 &vdev->eps[ep_index]);
3682 vdev->out_ctx, ctrl_ctx,
3701 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info);
3702 vdev->eps[ep_index].stream_info = NULL;
3706 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS;
3707 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS;
4038 struct xhci_virt_device *vdev;
4093 vdev = xhci->devs[slot_id];
4094 slot_ctx = xhci_get_slot_ctx(xhci, vdev->out_ctx);
5104 struct xhci_virt_device *vdev;
5116 vdev = xhci->devs[hdev->slot_id];
5117 if (!vdev) {
5136 xhci_alloc_tt_info(xhci, vdev, hdev, tt, GFP_ATOMIC)) {
5143 xhci_slot_copy(xhci, config_cmd->in_ctx, vdev->out_ctx);