Lines Matching defs:hcd

75 #include <linux/usb/hcd.h>
105 static const char hcd_name[] = "isp1362-hcd";
107 static void isp1362_hc_stop(struct usb_hcd *hcd);
108 static int isp1362_hc_start(struct usb_hcd *hcd);
1007 static irqreturn_t isp1362_irq(struct usb_hcd *hcd)
1010 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
1148 usb_hcd_resume_root_hub(hcd);
1216 static int isp1362_urb_enqueue(struct usb_hcd *hcd,
1220 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
1261 !HC_IS_RUNNING(hcd->state)) {
1267 retval = usb_hcd_link_urb_to_ep(hcd, urb);
1387 usb_hcd_unlink_urb_from_ep(hcd, urb);
1397 static int isp1362_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
1399 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
1408 retval = usb_hcd_check_unlink_urb(hcd, urb, status);
1449 static void isp1362_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *hep)
1452 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
1479 static int isp1362_get_frame(struct usb_hcd *hcd)
1481 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
1495 static int isp1362_hub_status_data(struct usb_hcd *hcd, char *buf)
1497 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
1501 if (!HC_IS_RUNNING(hcd->state))
1506 if (timer_pending(&hcd->rh_timer))
1563 static int isp1362_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
1566 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
1733 static int isp1362_bus_suspend(struct usb_hcd *hcd)
1736 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
1763 hcd->state = HC_STATE_QUIESCING;
1823 hcd->state = HC_STATE_SUSPENDED;
1831 static int isp1362_bus_resume(struct usb_hcd *hcd)
1833 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
1844 if (hcd->state == HC_STATE_RESUMING) {
1862 hcd->self.root_hub->dev.power.power_state = PMSG_ON;
1871 isp1362_hc_stop(hcd);
1872 return isp1362_hc_start(hcd);
1892 hcd->state = HC_STATE_RESUMING;
1906 hcd->self.root_hub->dev.power.power_state = PMSG_ON;
1907 hcd->state = HC_STATE_RUNNING;
2204 static int isp1362_mem_config(struct usb_hcd *hcd)
2206 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
2228 dev_info(hcd->self.controller, "ISP1362 Memory usage:\n");
2229 dev_info(hcd->self.controller, " ISTL: 2 * %4d: %4d @ $%04x:$%04x\n",
2231 dev_info(hcd->self.controller, " INTL: %4d * (%3zu+8): %4d @ $%04x\n",
2234 dev_info(hcd->self.controller, " ATL : %4d * (%3zu+8): %4d @ $%04x\n",
2237 dev_info(hcd->self.controller, " USED/FREE: %4d %4d\n", total,
2241 dev_err(hcd->self.controller, "%s: Memory requested: %d, available %d\n",
2314 static int isp1362_hc_reset(struct usb_hcd *hcd)
2317 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
2326 isp1362_hcd->board->reset(hcd->self.controller, 1);
2329 isp1362_hcd->board->clock(hcd->self.controller, 1);
2330 isp1362_hcd->board->reset(hcd->self.controller, 0);
2354 static void isp1362_hc_stop(struct usb_hcd *hcd)
2356 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
2362 del_timer_sync(&hcd->rh_timer);
2376 isp1362_hcd->board->reset(hcd->self.controller, 1);
2381 isp1362_hcd->board->clock(hcd->self.controller, 0);
2479 static int isp1362_hc_start(struct usb_hcd *hcd)
2482 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
2531 ret = isp1362_mem_config(hcd);
2563 hcd->state = HC_STATE_RUNNING;
2613 struct usb_hcd *hcd = platform_get_drvdata(pdev);
2614 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
2618 usb_remove_hcd(hcd);
2620 usb_put_hcd(hcd);
2628 struct usb_hcd *hcd;
2663 /* allocate and initialize hcd */
2664 hcd = usb_create_hcd(&isp1362_hc_driver, &pdev->dev, dev_name(&pdev->dev));
2665 if (!hcd)
2668 hcd->rsrc_start = data->start;
2669 isp1362_hcd = hcd_to_isp1362_hcd(hcd);
2682 dev_err(hcd->self.controller, "No platform delay function given\n");
2697 retval = usb_add_hcd(hcd, irq, irq_flags | IRQF_SHARED);
2700 device_wakeup_enable(hcd->self.controller);
2702 dev_info(&pdev->dev, "%s, irq %d\n", hcd->product_desc, irq);
2709 usb_put_hcd(hcd);
2717 struct usb_hcd *hcd = platform_get_drvdata(pdev);
2718 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);
2726 retval = isp1362_bus_suspend(hcd);
2740 struct usb_hcd *hcd = platform_get_drvdata(pdev);
2741 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd);