• Home
  • Raw
  • Download

Lines Matching refs:hcd

85 static int ohci_da8xx_init(struct usb_hcd *hcd)  in ohci_da8xx_init()  argument
87 struct device *dev = hcd->self.controller; in ohci_da8xx_init()
89 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_init()
129 static void ohci_da8xx_stop(struct usb_hcd *hcd) in ohci_da8xx_stop() argument
131 ohci_stop(hcd); in ohci_da8xx_stop()
135 static int ohci_da8xx_start(struct usb_hcd *hcd) in ohci_da8xx_start() argument
137 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_start()
142 ohci_da8xx_stop(hcd); in ohci_da8xx_start()
150 static int ohci_da8xx_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_da8xx_hub_status_data() argument
152 int length = ohci_hub_status_data(hcd, buf); in ohci_da8xx_hub_status_data()
156 dev_dbg(hcd->self.controller, "over-current indicator change " in ohci_da8xx_hub_status_data()
170 static int ohci_da8xx_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in ohci_da8xx_hub_control() argument
173 struct device *dev = hcd->self.controller; in ohci_da8xx_hub_control()
185 temp = roothub_portstatus(hcd_to_ohci(hcd), wIndex - 1); in ohci_da8xx_hub_control()
234 return ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_da8xx_hub_control()
296 struct usb_hcd *hcd; in usb_hcd_da8xx_probe() local
311 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in usb_hcd_da8xx_probe()
312 if (!hcd) in usb_hcd_da8xx_probe()
316 hcd->regs = devm_ioremap_resource(&pdev->dev, mem); in usb_hcd_da8xx_probe()
317 if (IS_ERR(hcd->regs)) { in usb_hcd_da8xx_probe()
318 error = PTR_ERR(hcd->regs); in usb_hcd_da8xx_probe()
321 hcd->rsrc_start = mem->start; in usb_hcd_da8xx_probe()
322 hcd->rsrc_len = resource_size(mem); in usb_hcd_da8xx_probe()
324 ohci_hcd_init(hcd_to_ohci(hcd)); in usb_hcd_da8xx_probe()
331 error = usb_add_hcd(hcd, irq, 0); in usb_hcd_da8xx_probe()
335 device_wakeup_enable(hcd->self.controller); in usb_hcd_da8xx_probe()
343 usb_remove_hcd(hcd); in usb_hcd_da8xx_probe()
345 usb_put_hcd(hcd); in usb_hcd_da8xx_probe()
359 usb_hcd_da8xx_remove(struct usb_hcd *hcd, struct platform_device *pdev) in usb_hcd_da8xx_remove() argument
364 usb_remove_hcd(hcd); in usb_hcd_da8xx_remove()
365 usb_put_hcd(hcd); in usb_hcd_da8xx_remove()
375 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_da8xx_drv_remove() local
377 usb_hcd_da8xx_remove(hcd, dev); in ohci_hcd_da8xx_drv_remove()
386 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_da8xx_suspend() local
387 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_suspend()
396 ret = ohci_suspend(hcd, do_wakeup); in ohci_da8xx_suspend()
401 hcd->state = HC_STATE_SUSPENDED; in ohci_da8xx_suspend()
408 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_da8xx_resume() local
409 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_resume()
417 usb_hcd_resume_root_hub(hcd); in ohci_da8xx_resume()