Lines Matching refs:hcd
475 struct usb_hcd *hcd; in fill_async_buffer() local
482 hcd = bus_to_hcd(buf->bus); in fill_async_buffer()
483 fotg210 = hcd_to_fotg210(hcd); in fill_async_buffer()
514 struct usb_hcd *hcd; in fill_periodic_buffer() local
528 hcd = bus_to_hcd(buf->bus); in fill_periodic_buffer()
529 fotg210 = hcd_to_fotg210(hcd); in fill_periodic_buffer()
666 struct usb_hcd *hcd; in fill_registers_buffer() local
674 hcd = bus_to_hcd(buf->bus); in fill_registers_buffer()
675 fotg210 = hcd_to_fotg210(hcd); in fill_registers_buffer()
681 if (!HCD_HW_ACCESSIBLE(hcd)) { in fill_registers_buffer()
686 hcd->self.controller->bus->name, in fill_registers_buffer()
687 dev_name(hcd->self.controller), in fill_registers_buffer()
688 hcd->product_desc); in fill_registers_buffer()
699 hcd->self.controller->bus->name, in fill_registers_buffer()
700 dev_name(hcd->self.controller), in fill_registers_buffer()
701 hcd->product_desc, in fill_registers_buffer()
1458 fotg210_hub_status_data(struct usb_hcd *hcd, char *buf) in fotg210_hub_status_data() argument
1460 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_hub_status_data()
1532 struct usb_hcd *hcd, in fotg210_hub_control() argument
1539 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_hub_control()
1858 static void __maybe_unused fotg210_relinquish_port(struct usb_hcd *hcd, in fotg210_relinquish_port() argument
1864 static int __maybe_unused fotg210_port_handed_over(struct usb_hcd *hcd, in fotg210_port_handed_over() argument
2192 static void fotg210_clear_tt_buffer_complete(struct usb_hcd *hcd, in fotg210_clear_tt_buffer_complete() argument
2195 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_clear_tt_buffer_complete()
3418 static int fotg210_get_frame(struct usb_hcd *hcd);
5038 static void fotg210_shutdown(struct usb_hcd *hcd) in fotg210_shutdown() argument
5040 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_shutdown()
5093 static void fotg210_stop(struct usb_hcd *hcd) in fotg210_stop() argument
5095 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_stop()
5132 static int hcd_fotg210_init(struct usb_hcd *hcd) in hcd_fotg210_init() argument
5134 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in hcd_fotg210_init()
5233 if (!(hcd->driver->flags & HCD_LOCAL_MEM)) in hcd_fotg210_init()
5234 hcd->self.sg_tablesize = ~0; in hcd_fotg210_init()
5239 static int fotg210_run(struct usb_hcd *hcd) in fotg210_run() argument
5241 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_run()
5245 hcd->uses_new_polling = 1; in fotg210_run()
5319 static int fotg210_setup(struct usb_hcd *hcd) in fotg210_setup() argument
5321 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_setup()
5337 retval = hcd_fotg210_init(hcd); in fotg210_setup()
5352 static irqreturn_t fotg210_irq(struct usb_hcd *hcd) in fotg210_irq() argument
5354 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_irq()
5437 usb_hcd_resume_root_hub(hcd); in fotg210_irq()
5455 mod_timer(&hcd->rh_timer, fotg210->reset_done[0]); in fotg210_irq()
5465 usb_hc_died(hcd); in fotg210_irq()
5484 usb_hcd_poll_rh_status(hcd); in fotg210_irq()
5503 struct usb_hcd *hcd, in fotg210_urb_enqueue() argument
5507 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_urb_enqueue()
5540 static int fotg210_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in fotg210_urb_dequeue() argument
5542 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_urb_dequeue()
5548 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in fotg210_urb_dequeue()
5611 fotg210_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *ep) in fotg210_endpoint_disable() argument
5613 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_endpoint_disable()
5684 fotg210_endpoint_reset(struct usb_hcd *hcd, struct usb_host_endpoint *ep) in fotg210_endpoint_reset() argument
5686 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_endpoint_reset()
5724 static int fotg210_get_frame(struct usb_hcd *hcd) in fotg210_get_frame() argument
5726 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_get_frame()
5812 struct usb_hcd *hcd; in fotg210_hcd_probe() local
5833 hcd = usb_create_hcd(&fotg210_fotg210_hc_driver, dev, in fotg210_hcd_probe()
5835 if (!hcd) { in fotg210_hcd_probe()
5841 hcd->has_tt = 1; in fotg210_hcd_probe()
5844 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in fotg210_hcd_probe()
5845 if (IS_ERR(hcd->regs)) { in fotg210_hcd_probe()
5846 retval = PTR_ERR(hcd->regs); in fotg210_hcd_probe()
5850 hcd->rsrc_start = res->start; in fotg210_hcd_probe()
5851 hcd->rsrc_len = resource_size(res); in fotg210_hcd_probe()
5853 fotg210 = hcd_to_fotg210(hcd); in fotg210_hcd_probe()
5855 fotg210->caps = hcd->regs; in fotg210_hcd_probe()
5857 retval = fotg210_setup(hcd); in fotg210_hcd_probe()
5863 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in fotg210_hcd_probe()
5868 device_wakeup_enable(hcd->self.controller); in fotg210_hcd_probe()
5873 usb_put_hcd(hcd); in fotg210_hcd_probe()
5887 struct usb_hcd *hcd = dev_get_drvdata(dev); in fotg210_hcd_remove() local
5889 if (!hcd) in fotg210_hcd_remove()
5892 usb_remove_hcd(hcd); in fotg210_hcd_remove()
5893 usb_put_hcd(hcd); in fotg210_hcd_remove()