Lines Matching refs:op_regs

107 			readl(&dev->op_regs->extsts));  in print_all_registers()
109 readl(&dev->op_regs->extintr)); in print_all_registers()
111 readl(&dev->op_regs->usbcmd)); in print_all_registers()
113 readl(&dev->op_regs->usbsts)); in print_all_registers()
115 readl(&dev->op_regs->usbintr)); in print_all_registers()
117 readl(&dev->op_regs->frindex)); in print_all_registers()
119 readl(&dev->op_regs->ctrldssegment)); in print_all_registers()
121 readl(&dev->op_regs->deviceaddr)); in print_all_registers()
123 readl(&dev->op_regs->endpointlistaddr)); in print_all_registers()
125 readl(&dev->op_regs->ttctrl)); in print_all_registers()
127 readl(&dev->op_regs->burstsize)); in print_all_registers()
129 readl(&dev->op_regs->txfilltuning)); in print_all_registers()
131 readl(&dev->op_regs->txttfilltuning)); in print_all_registers()
133 readl(&dev->op_regs->ic_usb)); in print_all_registers()
135 readl(&dev->op_regs->ulpi_viewport)); in print_all_registers()
137 readl(&dev->op_regs->configflag)); in print_all_registers()
139 readl(&dev->op_regs->portsc1)); in print_all_registers()
141 readl(&dev->op_regs->devlc)); in print_all_registers()
143 readl(&dev->op_regs->otgsc)); in print_all_registers()
145 readl(&dev->op_regs->usbmode)); in print_all_registers()
147 readl(&dev->op_regs->endptnak)); in print_all_registers()
149 readl(&dev->op_regs->endptnaken)); in print_all_registers()
151 readl(&dev->op_regs->endptsetupstat)); in print_all_registers()
153 readl(&dev->op_regs->endptprime)); in print_all_registers()
155 readl(&dev->op_regs->endptflush)); in print_all_registers()
157 readl(&dev->op_regs->endptstat)); in print_all_registers()
159 readl(&dev->op_regs->endptcomplete)); in print_all_registers()
163 i, readl(&dev->op_regs->endptctrl[i])); in print_all_registers()
206 endptctrl = readl(&dev->op_regs->endptctrl[ep_num]); in ep_reset()
219 writel(endptctrl, &dev->op_regs->endptctrl[ep_num]); in ep_reset()
497 endptctrl = readl(&dev->op_regs->endptctrl[ep_num]); in langwell_ep_disable()
502 writel(endptctrl, &dev->op_regs->endptctrl[ep_num]); in langwell_ep_disable()
615 if (readl(&dev->op_regs->endptprime) & bit_mask) in queue_dtd()
620 usbcmd = readl(&dev->op_regs->usbcmd); in queue_dtd()
621 writel(usbcmd | CMD_ATDTW, &dev->op_regs->usbcmd); in queue_dtd()
624 endptstat = readl(&dev->op_regs->endptstat) & bit_mask; in queue_dtd()
626 } while (!(readl(&dev->op_regs->usbcmd) & CMD_ATDTW)); in queue_dtd()
629 usbcmd = readl(&dev->op_regs->usbcmd); in queue_dtd()
630 writel(usbcmd & ~CMD_ATDTW, &dev->op_regs->usbcmd); in queue_dtd()
651 writel(bit_mask, &dev->op_regs->endptprime); in queue_dtd()
888 endptctrl = readl(&dev->op_regs->endptctrl[ep_num]); in langwell_ep_dequeue()
893 writel(endptctrl, &dev->op_regs->endptctrl[ep_num]); in langwell_ep_dequeue()
937 endptctrl = readl(&dev->op_regs->endptctrl[ep_num]); in langwell_ep_dequeue()
942 writel(endptctrl, &dev->op_regs->endptctrl[ep_num]); in langwell_ep_dequeue()
963 endptctrl = readl(&dev->op_regs->endptctrl[ep_num]); in ep_set_halt()
983 writel(endptctrl, &dev->op_regs->endptctrl[ep_num]); in ep_set_halt()
1092 writel(flush_bit, &dev->op_regs->endptflush); in langwell_ep_fifo_flush()
1093 while (readl(&dev->op_regs->endptflush)) { in langwell_ep_fifo_flush()
1100 } while (readl(&dev->op_regs->endptstat) & flush_bit); in langwell_ep_fifo_flush()
1154 retval = readl(&dev->op_regs->frindex) & FRINDEX_MASK; in langwell_get_frame()
1168 devlc = readl(&dev->op_regs->devlc); in langwell_phy_low_power()
1178 writeb(devlc_byte2, (u8 *)&dev->op_regs->devlc + 2); in langwell_phy_low_power()
1180 devlc = readl(&dev->op_regs->devlc); in langwell_phy_low_power()
1208 portsc1 = readl(&dev->op_regs->portsc1); in langwell_wakeup()
1226 writel(portsc1, &dev->op_regs->portsc1); in langwell_wakeup()
1254 usbcmd = readl(&dev->op_regs->usbcmd); in langwell_vbus_session()
1256 writel(usbcmd, &dev->op_regs->usbcmd); in langwell_vbus_session()
1258 usbcmd = readl(&dev->op_regs->usbcmd); in langwell_vbus_session()
1260 writel(usbcmd, &dev->op_regs->usbcmd); in langwell_vbus_session()
1310 usbcmd = readl(&dev->op_regs->usbcmd); in langwell_pullup()
1312 writel(usbcmd, &dev->op_regs->usbcmd); in langwell_pullup()
1314 usbcmd = readl(&dev->op_regs->usbcmd); in langwell_pullup()
1316 writel(usbcmd, &dev->op_regs->usbcmd); in langwell_pullup()
1365 usbcmd = readl(&dev->op_regs->usbcmd); in langwell_udc_reset()
1367 writel(usbcmd, &dev->op_regs->usbcmd); in langwell_udc_reset()
1370 usbcmd = readl(&dev->op_regs->usbcmd); in langwell_udc_reset()
1372 writel(usbcmd, &dev->op_regs->usbcmd); in langwell_udc_reset()
1376 while (readl(&dev->op_regs->usbcmd) & CMD_RST) { in langwell_udc_reset()
1385 usbmode = readl(&dev->op_regs->usbmode); in langwell_udc_reset()
1391 writel(usbmode, &dev->op_regs->usbmode); in langwell_udc_reset()
1392 usbmode = readl(&dev->op_regs->usbmode); in langwell_udc_reset()
1396 writel(0, &dev->op_regs->usbsts); in langwell_udc_reset()
1400 devlc = readl(&dev->op_regs->devlc); in langwell_udc_reset()
1407 writeb(devlc_byte0, (u8 *)&dev->op_regs->devlc); in langwell_udc_reset()
1408 writeb(devlc_byte2, (u8 *)&dev->op_regs->devlc + 2); in langwell_udc_reset()
1409 devlc = readl(&dev->op_regs->devlc); in langwell_udc_reset()
1417 writel(endpointlistaddr, &dev->op_regs->endpointlistaddr); in langwell_udc_reset()
1422 readl(&dev->op_regs->endpointlistaddr)); in langwell_udc_reset()
1493 writel(usbintr, &dev->op_regs->usbintr); in langwell_udc_start()
1499 usbcmd = readl(&dev->op_regs->usbcmd); in langwell_udc_start()
1501 writel(usbcmd, &dev->op_regs->usbcmd); in langwell_udc_start()
1515 writel(0, &dev->op_regs->usbintr); in langwell_udc_stop()
1521 usbcmd = readl(&dev->op_regs->usbcmd); in langwell_udc_stop()
1523 writel(usbcmd, &dev->op_regs->usbcmd); in langwell_udc_stop()
1599 tmp_reg = readl(&dev->op_regs->usbcmd); in show_langwell_udc()
1609 tmp_reg = readl(&dev->op_regs->usbsts); in show_langwell_udc()
1623 tmp_reg = readl(&dev->op_regs->usbintr); in show_langwell_udc()
1643 tmp_reg = readl(&dev->op_regs->frindex); in show_langwell_udc()
1651 tmp_reg = readl(&dev->op_regs->deviceaddr); in show_langwell_udc()
1659 tmp_reg = readl(&dev->op_regs->endpointlistaddr); in show_langwell_udc()
1667 tmp_reg = readl(&dev->op_regs->portsc1); in show_langwell_udc()
1687 tmp_reg = readl(&dev->op_regs->devlc); in show_langwell_udc()
1718 tmp_reg = readl(&dev->op_regs->usbmode); in show_langwell_udc()
1738 tmp_reg = readl(&dev->op_regs->endptsetupstat); in show_langwell_udc()
1747 tmp_reg = readl(&dev->op_regs->endptctrl[i]); in show_langwell_udc()
1753 tmp_reg = readl(&dev->op_regs->endptprime); in show_langwell_udc()
1990 endptsetupstat = readl(&dev->op_regs->endptsetupstat); in setup_tripwire()
1991 writel(endptsetupstat, &dev->op_regs->endptsetupstat); in setup_tripwire()
1995 while (readl(&dev->op_regs->endptsetupstat)) { in setup_tripwire()
2006 usbcmd = readl(&dev->op_regs->usbcmd); in setup_tripwire()
2007 writel(usbcmd | CMD_SUTW, &dev->op_regs->usbcmd); in setup_tripwire()
2011 } while (!(readl(&dev->op_regs->usbcmd) & CMD_SUTW)); in setup_tripwire()
2014 usbcmd = readl(&dev->op_regs->usbcmd); in setup_tripwire()
2015 writel(usbcmd & ~CMD_SUTW, &dev->op_regs->usbcmd); in setup_tripwire()
2029 endptctrl = readl(&dev->op_regs->endptctrl[0]); in ep0_stall()
2031 writel(endptctrl, &dev->op_regs->endptctrl[0]); in ep0_stall()
2141 endptctrl = readl(&dev->op_regs->endptctrl[ep->ep_num]); in ep_is_stall()
2331 portsc1 = readl(&dev->op_regs->portsc1); in handle_setup_packet()
2333 writel(portsc1, &dev->op_regs->portsc1); in handle_setup_packet()
2548 writel(new_addr << USBADR_SHIFT, &dev->op_regs->deviceaddr); in ep0_req_complete()
2550 new_addr = USBADR(readl(&dev->op_regs->deviceaddr)); in ep0_req_complete()
2592 complete_bits = readl(&dev->op_regs->endptcomplete); in handle_trans_complete()
2597 writel(complete_bits, &dev->op_regs->endptcomplete); in handle_trans_complete()
2671 portsc1 = readl(&dev->op_regs->portsc1); in handle_port_change()
2672 devlc = readl(&dev->op_regs->devlc); in handle_port_change()
2732 deviceaddr = readl(&dev->op_regs->deviceaddr); in handle_usb_reset()
2733 writel(deviceaddr & ~USBADR_MASK, &dev->op_regs->deviceaddr); in handle_usb_reset()
2755 endptsetupstat = readl(&dev->op_regs->endptsetupstat); in handle_usb_reset()
2756 writel(endptsetupstat, &dev->op_regs->endptsetupstat); in handle_usb_reset()
2759 endptcomplete = readl(&dev->op_regs->endptcomplete); in handle_usb_reset()
2760 writel(endptcomplete, &dev->op_regs->endptcomplete); in handle_usb_reset()
2764 while (readl(&dev->op_regs->endptprime)) { in handle_usb_reset()
2773 writel((u32) ~0, &dev->op_regs->endptflush); in handle_usb_reset()
2775 if (readl(&dev->op_regs->portsc1) & PORTS_PR) { in handle_usb_reset()
2911 usbsts = readl(&dev->op_regs->usbsts); in langwell_irq()
2914 usbintr = readl(&dev->op_regs->usbintr); in langwell_irq()
2929 writel(irq_sts, &dev->op_regs->usbsts); in langwell_irq()
2932 portsc1 = readl(&dev->op_regs->portsc1); in langwell_irq()
2942 if (readl(&dev->op_regs->endptsetupstat) in langwell_irq()
2952 if (readl(&dev->op_regs->endptcomplete)) { in langwell_irq()
3203 dev->op_regs = (struct langwell_op_regs __iomem *) in langwell_udc_probe()
3205 dev_vdbg(&dev->pdev->dev, "dev->op_regs: %p\n", dev->op_regs); in langwell_udc_probe()
3537 usbmode = readl(&dev->op_regs->usbmode); in langwell_udc_shutdown()
3540 writel(usbmode, &dev->op_regs->usbmode); in langwell_udc_shutdown()