Lines Matching refs:hcd

27 #include <linux/usb/hcd.h>
79 #include "fotg210-hcd.h"
442 struct usb_hcd *hcd;
449 hcd = bus_to_hcd(buf->bus);
450 fotg210 = hcd_to_fotg210(hcd);
509 struct usb_hcd *hcd;
524 hcd = bus_to_hcd(buf->bus);
525 fotg210 = hcd_to_fotg210(hcd);
634 struct usb_hcd *hcd;
642 hcd = bus_to_hcd(buf->bus);
643 fotg210 = hcd_to_fotg210(hcd);
649 if (!HCD_HW_ACCESSIBLE(hcd)) {
654 hcd->self.controller->bus->name,
655 dev_name(hcd->self.controller),
656 hcd->product_desc);
667 hcd->self.controller->bus->name,
668 dev_name(hcd->self.controller),
669 hcd->product_desc,
1385 static int fotg210_hub_status_data(struct usb_hcd *hcd, char *buf)
1387 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
1452 static int fotg210_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
1455 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
1777 static void __maybe_unused fotg210_relinquish_port(struct usb_hcd *hcd,
1783 static int __maybe_unused fotg210_port_handed_over(struct usb_hcd *hcd,
2088 static void fotg210_clear_tt_buffer_complete(struct usb_hcd *hcd,
2091 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
3264 static int fotg210_get_frame(struct usb_hcd *hcd);
4799 static void fotg210_shutdown(struct usb_hcd *hcd)
4801 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
4850 static void fotg210_stop(struct usb_hcd *hcd)
4852 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
4889 static int hcd_fotg210_init(struct usb_hcd *hcd)
4891 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
4990 if (!hcd->localmem_pool)
4991 hcd->self.sg_tablesize = ~0;
4996 static int fotg210_run(struct usb_hcd *hcd)
4998 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
5001 hcd->uses_new_polling = 1;
5075 static int fotg210_setup(struct usb_hcd *hcd)
5077 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
5093 retval = hcd_fotg210_init(hcd);
5106 static irqreturn_t fotg210_irq(struct usb_hcd *hcd)
5108 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
5191 usb_hcd_resume_root_hub(hcd);
5209 mod_timer(&hcd->rh_timer, fotg210->reset_done[0]);
5219 usb_hc_died(hcd);
5238 usb_hcd_poll_rh_status(hcd);
5245 * urb + dev is in hcd.self.controller.urb_list
5248 * hcd-specific init for hcpriv hasn't been done yet
5253 static int fotg210_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
5256 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
5289 static int fotg210_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
5291 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
5297 rc = usb_hcd_check_unlink_urb(hcd, urb, status);
5357 static void fotg210_endpoint_disable(struct usb_hcd *hcd,
5360 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
5430 static void fotg210_endpoint_reset(struct usb_hcd *hcd,
5433 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
5471 static int fotg210_get_frame(struct usb_hcd *hcd)
5473 struct fotg210_hcd *fotg210 = hcd_to_fotg210(hcd);
5554 struct usb_hcd *hcd;
5568 hcd = usb_create_hcd(&fotg210_fotg210_hc_driver, dev,
5570 if (!hcd) {
5571 retval = dev_err_probe(dev, -ENOMEM, "failed to create hcd\n");
5575 hcd->has_tt = 1;
5577 hcd->regs = fotg->base;
5579 hcd->rsrc_start = fotg->res->start;
5580 hcd->rsrc_len = resource_size(fotg->res);
5582 fotg210 = hcd_to_fotg210(hcd);
5585 fotg210->caps = hcd->regs;
5587 retval = fotg210_setup(hcd);
5593 retval = usb_add_hcd(hcd, irq, IRQF_SHARED);
5595 dev_err_probe(dev, retval, "failed to add hcd\n");
5598 device_wakeup_enable(hcd->self.controller);
5599 platform_set_drvdata(pdev, hcd);
5604 usb_put_hcd(hcd);
5616 struct usb_hcd *hcd = platform_get_drvdata(pdev);
5618 usb_remove_hcd(hcd);
5619 usb_put_hcd(hcd);