Lines Matching defs:hcd

14 #include <linux/usb/hcd.h>
451 static int usbhsh_connected_to_rhdev(struct usb_hcd *hcd,
456 return hcd->self.root_hub == usbv->parent;
488 struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
489 struct device *dev = usbhsh_hcd_to_dev(hcd);
564 if (!usbhsh_connected_to_rhdev(hcd, udev)) {
588 struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
590 struct device *dev = usbhsh_hcd_to_dev(hcd);
633 struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
655 usb_hcd_unlink_urb_from_ep(hcd, urb);
656 usb_hcd_giveback_urb(hcd, urb, status);
659 static int usbhsh_queue_push(struct usb_hcd *hcd,
663 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
666 struct device *dev = usbhsh_hcd_to_dev(hcd);
865 static int usbhsh_dcp_queue_push(struct usb_hcd *hcd,
869 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
872 struct device *dev = usbhsh_hcd_to_dev(hcd);
939 static int usbhsh_host_start(struct usb_hcd *hcd)
944 static void usbhsh_host_stop(struct usb_hcd *hcd)
948 static int usbhsh_urb_enqueue(struct usb_hcd *hcd,
952 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
968 ret = usb_hcd_link_urb_to_ep(hcd, urb);
1013 ret = usbhsh_dcp_queue_push(hcd, urb, mem_flags);
1015 ret = usbhsh_queue_push(hcd, urb, mem_flags);
1031 static int usbhsh_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
1033 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
1047 static void usbhsh_endpoint_disable(struct usb_hcd *hcd,
1055 * this function might be called manytimes by same hcd/ep
1062 hpriv = usbhsh_hcd_to_hpriv(hcd);
1074 static int usbhsh_hub_status_data(struct usb_hcd *hcd, char *buf)
1076 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
1234 static int usbhsh_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
1237 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
1273 static int usbhsh_bus_nop(struct usb_hcd *hcd)
1451 struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
1456 /* add hcd */
1457 ret = usb_add_hcd(hcd, 0, 0);
1460 device_wakeup_enable(hcd->self.controller);
1495 struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
1508 usb_remove_hcd(hcd);
1521 struct usb_hcd *hcd;
1526 /* initialize hcd */
1527 hcd = usb_create_hcd(&usbhsh_driver, dev, usbhsh_hcd_name);
1528 if (!hcd) {
1529 dev_err(dev, "Failed to create hcd\n");
1532 hcd->has_tt = 1; /* for low/full speed */
1542 hpriv = usbhsh_hcd_to_hpriv(hcd);
1569 struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
1571 usb_put_hcd(hcd);