Lines Matching defs:hcd

68 #include <linux/usb/hcd.h>
83 static const char hcd_name[] = "isp116x-hcd";
591 static irqreturn_t isp116x_irq(struct usb_hcd *hcd)
593 struct isp116x *isp116x = hcd_to_isp116x(hcd);
614 hcd->state = HC_STATE_HALT;
615 usb_hc_died(hcd);
623 mod_timer(&hcd->rh_timer, jiffies
627 usb_hcd_resume_root_hub(hcd);
681 static int isp116x_urb_enqueue(struct usb_hcd *hcd,
685 struct isp116x *isp116x = hcd_to_isp116x(hcd);
712 if (!HC_IS_RUNNING(hcd->state)) {
717 ret = usb_hcd_link_urb_to_ep(hcd, urb);
812 hcd->self.bandwidth_allocated += ep->load / ep->period;
828 usb_hcd_unlink_urb_from_ep(hcd, urb);
837 static int isp116x_urb_dequeue(struct usb_hcd *hcd, struct urb *urb,
840 struct isp116x *isp116x = hcd_to_isp116x(hcd);
847 rc = usb_hcd_check_unlink_urb(hcd, urb, status);
874 static void isp116x_endpoint_disable(struct usb_hcd *hcd,
893 static int isp116x_get_frame(struct usb_hcd *hcd)
895 struct isp116x *isp116x = hcd_to_isp116x(hcd);
908 static int isp116x_hub_status_data(struct usb_hcd *hcd, char *buf)
910 struct isp116x *isp116x = hcd_to_isp116x(hcd);
914 if (!HC_IS_RUNNING(hcd->state))
919 if (timer_pending(&hcd->rh_timer))
1003 static int isp116x_hub_control(struct usb_hcd *hcd,
1007 struct isp116x *isp116x = hcd_to_isp116x(hcd);
1248 static int isp116x_reset(struct usb_hcd *hcd)
1250 struct isp116x *isp116x = hcd_to_isp116x(hcd);
1278 static void isp116x_stop(struct usb_hcd *hcd)
1280 struct isp116x *isp116x = hcd_to_isp116x(hcd);
1301 static int isp116x_start(struct usb_hcd *hcd)
1303 struct isp116x *isp116x = hcd_to_isp116x(hcd);
1322 hcd->uses_new_polling = 1;
1359 if (!device_can_wakeup(hcd->self.controller))
1360 device_init_wakeup(hcd->self.controller, 1);
1368 hcd->state = HC_STATE_RUNNING;
1395 static int isp116x_bus_suspend(struct usb_hcd *hcd)
1397 struct isp116x *isp116x = hcd_to_isp116x(hcd);
1410 if (hcd->self.root_hub->do_remote_wakeup)
1436 static int isp116x_bus_resume(struct usb_hcd *hcd)
1438 struct isp116x *isp116x = hcd_to_isp116x(hcd);
1460 isp116x_reset(hcd);
1461 isp116x_start(hcd);
1462 isp116x_hub_control(hcd, SetPortFeature,
1465 isp116x_hub_control(hcd, SetPortFeature,
1483 hcd->state = HC_STATE_RESUMING;
1492 hcd->state = HC_STATE_RUNNING;
1532 struct usb_hcd *hcd = platform_get_drvdata(pdev);
1536 if (!hcd)
1538 isp116x = hcd_to_isp116x(hcd);
1540 usb_remove_hcd(hcd);
1551 usb_put_hcd(hcd);
1557 struct usb_hcd *hcd;
1605 /* allocate and initialize hcd */
1606 hcd = usb_create_hcd(&isp116x_hc_driver, &pdev->dev, dev_name(&pdev->dev));
1607 if (!hcd) {
1612 hcd->rsrc_start = addr->start;
1613 isp116x = hcd_to_isp116x(hcd);
1628 ERR("See comments in drivers/usb/host/isp116x-hcd.c\n");
1633 ret = usb_add_hcd(hcd, irq, irqflags);
1637 device_wakeup_enable(hcd->self.controller);
1644 usb_put_hcd(hcd);
1685 MODULE_ALIAS("platform:isp116x-hcd");