Lines Matching refs:hcor

136 	reg_ptr = (uint32_t *)((u8 *)&ctrl->hcor->or_usbcmd + USBMODE);  in ehci_set_usbmode()
164 return (uint32_t *)&ctrl->hcor->or_portsc[port]; in ehci_get_portsc_register()
188 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_reset()
190 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_reset()
191 ret = handshake((uint32_t *)&ctrl->hcor->or_usbcmd, in ehci_reset()
202 cmd = ehci_readl(&ctrl->hcor->or_txfilltuning); in ehci_reset()
205 ehci_writel(&ctrl->hcor->or_txfilltuning, cmd); in ehci_reset()
217 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_shutdown()
222 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_shutdown()
223 ret = handshake(&ctrl->hcor->or_usbsts, STS_ASS | STS_PSS, 0, in ehci_shutdown()
228 reg = ehci_readl(&ctrl->hcor->or_portsc[i]); in ehci_shutdown()
230 ehci_writel(&ctrl->hcor->or_portsc[i], reg); in ehci_shutdown()
234 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_shutdown()
235 ret = handshake(&ctrl->hcor->or_usbsts, STS_HALT, STS_HALT, in ehci_shutdown()
310 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_enable_async()
315 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_enable_async()
317 ret = handshake((uint32_t *)&ctrl->hcor->or_usbsts, STS_ASS, STS_ASS, in ehci_enable_async()
334 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_disable_async()
339 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_disable_async()
341 ret = handshake((uint32_t *)&ctrl->hcor->or_usbsts, STS_ASS, 0, in ehci_disable_async()
603 usbsts = ehci_readl(&ctrl->hcor->or_usbsts); in ehci_submit_async()
604 ehci_writel(&ctrl->hcor->or_usbsts, (usbsts & 0x3f)); in ehci_submit_async()
687 dev->devnum, ehci_readl(&ctrl->hcor->or_usbsts), in ehci_submit_async()
688 ehci_readl(&ctrl->hcor->or_portsc[0]), in ehci_submit_async()
689 ehci_readl(&ctrl->hcor->or_portsc[1])); in ehci_submit_async()
926 (void) ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_submit_root()
957 (void) ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_submit_root()
1035 ehci_writel(&ctrl->hcor->or_ctrldssegment, 0); in ehci_common_init()
1053 ehci_writel(&ctrl->hcor->or_asynclistaddr, virt_to_phys(qh_list)); in ehci_common_init()
1093 ehci_writel(&ctrl->hcor->or_periodiclistbase, in ehci_common_init()
1109 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_common_init()
1116 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_common_init()
1120 cmd = ehci_readl(&ctrl->hcor->or_configflag); in ehci_common_init()
1122 ehci_writel(&ctrl->hcor->or_configflag, cmd); in ehci_common_init()
1126 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_common_init()
1153 rc = ehci_hcd_init(index, init, &ctrl->hccr, &ctrl->hcor); in usb_lowlevel_init()
1156 if (!ctrl->hccr || !ctrl->hcor) in usb_lowlevel_init()
1166 rc = ehci_hcd_init(index, init, &ctrl->hccr, &ctrl->hcor); in usb_lowlevel_init()
1229 struct ehci_hcor *hcor = ctrl->hcor; in enable_periodic() local
1232 cmd = ehci_readl(&hcor->or_usbcmd); in enable_periodic()
1234 ehci_writel(&hcor->or_usbcmd, cmd); in enable_periodic()
1236 ret = handshake((uint32_t *)&hcor->or_usbsts, in enable_periodic()
1250 struct ehci_hcor *hcor = ctrl->hcor; in disable_periodic() local
1253 cmd = ehci_readl(&hcor->or_usbcmd); in disable_periodic()
1255 ehci_writel(&hcor->or_usbcmd, cmd); in disable_periodic()
1257 ret = handshake((uint32_t *)&hcor->or_usbsts, in disable_periodic()
1678 struct ehci_hcor *hcor, const struct ehci_ops *ops, in ehci_register() argument
1686 dev->name, ctrl, hccr, hcor, init); in ehci_register()
1688 if (!ctrl || !hccr || !hcor) in ehci_register()
1695 ctrl->hcor = hcor; in ehci_register()