Lines Matching refs:vdev
1648 struct xhci_virt_device *vdev;
1661 vdev = xhci->devs[urb->dev->slot_id];
1663 if (!vdev || !urb_priv)
1667 ep = &vdev->eps[ep_index];
2859 struct xhci_virt_device *vdev, int i)
2861 struct xhci_virt_ep *ep = &vdev->eps[i];
3022 struct xhci_virt_device *vdev;
3036 vdev = xhci->devs[udev->slot_id];
3037 if (!vdev)
3041 ep = &vdev->eps[ep_index];
3075 struct xhci_virt_device *vdev;
3088 vdev = xhci->devs[udev->slot_id];
3091 * vdev may be lost due to xHC restore error and re-initialization
3092 * during S3/S4 resume. A new vdev will be allocated later by
3095 if (!udev->slot_id || !vdev)
3098 ep = &vdev->eps[ep_index];
3171 xhci_setup_input_ctx_for_config_ep(xhci, cfg_cmd->in_ctx, vdev->out_ctx,
3173 xhci_endpoint_copy(xhci, cfg_cmd->in_ctx, vdev->out_ctx, ep_index);
3360 struct xhci_virt_device *vdev;
3418 vdev = xhci->devs[udev->slot_id];
3424 vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS;
3439 vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci,
3443 if (!vdev->eps[ep_index].stream_info)
3458 vdev->out_ctx, ep_index);
3460 vdev->eps[ep_index].stream_info);
3466 vdev->out_ctx, ctrl_ctx,
3483 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS;
3486 vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS;
3493 xhci_debugfs_create_stream_files(xhci, vdev, ep_index);
3502 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info);
3503 vdev->eps[ep_index].stream_info = NULL;
3507 vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS;
3508 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS;
3509 xhci_endpoint_zero(xhci, vdev, eps[i]);
3527 struct xhci_virt_device *vdev;
3535 vdev = xhci->devs[udev->slot_id];
3551 command = vdev->eps[ep_index].stream_info->free_streams_command;
3569 vdev->out_ctx, ep_index);
3571 &vdev->eps[ep_index]);
3574 vdev->out_ctx, ctrl_ctx,
3593 xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info);
3594 vdev->eps[ep_index].stream_info = NULL;
3598 vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS;
3599 vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS;
3928 struct xhci_virt_device *vdev;
3984 vdev = xhci->devs[slot_id];
3985 slot_ctx = xhci_get_slot_ctx(xhci, vdev->out_ctx);
4976 struct xhci_virt_device *vdev;
4988 vdev = xhci->devs[hdev->slot_id];
4989 if (!vdev) {
5008 xhci_alloc_tt_info(xhci, vdev, hdev, tt, GFP_ATOMIC)) {
5015 xhci_slot_copy(xhci, config_cmd->in_ctx, vdev->out_ctx);