/linux/drivers/usb/core/ |
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() 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() 1221 void usb_hcd_unlink_urb_from_ep(struct usb_hcd *hcd, struct urb *urb) in usb_hcd_unlink_urb_from_ep() [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() local 151 struct usb_hcd *hcd = bus_to_hcd(bus); in hcd_buffer_free() local 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/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 | xhci-plat.c | 39 static void xhci_priv_plat_start(struct usb_hcd *hcd) in xhci_priv_plat_start() 47 static int xhci_priv_init_quirk(struct usb_hcd *hcd) in xhci_priv_init_quirk() 57 static int xhci_priv_suspend_quirk(struct usb_hcd *hcd) in xhci_priv_suspend_quirk() 67 static int xhci_priv_resume_quirk(struct usb_hcd *hcd) in xhci_priv_resume_quirk() 85 static int xhci_plat_setup(struct usb_hcd *hcd) in xhci_plat_setup() 97 static int xhci_plat_start(struct usb_hcd *hcd) in xhci_plat_start() 151 struct usb_hcd *hcd, *usb3_hcd; in xhci_plat_probe() local 425 struct usb_hcd *hcd = platform_get_drvdata(dev); in xhci_plat_remove() local 459 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_suspend() local 487 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_resume_common() local [all …]
|
H A D | ehci-fsl.c | 50 struct usb_hcd *hcd; in fsl_ehci_drv_probe() local 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() local 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() local 494 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_fsl_mpc512x_drv_resume() local 569 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_fsl_drv_suspend() local 589 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_fsl_drv_resume() local 616 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_fsl_drv_restore() local [all …]
|
H A D | xhci-pci.c | 118 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_msix_sync_irqs() local 131 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_cleanup_msix() local 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() 566 static int xhci_pci_setup(struct usb_hcd *hcd) in xhci_pci_setup() 595 static int xhci_pci_update_hub_device(struct usb_hcd *hcd, struct usb_device *hdev, in xhci_pci_update_hub_device() 613 struct usb_hcd *hcd; in xhci_pci_common_probe() local [all …]
|
H A D | ohci-hcd.c | 148 struct usb_hcd *hcd, in ohci_urb_enqueue() 313 static int ohci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in ohci_urb_dequeue() 348 ohci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep) in ohci_endpoint_disable() 401 static int ohci_get_frame (struct usb_hcd *hcd) in ohci_get_frame() 420 static void _ohci_shutdown(struct usb_hcd *hcd) in _ohci_shutdown() 436 static void ohci_shutdown(struct usb_hcd *hcd) in ohci_shutdown() 455 struct usb_hcd *hcd = ohci_to_hcd(ohci); in ohci_init() local 547 struct usb_hcd *hcd = ohci_to_hcd(ohci); in ohci_run() local 711 int ohci_setup(struct usb_hcd *hcd) in ohci_setup() 722 static int ohci_start(struct usb_hcd *hcd) in ohci_start() [all …]
|
H A D | sl811-hcd.c | 81 struct usb_hcd *hcd = sl811_to_hcd(sl811); in port_power() local 623 static irqreturn_t sl811h_irq(struct usb_hcd *hcd) in sl811h_irq() 794 struct usb_hcd *hcd, in sl811h_urb_enqueue() 961 static int sl811h_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in sl811h_urb_dequeue() 1032 sl811h_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *hep) in sl811h_endpoint_disable() 1050 sl811h_get_frame(struct usb_hcd *hcd) in sl811h_get_frame() 1066 sl811h_hub_status_data(struct usb_hcd *hcd, char *buf) in sl811h_hub_status_data() 1216 struct usb_hcd *hcd, in sl811h_hub_control() 1350 sl811h_bus_suspend(struct usb_hcd *hcd) in sl811h_bus_suspend() 1358 sl811h_bus_resume(struct usb_hcd *hcd) in sl811h_bus_resume() [all …]
|
H A D | ehci-sh.c | 14 struct usb_hcd *hcd; member 17 static int ehci_sh_reset(struct usb_hcd *hcd) in ehci_sh_reset() 78 struct usb_hcd *hcd; in ehci_hcd_sh_probe() local 157 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_remove() local 169 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_shutdown() local
|
H A D | xhci.c | 359 struct usb_hcd *hcd; in compliance_mode_recovery() local 535 static int xhci_init(struct usb_hcd *hcd) in xhci_init() 632 int xhci_run(struct usb_hcd *hcd) in xhci_run() 695 void xhci_stop(struct usb_hcd *hcd) in xhci_stop() 755 void xhci_shutdown(struct usb_hcd *hcd) in xhci_shutdown() 961 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_suspend() local 1074 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_resume() local 1287 static int xhci_map_temp_buffer(struct usb_hcd *hcd, struct urb *urb) in xhci_map_temp_buffer() 1323 static bool xhci_urb_temp_buffer_required(struct usb_hcd *hcd, in xhci_urb_temp_buffer_required() 1363 static void xhci_unmap_temp_buf(struct usb_hcd *hcd, struct urb *urb) in xhci_unmap_temp_buf() [all …]
|
H A D | ehci-hub.c | 39 struct usb_hcd *hcd = ehci_to_hcd(ehci); in ehci_handover_companion_ports() local 213 static int ehci_bus_suspend (struct usb_hcd *hcd) in ehci_bus_suspend() 376 static int ehci_bus_resume (struct usb_hcd *hcd) in ehci_bus_resume() 517 static unsigned long ehci_get_resuming_ports(struct usb_hcd *hcd) in ehci_get_resuming_ports() 618 ehci_hub_status_data (struct usb_hcd *hcd, char *buf) in ehci_hub_status_data() 733 struct usb_hcd *hcd, in ehci_hub_control() 1187 static void ehci_relinquish_port(struct usb_hcd *hcd, int portnum) in ehci_relinquish_port() 1196 static int ehci_port_handed_over(struct usb_hcd *hcd, int portnum) in ehci_port_handed_over() 1209 struct usb_hcd *hcd = ehci_to_hcd(ehci); in ehci_port_power() local
|
H A D | uhci-hcd.c | 450 static irqreturn_t uhci_irq(struct usb_hcd *hcd) in uhci_irq() 576 static int uhci_start(struct usb_hcd *hcd) in uhci_start() 708 static void uhci_stop(struct usb_hcd *hcd) in uhci_stop() 724 static int uhci_rh_suspend(struct usb_hcd *hcd) in uhci_rh_suspend() 751 static int uhci_rh_resume(struct usb_hcd *hcd) in uhci_rh_resume() 768 static void uhci_hcd_endpoint_disable(struct usb_hcd *hcd, in uhci_hcd_endpoint_disable() 793 static int uhci_hcd_get_frame_number(struct usb_hcd *hcd) in uhci_hcd_get_frame_number() 808 static int uhci_count_ports(struct usb_hcd *hcd) in uhci_count_ports()
|
H A D | ehci-platform.c | 56 static int ehci_platform_reset(struct usb_hcd *hcd) in ehci_platform_reset() 88 struct usb_hcd *hcd = platform_get_drvdata(dev); in ehci_platform_power_on() local 109 struct usb_hcd *hcd = platform_get_drvdata(dev); in ehci_platform_power_off() local 167 struct usb_hcd *hcd = ehci_to_hcd(ehci); in quirk_poll_rebind_companion() local 239 struct usb_hcd *hcd; in ehci_platform_probe() local 405 struct usb_hcd *hcd = platform_get_drvdata(dev); in ehci_platform_remove() local 431 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_platform_suspend() local 453 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_platform_resume() local
|
H A D | uhci-platform.c | 15 static int uhci_platform_init(struct usb_hcd *hcd) in uhci_platform_init() 70 struct usb_hcd *hcd; in uhci_hcd_platform_probe() local 156 struct usb_hcd *hcd = platform_get_drvdata(pdev); in uhci_hcd_platform_remove() local 173 struct usb_hcd *hcd = platform_get_drvdata(op); in uhci_hcd_platform_shutdown() local
|
H A D | ohci-sa1111.c | 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() local 263 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_remove() local 274 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_shutdown() local
|
H A D | ohci-ps3.c | 12 static int ps3_ohci_hc_reset(struct usb_hcd *hcd) in ps3_ohci_hc_reset() 21 static int ps3_ohci_hc_start(struct usb_hcd *hcd) in ps3_ohci_hc_start() 70 struct usb_hcd *hcd; in ps3_ohci_probe() local 190 struct usb_hcd *hcd = ps3_system_bus_get_drvdata(dev); in ps3_ohci_remove() local
|
H A D | xhci-hub.c | 279 static void xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb2_hub_descriptor() 334 static void xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb3_hub_descriptor() 367 static void xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_hub_descriptor() 552 struct usb_hcd *hcd; in xhci_disable_port() local 631 struct xhci_hub *xhci_get_rhub(struct usb_hcd *hcd) in xhci_get_rhub() 649 struct usb_hcd *hcd; in xhci_set_port_power() local 774 struct usb_hcd *hcd; in xhci_port_is_tunneled() local 944 struct usb_hcd *hcd; in xhci_handle_usb2_port_link_resume() local 1047 struct usb_hcd *hcd; in xhci_get_usb3_port_status() local 1157 static u32 xhci_get_port_status(struct usb_hcd *hcd, in xhci_get_port_status() [all …]
|
H A D | isp1362-hcd.c | 1007 static irqreturn_t isp1362_irq(struct usb_hcd *hcd) in isp1362_irq() 1216 static int isp1362_urb_enqueue(struct usb_hcd *hcd, in isp1362_urb_enqueue() 1397 static int isp1362_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in isp1362_urb_dequeue() 1449 static void isp1362_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *hep) in isp1362_endpoint_disable() 1479 static int isp1362_get_frame(struct usb_hcd *hcd) in isp1362_get_frame() 1495 static int isp1362_hub_status_data(struct usb_hcd *hcd, char *buf) in isp1362_hub_status_data() 1563 static int isp1362_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in isp1362_hub_control() 1733 static int isp1362_bus_suspend(struct usb_hcd *hcd) in isp1362_bus_suspend() 1831 static int isp1362_bus_resume(struct usb_hcd *hcd) in isp1362_bus_resume() 2202 static int isp1362_mem_config(struct usb_hcd *hcd) in isp1362_mem_config() [all …]
|
H A D | ohci-mem.c | 94 struct usb_hcd *hcd = ohci_to_hcd(hc); in td_alloc() local 114 struct usb_hcd *hcd = ohci_to_hcd(hc); in td_free() local 138 struct usb_hcd *hcd = ohci_to_hcd(hc); in ed_alloc() local 155 struct usb_hcd *hcd = ohci_to_hcd(hc); in ed_free() local
|
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() local 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()
|
/linux/drivers/usb/isp1760/ |
H A D | isp1760-hcd.c | 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() 286 static bool isp1760_hcd_ppc_is_set(struct usb_hcd *hcd) in isp1760_hcd_ppc_is_set() [all …]
|
/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() 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() 164 struct usb_hcd *hcd; in gb_usb_probe() local 223 struct usb_hcd *hcd = gb_usb_device_to_hcd(gb_usb_dev); in gb_usb_remove() local
|
/linux/drivers/usb/c67x00/ |
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() local 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() local 394 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00); in c67x00_hcd_remove() local
|
/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()
|
/linux/drivers/usb/dwc2/ |
H A D | hcd.c | 464 struct usb_hcd *hcd = dwc2_hsotg_to_hcd(hsotg); in dwc2_host_start() local 472 struct usb_hcd *hcd = dwc2_hsotg_to_hcd(hsotg); in dwc2_host_disconnect() local 2509 static int dwc2_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, in dwc2_map_urb_for_dma() 2529 static void dwc2_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) in dwc2_unmap_urb_for_dma() 3255 struct usb_hcd *hcd = dwc2_hsotg_to_hcd(hsotg); in dwc2_host_is_b_hnp_enabled() local 3985 static struct dwc2_hsotg *dwc2_hcd_to_hsotg(struct usb_hcd *hcd) in dwc2_hcd_to_hsotg() 4083 static void dwc2_allocate_bus_bandwidth(struct usb_hcd *hcd, u16 bw, in dwc2_allocate_bus_bandwidth() 4096 static void dwc2_free_bus_bandwidth(struct usb_hcd *hcd, u16 bw, in dwc2_free_bus_bandwidth() 4247 static int _dwc2_hcd_start(struct usb_hcd *hcd) in _dwc2_hcd_start() 4296 static void _dwc2_hcd_stop(struct usb_hcd *hcd) in _dwc2_hcd_stop() [all …]
|