Lines Matching refs:hcor

169 static int xhci_start(struct xhci_hcor *hcor)  in xhci_start()  argument
175 temp = xhci_readl(&hcor->or_usbcmd); in xhci_start()
177 xhci_writel(&hcor->or_usbcmd, temp); in xhci_start()
183 ret = handshake(&hcor->or_usbsts, STS_HALT, 0, XHCI_MAX_HALT_USEC); in xhci_start()
228 static int xhci_reset(struct xhci_hcor *hcor) in xhci_reset() argument
235 debug("// Halt the HC: %p\n", hcor); in xhci_reset()
236 state = xhci_readl(&hcor->or_usbsts) & STS_HALT; in xhci_reset()
238 cmd = xhci_readl(&hcor->or_usbcmd); in xhci_reset()
240 xhci_writel(&hcor->or_usbcmd, cmd); in xhci_reset()
243 ret = handshake(&hcor->or_usbsts, in xhci_reset()
252 cmd = xhci_readl(&hcor->or_usbcmd); in xhci_reset()
254 xhci_writel(&hcor->or_usbcmd, cmd); in xhci_reset()
256 ret = handshake(&hcor->or_usbcmd, CMD_RESET, 0, XHCI_MAX_RESET_USEC); in xhci_reset()
264 return handshake(&hcor->or_usbsts, STS_CNR, 0, XHCI_MAX_RESET_USEC); in xhci_reset()
933 struct xhci_hcor *hcor = ctrl->hcor; in xhci_submit_root() local
944 (&hcor->portregs[le16_to_cpu(req->index) - 1].or_portsc); in xhci_submit_root()
1235 struct xhci_hcor *hcor; in xhci_lowlevel_init() local
1241 hcor = ctrl->hcor; in xhci_lowlevel_init()
1247 val2 = xhci_readl(&hcor->or_config); in xhci_lowlevel_init()
1249 xhci_writel(&hcor->or_config, val); in xhci_lowlevel_init()
1252 if (xhci_mem_init(ctrl, hccr, hcor) < 0) in xhci_lowlevel_init()
1270 if (xhci_start(hcor)) { in xhci_lowlevel_init()
1271 xhci_reset(hcor); in xhci_lowlevel_init()
1290 xhci_reset(ctrl->hcor); in xhci_lowlevel_stop()
1293 temp = xhci_readl(&ctrl->hcor->or_usbsts); in xhci_lowlevel_stop()
1294 xhci_writel(&ctrl->hcor->or_usbsts, temp & ~STS_EINT); in xhci_lowlevel_stop()
1338 struct xhci_hcor *hcor; in usb_lowlevel_init() local
1344 if (xhci_hcd_init(index, &hccr, (struct xhci_hcor **)&hcor) != 0) in usb_lowlevel_init()
1347 if (xhci_reset(hcor) != 0) in usb_lowlevel_init()
1353 ctrl->hcor = hcor; in usb_lowlevel_init()
1359 ctrl->hcor = NULL; in usb_lowlevel_init()
1378 if (ctrl->hcor) { in usb_lowlevel_stop()
1526 struct xhci_hcor *hcor) in xhci_register() argument
1533 ctrl, hccr, hcor); in xhci_register()
1549 ret = xhci_reset(hcor); in xhci_register()
1554 ctrl->hcor = hcor; in xhci_register()