Lines Matching refs:U32

255 static int handshake (U32 *ptr, U32 mask, U32 done, int usec)  in handshake()
257 U32 result; in handshake()
260 result = ehci_readl ((U32)ptr); in handshake()
261 if (result == ~(U32)0) /* card removed */ in handshake()
326 U32 temp = ehci_readl ((U32)&ehci->regs->status); in ehci_halt()
379 temp = ehci_readl ((U32)&ehci->regs->command); in ehci_halt()
381 ehci_writel (temp, (U32)&ehci->regs->command); in ehci_halt()
389 U32 command = ehci_readl ((U32)&ehci->regs->command); in ehci_reset()
394 ehci_writel (command, (U32)&ehci->regs->command); in ehci_reset()
457 U32 temp; in ehci_ready()
530 temp = ehci_readl ((U32)&ehci->regs->command); in ehci_ready()
532 ehci_writel (temp, (U32)&ehci->regs->command); in ehci_ready()
617 ehci_writel (port_status, (U32)&ehci->regs->port_status [index]); in check_reset_complete()
680 U32 temp, status = 0; in ehci_hub_status_data()
682 U32 flags; in ehci_hub_status_data()
745 temp = ehci_readl ((U32)&ehci->regs->port_status[i]); in ehci_hub_status_data()
809 ehci_writel (temp, (U32)&ehci->regs->port_status [i]); in ehci_hub_status_data()
1205 U32 regTmp[4]; in ehci_hc_swreset()
1214 regTmp[0] = ehci_readl((U32)&ehci->regs->command); in ehci_hc_swreset()
1215 regTmp[1] = ehci_readl((U32)&ehci->regs->intr_enable); in ehci_hc_swreset()
1235 ehci_writel(regTmp[1],(U32)&ehci->regs->intr_enable); in ehci_hc_swreset()
1236 ehci_writel(regTmp[0],(U32)&ehci->regs->command); in ehci_hc_swreset()
1262 U32 temp, status,bus_monitor; in ehci_hub_control()
1263 U32 flags; in ehci_hub_control()
1269 U32 regUTMI = dev->utmibase; in ehci_hub_control()
1270 U32 temp2, speed; in ehci_hub_control()
1336 temp = ehci_readl ((U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1347 ehci_writel (temp & ~PORT_PE, (U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1350 …ehci_writel(ehci_readl((U32)&ehci->regs->command)&(~(CMD_ASE|CMD_PSE|CMD_IAAD)),(U32)&ehci->regs->… in ehci_hub_control()
1406 (U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1415 (U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1419 (U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1472 (U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1480 temp = ehci_readl ((U32)&ehci->regs->command); /* unblock posted write */ in ehci_hub_control()
1545 temp = ehci_readl ((U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1578 (U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1581 (U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1598 speed = (ehci_readl((U32)&ehci->regs->bus_control) >> 9) & 0x3; in ehci_hub_control()
1601 temp2 = ehci_readl((U32)&ehci->regs->hcmisc) & 0xfffffff3; in ehci_hub_control()
1612 ehci_writel (temp2, (U32)&ehci->regs->hcmisc); // misc, EOF1 in ehci_hub_control()
1621 bus_monitor=ehci_readl ((U32)&ehci->regs->bus_control); in ehci_hub_control()
1697 *((U32 *) buf) = CPUToLE32(status); in ehci_hub_control()
1768 temp = ehci_readl ((U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1779 (U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1784 (U32)&ehci->regs->port_status [wIndex]); in ehci_hub_control()
1818 …ehci_writel(ehci_readl((U32)&ehci->regs->command)&(~(CMD_RUN|CMD_ASE|CMD_PSE)),(U32)&ehci->regs->c… in ehci_hub_control()
1821 while(((ehci_readl((U32)&ehci->regs->status)&STS_HALT) == 0)&&(time_out++<1000)); in ehci_hub_control()
1837 …ehci_writel(ehci_readl((U32)&ehci->regs->command)&(~(CMD_RUN|CMD_ASE|CMD_PSE)),(U32)&ehci->regs->c… in ehci_hub_control()
1840 while(((ehci_readl((U32)&ehci->regs->status)&STS_HALT) == 0)&&(time_out++<1000)); in ehci_hub_control()
1863 ehci_writel (temp, (U32)&ehci->regs->port_status [wIndex]); // port reset in ehci_hub_control()
1869 temp = ehci_readl ((U32)&ehci->regs->command); /* unblock posted writes */ in ehci_hub_control()
1945 U32 count; in qtd_fill()
2003 qtd->hw_buf [0] = CPUToLE32 ((U32)addr); in qtd_fill()
2004 qtd->hw_buf_hi [0] = CPUToLE32 ((U32)(addr >> 32)); in qtd_fill()
2015 qtd->hw_buf [i] = CPUToLE32 ((U32)addr); in qtd_fill()
2016 qtd->hw_buf_hi [i] = CPUToLE32 ((U32)(addr >> 32)); in qtd_fill()
2275 U32 token in qtd_copy_status()
3014 U32 token = 0; in qh_completions()
3567 U32 token; in qh_urb_transaction()
4441 U32 info1 = 0, info2 = 0; in qh_make()
4989 U32 dma = QH_NEXT (qh->qh_dma); in qh_link_async()
5046 U32 cmd = ehci_readl ((U32)&ehci->regs->command); in qh_link_async()
5052 ehci_writel (cmd, (U32)&ehci->regs->command); in qh_link_async()
5124 U32 dma = QH_NEXT (qh->qh_dma);
5130 U32 cmd = ehci_readl (&ehci->regs->command);
5189 ehci_writel ((U32)qh->qh_dma, &ehci->regs->async_next);
5404 U32 info, max; in qh_append_tds()
5484 U32 token; in qh_append_tds()
5579 U32 flags; in submit_async()
5903 int cmd = ehci_readl ((U32)&ehci->regs->command); in start_unlink_async()
5970 ehci_writel (cmd & ~CMD_ASE, (U32)&ehci->regs->command); in start_unlink_async()
6050 ehci_writel (cmd, (U32)&ehci->regs->command); in start_unlink_async()
6362 static void ehci_watchdog (U32 param) in ehci_watchdog()
6365 U32 flags; in ehci_watchdog()
6372 kdbg("action: 0x%08X %s",(U32)ehci->actions,"\n"); in ehci_watchdog()
6425 U32 status = ehci_readl ((U32)&ehci->regs->status); in ehci_watchdog()
6430 ehci_writel (STS_IAA, (U32)&ehci->regs->status); in ehci_watchdog()
6482 else if ( (ehci_readl((U32)&ehci->regs->command)&CMD_IAAD) && !(status & STS_IAA)) in ehci_watchdog()
6514 static int bios_handoff (struct ehci_hcd *ehci, int where, U32 cap) in bios_handoff()
6637 static int ehci_reboot (struct notifier_block *self, U32 code, void *null) in ehci_reboot()
6703 U32 temp; in ehci_hc_reset()
6708 ehci->regs = (struct ehci_regs *) ( (U32)hcd->regs + in ehci_hc_reset()
6709 (U32)ehci_readb ((U32)&ehci->caps->length)); in ehci_hc_reset()
6762 temp = HCC_EXT_CAPS (ehci_readl ((U32)&ehci->caps->hcc_params)); in ehci_hc_reset()
6764 U32 cap = 0; in ehci_hc_reset()
6836 ehci->hcs_params = ehci_readl ((U32)&ehci->caps->hcs_params); in ehci_hc_reset()
6847 U32 temp; in ehci_start()
6851 U32 hcc_params; in ehci_start()
6908 hcc_params = ehci_readl ((U32)&ehci->caps->hcc_params); in ehci_start()
6978 ehci_writel (INTR_MASK, (U32)&ehci->regs->intr_enable); in ehci_start()
6979 temp=ehci_readl((U32)&ehci->regs->bus_control); in ehci_start()
6983 ehci_writel(temp,(U32)&ehci->regs->bus_control); //set intr high active in ehci_start()
6984 ehci_writel (ehci->periodic_dma, (U32)&ehci->regs->frame_list); in ehci_start()
7091 diag_printf("qh: %p\n", (U32)ehci->async->qh_dma); in ehci_start()
7092 ehci_writel ((U32)ehci->async->qh_dma, (U32)&ehci->regs->async_next); in ehci_start()
7096 ehci_writel (0, (U32)&ehci->regs->segment); in ehci_start()
7159 temp = ehci_readl ((U32)&ehci->regs->command) & 0x0fff; in ehci_start()
7171 U32 park_eco = 3; in ehci_start()
7248 ehci_writel (temp, (U32)&ehci->regs->command); in ehci_start()
7256 ehci->watchdog.data = (U32) ehci; in ehci_start()
7320 temp = ehci_readl ((U32)&ehci->regs->command); /* unblock posted write */ in ehci_start()
7377 temp = ehci_readw ((U32)&ehci->caps->hci_version); in ehci_start()
7592 dbg_status (ehci, "ehci_stop completed", ehci_readl ((U32)&ehci->regs->status)); in ehci_stop()
7647 return (ehci_readl ((U32)&ehci->regs->frame_index) >> 3) % ehci->periodic_size; in ehci_get_frame()
7652 int ehci_suspend (struct usb_hcd *hcd, U32 state) in ehci_suspend()
7714 ehci_writel(ehci_readl ((U32)&ehci->regs->command) & ~CMD_RUN, (U32)&ehci->regs->command); in ehci_suspend()
7715 while((ehci_readl((U32)&ehci->regs->status)&STS_HALT) == 0); in ehci_suspend()
7719 int temp = ehci_readl ((U32)&ehci->regs->port_status [i]); in ehci_suspend()
7730 ehci_writel (temp, (U32)&ehci->regs->port_status [i]); in ehci_suspend()
7740 U32 tmp; in ehci_resume()
7800 int temp = ehci_readl ((U32)&ehci->regs->port_status [i]); in ehci_resume()
7806 ehci_writel (temp, (U32)&ehci->regs->port_status [i]); in ehci_resume()
7807 tmp = ehci_readl ((U32)&ehci->regs->command); /* unblock posted writes */ in ehci_resume()
7810 ehci_writel (temp, (U32)&ehci->regs->port_status [i]); in ehci_resume()
7812 tmp = ehci_readl ((U32)&ehci->regs->command); /* unblock posted writes */ in ehci_resume()
7901 U32 status; in ehci_irq()
7903 U32 pcd_status = 0; in ehci_irq()
7906 U32 cmd_t; in ehci_irq()
7910 status = ehci_readl ((U32)&ehci->regs->status); in ehci_irq()
7914 if (status == ~(U32) 0) { in ehci_irq()
7973 ehci_writel (status, (U32)&ehci->regs->status); in ehci_irq()
7974 cmd_t = ehci_readl ((U32)&ehci->regs->command); /* unblock posted write */ in ehci_irq()
7992 int cmd = ehci_readl ((U32)&ehci->regs->command); in ehci_irq()
7994 ehci_writel (cmd, (U32)&ehci->regs->command); in ehci_irq()
7995 (void) ehci_readl ((U32)&ehci->regs->command); in ehci_irq()
8139 int pstatus = ehci_readl((U32)&ehci->regs->port_status [i]); in ehci_irq()
8304 if( (ehci_readl ((U32)&ehci->regs->port_status[0])&PORT_CONNECT) == 0 ) in ehci_urb_enqueue()
8421 U32 flags; in ehci_urb_dequeue()
8555 if( (ehci_readl ((U32)&ehci->regs->port_status[0])&PORT_CONNECT) == 0 ) in ehci_urb_dequeue()
8569 else if ( (ehci_readl ((U32)&ehci->regs->command)&CMD_RUN) == 0 ) in ehci_urb_dequeue()
8927 U32 flags; in ehci_endpoint_disable()
9240 diag_printf("hcd: %lx\n", (U32)hcd); in usb_hcd_cpe_ehci_probe()
9253 hcd->regs = (U32*) gBaseUHC; in usb_hcd_cpe_ehci_probe()
9429 extern int ehci_suspend (struct usb_hcd *hcd, U32 state);
9532 int ehci_hcd_cpe_ehci_drv_suspend(struct device_s *_dev, U32 state, U32 level) in ehci_hcd_cpe_ehci_drv_suspend()
9546 int ehci_hcd_cpe_ehci_drv_resume(struct device_s *_dev, U32 level) in ehci_hcd_cpe_ehci_drv_resume()
9613 U32 temp; in ehci_StopRun_Setting()
9617 temp = ehci_readl((U32)&ehci->regs->command); in ehci_StopRun_Setting()
9622 ehci_writel(temp, (U32)&ehci->regs->command); in ehci_StopRun_Setting()
9624 temp = ehci_readl((U32)&ehci->regs->command); in ehci_StopRun_Setting()
9629 temp = ehci_readl((U32)&ehci->regs->command); in ehci_StopRun_Setting()
9634 ehci_writel(temp, (U32)&ehci->regs->command); in ehci_StopRun_Setting()
9636 temp = ehci_readl((U32)&ehci->regs->command); in ehci_StopRun_Setting()
9664 diag_printf("hcd: %lx\n", (U32)hcd); in usb_hcd_cpe_ehci_probe_EX()
9681 hcd->regs = (U32*) dev->mapbase; in usb_hcd_cpe_ehci_probe_EX()
9862 U32 token; in qh_urb_transaction_EHSET()