Lines Matching full:hcd

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