Lines Matching refs:hcd

3  * xen-hcd.c
14 #include <linux/usb/hcd.h>
100 static inline struct xenhcd_info *xenhcd_hcd_to_info(struct usb_hcd *hcd)
102 return (struct xenhcd_info *)hcd->hcd_priv;
114 pr_alert("xen-hcd: protocol error: %s!\n", msg);
312 static int xenhcd_bus_suspend(struct usb_hcd *hcd)
314 struct xenhcd_info *info = xenhcd_hcd_to_info(hcd);
321 if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) {
335 static int xenhcd_bus_resume(struct usb_hcd *hcd)
337 struct xenhcd_info *info = xenhcd_hcd_to_info(hcd);
344 if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) {
394 static int xenhcd_hub_status_data(struct usb_hcd *hcd, char *buf)
396 struct xenhcd_info *info = xenhcd_hcd_to_info(hcd);
418 if ((hcd->state == HC_STATE_SUSPENDED) && (changed == 1))
419 usb_hcd_resume_root_hub(hcd);
426 static int xenhcd_hub_control(struct usb_hcd *hcd, __u16 typeReq, __u16 wValue,
429 struct xenhcd_info *info = xenhcd_hcd_to_info(hcd);
549 usb_hcd_poll_rh_status(hcd);
1227 struct usb_hcd *hcd;
1229 hcd = xenhcd_info_to_hcd(info);
1230 snprintf(name, TASK_COMM_LEN, "xenhcd.%d", hcd->self.busnum);
1253 struct usb_hcd *hcd = xenhcd_info_to_hcd(info);
1255 usb_remove_hcd(hcd);
1276 static int xenhcd_setup(struct usb_hcd *hcd)
1278 struct xenhcd_info *info = xenhcd_hcd_to_info(hcd);
1287 hcd->has_tt = (hcd->driver->flags & HCD_MASK) != HCD_USB11;
1295 static int xenhcd_run(struct usb_hcd *hcd)
1297 hcd->uses_new_polling = 1;
1298 clear_bit(HCD_FLAG_POLL_RH, &hcd->flags);
1299 hcd->state = HC_STATE_RUNNING;
1306 static void xenhcd_stop(struct usb_hcd *hcd)
1308 struct xenhcd_info *info = xenhcd_hcd_to_info(hcd);
1313 hcd->state = HC_STATE_HALT;
1323 static int xenhcd_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
1326 struct xenhcd_info *info = xenhcd_hcd_to_info(hcd);
1361 static int xenhcd_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
1363 struct xenhcd_info *info = xenhcd_hcd_to_info(hcd);
1385 static int xenhcd_get_frame(struct usb_hcd *hcd)
1392 .description = "xen-hcd",
1417 .description = "xen-hcd",
1447 struct usb_hcd *hcd = NULL;
1468 hcd = usb_create_hcd(&xenhcd_usb11_hc_driver, &dev->dev,
1472 hcd = usb_create_hcd(&xenhcd_usb20_hc_driver, &dev->dev,
1479 if (!hcd) {
1485 info = xenhcd_hcd_to_info(hcd);
1496 return hcd;
1536 struct usb_hcd *hcd = xenhcd_info_to_hcd(info);
1539 usb_put_hcd(hcd);
1546 struct usb_hcd *hcd;
1552 hcd = xenhcd_create_hcd(dev);
1553 if (IS_ERR(hcd)) {
1554 err = PTR_ERR(hcd);
1560 info = xenhcd_hcd_to_info(hcd);
1563 err = usb_add_hcd(hcd, 0, 0);
1566 usb_put_hcd(hcd);
1610 MODULE_DESCRIPTION("Xen USB Virtual Host Controller driver (xen-hcd)");