Lines Matching refs:hcd
79 struct usb_hcd *hcd = sl811_to_hcd(sl811); in port_power() local
91 hcd->state = HC_STATE_HALT; in port_power()
99 dev_dbg(hcd->self.controller, "power %s\n", in port_power()
101 sl811->board->port_power(hcd->self.controller, is_on); in port_power()
106 sl811->board->reset(hcd->self.controller); in port_power()
619 static irqreturn_t sl811h_irq(struct usb_hcd *hcd) in sl811h_irq() argument
621 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_irq()
728 dev_dbg(hcd->self.controller, "wakeup\n"); in sl811h_irq()
790 struct usb_hcd *hcd, in sl811h_urb_enqueue() argument
794 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_urb_enqueue()
822 || !HC_IS_RUNNING(hcd->state)) { in sl811h_urb_enqueue()
827 retval = usb_hcd_link_urb_to_ep(hcd, urb); in sl811h_urb_enqueue()
857 dev_dbg(hcd->self.controller, in sl811h_urb_enqueue()
923 dev_dbg(hcd->self.controller, "schedule qh%d/%p branch %d\n", in sl811h_urb_enqueue()
942 hcd->self.bandwidth_allocated += ep->load / ep->period; in sl811h_urb_enqueue()
951 usb_hcd_unlink_urb_from_ep(hcd, urb); in sl811h_urb_enqueue()
957 static int sl811h_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in sl811h_urb_dequeue() argument
959 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_urb_dequeue()
966 retval = usb_hcd_check_unlink_urb(hcd, urb, status); in sl811h_urb_dequeue()
983 dev_dbg(hcd->self.controller, in sl811h_urb_dequeue()
998 dev_dbg(hcd->self.controller, in sl811h_urb_dequeue()
1028 sl811h_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *hep) in sl811h_endpoint_disable() argument
1039 dev_warn(hcd->self.controller, "ep %p not empty?\n", ep); in sl811h_endpoint_disable()
1046 sl811h_get_frame(struct usb_hcd *hcd) in sl811h_get_frame() argument
1048 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_get_frame()
1062 sl811h_hub_status_data(struct usb_hcd *hcd, char *buf) in sl811h_hub_status_data() argument
1064 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_hub_status_data()
1073 if (sl811h_irq( /* ~0, */ hcd) != IRQ_NONE) in sl811h_hub_status_data()
1212 struct usb_hcd *hcd, in sl811h_hub_control() argument
1219 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_hub_control()
1254 dev_dbg(hcd->self.controller, "start resume...\n"); in sl811h_hub_control()
1292 dev_dbg(hcd->self.controller, "GetPortStatus %08x\n", in sl811h_hub_control()
1305 dev_dbg(hcd->self.controller,"suspend...\n"); in sl811h_hub_control()
1347 sl811h_bus_suspend(struct usb_hcd *hcd) in sl811h_bus_suspend() argument
1350 dev_dbg(hcd->self.controller, "%s\n", __func__); in sl811h_bus_suspend()
1355 sl811h_bus_resume(struct usb_hcd *hcd) in sl811h_bus_resume() argument
1358 dev_dbg(hcd->self.controller, "%s\n", __func__); in sl811h_bus_resume()
1522 sl811h_stop(struct usb_hcd *hcd) in sl811h_stop() argument
1524 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_stop()
1527 del_timer_sync(&hcd->rh_timer); in sl811h_stop()
1535 sl811h_start(struct usb_hcd *hcd) in sl811h_start() argument
1537 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_start()
1540 hcd->state = HC_STATE_RUNNING; in sl811h_start()
1543 if (!device_can_wakeup(hcd->self.controller)) in sl811h_start()
1544 device_init_wakeup(hcd->self.controller, in sl811h_start()
1546 hcd->power_budget = sl811->board->power * 2; in sl811h_start()
1597 struct usb_hcd *hcd = platform_get_drvdata(dev); in sl811h_remove() local
1598 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_remove()
1602 usb_remove_hcd(hcd); in sl811h_remove()
1613 usb_put_hcd(hcd); in sl811h_remove()
1620 struct usb_hcd *hcd; in sl811h_probe() local
1683 hcd = usb_create_hcd(&sl811h_hc_driver, &dev->dev, dev_name(&dev->dev)); in sl811h_probe()
1684 if (!hcd) { in sl811h_probe()
1688 hcd->rsrc_start = addr->start; in sl811h_probe()
1689 sl811 = hcd_to_sl811(hcd); in sl811h_probe()
1706 hcd->product_desc = "SL811HS v1.2"; in sl811h_probe()
1709 hcd->product_desc = "SL811HS v1.5"; in sl811h_probe()
1728 retval = usb_add_hcd(hcd, irq, irqflags); in sl811h_probe()
1732 device_wakeup_enable(hcd->self.controller); in sl811h_probe()
1738 usb_put_hcd(hcd); in sl811h_probe()
1759 struct usb_hcd *hcd = platform_get_drvdata(dev); in sl811h_suspend() local
1760 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_suspend()
1765 retval = sl811h_bus_suspend(hcd); in sl811h_suspend()
1779 struct usb_hcd *hcd = platform_get_drvdata(dev); in sl811h_resume() local
1780 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_resume()
1785 if (!sl811->port1 || !device_can_wakeup(&hcd->self.root_hub->dev)) { in sl811h_resume()
1788 usb_root_hub_lost_power(hcd->self.root_hub); in sl811h_resume()
1792 return sl811h_bus_resume(hcd); in sl811h_resume()