Lines Matching refs:op_regs
82 halted = xhci_readl(xhci, &xhci->op_regs->status) & STS_HALT; in xhci_quiesce()
86 cmd = xhci_readl(xhci, &xhci->op_regs->command); in xhci_quiesce()
88 xhci_writel(xhci, cmd, &xhci->op_regs->command); in xhci_quiesce()
105 ret = handshake(xhci, &xhci->op_regs->status, in xhci_halt()
120 temp = xhci_readl(xhci, &xhci->op_regs->command); in xhci_start()
124 xhci_writel(xhci, temp, &xhci->op_regs->command); in xhci_start()
130 ret = handshake(xhci, &xhci->op_regs->status, in xhci_start()
154 state = xhci_readl(xhci, &xhci->op_regs->status); in xhci_reset()
161 command = xhci_readl(xhci, &xhci->op_regs->command); in xhci_reset()
163 xhci_writel(xhci, command, &xhci->op_regs->command); in xhci_reset()
165 ret = handshake(xhci, &xhci->op_regs->command, in xhci_reset()
175 return handshake(xhci, &xhci->op_regs->status, STS_CNR, 0, 250 * 1000); in xhci_reset()
346 temp = xhci_readl(xhci, &xhci->op_regs->status); in xhci_event_ring_work()
482 temp = xhci_readl(xhci, &xhci->op_regs->command); in xhci_run()
486 xhci_writel(xhci, temp, &xhci->op_regs->command); in xhci_run()
557 temp = xhci_readl(xhci, &xhci->op_regs->status); in xhci_stop()
558 xhci_writel(xhci, temp & ~STS_EINT, &xhci->op_regs->status); in xhci_stop()
567 xhci_readl(xhci, &xhci->op_regs->status)); in xhci_stop()
590 xhci_readl(xhci, &xhci->op_regs->status)); in xhci_shutdown()
596 xhci->s3.command = xhci_readl(xhci, &xhci->op_regs->command); in xhci_save_registers()
597 xhci->s3.dev_nt = xhci_readl(xhci, &xhci->op_regs->dev_notification); in xhci_save_registers()
598 xhci->s3.dcbaa_ptr = xhci_read_64(xhci, &xhci->op_regs->dcbaa_ptr); in xhci_save_registers()
599 xhci->s3.config_reg = xhci_readl(xhci, &xhci->op_regs->config_reg); in xhci_save_registers()
609 xhci_writel(xhci, xhci->s3.command, &xhci->op_regs->command); in xhci_restore_registers()
610 xhci_writel(xhci, xhci->s3.dev_nt, &xhci->op_regs->dev_notification); in xhci_restore_registers()
611 xhci_write_64(xhci, xhci->s3.dcbaa_ptr, &xhci->op_regs->dcbaa_ptr); in xhci_restore_registers()
612 xhci_writel(xhci, xhci->s3.config_reg, &xhci->op_regs->config_reg); in xhci_restore_registers()
624 val_64 = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_set_cmd_ring_deq()
632 xhci_write_64(xhci, val_64, &xhci->op_regs->cmd_ring); in xhci_set_cmd_ring_deq()
698 command = xhci_readl(xhci, &xhci->op_regs->command); in xhci_suspend()
700 xhci_writel(xhci, command, &xhci->op_regs->command); in xhci_suspend()
701 if (handshake(xhci, &xhci->op_regs->status, in xhci_suspend()
713 command = xhci_readl(xhci, &xhci->op_regs->command); in xhci_suspend()
715 xhci_writel(xhci, command, &xhci->op_regs->command); in xhci_suspend()
716 if (handshake(xhci, &xhci->op_regs->status, STS_SAVE, 0, 10*100)) { in xhci_suspend()
763 command = xhci_readl(xhci, &xhci->op_regs->command); in xhci_resume()
765 xhci_writel(xhci, command, &xhci->op_regs->command); in xhci_resume()
766 if (handshake(xhci, &xhci->op_regs->status, in xhci_resume()
772 temp = xhci_readl(xhci, &xhci->op_regs->status); in xhci_resume()
794 temp = xhci_readl(xhci, &xhci->op_regs->status); in xhci_resume()
795 xhci_writel(xhci, temp & ~STS_EINT, &xhci->op_regs->status); in xhci_resume()
804 xhci_readl(xhci, &xhci->op_regs->status)); in xhci_resume()
838 command = xhci_readl(xhci, &xhci->op_regs->command); in xhci_resume()
840 xhci_writel(xhci, command, &xhci->op_regs->command); in xhci_resume()
841 handshake(xhci, &xhci->op_regs->status, STS_HALT, in xhci_resume()
1225 temp = xhci_readl(xhci, &xhci->op_regs->status); in xhci_urb_dequeue()
2443 state = xhci_readl(xhci, &xhci->op_regs->status); in xhci_free_dev()
2609 temp_64 = xhci_read_64(xhci, &xhci->op_regs->dcbaa_ptr); in xhci_address_device()