Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/usb/gadget/udc/
Dmv_udc_core.c96 epctrlx = readl(&udc->op_regs->epctrlx[0]); in ep0_reset()
108 writel(epctrlx, &udc->op_regs->epctrlx[0]); in ep0_reset()
118 epctrlx = readl(&udc->op_regs->epctrlx[0]); in ep0_stall()
120 writel(epctrlx, &udc->op_regs->epctrlx[0]); in ep0_stall()
196 while (readl(&udc->op_regs->epstatus) & bit_pos) in process_ep_req()
281 if (readl(&udc->op_regs->epprime) & bit_pos) in queue_dtd()
287 usbcmd = readl(&udc->op_regs->usbcmd); in queue_dtd()
289 writel(usbcmd, &udc->op_regs->usbcmd); in queue_dtd()
292 epstatus = readl(&udc->op_regs->epstatus) & bit_pos; in queue_dtd()
301 if (readl(&udc->op_regs->usbcmd) in queue_dtd()
[all …]
Dmv_u3d_core.c275 iowrite32(tmp, &u3d->op_regs->doorbell); in mv_u3d_queue_trb()
1038 tmp = ioread32(&u3d->op_regs->usbcmd); in mv_u3d_controller_stop()
1040 iowrite32(tmp, &u3d->op_regs->usbcmd); in mv_u3d_controller_stop()
1042 ioread32(&u3d->op_regs->usbcmd)); in mv_u3d_controller_stop()
1066 iowrite32(MV_U3D_CMD_RUN_STOP, &u3d->op_regs->usbcmd); in mv_u3d_controller_start()
1068 ioread32(&u3d->op_regs->usbcmd)); in mv_u3d_controller_start()
1077 tmp = ioread32(&u3d->op_regs->usbcmd); in mv_u3d_controller_reset()
1079 iowrite32(tmp, &u3d->op_regs->usbcmd); in mv_u3d_controller_reset()
1082 iowrite32(MV_U3D_CMD_CTRL_RESET, &u3d->op_regs->usbcmd); in mv_u3d_controller_reset()
1086 while (ioread32(&u3d->op_regs->usbcmd) & MV_U3D_CMD_CTRL_RESET) { in mv_u3d_controller_reset()
[all …]
Dmv_udc.h182 struct mv_op_regs __iomem *op_regs; member
Dmv_u3d.h252 struct mv_u3d_op_regs __iomem *op_regs; member
/linux-4.1.27/drivers/usb/phy/
Dphy-mv-usb.c151 tmp = readl(&mvotg->op_regs->usbcmd); in mv_otg_reset()
153 writel(tmp, &mvotg->op_regs->usbcmd); in mv_otg_reset()
156 writel(USBCMD_CTRL_RESET, &mvotg->op_regs->usbcmd); in mv_otg_reset()
159 while (readl(&mvotg->op_regs->usbcmd) & USBCMD_CTRL_RESET) { in mv_otg_reset()
169 writel(0x0, &mvotg->op_regs->usbintr); in mv_otg_reset()
170 tmp = readl(&mvotg->op_regs->usbsts); in mv_otg_reset()
171 writel(tmp, &mvotg->op_regs->usbsts); in mv_otg_reset()
197 otgsc = readl(&mvotg->op_regs->otgsc); in mv_otg_init_irq()
199 writel(otgsc, &mvotg->op_regs->otgsc); in mv_otg_init_irq()
304 otgsc = readl(&mvotg->op_regs->otgsc); in mv_otg_update_inputs()
[all …]
Dphy-mv-usb.h145 struct mv_otg_regs __iomem *op_regs; member
/linux-4.1.27/drivers/usb/host/
Dxhci.c90 halted = readl(&xhci->op_regs->status) & STS_HALT; in xhci_quiesce()
94 cmd = readl(&xhci->op_regs->command); in xhci_quiesce()
96 writel(cmd, &xhci->op_regs->command); in xhci_quiesce()
113 ret = xhci_handshake(&xhci->op_regs->status, in xhci_halt()
132 temp = readl(&xhci->op_regs->command); in xhci_start()
136 writel(temp, &xhci->op_regs->command); in xhci_start()
142 ret = xhci_handshake(&xhci->op_regs->status, in xhci_start()
168 state = readl(&xhci->op_regs->status); in xhci_reset()
175 command = readl(&xhci->op_regs->command); in xhci_reset()
177 writel(command, &xhci->op_regs->command); in xhci_reset()
[all …]
Dehci-mv.c30 void __iomem *op_regs; member
192 ehci_mv->op_regs = in mv_ehci_probe()
197 hcd->regs = ehci_mv->op_regs; in mv_ehci_probe()
247 pdata->private_init(ehci_mv->op_regs, ehci_mv->phy_regs); in mv_ehci_probe()
Dxhci-dbg.c45 xhci_dbg(xhci, "// xHCI operational registers at %p:\n", xhci->op_regs); in xhci_dbg_regs()
113 temp = readl(&xhci->op_regs->command); in xhci_print_command_reg()
131 temp = readl(&xhci->op_regs->status); in xhci_print_status()
143 xhci_dbg(xhci, "xHCI operational registers at %p:\n", xhci->op_regs); in xhci_print_op_regs()
161 addr = &xhci->op_regs->port_status_base; in xhci_print_ports()
415 val = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_dbg_cmd_ptrs()
Dxhci-hub.c1211 temp = readl(&xhci->op_regs->command); in xhci_bus_resume()
1213 writel(temp, &xhci->op_regs->command); in xhci_bus_resume()
1262 (void) readl(&xhci->op_regs->command); in xhci_bus_resume()
1266 temp = readl(&xhci->op_regs->command); in xhci_bus_resume()
1268 writel(temp, &xhci->op_regs->command); in xhci_bus_resume()
1269 temp = readl(&xhci->op_regs->command); in xhci_bus_resume()
Dxhci-mem.c2282 &xhci->op_regs->port_status_base + in xhci_setup_port_arrays()
2303 &xhci->op_regs->port_status_base + in xhci_setup_port_arrays()
2333 page_size = readl(&xhci->op_regs->page_size); in xhci_mem_init()
2359 val2 = readl(&xhci->op_regs->config_reg); in xhci_mem_init()
2363 writel(val, &xhci->op_regs->config_reg); in xhci_mem_init()
2378 xhci_write_64(xhci, dma, &xhci->op_regs->dcbaa_ptr); in xhci_mem_init()
2422 val_64 = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_mem_init()
2428 xhci_write_64(xhci, val_64, &xhci->op_regs->cmd_ring); in xhci_mem_init()
2541 temp = readl(&xhci->op_regs->dev_notification); in xhci_mem_init()
2544 writel(temp, &xhci->op_regs->dev_notification); in xhci_mem_init()
Dxhci-ring.c290 temp_64 = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_abort_cmd_ring()
293 &xhci->op_regs->cmd_ring); in xhci_abort_cmd_ring()
302 ret = xhci_handshake(&xhci->op_regs->cmd_ring, in xhci_abort_cmd_ring()
307 &xhci->op_regs->cmd_ring); in xhci_abort_cmd_ring()
309 ret = xhci_handshake(&xhci->op_regs->cmd_ring, in xhci_abort_cmd_ring()
1267 hw_ring_state = xhci_read_64(xhci, &xhci->op_regs->cmd_ring); in xhci_handle_command_timeout()
1564 temp1 = readl(&xhci->op_regs->command); in handle_port_status()
2657 status = readl(&xhci->op_regs->status); in xhci_irq()
2679 writel(status, &xhci->op_regs->status); in xhci_irq()
Dxhci.h1452 struct xhci_op_regs __iomem *op_regs; member