Searched refs:pEhci (Results 1 – 5 of 5) sorted by relevance
| /utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/newhost/ |
| H A D | drvEhciHcd.c | 219 static int ms_ehci_halt (struct ehci_hcd *pEhci) in ms_ehci_halt() argument 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() 238 static int ms_ehci_reset (struct ehci_hcd *pEhci) in ms_ehci_reset() argument 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() 246 pEhci->hcd.state = HCD_STATE_HALT; in ms_ehci_reset() 248 retv = ms_check_status (&pEhci->op_regs->usbcmd, USBCMD_RESET, 0, 250 * 1000); in ms_ehci_reset() [all …]
|
| H A D | drvEHCI_SCHD.cxx | 81 static void ms_periodic_unlink (struct ehci_hcd *pEhci, U32 u32Frame, void *ptr) in ms_periodic_unlink() argument 83 union ehci_qh_shadow *prev_p = &pEhci->pshadow [u32Frame]; in ms_periodic_unlink() 84 U32 *hw_p = &pEhci->pPeriodic [u32Frame]; in ms_periodic_unlink() 112 static U16 ms_periodic_usecs (struct ehci_hcd *pEhci, U32 u32Frame, U32 u32uFrame) in ms_periodic_usecs() argument 114 U32 *phw_p = &pEhci->pPeriodic [u32Frame]; in ms_periodic_usecs() 115 union ehci_qh_shadow *pQh = &pEhci->pshadow [u32Frame]; in ms_periodic_usecs() 145 static int ms_enable_periodic (struct ehci_hcd *pEhci) in ms_enable_periodic() argument 150 if (pEhci->u32PeriodicSched++) // patch from Linux in ms_enable_periodic() 154 iStatus = ms_check_status (&pEhci->op_regs->usbsts, USBSTS_PSS, 0, 9 * 125); in ms_enable_periodic() 157 pEhci->hcd.state = HCD_STATE_HALT; in ms_enable_periodic() [all …]
|
| H A D | drvEHCI_MEM.cxx | 85 static struct ehci_qtd *ms_ehci_qtd_alloc (struct ehci_hcd *pEhci, int iFlags) in ms_ehci_qtd_alloc() argument 90 pQtd = (struct ehci_qtd*) ms_mem_pool_alloc (pEhci->pQtdPool, iFlags, &tDmaAddr); in ms_ehci_qtd_alloc() 109 static __inline__ void ms_ehci_qtd_free (struct ehci_hcd *pEhci, struct ehci_qtd *pQtd) in ms_ehci_qtd_free() argument 111 ms_mem_pool_free (pEhci->pQtdPool, pQtd, pQtd->qtd_dma_addr); in ms_ehci_qtd_free() 115 static struct ehci_qh *ms_ehci_qh_alloc (struct ehci_hcd *pEhci, int iFlags) in ms_ehci_qh_alloc() argument 120 pQh = (struct ehci_qh *)ms_mem_pool_alloc (pEhci->pQhPool, iFlags, &tDmaAddr); in ms_ehci_qh_alloc() 131 pQh->pDummyQtd = ms_ehci_qtd_alloc (pEhci, iFlags); in ms_ehci_qh_alloc() 135 ms_mem_pool_free (pEhci->pQhPool, pQh, pQh->qh_dma_addr); in ms_ehci_qh_alloc() 149 static void ms_qh_put (struct ehci_hcd *pEhci, struct ehci_qh *pQh) in ms_qh_put() argument 160 ms_ehci_qtd_free (pEhci, pQh->pDummyQtd); in ms_qh_put() [all …]
|
| H A D | drvUSBHwCtl.c | 271 struct ehci_hcd *pEhci = hcd_to_ehci (hcd); in ms_ehci_interrupt_enable() local 279 hcd_reg_writel (u32Reg_t, (U32)&pEhci->op_regs->usbintr); in ms_ehci_interrupt_enable() 284 u32Reg_t = hcd_reg_readl((U32)&pEhci->op_regs->usbsts); in ms_ehci_interrupt_enable() 285 hcd_reg_writel (u32Reg_t, (U32)&pEhci->op_regs->usbsts); //clear all pending interrupt in ms_ehci_interrupt_enable() 287 u32Reg_t = hcd_reg_readl((U32)&pEhci->op_regs->bus_control); in ms_ehci_interrupt_enable() 289 hcd_reg_writel (u32Reg_t, (U32)&pEhci->op_regs->bus_control); // set interrupt polarity high in ms_ehci_interrupt_enable() 294 struct ehci_hcd *pEhci = hcd_to_ehci (hcd); in ms_ehci_interrupt_disable() local 296 hcd_reg_writel (0, (U32)&pEhci->op_regs->usbintr); in ms_ehci_interrupt_disable() 298 u32Reg_t = hcd_reg_readl((U32)&pEhci->op_regs->usbsts); in ms_ehci_interrupt_disable() 299 hcd_reg_writel (u32Reg_t, (U32)&pEhci->op_regs->usbsts); //clear all pending interrupt in ms_ehci_interrupt_disable() [all …]
|
| H A D | drvUsbd.c | 684 struct ehci_hcd *pEhci; in ms_new_usb_hcd() local 687 pEhci = (struct ehci_hcd *)kmalloc (sizeof (struct ehci_hcd), GFP_KERNEL); in ms_new_usb_hcd() 688 if (pEhci == NULL) in ms_new_usb_hcd() 695 ms_debug_func("pEhci: %lx\n", (U32) pEhci); in ms_new_usb_hcd() 696 memset (pEhci, 0, sizeof (struct ehci_hcd)); in ms_new_usb_hcd() 697 strncpy(pEhci->hcd.product_desc, "EHCI Host Controller", sizeof(pEhci->hcd.product_desc)); in ms_new_usb_hcd() 698 pHcd = (struct usb_hcd *)(&pEhci->hcd); in ms_new_usb_hcd()
|