Lines Matching refs:ret

439 	int ret;
466 ret = xhci_handshake_check_state(xhci, &xhci->op_regs->cmd_ring,
469 if (ret < 0) {
470 xhci_err(xhci, "Abort failed to stop command ring: %d\n", ret);
473 return ret;
482 ret = wait_for_completion_timeout(&xhci->cmd_ring_stop_completion,
485 if (!ret) {
650 int ret;
739 ret = queue_command(xhci, cmd,
744 if (ret < 0) {
746 return ret;
923 int ret = 0;
927 ret = -ENOMEM;
935 ret = xhci_queue_reset_ep(xhci, command, slot_id, ep_index, reset_type);
937 if (ret)
939 slot_id, ep_index, ret);
940 return ret;
3136 irqreturn_t ret = IRQ_HANDLED;
3148 ret = IRQ_NONE;
3176 return ret;
3315 int ret;
3329 ret = prepare_ring(xhci, ep_ring, GET_EP_CTX_STATE(ep_ctx),
3331 if (ret)
3332 return ret;
3341 ret = usb_hcd_link_urb_to_ep(bus_to_hcd(urb->dev->bus), urb);
3342 if (unlikely(ret))
3343 return ret;
3607 int sent_len, ret;
3628 ret = prepare_transfer(xhci, xhci->devs[slot_id],
3631 if (unlikely(ret < 0))
3632 return ret;
3737 ret = prepare_transfer(xhci, xhci->devs[slot_id],
3759 int ret;
3787 ret = prepare_transfer(xhci, xhci->devs[slot_id],
3790 if (ret < 0)
3791 return ret;
3951 int start_frame, ist, ret = 0;
4000 ret = -EINVAL;
4004 ret = -EINVAL;
4006 ret = -EINVAL;
4010 if (ret == -EINVAL || start_frame == start_frame_id) {
4017 ret = 0;
4021 if (ret) {
4026 return ret;
4064 int running_total, trb_buff_len, td_len, td_remain_len, ret;
4108 ret = prepare_transfer(xhci, xhci->devs[slot_id], ep_index,
4110 if (ret < 0) {
4112 return ret;
4198 ret = -EINVAL;
4236 return ret;
4254 int ret;
4271 ret = prepare_ring(xhci, ep_ring, GET_EP_CTX_STATE(ep_ctx),
4273 if (ret)
4274 return ret;
4335 int ret;
4346 ret = prepare_ring(xhci, xhci->cmd_ring, EP_STATE_RUNNING,
4348 if (ret < 0) {
4353 return ret;