Lines Matching defs:hcd

48 #include <linux/usb/hcd.h>
64 MODULE_ALIAS("platform:sl811-hcd");
74 static const char hcd_name[] = "sl811-hcd";
80 struct usb_hcd *hcd = sl811_to_hcd(sl811);
92 hcd->state = HC_STATE_HALT;
100 dev_dbg(hcd->self.controller, "power %s\n",
102 sl811->board->port_power(hcd->self.controller, is_on);
107 sl811->board->reset(hcd->self.controller);
620 static irqreturn_t sl811h_irq(struct usb_hcd *hcd)
622 struct sl811 *sl811 = hcd_to_sl811(hcd);
671 // dev_err(hcd->self.controller, "overrun to slot %d\n", index);
729 dev_dbg(hcd->self.controller, "wakeup\n");
791 struct usb_hcd *hcd,
795 struct sl811 *sl811 = hcd_to_sl811(hcd);
823 || !HC_IS_RUNNING(hcd->state)) {
828 retval = usb_hcd_link_urb_to_ep(hcd, urb);
858 dev_dbg(hcd->self.controller,
924 dev_dbg(hcd->self.controller, "schedule qh%d/%p branch %d\n",
943 hcd->self.bandwidth_allocated += ep->load / ep->period;
952 usb_hcd_unlink_urb_from_ep(hcd, urb);
958 static int sl811h_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
960 struct sl811 *sl811 = hcd_to_sl811(hcd);
967 retval = usb_hcd_check_unlink_urb(hcd, urb, status);
984 dev_dbg(hcd->self.controller,
999 dev_dbg(hcd->self.controller,
1029 sl811h_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *hep)
1040 dev_warn(hcd->self.controller, "ep %p not empty?\n", ep);
1047 sl811h_get_frame(struct usb_hcd *hcd)
1049 struct sl811 *sl811 = hcd_to_sl811(hcd);
1063 sl811h_hub_status_data(struct usb_hcd *hcd, char *buf)
1065 struct sl811 *sl811 = hcd_to_sl811(hcd);
1074 if (sl811h_irq( /* ~0, */ hcd) != IRQ_NONE)
1213 struct usb_hcd *hcd,
1220 struct sl811 *sl811 = hcd_to_sl811(hcd);
1255 dev_dbg(hcd->self.controller, "start resume...\n");
1292 dev_dbg(hcd->self.controller, "GetPortStatus %08x\n",
1305 dev_dbg(hcd->self.controller,"suspend...\n");
1347 sl811h_bus_suspend(struct usb_hcd *hcd)
1350 dev_dbg(hcd->self.controller, "%s\n", __func__);
1355 sl811h_bus_resume(struct usb_hcd *hcd)
1358 dev_dbg(hcd->self.controller, "%s\n", __func__);
1511 sl811h_stop(struct usb_hcd *hcd)
1513 struct sl811 *sl811 = hcd_to_sl811(hcd);
1516 del_timer_sync(&hcd->rh_timer);
1524 sl811h_start(struct usb_hcd *hcd)
1526 struct sl811 *sl811 = hcd_to_sl811(hcd);
1529 hcd->state = HC_STATE_RUNNING;
1532 if (!device_can_wakeup(hcd->self.controller))
1533 device_init_wakeup(hcd->self.controller,
1535 hcd->power_budget = sl811->board->power * 2;
1586 struct usb_hcd *hcd = platform_get_drvdata(dev);
1587 struct sl811 *sl811 = hcd_to_sl811(hcd);
1591 usb_remove_hcd(hcd);
1602 usb_put_hcd(hcd);
1609 struct usb_hcd *hcd;
1665 /* allocate and initialize hcd */
1666 hcd = usb_create_hcd(&sl811h_hc_driver, &dev->dev, dev_name(&dev->dev));
1667 if (!hcd) {
1671 hcd->rsrc_start = addr->start;
1672 sl811 = hcd_to_sl811(hcd);
1689 hcd->product_desc = "SL811HS v1.2";
1692 hcd->product_desc = "SL811HS v1.5";
1711 retval = usb_add_hcd(hcd, irq, irqflags);
1715 device_wakeup_enable(hcd->self.controller);
1721 usb_put_hcd(hcd);
1742 struct usb_hcd *hcd = platform_get_drvdata(dev);
1743 struct sl811 *sl811 = hcd_to_sl811(hcd);
1748 retval = sl811h_bus_suspend(hcd);
1762 struct usb_hcd *hcd = platform_get_drvdata(dev);
1763 struct sl811 *sl811 = hcd_to_sl811(hcd);
1768 if (!sl811->port1 || !device_can_wakeup(&hcd->self.root_hub->dev)) {
1771 usb_root_hub_lost_power(hcd->self.root_hub);
1775 return sl811h_bus_resume(hcd);