Lines Matching refs:hcd
460 struct usb_hcd *hcd; in fill_async_buffer() local
467 hcd = bus_to_hcd(buf->bus); in fill_async_buffer()
468 fotg210 = hcd_to_fotg210(hcd); in fill_async_buffer()
527 struct usb_hcd *hcd; in fill_periodic_buffer() local
542 hcd = bus_to_hcd(buf->bus); in fill_periodic_buffer()
543 fotg210 = hcd_to_fotg210(hcd); in fill_periodic_buffer()
652 struct usb_hcd *hcd; in fill_registers_buffer() local
660 hcd = bus_to_hcd(buf->bus); in fill_registers_buffer()
661 fotg210 = hcd_to_fotg210(hcd); in fill_registers_buffer()
667 if (!HCD_HW_ACCESSIBLE(hcd)) { in fill_registers_buffer()
672 hcd->self.controller->bus->name, in fill_registers_buffer()
673 dev_name(hcd->self.controller), in fill_registers_buffer()
674 hcd->product_desc); in fill_registers_buffer()
685 hcd->self.controller->bus->name, in fill_registers_buffer()
686 dev_name(hcd->self.controller), in fill_registers_buffer()
687 hcd->product_desc, in fill_registers_buffer()
1418 static int fotg210_hub_status_data(struct usb_hcd *hcd, char *buf) in fotg210_hub_status_data() argument
1420 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_hub_status_data()
1485 static int fotg210_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in fotg210_hub_control() argument
1488 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_hub_control()
1806 static void __maybe_unused fotg210_relinquish_port(struct usb_hcd *hcd, in fotg210_relinquish_port() argument
1812 static int __maybe_unused fotg210_port_handed_over(struct usb_hcd *hcd, in fotg210_port_handed_over() argument
2118 static void fotg210_clear_tt_buffer_complete(struct usb_hcd *hcd, in fotg210_clear_tt_buffer_complete() argument
2121 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_clear_tt_buffer_complete()
3302 static int fotg210_get_frame(struct usb_hcd *hcd);
4847 static void fotg210_shutdown(struct usb_hcd *hcd) in fotg210_shutdown() argument
4849 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_shutdown()
4898 static void fotg210_stop(struct usb_hcd *hcd) in fotg210_stop() argument
4900 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_stop()
4937 static int hcd_fotg210_init(struct usb_hcd *hcd) in hcd_fotg210_init() argument
4939 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in hcd_fotg210_init()
5038 if (!(hcd->driver->flags & HCD_LOCAL_MEM)) in hcd_fotg210_init()
5039 hcd->self.sg_tablesize = ~0; in hcd_fotg210_init()
5044 static int fotg210_run(struct usb_hcd *hcd) in fotg210_run() argument
5046 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_run()
5050 hcd->uses_new_polling = 1; in fotg210_run()
5124 static int fotg210_setup(struct usb_hcd *hcd) in fotg210_setup() argument
5126 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_setup()
5142 retval = hcd_fotg210_init(hcd); in fotg210_setup()
5155 static irqreturn_t fotg210_irq(struct usb_hcd *hcd) in fotg210_irq() argument
5157 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_irq()
5240 usb_hcd_resume_root_hub(hcd); in fotg210_irq()
5258 mod_timer(&hcd->rh_timer, fotg210->reset_done[0]); in fotg210_irq()
5268 usb_hc_died(hcd); in fotg210_irq()
5287 usb_hcd_poll_rh_status(hcd); in fotg210_irq()
5302 static int fotg210_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, in fotg210_urb_enqueue() argument
5305 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_urb_enqueue()
5338 static int fotg210_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in fotg210_urb_dequeue() argument
5340 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_urb_dequeue()
5346 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in fotg210_urb_dequeue()
5406 static void fotg210_endpoint_disable(struct usb_hcd *hcd, in fotg210_endpoint_disable() argument
5409 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_endpoint_disable()
5479 static void fotg210_endpoint_reset(struct usb_hcd *hcd, in fotg210_endpoint_reset() argument
5482 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_endpoint_reset()
5520 static int fotg210_get_frame(struct usb_hcd *hcd) in fotg210_get_frame() argument
5522 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd); in fotg210_get_frame()
5606 struct usb_hcd *hcd; in fotg210_hcd_probe() local
5626 hcd = usb_create_hcd(&fotg210_fotg210_hc_driver, dev, in fotg210_hcd_probe()
5628 if (!hcd) { in fotg210_hcd_probe()
5634 hcd->has_tt = 1; in fotg210_hcd_probe()
5637 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in fotg210_hcd_probe()
5638 if (IS_ERR(hcd->regs)) { in fotg210_hcd_probe()
5639 retval = PTR_ERR(hcd->regs); in fotg210_hcd_probe()
5643 hcd->rsrc_start = res->start; in fotg210_hcd_probe()
5644 hcd->rsrc_len = resource_size(res); in fotg210_hcd_probe()
5646 fotg210 = hcd_to_fotg210(hcd); in fotg210_hcd_probe()
5648 fotg210->caps = hcd->regs; in fotg210_hcd_probe()
5650 retval = fotg210_setup(hcd); in fotg210_hcd_probe()
5656 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in fotg210_hcd_probe()
5661 device_wakeup_enable(hcd->self.controller); in fotg210_hcd_probe()
5666 usb_put_hcd(hcd); in fotg210_hcd_probe()
5680 struct usb_hcd *hcd = dev_get_drvdata(dev); in fotg210_hcd_remove() local
5682 if (!hcd) in fotg210_hcd_remove()
5685 usb_remove_hcd(hcd); in fotg210_hcd_remove()
5686 usb_put_hcd(hcd); in fotg210_hcd_remove()