Home
last modified time | relevance | path

Searched refs:hcd (Results 1 – 23 of 23) sorted by relevance

/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/core/
A Dusb_gen_hcd.c477 hcd->self.hcpriv = hcd; in usb_create_hc_gen_dev()
479 hcd->self.point_gen_hcd = hcd; in usb_create_hc_gen_dev()
538 if (hcd->driver->reset && (retval = hcd->driver->reset(hcd)) < 0) in usb_add_hc_gen_dev()
561 if ((retval = hcd->driver->start(hcd)) < 0) in usb_add_hc_gen_dev()
577 hcd->remote_wakeup = hcd->can_wakeup; in usb_add_hc_gen_dev()
591 if (hcd->uses_new_polling && hcd->poll_rh) in usb_add_hc_gen_dev()
599 hcd->driver->stop(hcd); in usb_add_hc_gen_dev()
671 hcd->driver->stop(hcd); in usb_remove_hc_gen_dev()
709 return hcd->driver->get_frame_number(hcd); in hcd_ops_get_frame_number()
1316 return hcd->driver->hub_suspend(hcd); in hcd_ops_hub_suspend()
[all …]
A Dusb_gen_hcd_rh.c236 if (!hcd->uses_new_polling && !hcd->status_urb) in usb_hcd_poll_rh_status()
239 hcd->uses_new_polling, hcd->status_urb); in usb_hcd_poll_rh_status()
244 length = hcd->driver->hub_status_data(hcd, buffer); in usb_hcd_poll_rh_status()
250 urb = hcd->status_urb; in usb_hcd_poll_rh_status()
280 hcd->poll_pending = 1; in usb_hcd_poll_rh_status()
290 if (hcd->uses_new_polling ? hcd->poll_rh : in usb_hcd_poll_rh_status()
394 hcd->status_urb = urb; in rh_queue_status()
398 if (!hcd->uses_new_polling) in rh_queue_status()
404 else if (hcd->poll_pending) in rh_queue_status()
590 status = hcd->driver->hub_control(hcd, in rh_call_control()
[all …]
A Dusb_gen_hcd.h138 return &hcd->self; in hcd_to_bus()
173 int(*reset)(struct hc_gen_dev *hcd);
174 int(*start)(struct hc_gen_dev *hcd);
183 int(*urb_enqueue)(struct hc_gen_dev *hcd,
188 int(*urb_dequeue)(struct hc_gen_dev *hcd, struct urb *urb);
189 void (*endpoint_disable)(struct hc_gen_dev *hcd,
192 int(*hub_status_data)(struct hc_gen_dev *hcd, char *buf);
193 int(*hub_control)(struct hc_gen_dev *hcd,
216 void usb_remove_hc_gen_dev(struct hc_gen_dev *hcd);
217 void usb_hcd_poll_rh_status(struct hc_gen_dev *hcd);
[all …]
A Dusb_gen_hcd_rh.h8 int rh_urb_enqueue(struct hc_gen_dev *hcd, struct urb *urb);
9 int rh_urb_dequeue(struct hc_gen_dev *hcd, struct urb *urb);
A Dusb_gen_hub.c1547 struct hc_gen_dev *hcd = NULL; in usb_enable_root_hub_irq() local
1548 hcd = bus->point_gen_hcd; in usb_enable_root_hub_irq()
1550 if (hcd->driver->hub_irq_enable && !hcd->poll_rh && in usb_enable_root_hub_irq()
1551 hcd->state != HC_GEN_DEV_STATE_HALT) in usb_enable_root_hub_irq()
1553 hcd->driver->hub_irq_enable(hcd); in usb_enable_root_hub_irq()
1559 struct hc_gen_dev *hcd = NULL; in usb_root_hub_notify() local
1560 hcd = bus->point_gen_hcd; in usb_root_hub_notify()
1562 if (hcd->driver->hub_notify && !hcd->poll_rh && in usb_root_hub_notify()
1563 hcd->state != HC_GEN_DEV_STATE_HALT) in usb_root_hub_notify()
1565 hcd->driver->hub_notify(hcd, hub_event); in usb_root_hub_notify()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/host/
A Dohci_sunxi.c181 ohci_stop(hcd);
309 if (!hcd) {
318 sunxi_ohci->hcd = hcd;
360 usb_put_hcd(hcd);
363 sunxi_ohci->hcd = NULL;
381 if (hcd == NULL) {
408 usb_remove_hcd(hcd);
412 usb_put_hcd(hcd);
419 sunxi_ohci->hcd = NULL;
566 if (hcd == NULL) {
[all …]
A Dohci-hcd.c148 struct usb_hcd *hcd,
426 ohci = hcd_to_ohci (hcd);
444 _ohci_shutdown(hcd);
467 ohci->regs = hcd->regs;
525 ohci_stop (hcd);
652 hcd->uses_new_polling = 1;
722 ohci_stop(hcd);
897 usb_hc_died(hcd);
922 usb_hc_died(hcd);
1006 free_irq(hcd->irq, hcd);
[all …]
A Dehci-hcd.c417 void ehci_stop (struct hc_gen_dev *hcd) in ehci_stop() argument
455 int ehci_init(struct hc_gen_dev *hcd) in ehci_init() argument
581 int ehci_run (struct hc_gen_dev *hcd) in ehci_run() argument
587 hcd->uses_new_polling = 1; in ehci_run()
673 int ehci_setup(struct hc_gen_dev *hcd) in ehci_setup() argument
689 retval = ehci_init(hcd); in ehci_setup()
868 usb_hcd_poll_rh_status(hcd); in ehci_irq_handler()
896 struct hc_gen_dev *hcd, in ehci_urb_enqueue() argument
1101 int ehci_get_frame (struct hc_gen_dev *hcd) in ehci_get_frame() argument
1152 synchronize_irq(hcd->irq); in ehci_suspend()
[all …]
A Dehci-sunxi.c106 int ret = ehci_init(hcd); in sunxi_ehci_setup()
171 struct hc_gen_dev *hcd = NULL; in sunxi_insmod_ehci() local
188 sunxi_ehci->hcd = hcd; in sunxi_insmod_ehci()
201 ehci = hcd_to_ehci(hcd); in sunxi_insmod_ehci()
209 hcd->state = HC_GEN_DEV_STATE_RUNNING; in sunxi_insmod_ehci()
247 sunxi_ehci->hcd = NULL; in sunxi_insmod_ehci()
277 sunxi_ehci->hcd = NULL; in sunxi_rmmod_ehci()
308 if(!sunxi_ehci->hcd) in sunxi_ehci_hcd_init()
358 if(sunxi_ehci->hcd) in sunxi_ehci_hcd_deinit()
527 struct hc_gen_dev *hcd = sunxi_ehci->hcd; in ehci_ed_test() local
[all …]
A Dehci.h270 return (struct ehci_hcd *) (hcd->hcd_priv);
280 return (struct ehci_hcd *) (hcd->hcd_priv); in hcd_to_ehci()
789 int (*reset)(struct hc_gen_dev *hcd);
790 int (*port_power)(struct hc_gen_dev *hcd,
796 extern int ehci_setup(struct hc_gen_dev *hcd);
809 void ehci_stop (struct hc_gen_dev *hcd);
810 int ehci_init(struct hc_gen_dev *hcd);
813 int ehci_run (struct hc_gen_dev *hcd);
816 int ehci_get_frame (struct hc_gen_dev *hcd);
819 int ehci_bus_suspend (struct hc_gen_dev *hcd);
[all …]
A Dohci-hub.c287 if (hcd->self.bandwidth_isoc_reqs || hcd->self.bandwidth_int_reqs)
309 if (unlikely(!HCD_HW_ACCESSIBLE(hcd)))
332 if (unlikely(!HCD_HW_ACCESSIBLE(hcd)))
340 usb_hcd_poll_rh_status(hcd);
468 struct ohci_hcd *ohci = hcd_to_ohci (hcd);
475 if (!HCD_HW_ACCESSIBLE(hcd))
580 struct ohci_hcd *ohci = hcd_to_ohci (hcd);
675 struct usb_hcd *hcd,
682 struct ohci_hcd *ohci = hcd_to_ohci (hcd);
687 if (unlikely(!HCD_HW_ACCESSIBLE(hcd)))
[all …]
A Dehci-hub.c228 int ehci_bus_suspend (struct hc_gen_dev *hcd) in ehci_bus_suspend() argument
235 int ehci_bus_resume (struct hc_gen_dev *hcd) in ehci_bus_resume() argument
625 int ehci_hub_status_data (struct hc_gen_dev *hcd, char *buf) in ehci_hub_status_data() argument
627 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_hub_status_data()
740 struct hc_gen_dev *hcd, in ehci_hub_control() argument
747 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_hub_control()
832 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1173 static void ehci_relinquish_port(struct hc_gen_dev *hcd, int portnum) in ehci_relinquish_port() argument
1175 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_relinquish_port()
1182 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_port_handed_over()
[all …]
A Dohci.h480 static inline struct ohci_hcd *hcd_to_ohci (struct usb_hcd *hcd)
482 return (struct ohci_hcd *) (hcd->hcd_priv);
733 int (*reset)(struct usb_hcd *hcd);
739 extern int ohci_setup(struct usb_hcd *hcd);
740 extern int ohci_suspend(struct usb_hcd *hcd, bool do_wakeup);
741 extern int ohci_resume(struct usb_hcd *hcd, bool hibernated);
742 extern int ohci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
744 extern int ohci_hub_status_data(struct usb_hcd *hcd, char *buf);
A DMakefile4 obj-y += ehci-hcd.o
A Dsunxi-hci.h370 struct hc_gen_dev *hcd; member
A Dehci-q.c157 static void ehci_clear_tt_buffer_complete(struct hc_gen_dev *hcd, in ehci_clear_tt_buffer_complete() argument
160 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_clear_tt_buffer_complete()
A Dehci-sched.c37 int ehci_get_frame(struct hc_gen_dev *hcd);
/bsp/stm32/libraries/HAL_Drivers/drivers/
A Ddrv_usbh.c32 uhcd_t hcd = (uhcd_t)hhcd->pData; in HAL_HCD_Connect_Callback() local
37 rt_usbh_root_hub_connect_handler(hcd, OTG_FS_PORT, RT_FALSE); in HAL_HCD_Connect_Callback()
43 uhcd_t hcd = (uhcd_t)hhcd->pData; in HAL_HCD_Disconnect_Callback() local
48 rt_usbh_root_hub_disconnect_handler(hcd, OTG_FS_PORT); in HAL_HCD_Disconnect_Callback()
/bsp/at32/libraries/rt_drivers/
A Ddrv_usbotgh.c77 uhcd_t hcd = (uhcd_t)uhost->pdata; in usbh_connect_callback() local
82 rt_usbh_root_hub_connect_handler(hcd, 1, RT_FALSE); in usbh_connect_callback()
88 uhcd_t hcd = (uhcd_t)uhost->pdata; in usbh_disconnect_callback() local
93 rt_usbh_root_hub_disconnect_handler(hcd, 1); in usbh_disconnect_callback()
/bsp/microchip/samd51-seeed-wio-terminal/bsp/hal/include/
A Dhpl_usb_host.h310 struct usb_h_desc *hcd; member
/bsp/microchip/samd51-adafruit-metro-m4/bsp/hal/include/
A Dhpl_usb_host.h310 struct usb_h_desc *hcd; member
/bsp/hc32/libraries/hc32_drivers/
A Ddrv_usbh.c75 uhcd_t hcd = (uhcd_t)pdev->pData; in usb_device_connect_callback() local
80 rt_usbh_root_hub_connect_handler(hcd, USB_FS_PORT, RT_FALSE); in usb_device_connect_callback()
86 uhcd_t hcd = (uhcd_t)pdev->pData; in usb_device_disconnect_callback() local
91 rt_usbh_root_hub_disconnect_handler(hcd, USB_FS_PORT); in usb_device_disconnect_callback()
/bsp/allwinner/libraries/sunxi-hal/hal/
A Dlist.txt64 source/usb/host/ehci-hcd.c

Completed in 57 milliseconds