Lines Matching refs:command

94 	cmd = readl(&xhci->op_regs->command);  in xhci_quiesce()
96 writel(cmd, &xhci->op_regs->command); in xhci_quiesce()
132 temp = readl(&xhci->op_regs->command); in xhci_start()
136 writel(temp, &xhci->op_regs->command); in xhci_start()
164 u32 command; in xhci_reset() local
175 command = readl(&xhci->op_regs->command); in xhci_reset()
176 command |= CMD_RESET; in xhci_reset()
177 writel(command, &xhci->op_regs->command); in xhci_reset()
189 ret = xhci_handshake(&xhci->op_regs->command, in xhci_reset()
642 temp = readl(&xhci->op_regs->command); in xhci_run()
646 writel(temp, &xhci->op_regs->command); in xhci_run()
656 struct xhci_command *command; in xhci_run() local
657 command = xhci_alloc_command(xhci, false, false, GFP_KERNEL); in xhci_run()
658 if (!command) in xhci_run()
660 xhci_queue_vendor_command(xhci, command, 0, 0, 0, in xhci_run()
781 xhci->s3.command = readl(&xhci->op_regs->command); in xhci_save_registers()
794 writel(xhci->s3.command, &xhci->op_regs->command); in xhci_restore_registers()
914 u32 command; in xhci_suspend() local
938 command = readl(&xhci->op_regs->command); in xhci_suspend()
939 command &= ~CMD_RUN; in xhci_suspend()
940 writel(command, &xhci->op_regs->command); in xhci_suspend()
957 command = readl(&xhci->op_regs->command); in xhci_suspend()
958 command |= CMD_CSS; in xhci_suspend()
959 writel(command, &xhci->op_regs->command); in xhci_suspend()
996 u32 command, temp = 0, status; in xhci_resume() local
1024 command = readl(&xhci->op_regs->command); in xhci_resume()
1025 command |= CMD_CRS; in xhci_resume()
1026 writel(command, &xhci->op_regs->command); in xhci_resume()
1095 command = readl(&xhci->op_regs->command); in xhci_resume()
1096 command |= CMD_RUN; in xhci_resume()
1097 writel(command, &xhci->op_regs->command); in xhci_resume()
1246 struct usb_device *udev, struct xhci_command *command,
1261 struct xhci_command *command; in xhci_check_maxpacket() local
1287 command = xhci_alloc_command(xhci, false, true, GFP_KERNEL); in xhci_check_maxpacket()
1288 if (!command) in xhci_check_maxpacket()
1291 command->in_ctx = xhci->devs[slot_id]->in_ctx; in xhci_check_maxpacket()
1292 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_maxpacket()
1303 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1311 xhci_dbg_ctx(xhci, command->in_ctx, ep_index); in xhci_check_maxpacket()
1315 ret = xhci_configure_endpoint(xhci, urb->dev, command, in xhci_check_maxpacket()
1323 kfree(command->completion); in xhci_check_maxpacket()
1324 kfree(command); in xhci_check_maxpacket()
1550 struct xhci_command *command; in xhci_urb_dequeue() local
1622 command = xhci_alloc_command(xhci, false, false, GFP_ATOMIC); in xhci_urb_dequeue()
1623 if (!command) { in xhci_urb_dequeue()
1632 xhci_queue_stop_endpoint(xhci, command, urb->dev->slot_id, in xhci_urb_dequeue()
2647 struct xhci_command *command, in xhci_configure_endpoint() argument
2655 if (!command) in xhci_configure_endpoint()
2661 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_configure_endpoint()
2678 xhci_reserve_bandwidth(xhci, virt_dev, command->in_ctx)) { in xhci_configure_endpoint()
2687 ret = xhci_queue_configure_endpoint(xhci, command, in xhci_configure_endpoint()
2688 command->in_ctx->dma, in xhci_configure_endpoint()
2691 ret = xhci_queue_evaluate_context(xhci, command, in xhci_configure_endpoint()
2692 command->in_ctx->dma, in xhci_configure_endpoint()
2706 wait_for_completion(command->completion); in xhci_configure_endpoint()
2710 &command->status); in xhci_configure_endpoint()
2713 &command->status); in xhci_configure_endpoint()
2761 struct xhci_command *command; in xhci_check_bandwidth() local
2774 command = xhci_alloc_command(xhci, false, true, GFP_KERNEL); in xhci_check_bandwidth()
2775 if (!command) in xhci_check_bandwidth()
2778 command->in_ctx = virt_dev->in_ctx; in xhci_check_bandwidth()
2781 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_bandwidth()
2814 ret = xhci_configure_endpoint(xhci, udev, command, in xhci_check_bandwidth()
2851 kfree(command->completion); in xhci_check_bandwidth()
2852 kfree(command); in xhci_check_bandwidth()
3327 struct xhci_command *command; in xhci_free_streams() local
3350 command = vdev->eps[ep_index].stream_info->free_streams_command; in xhci_free_streams()
3351 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_free_streams()
3363 ep_ctx = xhci_get_ep_ctx(xhci, command->in_ctx, ep_index); in xhci_free_streams()
3367 xhci_endpoint_copy(xhci, command->in_ctx, in xhci_free_streams()
3372 xhci_setup_input_ctx_for_config_ep(xhci, command->in_ctx, in xhci_free_streams()
3380 ret = xhci_configure_endpoint(xhci, udev, command, in xhci_free_streams()
3622 struct xhci_command *command; in xhci_free_dev() local
3624 command = xhci_alloc_command(xhci, false, false, GFP_KERNEL); in xhci_free_dev()
3625 if (!command) in xhci_free_dev()
3643 kfree(command); in xhci_free_dev()
3662 kfree(command); in xhci_free_dev()
3666 if (xhci_queue_slot_control(xhci, command, TRB_DISABLE_SLOT, in xhci_free_dev()
3713 struct xhci_command *command; in xhci_alloc_dev() local
3715 command = xhci_alloc_command(xhci, false, false, GFP_KERNEL); in xhci_alloc_dev()
3716 if (!command) in xhci_alloc_dev()
3722 command->completion = &xhci->addr_dev; in xhci_alloc_dev()
3723 ret = xhci_queue_slot_control(xhci, command, TRB_ENABLE_SLOT, 0); in xhci_alloc_dev()
3728 kfree(command); in xhci_alloc_dev()
3734 wait_for_completion(command->completion); in xhci_alloc_dev()
3738 if (!slot_id || command->status != COMP_SUCCESS) { in xhci_alloc_dev()
3743 kfree(command); in xhci_alloc_dev()
3779 kfree(command); in xhci_alloc_dev()
3787 command->completion = NULL; in xhci_alloc_dev()
3788 command->status = 0; in xhci_alloc_dev()
3789 if (!xhci_queue_slot_control(xhci, command, TRB_DISABLE_SLOT, in xhci_alloc_dev()
3813 struct xhci_command *command = NULL; in xhci_setup_device() local
3850 command = xhci_alloc_command(xhci, false, false, GFP_KERNEL); in xhci_setup_device()
3851 if (!command) { in xhci_setup_device()
3856 command->in_ctx = virt_dev->in_ctx; in xhci_setup_device()
3857 command->completion = &xhci->addr_dev; in xhci_setup_device()
3886 ret = xhci_queue_address_device(xhci, command, virt_dev->in_ctx->dma, in xhci_setup_device()
3898 wait_for_completion(command->completion); in xhci_setup_device()
3904 switch (command->status) { in xhci_setup_device()
3932 act, command->status); in xhci_setup_device()
3975 kfree(command); in xhci_setup_device()
4019 struct xhci_command *command; in xhci_change_max_exit_latency() local
4041 command = xhci->lpm_command; in xhci_change_max_exit_latency()
4042 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_change_max_exit_latency()
4050 xhci_slot_copy(xhci, command->in_ctx, virt_dev->out_ctx); in xhci_change_max_exit_latency()
4054 slot_ctx = xhci_get_slot_ctx(xhci, command->in_ctx); in xhci_change_max_exit_latency()
4062 xhci_dbg_ctx(xhci, command->in_ctx, 0); in xhci_change_max_exit_latency()
4065 ret = xhci_configure_endpoint(xhci, udev, command, in xhci_change_max_exit_latency()