Lines Matching defs:hcd

22 #include <linux/usb/hcd.h>
42 static int r8a66597_get_frame(struct usb_hcd *hcd);
1272 struct usb_hcd *hcd = r8a66597_to_hcd(r8a66597);
1290 urb->start_frame = r8a66597_get_frame(hcd);
1600 static irqreturn_t r8a66597_irq(struct usb_hcd *hcd)
1602 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
1824 static int r8a66597_start(struct usb_hcd *hcd)
1826 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
1828 hcd->state = HC_STATE_RUNNING;
1832 static void r8a66597_stop(struct usb_hcd *hcd)
1834 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
1883 static int r8a66597_urb_enqueue(struct usb_hcd *hcd,
1888 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
1899 ret = usb_hcd_link_urb_to_ep(hcd, urb);
1947 usb_hcd_unlink_urb_from_ep(hcd, urb);
1953 static int r8a66597_urb_dequeue(struct usb_hcd *hcd, struct urb *urb,
1956 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
1962 rc = usb_hcd_check_unlink_urb(hcd, urb, status);
1978 static void r8a66597_endpoint_disable(struct usb_hcd *hcd,
1983 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
2014 static int r8a66597_get_frame(struct usb_hcd *hcd)
2016 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
2087 struct usb_hcd *hcd)
2095 bus = idr_find(&usb_bus_idr, hcd->self.busnum);
2103 static int r8a66597_hub_status_data(struct usb_hcd *hcd, char *buf)
2105 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
2109 r8a66597_check_detect_child(r8a66597, hcd);
2140 static int r8a66597_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
2143 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
2244 static int r8a66597_bus_suspend(struct usb_hcd *hcd)
2246 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
2275 static int r8a66597_bus_resume(struct usb_hcd *hcd)
2277 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd);
2361 struct usb_hcd *hcd = r8a66597_to_hcd(r8a66597);
2366 usb_root_hub_lost_power(hcd->self.root_hub);
2386 struct usb_hcd *hcd = r8a66597_to_hcd(r8a66597);
2389 usb_remove_hcd(hcd);
2393 usb_put_hcd(hcd);
2403 struct usb_hcd *hcd = NULL;
2443 /* initialize hcd */
2444 hcd = usb_create_hcd(&r8a66597_hc_driver, &pdev->dev, (char *)hcd_name);
2445 if (!hcd) {
2447 dev_err(&pdev->dev, "Failed to create hcd\n");
2450 r8a66597 = hcd_to_r8a66597(hcd);
2488 hcd->rsrc_start = res->start;
2489 hcd->has_tt = 1;
2491 ret = usb_add_hcd(hcd, irq, irq_trigger);
2493 dev_err(&pdev->dev, "Failed to add hcd\n");
2496 device_wakeup_enable(hcd->self.controller);
2504 usb_put_hcd(hcd);