Lines Matching refs:pDev

106 extern void ms_ehci_disable_ep (struct usb_hcd *pHcd, struct s_hcd_dev *pDev, int iEp);
680 int ms_new_usb_hcd(struct usb_hcd **pHcd_out, struct cpe_dev *pDev) in ms_new_usb_hcd() argument
701 pHcd->host_id = pDev->devid; // chcek the definition in ms_new_usb_hcd()
702 pHcd->phub_event = pDev->pHubEvent; in ms_new_usb_hcd()
703 pHcd->ehci_irq = pDev->intNum; in ms_new_usb_hcd()
704 pHcd->uhc_regs = (U32*) pDev->uhcbase; in ms_new_usb_hcd()
705 pHcd->self.controller = &pDev->dev; in ms_new_usb_hcd()
728 pHcd->self.bus_name = pDev->bus_name; in ms_new_usb_hcd()
730 memcpy(pHcd->product_desc, pDev->product_desc, sizeof(pHcd->product_desc)); in ms_new_usb_hcd()
928 struct s_hcd_dev *pDev; in ms_hcd_alloc_dev() local
942 pDev = (struct s_hcd_dev *) kmalloc (sizeof *pDev, GFP_KERNEL); in ms_hcd_alloc_dev()
943 if (pDev == NULL) in ms_hcd_alloc_dev()
945 memset (pDev, 0, sizeof *pDev); in ms_hcd_alloc_dev()
947 ms_list_init (&pDev->dev_list); in ms_hcd_alloc_dev()
948 ms_list_init (&pDev->urb_list); in ms_hcd_alloc_dev()
951 ms_insert_list_after (&pDev->dev_list, &pHcd->hcd_dev_list); in ms_hcd_alloc_dev()
953 iUdev->hcpriv = pDev; in ms_hcd_alloc_dev()
989 struct s_hcd_dev *pDev = (struct s_hcd_dev*) pUrb->dev->hcpriv; in ms_hcd_submit_urb() local
994 if (!pHcd || !pDev) in ms_hcd_submit_urb()
1007 ms_insert_list_before (&pUrb->urb_list, &pDev->urb_list); in ms_hcd_submit_urb()
1333 struct s_hcd_dev *pDev; in ms_hcd_endpoint_disable() local
1336 pDev = (struct s_hcd_dev*) pUdev->hcpriv; in ms_hcd_endpoint_disable()
1346 ms_ehci_disable_ep(pHcd, pDev, iEndpoint); in ms_hcd_endpoint_disable()
1353 struct s_hcd_dev *pDev = (struct s_hcd_dev*) pUdev->hcpriv; in ms_usb_hcd_flush_endpoint() local
1373 pUrb = entry_to_container((&pDev->urb_list)->next, struct urb, urb_list); in ms_usb_hcd_flush_endpoint()
1374 for( ; &(pUrb->urb_list) != &(pDev->urb_list); in ms_usb_hcd_flush_endpoint()
1425 struct s_hcd_dev *pDev; in ms_hcd_check_dev_urb() local
1429 pDev = (struct s_hcd_dev*) pUdev->hcpriv; in ms_hcd_check_dev_urb()
1436 pUrb = entry_to_container((&pDev->urb_list)->next, struct urb, urb_list); in ms_hcd_check_dev_urb()
1437 for( ; &(pUrb->urb_list) != &(pDev->urb_list); in ms_hcd_check_dev_urb()
1455 struct s_hcd_dev *pDev; in ms_hcd_free_dev() local
1475 pDev = (struct s_hcd_dev*) pUdev->hcpriv; in ms_hcd_free_dev()
1478 if (!ms_is_empty_list (&pDev->urb_list)) in ms_hcd_free_dev()
1487 ms_list_remove (&pDev->dev_list); in ms_hcd_free_dev()
1491 kfree (pDev); in ms_hcd_free_dev()