Lines Matching refs:op_regs

221     U32  u32regv = hcd_reg_readl ((U32)&pEhci->op_regs->usbsts);  in ms_ehci_halt()
230 u32regv = hcd_reg_readl ((U32)&pEhci->op_regs->usbcmd); in ms_ehci_halt()
232 hcd_reg_writel (u32regv, (U32)&pEhci->op_regs->usbcmd); in ms_ehci_halt()
235 return ms_check_status (&pEhci->op_regs->usbsts, USBSTS_HALT, USBSTS_HALT, 16 * 125); in ms_ehci_halt()
241 U32 u32regv = hcd_reg_readl ((U32)&pEhci->op_regs->usbcmd); in ms_ehci_reset()
245 hcd_reg_writel (u32regv, (U32)&pEhci->op_regs->usbcmd); in ms_ehci_reset()
248 retv = ms_check_status (&pEhci->op_regs->usbcmd, USBCMD_RESET, 0, 250 * 1000); in ms_ehci_reset()
253 U32 u32hcmisc = hcd_reg_readl ((U32)&pEhci->op_regs->hcmisc); in ms_ehci_reset()
254 hcd_reg_writel(u32hcmisc | BIT7, (U32)&pEhci->op_regs->hcmisc); in ms_ehci_reset()
269 u32regv = hcd_reg_readl ((U32)&pEhci->op_regs->usbcmd) << 10; in ms_ehci_quiesce()
271 if (ms_check_status (&pEhci->op_regs->usbsts, USBSTS_ASS | USBSTS_PSS, in ms_ehci_quiesce()
280 u32regv = hcd_reg_readl ((U32)&pEhci->op_regs->usbcmd); in ms_ehci_quiesce()
282 hcd_reg_writel (u32regv, (U32)&pEhci->op_regs->usbcmd); in ms_ehci_quiesce()
285 if (ms_check_status (&pEhci->op_regs->usbsts, USBSTS_ASS | USBSTS_PSS, in ms_ehci_quiesce()
357 u32Temp = hcd_reg_readl ((U32)&pEhci->op_regs->portsc[0]); in ms_hub_status_data()
446 if (!hcd_reg_readl((U32)&pEhci->op_regs->asynclistaddr)) in ms_ehci_softrst()
450 hcd_reg_writel ((U32)pEhci->stAsync->qh_dma_addr, (U32)&pEhci->op_regs->asynclistaddr); in ms_ehci_softrst()
452 regTmp[0] = hcd_reg_readl((U32)&pEhci->op_regs->usbcmd); in ms_ehci_softrst()
453 regTmp[1] = hcd_reg_readl((U32)&pEhci->op_regs->usbintr); in ms_ehci_softrst()
457 hcd_reg_writel(regTmp[1],(U32)&pEhci->op_regs->usbintr); in ms_ehci_softrst()
458 hcd_reg_writel(regTmp[0],(U32)&pEhci->op_regs->usbcmd); in ms_ehci_softrst()
514 u32Temp = hcd_reg_readl ((U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
524 hcd_reg_writel (u32Temp & ~PORTSC_PE, (U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
528 …reg_writel(hcd_reg_readl((U32)&pEhci->op_regs->usbcmd)&(~(USBCMD_ASE|USBCMD_PSE|USBCMD_IAAD)),(U32… in ms_hub_control()
539 (U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
547 (U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
557 (U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
561 (U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
569 u32Temp = hcd_reg_readl ((U32)&pEhci->op_regs->usbcmd); /* unblock posted write */ in ms_hub_control()
585 u32Temp = hcd_reg_readl ((U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
627 (U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
629 u32Temp = hcd_reg_readl ((U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
651 u32Speed = (hcd_reg_readl((U32)&pEhci->op_regs->bus_control) >> 9) & 0x3; in ms_hub_control()
655 u32Temp2 = hcd_reg_readl((U32)&pEhci->op_regs->hcmisc) & 0xfffffff3; in ms_hub_control()
683 hcd_reg_writel (u32Temp2, (U32)&pEhci->op_regs->hcmisc); // misc, EOF1 in ms_hub_control()
688 hcd_reg_readl ((U32)&pEhci->op_regs->portsc [u16Index])); in ms_hub_control()
702 u32Bus_monitor=hcd_reg_readl ((U32)&pEhci->op_regs->bus_control); in ms_hub_control()
736 u32Temp = hcd_reg_readl ((U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
749 (U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
754 (U32)&pEhci->op_regs->portsc [u16Index]); in ms_hub_control()
777 hcd_reg_writel (u32Temp, (U32)&pEhci->op_regs->portsc [u16Index]); // port reset in ms_hub_control()
789 u32Temp = hcd_reg_readl ((U32)&pEhci->op_regs->usbcmd); /* unblock posted writes */ in ms_hub_control()
1715 U32 cmd = hcd_reg_readl ((U32)&pEhci->op_regs->usbcmd); in ms_qh_link_async()
1719 (void) ms_check_status (&pEhci->op_regs->usbsts, USBSTS_ASS, 0, 150); in ms_qh_link_async()
1721 hcd_reg_writel (cmd, (U32)&pEhci->op_regs->usbcmd); in ms_qh_link_async()
1972 int iUsbCmd = hcd_reg_readl ((U32)&pEhci->op_regs->usbcmd); in ms_start_unlink_async()
1991 hcd_reg_writel (iUsbCmd & ~USBCMD_ASE, (U32)&pEhci->op_regs->usbcmd); in ms_start_unlink_async()
2035 hcd_reg_writel (iUsbCmd, (U32)&pEhci->op_regs->usbcmd); in ms_start_unlink_async()
2171 hw_next = hcd_reg_readl ((U32)&ehci->op_regs->asynclistaddr); in dbg_timeout_async()
2248 u32Cmd = hcd_reg_readl((U32)&pEhci->op_regs->usbcmd); in ms_ehci_iaa_watchdog()
2251 (U32)&pEhci->op_regs->usbcmd); in ms_ehci_iaa_watchdog()
2253 u32Status = hcd_reg_readl((U32)&pEhci->op_regs->usbsts); in ms_ehci_iaa_watchdog()
2258 hcd_reg_writel(USBSTS_IAA, (U32)&pEhci->op_regs->usbsts); in ms_ehci_iaa_watchdog()
2283 U32 status = hcd_reg_readl ((U32)&pEhci->op_regs->usbsts); in ms_ehci_watchdog()
2288 hcd_reg_writel (USBSTS_IAA, (U32)&pEhci->op_regs->usbsts); in ms_ehci_watchdog()
2291 … else if ( (hcd_reg_readl((U32)&pEhci->op_regs->usbcmd)&USBCMD_IAAD) && !(status & USBSTS_IAA)) in ms_ehci_watchdog()
2324 ehci->op_regs = (struct ehci_op_regs *) ( (U32)pHcd->uhc_regs + in ms_ehci_init()
2372 hcd_reg_writel (INTR_MASK, (U32)&ehci->op_regs->usbintr); in ms_ehci_begin()
2373 u32Temp=hcd_reg_readl((U32)&ehci->op_regs->bus_control); in ms_ehci_begin()
2377 hcd_reg_writel(u32Temp,(U32)&ehci->op_regs->bus_control); //set intr high active in ms_ehci_begin()
2378 hcd_reg_writel (ehci->tPeriodicDma, (U32)&ehci->op_regs->periodiclistbase); in ms_ehci_begin()
2388 hcd_reg_writel ((U32)ehci->stAsync->qh_dma_addr, (U32)&ehci->op_regs->asynclistaddr); in ms_ehci_begin()
2392 hcd_reg_writel (0, (U32)&ehci->op_regs->ctrldssegment); in ms_ehci_begin()
2395 u32Temp = hcd_reg_readl ((U32)&ehci->op_regs->usbcmd) & 0x0fff; in ms_ehci_begin()
2431 hcd_reg_writel (u32Temp, (U32)&ehci->op_regs->usbcmd); in ms_ehci_begin()
2454 u32Temp = hcd_reg_readl ((U32)&ehci->op_regs->usbcmd); /* unblock posted write */ in ms_ehci_begin()
2520 return (hcd_reg_readl ((U32)&ehci->op_regs->frindex) >> 3) % ehci->u32PeriodicSize; in ms_ehci_get_frame_idx()
2538 …hcd_reg_writel(hcd_reg_readl ((U32)&ehci->op_regs->usbcmd) & ~USBCMD_RUN, (U32)&ehci->op_regs->usb… in ms_ehci_suspend()
2539 while((hcd_reg_readl((U32)&ehci->op_regs->usbsts)&USBSTS_HALT) == 0); in ms_ehci_suspend()
2543 int temp = hcd_reg_readl ((U32)&ehci->op_regs->portsc [i]); in ms_ehci_suspend()
2549 hcd_reg_writel (temp, (U32)&ehci->op_regs->portsc [i]); in ms_ehci_suspend()
2568 int temp = hcd_reg_readl ((U32)&ehci->op_regs->portsc [i]); in ms_ehci_resume()
2574 hcd_reg_writel (temp, (U32)&ehci->op_regs->portsc [i]); in ms_ehci_resume()
2575 /*U32Tmp = */hcd_reg_readl ((U32)&ehci->op_regs->usbcmd); /* unblock posted writes */ in ms_ehci_resume()
2578 hcd_reg_writel (temp, (U32)&ehci->op_regs->portsc [i]); in ms_ehci_resume()
2580 /*U32Tmp = */hcd_reg_readl ((U32)&ehci->op_regs->usbcmd); /* unblock posted writes */ in ms_ehci_resume()
2642 int_status = u32Status = hcd_reg_readl ((U32)&pEhci->op_regs->usbsts); in ms_ehci_irq()
2653 …s: %x, intr_enable: %x\n", (unsigned int)int_status, hcd_reg_readw((U32)&pEhci->op_regs->usbintr)); in ms_ehci_irq()
2657 hcd_reg_writel (u32Status, (U32)&pEhci->op_regs->usbsts); in ms_ehci_irq()
2658 u32Cmd = hcd_reg_readl ((U32)&pEhci->op_regs->usbcmd); in ms_ehci_irq()
2670 int cmd = hcd_reg_readl ((U32)&pEhci->op_regs->usbcmd); in ms_ehci_irq()
2672 hcd_reg_writel (cmd, (U32)&pEhci->op_regs->usbcmd); in ms_ehci_irq()
2673 (void) hcd_reg_readl ((U32)&pEhci->op_regs->usbcmd); in ms_ehci_irq()
2699 hcd_reg_writel (u32Cmd & ~USBCMD_IAAD, (U32)&pEhci->op_regs->usbcmd); in ms_ehci_irq()
2718 iPsc = hcd_reg_readl((U32)&pEhci->op_regs->portsc [0]); in ms_ehci_irq()
2776 hcd_reg_writel(iPsc, (U32)&pEhci->op_regs->portsc[0]); in ms_ehci_irq()
2841 if( (hcd_reg_readl ((U32)&pEhci->op_regs->portsc[0])&PORTSC_CONNECT) == 0 ) in ms_urb_enqueue()
3113 temp = hcd_reg_readl((U32)&ehci->op_regs->usbcmd); in ms_ehci_stoprun_setting()
3120 hcd_reg_writel(temp, (U32)&ehci->op_regs->usbcmd); in ms_ehci_stoprun_setting()
3123 temp = hcd_reg_readl((U32)&ehci->op_regs->usbcmd); in ms_ehci_stoprun_setting()
3129 temp = hcd_reg_readl((U32)&ehci->op_regs->usbcmd); in ms_ehci_stoprun_setting()
3134 hcd_reg_writel(temp, (U32)&ehci->op_regs->usbcmd); in ms_ehci_stoprun_setting()
3136 temp = hcd_reg_readl((U32)&ehci->op_regs->usbcmd); in ms_ehci_stoprun_setting()
3175 u32Temp = hcd_reg_readl ((U32)&pEhci->op_regs->portsc [0]); in ms_qh_ehci_reinit()
3177 hcd_reg_writel (u32Temp & ~PORTSC_PE, (U32)&pEhci->op_regs->portsc [0]); in ms_qh_ehci_reinit()
3179 …reg_writel(hcd_reg_readl((U32)&pEhci->op_regs->usbcmd)&(~(USBCMD_ASE|USBCMD_PSE|USBCMD_IAAD)),(U32… in ms_qh_ehci_reinit()
3181 u32Temp = hcd_reg_readl((U32)&pEhci->op_regs->usbcmd); in ms_qh_ehci_reinit()
3184 hcd_reg_writel(u32Temp,(U32)&pEhci->op_regs->usbcmd); in ms_qh_ehci_reinit()
3218 u32Temp = hcd_reg_readl((U32)&pEhci->op_regs->usbcmd); in ms_ehci_periodic_size_init()
3221 hcd_reg_writel(u32Temp,(U32)&pEhci->op_regs->usbcmd); in ms_ehci_periodic_size_init()