| /linux/include/linux/usb/ |
| H A D | hcd.h | 68 struct usb_hcd { struct 186 struct usb_hcd *shared_hcd; argument 187 struct usb_hcd *primary_hcd; argument 224 static inline struct usb_bus *hcd_to_bus(struct usb_hcd *hcd) in hcd_to_bus() argument 229 static inline struct usb_hcd *bus_to_hcd(struct usb_bus *bus) in bus_to_hcd() 231 return container_of(bus, struct usb_hcd, self); in bus_to_hcd() 243 irqreturn_t (*irq) (struct usb_hcd *hcd); 258 int (*reset) (struct usb_hcd *hcd); 259 int (*start) (struct usb_hcd *hcd); 265 int (*pci_suspend)(struct usb_hcd *hcd, bool do_wakeup); [all …]
|
| H A D | ehci-dbgp.h | 51 struct usb_hcd; 54 extern int xen_dbgp_reset_prep(struct usb_hcd *); 55 extern int xen_dbgp_external_startup(struct usb_hcd *); 57 static inline int xen_dbgp_reset_prep(struct usb_hcd *hcd) in xen_dbgp_reset_prep() 62 static inline int xen_dbgp_external_startup(struct usb_hcd *hcd) in xen_dbgp_external_startup() 70 extern int dbgp_external_startup(struct usb_hcd *); 71 extern int dbgp_reset_prep(struct usb_hcd *); 73 static inline int dbgp_reset_prep(struct usb_hcd *hcd) in dbgp_reset_prep() 78 static inline int dbgp_external_startup(struct usb_hcd *hcd) in dbgp_external_startup()
|
| /linux/drivers/usb/host/ |
| H A D | ohci-pci.c | 35 static int broken_suspend(struct usb_hcd *hcd) in broken_suspend() 44 static int ohci_quirk_amd756(struct usb_hcd *hcd) in ohci_quirk_amd756() 59 static int ohci_quirk_opti(struct usb_hcd *hcd) in ohci_quirk_opti() 72 static int ohci_quirk_ns(struct usb_hcd *hcd) in ohci_quirk_ns() 94 static int ohci_quirk_zfmicro(struct usb_hcd *hcd) in ohci_quirk_zfmicro() 107 static int ohci_quirk_toshiba_scc(struct usb_hcd *hcd) in ohci_quirk_toshiba_scc() 140 static int ohci_quirk_nec(struct usb_hcd *hcd) in ohci_quirk_nec() 151 static int ohci_quirk_amd700(struct usb_hcd *hcd) in ohci_quirk_amd700() 168 static int ohci_quirk_loongson(struct usb_hcd *hcd) in ohci_quirk_loongson() 187 static int ohci_quirk_qemu(struct usb_hcd *hcd) in ohci_quirk_qemu() [all …]
|
| H A D | ohci-da8xx.c | 33 static int (*orig_ohci_hub_control)(struct usb_hcd *hcd, u16 typeReq, 35 static int (*orig_ohci_hub_status_data)(struct usb_hcd *hcd, char *buf); 38 struct usb_hcd *hcd; 51 static int ohci_da8xx_enable(struct usb_hcd *hcd) in ohci_da8xx_enable() 78 static void ohci_da8xx_disable(struct usb_hcd *hcd) in ohci_da8xx_disable() 87 static int ohci_da8xx_set_power(struct usb_hcd *hcd, int on) in ohci_da8xx_set_power() 113 static int ohci_da8xx_get_power(struct usb_hcd *hcd) in ohci_da8xx_get_power() 123 static int ohci_da8xx_get_oci(struct usb_hcd *hcd) in ohci_da8xx_get_oci() 145 static int ohci_da8xx_has_set_power(struct usb_hcd *hcd) in ohci_da8xx_has_set_power() 155 static int ohci_da8xx_has_oci(struct usb_hcd *hcd) in ohci_da8xx_has_oci() [all …]
|
| H A D | xhci-rzv2m.h | 6 void xhci_rzv2m_start(struct usb_hcd *hcd); 7 int xhci_rzv2m_init_quirk(struct usb_hcd *hcd); 9 static inline void xhci_rzv2m_start(struct usb_hcd *hcd) {} in xhci_rzv2m_start() 10 static inline int xhci_rzv2m_init_quirk(struct usb_hcd *hcd) in xhci_rzv2m_init_quirk()
|
| H A D | xhci-mtk.h | 157 struct usb_hcd *hcd; 180 static inline struct xhci_hcd_mtk *hcd_to_mtk(struct usb_hcd *hcd) in hcd_to_mtk() 187 int xhci_mtk_add_ep(struct usb_hcd *hcd, struct usb_device *udev, 189 int xhci_mtk_drop_ep(struct usb_hcd *hcd, struct usb_device *udev, 191 int xhci_mtk_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev); 192 void xhci_mtk_reset_bandwidth(struct usb_hcd *hcd, struct usb_device *udev);
|
| H A D | xhci-pci.c | 101 static int xhci_pci_setup(struct usb_hcd *hcd); 102 static int xhci_pci_run(struct usb_hcd *hcd); 103 static int xhci_pci_update_hub_device(struct usb_hcd *hcd, struct usb_device *hdev, 118 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_msix_sync_irqs() 131 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_cleanup_msix() 143 static int xhci_try_enable_msi(struct usb_hcd *hcd) in xhci_try_enable_msi() 211 static int xhci_pci_run(struct usb_hcd *hcd) in xhci_pci_run() 224 static void xhci_pci_stop(struct usb_hcd *hcd) in xhci_pci_stop() 532 static void xhci_find_lpm_incapable_ports(struct usb_hcd *hcd, struct usb_device *hdev) in xhci_find_lpm_incapable_ports() 562 static void xhci_find_lpm_incapable_ports(struct usb_hcd *hcd, struct usb_device *hdev) { } in xhci_find_lpm_incapable_ports() [all …]
|
| H A D | ohci-sa1111.c | 44 static void dump_hci_status(struct usb_hcd *hcd, const char *label) 57 static int ohci_sa1111_reset(struct usb_hcd *hcd) in ohci_sa1111_reset() 65 static int ohci_sa1111_start(struct usb_hcd *hcd) in ohci_sa1111_start() 178 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() 263 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_remove() 274 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_shutdown()
|
| H A D | xhci.h | 1492 struct usb_hcd *hcd; 1502 struct usb_hcd *main_hcd; 1503 struct usb_hcd *shared_hcd; 1681 int (*reset)(struct usb_hcd *hcd); 1682 int (*start)(struct usb_hcd *hcd); 1683 int (*add_endpoint)(struct usb_hcd *hcd, struct usb_device *udev, 1685 int (*drop_endpoint)(struct usb_hcd *hcd, struct usb_device *udev, 1687 int (*check_bandwidth)(struct usb_hcd *, struct usb_device *); 1688 void (*reset_bandwidth)(struct usb_hcd *, struct usb_device *); 1689 int (*update_hub_device)(struct usb_hcd *hcd, struct usb_device *hdev, [all …]
|
| H A D | ehci-sh.c | 14 struct usb_hcd *hcd; 17 static int ehci_sh_reset(struct usb_hcd *hcd) in ehci_sh_reset() 78 struct usb_hcd *hcd; in ehci_hcd_sh_probe() 157 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_remove() 169 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_shutdown()
|
| H A D | ehci-fsl.c | 50 struct usb_hcd *hcd; in fsl_ehci_drv_probe() 180 static bool usb_phy_clk_valid(struct usb_hcd *hcd) in usb_phy_clk_valid() 191 static int ehci_fsl_setup_phy(struct usb_hcd *hcd, in ehci_fsl_setup_phy() 297 struct usb_hcd *hcd = ehci_to_hcd(ehci); in ehci_fsl_usb_setup() 369 static int ehci_fsl_setup(struct usb_hcd *hcd) in ehci_fsl_setup() 425 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_fsl_mpc512x_drv_suspend() 494 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_fsl_mpc512x_drv_resume() 569 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_fsl_drv_suspend() 589 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_fsl_drv_resume() 616 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_fsl_drv_restore() [all …]
|
| H A D | ohci-mem.c | 94 struct usb_hcd *hcd = ohci_to_hcd(hc); in td_alloc() 114 struct usb_hcd *hcd = ohci_to_hcd(hc); in td_free() 138 struct usb_hcd *hcd = ohci_to_hcd(hc); in ed_alloc() 155 struct usb_hcd *hcd = ohci_to_hcd(hc); in ed_free()
|
| H A D | uhci-pci.c | 114 static int uhci_pci_init(struct usb_hcd *hcd) in uhci_pci_init() 165 struct usb_hcd *hcd = pci_get_drvdata(pdev); in uhci_shutdown() 172 static int uhci_pci_resume(struct usb_hcd *hcd, pm_message_t state); 174 static int uhci_pci_suspend(struct usb_hcd *hcd, bool do_wakeup) in uhci_pci_suspend() 213 static int uhci_pci_resume(struct usb_hcd *hcd, pm_message_t msg) in uhci_pci_resume()
|
| H A D | ohci.h | 479 static inline struct ohci_hcd *hcd_to_ohci (struct usb_hcd *hcd) in hcd_to_ohci() 483 static inline struct usb_hcd *ohci_to_hcd (const struct ohci_hcd *ohci) in ohci_to_hcd() 485 return container_of ((void *) ohci, struct usb_hcd, hcd_priv); in ohci_to_hcd() 732 int (*reset)(struct usb_hcd *hcd); 738 extern int ohci_setup(struct usb_hcd *hcd); 739 extern int ohci_suspend(struct usb_hcd *hcd, bool do_wakeup); 740 extern int ohci_resume(struct usb_hcd *hcd, bool hibernated); 741 extern int ohci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, 743 extern int ohci_hub_status_data(struct usb_hcd *hcd, char *buf);
|
| /linux/drivers/staging/greybus/ |
| H A D | usb.c | 38 static inline struct gb_usb_device *to_gb_usb_device(struct usb_hcd *hcd) in to_gb_usb_device() 43 static inline struct usb_hcd *gb_usb_device_to_hcd(struct gb_usb_device *dev) in gb_usb_device_to_hcd() 45 return container_of((void *)dev, struct usb_hcd, hcd_priv); in gb_usb_device_to_hcd() 48 static void hcd_stop(struct usb_hcd *hcd) in hcd_stop() 59 static int hcd_start(struct usb_hcd *hcd) in hcd_start() 78 static int urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags) in urb_enqueue() 83 static int urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in urb_dequeue() 88 static int get_frame_number(struct usb_hcd *hcd) in get_frame_number() 93 static int hub_status_data(struct usb_hcd *hcd, char *buf) in hub_status_data() 98 static int hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, in hub_control() [all …]
|
| /linux/drivers/usb/core/ |
| H A D | hcd-pci.c | 41 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd, 42 struct pci_dev *companion, struct usb_hcd *companion_hcd); 45 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, in for_each_companion() 49 struct usb_hcd *companion_hcd; in for_each_companion() 84 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_pre_add() 85 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_pre_add() 101 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_post_add() 102 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_post_add() 122 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, in non_ehci_add() 123 struct pci_dev *companion, struct usb_hcd *companion_hcd) in non_ehci_add() [all …]
|
| H A D | hcd.c | 416 rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) in rh_string() 455 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() 725 void usb_hcd_poll_rh_status(struct usb_hcd *hcd) in usb_hcd_poll_rh_status() 778 struct usb_hcd *_hcd = timer_container_of(_hcd, t, rh_timer); in rh_timer_func() 785 static int rh_queue_status (struct usb_hcd *hcd, struct urb *urb) in rh_queue_status() 816 static int rh_urb_enqueue (struct usb_hcd *hcd, struct urb *urb) in rh_urb_enqueue() 830 static int usb_rh_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in usb_rh_urb_dequeue() 955 static int register_root_hub(struct usb_hcd *hcd) in register_root_hub() 1130 int usb_hcd_link_urb_to_ep(struct usb_hcd *hcd, struct urb *urb) in usb_hcd_link_urb_to_ep() 1188 int usb_hcd_check_unlink_urb(struct usb_hcd *hcd, struct urb *urb, in usb_hcd_check_unlink_urb() [all …]
|
| H A D | buffer.c | 65 int hcd_buffer_create(struct usb_hcd *hcd) in hcd_buffer_create() 97 void hcd_buffer_destroy(struct usb_hcd *hcd) in hcd_buffer_destroy() 122 struct usb_hcd *hcd = bus_to_hcd(bus); in hcd_buffer_alloc() 151 struct usb_hcd *hcd = bus_to_hcd(bus); in hcd_buffer_free() 176 void *hcd_buffer_alloc_pages(struct usb_hcd *hcd, in hcd_buffer_alloc_pages() 197 void hcd_buffer_free_pages(struct usb_hcd *hcd, in hcd_buffer_free_pages()
|
| /linux/drivers/usb/c67x00/ |
| H A D | c67x00-hcd.h | 87 static inline struct c67x00_hcd *hcd_to_c67x00_hcd(struct usb_hcd *hcd) in hcd_to_c67x00_hcd() 92 static inline struct usb_hcd *c67x00_hcd_to_hcd(struct c67x00_hcd *c67x00) in c67x00_hcd_to_hcd() 94 return container_of((void *)c67x00, struct usb_hcd, hcd_priv); in c67x00_hcd_to_hcd() 107 int c67x00_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags); 108 int c67x00_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); 109 void c67x00_endpoint_disable(struct usb_hcd *hcd,
|
| H A D | c67x00-hcd.c | 47 static int c67x00_hub_status_data(struct usb_hcd *hcd, char *buf) in c67x00_hub_status_data() 66 static int c67x00_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in c67x00_hub_control() 239 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00); in c67x00_hcd_irq() 266 static int c67x00_hcd_start(struct usb_hcd *hcd) in c67x00_hcd_start() 278 static void c67x00_hcd_stop(struct usb_hcd *hcd) in c67x00_hcd_stop() 283 static int c67x00_hcd_get_frame(struct usb_hcd *hcd) in c67x00_hcd_get_frame() 332 struct usb_hcd *hcd; in c67x00_hcd_probe() 394 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00); in c67x00_hcd_remove()
|
| /linux/drivers/usb/usbip/ |
| H A D | vhci.h | 149 static inline struct vhci_hcd *hcd_to_vhci_hcd(struct usb_hcd *hcd) in hcd_to_vhci_hcd() 154 static inline struct device *hcd_dev(struct usb_hcd *hcd) in hcd_dev() 159 static inline const char *hcd_name(struct usb_hcd *hcd) in hcd_name() 164 static inline struct usb_hcd *vhci_hcd_to_hcd(struct vhci_hcd *vhci_hcd) in vhci_hcd_to_hcd() 166 return container_of((void *) vhci_hcd, struct usb_hcd, hcd_priv); in vhci_hcd_to_hcd()
|
| H A D | vhci_hcd.c | 34 static int vhci_hub_status(struct usb_hcd *hcd, char *buff); 35 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, 37 static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, 39 static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); 40 static int vhci_start(struct usb_hcd *vhci_hcd); 41 static void vhci_stop(struct usb_hcd *hcd); 42 static int vhci_get_frame_number(struct usb_hcd *hcd); 229 static int vhci_hub_status(struct usb_hcd *hcd, char *buf) in vhci_hub_status() 316 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in vhci_hub_control() 697 static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags) in vhci_urb_enqueue() [all …]
|
| /linux/drivers/usb/musb/ |
| H A D | musb_host.h | 55 extern struct musb *hcd_to_musb(struct usb_hcd *); 70 static inline struct musb *hcd_to_musb(struct usb_hcd *hcd) in hcd_to_musb() 105 struct usb_hcd; 107 extern int musb_hub_status_data(struct usb_hcd *hcd, char *buf); 108 extern int musb_hub_control(struct usb_hcd *hcd,
|
| /linux/drivers/usb/isp1760/ |
| H A D | isp1760-hcd.c | 41 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh, 44 static inline struct isp1760_hcd *hcd_to_priv(struct usb_hcd *hcd) in hcd_to_priv() 200 static u32 isp1760_hcd_read(struct usb_hcd *hcd, u32 field) in isp1760_hcd_read() 225 static void isp1760_hcd_write(struct usb_hcd *hcd, u32 field, u32 val) in isp1760_hcd_write() 235 static void isp1760_hcd_set(struct usb_hcd *hcd, u32 field) in isp1760_hcd_set() 240 static void isp1760_hcd_clear(struct usb_hcd *hcd, u32 field) in isp1760_hcd_clear() 245 static int isp1760_hcd_set_and_wait(struct usb_hcd *hcd, u32 field, in isp1760_hcd_set_and_wait() 257 static int isp1760_hcd_set_and_wait_swap(struct usb_hcd *hcd, u32 field, in isp1760_hcd_set_and_wait_swap() 269 static int isp1760_hcd_clear_and_wait(struct usb_hcd *hcd, u32 field, in isp1760_hcd_clear_and_wait() 281 static bool isp1760_hcd_is_set(struct usb_hcd *hcd, u32 field) in isp1760_hcd_is_set() [all …]
|
| /linux/drivers/xen/ |
| H A D | dbgp.c | 10 static int xen_dbgp_op(struct usb_hcd *hcd, int op) in xen_dbgp_op() 37 int xen_dbgp_reset_prep(struct usb_hcd *hcd) in xen_dbgp_reset_prep() 42 int xen_dbgp_external_startup(struct usb_hcd *hcd) in xen_dbgp_external_startup()
|