Lines Matching refs:hcor
132 reg_ptr = (uint32_t *)((u8 *)&ctrl->hcor->or_usbcmd + USBMODE); in ehci_set_usbmode()
160 return (uint32_t *)&ctrl->hcor->or_portsc[port]; in ehci_get_portsc_register()
184 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_reset()
186 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_reset()
187 ret = handshake((uint32_t *)&ctrl->hcor->or_usbcmd, in ehci_reset()
198 cmd = ehci_readl(&ctrl->hcor->or_txfilltuning); in ehci_reset()
201 ehci_writel(&ctrl->hcor->or_txfilltuning, cmd); in ehci_reset()
213 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_shutdown()
218 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_shutdown()
219 ret = handshake(&ctrl->hcor->or_usbsts, STS_ASS | STS_PSS, 0, in ehci_shutdown()
224 reg = ehci_readl(&ctrl->hcor->or_portsc[i]); in ehci_shutdown()
226 ehci_writel(&ctrl->hcor->or_portsc[i], reg); in ehci_shutdown()
230 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_shutdown()
231 ret = handshake(&ctrl->hcor->or_usbsts, STS_HALT, STS_HALT, in ehci_shutdown()
549 usbsts = ehci_readl(&ctrl->hcor->or_usbsts); in ehci_submit_async()
550 ehci_writel(&ctrl->hcor->or_usbsts, (usbsts & 0x3f)); in ehci_submit_async()
553 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_submit_async()
556 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_submit_async()
558 ret = handshake((uint32_t *)&ctrl->hcor->or_usbsts, STS_ASS, STS_ASS, in ehci_submit_async()
639 dev->devnum, ehci_readl(&ctrl->hcor->or_usbsts), in ehci_submit_async()
640 ehci_readl(&ctrl->hcor->or_portsc[0]), in ehci_submit_async()
641 ehci_readl(&ctrl->hcor->or_portsc[1])); in ehci_submit_async()
874 (void) ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_submit_root()
905 (void) ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_submit_root()
983 ehci_writel(&ctrl->hcor->or_ctrldssegment, 0); in ehci_common_init()
1001 ehci_writel(&ctrl->hcor->or_asynclistaddr, virt_to_phys(qh_list)); in ehci_common_init()
1041 ehci_writel(&ctrl->hcor->or_periodiclistbase, in ehci_common_init()
1059 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_common_init()
1066 ehci_writel(&ctrl->hcor->or_usbcmd, cmd); in ehci_common_init()
1070 cmd = ehci_readl(&ctrl->hcor->or_configflag); in ehci_common_init()
1072 ehci_writel(&ctrl->hcor->or_configflag, cmd); in ehci_common_init()
1076 cmd = ehci_readl(&ctrl->hcor->or_usbcmd); in ehci_common_init()
1103 rc = ehci_hcd_init(index, init, &ctrl->hccr, &ctrl->hcor); in usb_lowlevel_init()
1106 if (!ctrl->hccr || !ctrl->hcor) in usb_lowlevel_init()
1116 rc = ehci_hcd_init(index, init, &ctrl->hccr, &ctrl->hcor); in usb_lowlevel_init()
1179 struct ehci_hcor *hcor = ctrl->hcor; in enable_periodic() local
1182 cmd = ehci_readl(&hcor->or_usbcmd); in enable_periodic()
1184 ehci_writel(&hcor->or_usbcmd, cmd); in enable_periodic()
1186 ret = handshake((uint32_t *)&hcor->or_usbsts, in enable_periodic()
1200 struct ehci_hcor *hcor = ctrl->hcor; in disable_periodic() local
1203 cmd = ehci_readl(&hcor->or_usbcmd); in disable_periodic()
1205 ehci_writel(&hcor->or_usbcmd, cmd); in disable_periodic()
1207 ret = handshake((uint32_t *)&hcor->or_usbsts, in disable_periodic()
1607 struct ehci_hcor *hcor, const struct ehci_ops *ops, in ehci_register() argument
1615 dev->name, ctrl, hccr, hcor, init); in ehci_register()
1617 if (!ctrl || !hccr || !hcor) in ehci_register()
1624 ctrl->hcor = hcor; in ehci_register()