Home
last modified time | relevance | path

Searched refs:op_regs (Results 1 – 18 of 18) sorted by relevance

/linux-6.12.1/drivers/usb/gadget/udc/
Dmv_udc_core.c90 epctrlx = readl(&udc->op_regs->epctrlx[0]); in ep0_reset()
102 writel(epctrlx, &udc->op_regs->epctrlx[0]); in ep0_reset()
112 epctrlx = readl(&udc->op_regs->epctrlx[0]); in ep0_stall()
114 writel(epctrlx, &udc->op_regs->epctrlx[0]); in ep0_stall()
189 while (readl(&udc->op_regs->epstatus) & bit_pos) in process_ep_req()
274 if (readl(&udc->op_regs->epprime) & bit_pos) in queue_dtd()
280 usbcmd = readl(&udc->op_regs->usbcmd); in queue_dtd()
282 writel(usbcmd, &udc->op_regs->usbcmd); in queue_dtd()
285 epstatus = readl(&udc->op_regs->epstatus) & bit_pos; in queue_dtd()
294 if (readl(&udc->op_regs->usbcmd) in queue_dtd()
[all …]
Dmv_u3d_core.c262 iowrite32(tmp, &u3d->op_regs->doorbell); in mv_u3d_queue_trb()
1027 tmp = ioread32(&u3d->op_regs->usbcmd); in mv_u3d_controller_stop()
1029 iowrite32(tmp, &u3d->op_regs->usbcmd); in mv_u3d_controller_stop()
1031 ioread32(&u3d->op_regs->usbcmd)); in mv_u3d_controller_stop()
1055 iowrite32(MV_U3D_CMD_RUN_STOP, &u3d->op_regs->usbcmd); in mv_u3d_controller_start()
1057 ioread32(&u3d->op_regs->usbcmd)); in mv_u3d_controller_start()
1066 tmp = ioread32(&u3d->op_regs->usbcmd); in mv_u3d_controller_reset()
1068 iowrite32(tmp, &u3d->op_regs->usbcmd); in mv_u3d_controller_reset()
1071 iowrite32(MV_U3D_CMD_CTRL_RESET, &u3d->op_regs->usbcmd); in mv_u3d_controller_reset()
1075 while (ioread32(&u3d->op_regs->usbcmd) & MV_U3D_CMD_CTRL_RESET) { in mv_u3d_controller_reset()
[all …]
Dmv_udc.h178 struct mv_op_regs __iomem *op_regs; member
Dmv_u3d.h249 struct mv_u3d_op_regs __iomem *op_regs; member
/linux-6.12.1/drivers/usb/phy/
Dphy-mv-usb.c143 tmp = readl(&mvotg->op_regs->usbcmd); in mv_otg_reset()
145 writel(tmp, &mvotg->op_regs->usbcmd); in mv_otg_reset()
148 writel(USBCMD_CTRL_RESET, &mvotg->op_regs->usbcmd); in mv_otg_reset()
150 ret = readl_poll_timeout_atomic(&mvotg->op_regs->usbcmd, tmp, in mv_otg_reset()
158 writel(0x0, &mvotg->op_regs->usbintr); in mv_otg_reset()
159 tmp = readl(&mvotg->op_regs->usbsts); in mv_otg_reset()
160 writel(tmp, &mvotg->op_regs->usbsts); in mv_otg_reset()
186 otgsc = readl(&mvotg->op_regs->otgsc); in mv_otg_init_irq()
188 writel(otgsc, &mvotg->op_regs->otgsc); in mv_otg_init_irq()
293 otgsc = readl(&mvotg->op_regs->otgsc); in mv_otg_update_inputs()
[all …]
Dphy-mv-usb.h141 struct mv_otg_regs __iomem *op_regs; member
/linux-6.12.1/drivers/usb/host/
Dxhci.c117 halted = readl(&xhci->op_regs->status) & STS_HALT; in xhci_quiesce()
121 cmd = readl(&xhci->op_regs->command); in xhci_quiesce()
123 writel(cmd, &xhci->op_regs->command); in xhci_quiesce()
141 ret = xhci_handshake(&xhci->op_regs->status, in xhci_halt()
162 temp = readl(&xhci->op_regs->command); in xhci_start()
166 writel(temp, &xhci->op_regs->command); in xhci_start()
172 ret = xhci_handshake(&xhci->op_regs->status, in xhci_start()
200 state = readl(&xhci->op_regs->status); in xhci_reset()
213 command = readl(&xhci->op_regs->command); in xhci_reset()
215 writel(command, &xhci->op_regs->command); in xhci_reset()
[all …]
Dehci-mv.c35 void __iomem *op_regs; member
160 ehci_mv->op_regs = in mv_ehci_probe()
165 hcd->regs = ehci_mv->op_regs; in mv_ehci_probe()
Dxhci-mem.c2169 xhci->hw_ports[i].addr = &xhci->op_regs->port_status_base + in xhci_setup_port_arrays()
2397 page_size = readl(&xhci->op_regs->page_size); in xhci_mem_init()
2419 val2 = readl(&xhci->op_regs->config_reg); in xhci_mem_init()
2423 writel(val, &xhci->op_regs->config_reg); in xhci_mem_init()
2437 xhci_write_64(xhci, dma, &xhci->op_regs->dcbaa_ptr); in xhci_mem_init()
2485 val_64 = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_mem_init()
2491 xhci_write_64(xhci, val_64, &xhci->op_regs->cmd_ring); in xhci_mem_init()
2538 temp = readl(&xhci->op_regs->dev_notification); in xhci_mem_init()
2541 writel(temp, &xhci->op_regs->dev_notification); in xhci_mem_init()
Dxhci-tegra.c983 struct xhci_op_regs __iomem *op_regs; in tegra_xusb_wait_for_falcon() local
988 op_regs = tegra->regs + HC_LENGTH(readl(&cap_regs->hc_capbase)); in tegra_xusb_wait_for_falcon()
990 ret = readl_poll_timeout(&op_regs->status, value, !(value & STS_CNR), 1000, 200000); in tegra_xusb_wait_for_falcon()
2176 usbcmd = readl(&xhci->op_regs->command); in tegra_xusb_enter_elpg()
2178 writel(usbcmd, &xhci->op_regs->command); in tegra_xusb_enter_elpg()
2223 usbcmd = readl(&xhci->op_regs->command); in tegra_xusb_enter_elpg()
2225 writel(usbcmd, &xhci->op_regs->command); in tegra_xusb_enter_elpg()
2295 usbcmd = readl(&xhci->op_regs->command); in tegra_xusb_exit_elpg()
2297 writel(usbcmd, &xhci->op_regs->command); in tegra_xusb_exit_elpg()
Dxhci-hub.c1892 temp = readl(&xhci->op_regs->command); in xhci_bus_resume()
1894 writel(temp, &xhci->op_regs->command); in xhci_bus_resume()
1966 (void) readl(&xhci->op_regs->command); in xhci_bus_resume()
1970 temp = readl(&xhci->op_regs->command); in xhci_bus_resume()
1972 writel(temp, &xhci->op_regs->command); in xhci_bus_resume()
1973 temp = readl(&xhci->op_regs->command); in xhci_bus_resume()
Dxhci-ring.c454 xhci_write_64(xhci, crcr | CMD_RING_ABORT, &xhci->op_regs->cmd_ring); in xhci_abort_cmd_ring()
462 ret = xhci_handshake_check_state(xhci, &xhci->op_regs->cmd_ring, in xhci_abort_cmd_ring()
1645 usbsts = readl(&xhci->op_regs->status); in xhci_handle_command_timeout()
1668 hw_ring_state = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_handle_command_timeout()
1958 cmd_reg = readl(&xhci->op_regs->command); in handle_port_status()
3098 status = readl(&xhci->op_regs->status); in xhci_irq()
3126 writel(status, &xhci->op_regs->status); in xhci_irq()
Dxhci.h1487 struct xhci_op_regs __iomem *op_regs; member
/linux-6.12.1/drivers/usb/cdns3/
Dcdnsp-gadget.c180 halted = readl(&pdev->op_regs->status) & STS_HALT; in cdnsp_quiesce()
184 cmd = readl(&pdev->op_regs->command); in cdnsp_quiesce()
186 writel(cmd, &pdev->op_regs->command); in cdnsp_quiesce()
205 ret = readl_poll_timeout_atomic(&pdev->op_regs->status, val, in cdnsp_halt()
237 temp = readl(&pdev->op_regs->command); in cdnsp_start()
239 writel(temp, &pdev->op_regs->command); in cdnsp_start()
247 ret = readl_poll_timeout_atomic(&pdev->op_regs->status, temp, in cdnsp_start()
271 temp = readl(&pdev->op_regs->status); in cdnsp_reset()
283 command = readl(&pdev->op_regs->command); in cdnsp_reset()
285 writel(command, &pdev->op_regs->command); in cdnsp_reset()
[all …]
Dhost.c38 value = readl(&xhci->op_regs->command); in xhci_cdns3_plat_start()
40 writel(value, &xhci->op_regs->command); in xhci_cdns3_plat_start()
Dcdnsp-mem.c1191 (&pdev->op_regs->port_reg_base + NUM_PORT_REGS * in cdnsp_setup_port_arrays()
1195 (&pdev->op_regs->port_reg_base + NUM_PORT_REGS * in cdnsp_setup_port_arrays()
1223 val = readl(&pdev->op_regs->config_reg); in cdnsp_mem_init()
1225 writel(val, &pdev->op_regs->config_reg); in cdnsp_mem_init()
1238 cdnsp_write_64(dma, &pdev->op_regs->dcbaa_ptr); in cdnsp_mem_init()
1266 val_64 = cdnsp_read_64(&pdev->op_regs->cmd_ring); in cdnsp_mem_init()
1270 cdnsp_write_64(val_64, &pdev->op_regs->cmd_ring); in cdnsp_mem_init()
Dcdnsp-ring.c825 cmd_regs = readl(&pdev->op_regs->command); in cdnsp_handle_port_status()
1575 status = readl(&pdev->op_regs->status); in cdnsp_irq_handler()
1585 writel(status | STS_EINT, &pdev->op_regs->status); in cdnsp_irq_handler()
Dcdnsp-gadget.h1402 struct cdnsp_op_regs __iomem *op_regs; member