Lines Matching refs:cmd_ring
358 if ((xhci->cmd_ring->dequeue != xhci->cmd_ring->enqueue) && in xhci_handle_stopped_cmd_ring()
369 struct xhci_segment *new_seg = xhci->cmd_ring->deq_seg; in xhci_abort_cmd_ring()
370 union xhci_trb *new_deq = xhci->cmd_ring->dequeue; in xhci_abort_cmd_ring()
391 xhci_write_64(xhci, crcr | CMD_RING_ABORT, &xhci->op_regs->cmd_ring); in xhci_abort_cmd_ring()
399 ret = xhci_handshake(&xhci->op_regs->cmd_ring, in xhci_abort_cmd_ring()
1610 hw_ring_state = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_handle_command_timeout()
1659 cmd_trb = xhci->cmd_ring->dequeue; in handle_cmd_completion()
1661 trace_xhci_handle_command(xhci->cmd_ring, &cmd_trb->generic); in handle_cmd_completion()
1663 cmd_dequeue_dma = xhci_trb_virt_to_dma(xhci->cmd_ring->deq_seg, in handle_cmd_completion()
1687 if (cmd->command_trb != xhci->cmd_ring->dequeue) { in handle_cmd_completion()
1776 inc_deq(xhci, xhci->cmd_ring); in handle_cmd_completion()
3181 if (ep_ring == xhci->cmd_ring) { in prepare_ring()
4273 ret = prepare_ring(xhci, xhci->cmd_ring, EP_STATE_RUNNING, in queue_command()
4283 cmd->command_trb = xhci->cmd_ring->enqueue; in queue_command()
4293 queue_trb(xhci, xhci->cmd_ring, false, field1, field2, field3, in queue_command()
4294 field4 | xhci->cmd_ring->cycle_state); in queue_command()