Lines Matching refs:hcd

327 static int fhci_start(struct usb_hcd *hcd)  in fhci_start()  argument
330 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_start()
360 hcd->state = HC_STATE_RUNNING; in fhci_start()
378 static void fhci_stop(struct usb_hcd *hcd) in fhci_stop() argument
380 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_stop()
390 static int fhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, in fhci_urb_enqueue() argument
393 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_urb_enqueue()
447 ret = usb_hcd_link_urb_to_ep(hcd, urb); in fhci_urb_enqueue()
470 static int fhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in fhci_urb_dequeue() argument
472 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_urb_dequeue()
482 ret = usb_hcd_check_unlink_urb(hcd, urb, status); in fhci_urb_dequeue()
512 static void fhci_endpoint_disable(struct usb_hcd *hcd, in fhci_endpoint_disable() argument
519 fhci = hcd_to_fhci(hcd); in fhci_endpoint_disable()
533 static int fhci_get_frame_number(struct usb_hcd *hcd) in fhci_get_frame_number() argument
535 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_get_frame_number()
570 struct usb_hcd *hcd; in of_fhci_probe() local
589 hcd = usb_create_hcd(&fhci_driver, dev, dev_name(dev)); in of_fhci_probe()
590 if (!hcd) { in of_fhci_probe()
595 fhci = hcd_to_fhci(hcd); in of_fhci_probe()
596 hcd->self.controller = dev; in of_fhci_probe()
597 dev_set_drvdata(dev, hcd); in of_fhci_probe()
601 hcd->power_budget = *iprop; in of_fhci_probe()
610 hcd->regs = ioremap(usb_regs.start, resource_size(&usb_regs)); in of_fhci_probe()
611 if (!hcd->regs) { in of_fhci_probe()
616 fhci->regs = hcd->regs; in of_fhci_probe()
694 0, "qe timer (usb)", hcd); in of_fhci_probe()
736 dev_info(dev, "at 0x%p, irq %d\n", hcd->regs, usb_irq); in of_fhci_probe()
753 ret = usb_add_hcd(hcd, usb_irq, 0); in of_fhci_probe()
757 device_wakeup_enable(hcd->self.controller); in of_fhci_probe()
767 free_irq(fhci->timer->irq, hcd); in of_fhci_probe()
781 iounmap(hcd->regs); in of_fhci_probe()
783 usb_put_hcd(hcd); in of_fhci_probe()
789 struct usb_hcd *hcd = dev_get_drvdata(dev); in fhci_remove() local
790 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_remove()
794 usb_remove_hcd(hcd); in fhci_remove()
795 free_irq(fhci->timer->irq, hcd); in fhci_remove()
806 usb_put_hcd(hcd); in fhci_remove()