Home
last modified time | relevance | path

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

123456

/drivers/usb/core/
A Dhcd.c656 status = hcd->driver->hub_control (hcd, in rh_call_control()
2002 hcd->driver->endpoint_reset(hcd, ep); in usb_hcd_reset_endpoint()
2337 status = hcd->driver->bus_resume(hcd); in hcd_bus_resume()
2526 hcd = hcd->shared_hcd; in usb_hc_died()
2714 return hcd == hcd->primary_hcd; in usb_hcd_is_primary_hcd()
2736 hcd->irq_descr, hcd); in usb_hcd_request_irqs()
2786 hcd->driver->stop(hcd); in usb_stop_hcd()
2937 retval = hcd->driver->reset(hcd); in usb_add_hcd()
2970 retval = hcd->driver->start(hcd); in usb_add_hcd()
3083 free_irq(hcd->irq, hcd); in usb_remove_hcd()
[all …]
A Dhcd-pci.c317 if (!hcd) in usb_hcd_pci_remove()
364 if (!hcd) in usb_hcd_pci_shutdown()
369 hcd->driver->shutdown(hcd); in usb_hcd_pci_shutdown()
370 if (usb_hcd_is_primary_hcd(hcd) && hcd->irq > 0) in usb_hcd_pci_shutdown()
371 free_irq(hcd->irq, hcd); in usb_hcd_pci_shutdown()
409 hcd = hcd->shared_hcd; in check_root_hub_suspended()
441 if (hcd->driver->pci_suspend && !HCD_DEAD(hcd)) { in suspend_common()
450 retval = hcd->driver->pci_suspend(hcd, do_wakeup); in suspend_common()
458 hcd->driver->pci_resume(hcd, msg); in suspend_common()
502 if (hcd->driver->pci_resume && !HCD_DEAD(hcd)) { in resume_common()
[all …]
A Dbuffer.c70 if (hcd->localmem_pool || !hcd_uses_dma(hcd)) in hcd_buffer_create()
78 hcd->pool[i] = dma_pool_create(name, hcd->self.sysdev, in hcd_buffer_create()
80 if (!hcd->pool[i]) { in hcd_buffer_create()
81 hcd_buffer_destroy(hcd); in hcd_buffer_create()
106 hcd->pool[i] = NULL; in hcd_buffer_destroy()
128 if (hcd->localmem_pool) in hcd_buffer_alloc()
132 if (!hcd_uses_dma(hcd)) { in hcd_buffer_alloc()
157 if (hcd->localmem_pool) { in hcd_buffer_free()
162 if (!hcd_uses_dma(hcd)) { in hcd_buffer_free()
182 if (hcd->localmem_pool) in hcd_buffer_alloc_pages()
[all …]
/drivers/usb/isp1760/
A Disp1760-hcd.c1205 if (!hcd) { in schedule_ptds()
1957 schedule_ptds(hcd); in isp1760_urb_enqueue()
2059 schedule_ptds(hcd); in isp1760_urb_dequeue()
2092 schedule_ptds(hcd); in isp1760_endpoint_disable()
2468 ehci_reset(hcd); in isp1760_stop()
2478 isp1760_stop(hcd); in isp1760_shutdown()
2568 if (!hcd) in isp1760_hcd_register()
2573 priv->hcd = hcd; in isp1760_hcd_register()
2591 hcd->irq = irq; in isp1760_hcd_register()
2611 usb_put_hcd(hcd); in isp1760_hcd_register()
[all …]
/drivers/usb/host/
A Dohci-da8xx.c39 struct usb_hcd *hcd; member
47 #define to_da8xx_ohci(hcd) (struct da8xx_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument
248 result = ohci_setup(hcd); in ohci_da8xx_reset()
250 ohci_da8xx_disable(hcd); in ohci_da8xx_reset()
379 struct usb_hcd *hcd; in ohci_da8xx_probe() local
383 if (!hcd) in ohci_da8xx_probe()
387 da8xx_ohci->hcd = hcd; in ohci_da8xx_probe()
466 usb_remove_hcd(hcd); in ohci_da8xx_probe()
468 usb_put_hcd(hcd); in ohci_da8xx_probe()
476 usb_remove_hcd(hcd); in ohci_da8xx_remove()
[all …]
A Dohci-omap.c216 if (!hcd) in ohci_hcd_omap_probe()
270 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { in ohci_hcd_omap_probe()
276 hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_omap_probe()
277 if (!hcd->regs) { in ohci_hcd_omap_probe()
295 iounmap(hcd->regs); in ohci_hcd_omap_probe()
297 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_omap_probe()
307 usb_put_hcd(hcd); in ohci_hcd_omap_probe()
330 usb_remove_hcd(hcd); in ohci_hcd_omap_remove()
336 iounmap(hcd->regs); in ohci_hcd_omap_remove()
337 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_omap_remove()
[all …]
A Dmax3421-hcd.c1224 max3421_detect_conn(hcd); in max3421_handle_irqs()
1275 dump_eps(hcd); in max3421_handle_irqs()
1322 max3421_detect_conn(hcd); in max3421_reset_hcd()
1470 hcd->speed = HCD_USB2; in max3421_reset()
1872 if (!hcd) { in max3421_probe()
1916 if (hcd) { in max3421_probe()
1921 usb_put_hcd(hcd); in max3421_probe()
1930 struct usb_hcd *hcd; in max3421_remove() local
1936 usb_remove_hcd(hcd); in max3421_remove()
1944 free_irq(spi->irq, hcd); in max3421_remove()
[all …]
A Dehci-fsl.c50 struct usb_hcd *hcd; in fsl_ehci_drv_probe() local
85 if (!hcd) { in fsl_ehci_drv_probe()
91 if (IS_ERR(hcd->regs)) { in fsl_ehci_drv_probe()
92 retval = PTR_ERR(hcd->regs); in fsl_ehci_drv_probe()
99 pdata->regs = hcd->regs; in fsl_ehci_drv_probe()
151 hcd, ehci, hcd->usb_phy); in fsl_ehci_drv_probe()
172 usb_put_hcd(hcd); in fsl_ehci_drv_probe()
393 hcd->has_tt = 1; in ehci_fsl_setup()
395 retval = ehci_setup(hcd); in ehci_fsl_setup()
687 usb_remove_hcd(hcd); in fsl_ehci_drv_remove()
[all …]
A Dohci-sm501.c35 ohci_stop(hcd); in ohci_sm501_start()
122 if (!hcd) { in ohci_hcd_sm501_drv_probe()
130 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, pdev->name)) { in ohci_hcd_sm501_drv_probe()
136 hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sm501_drv_probe()
177 iounmap(hcd->regs); in ohci_hcd_sm501_drv_probe()
179 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sm501_drv_probe()
181 usb_put_hcd(hcd); in ohci_hcd_sm501_drv_probe()
193 usb_remove_hcd(hcd); in ohci_hcd_sm501_drv_remove()
194 iounmap(hcd->regs); in ohci_hcd_sm501_drv_remove()
195 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sm501_drv_remove()
[all …]
A Dohci-ps3.c38 ohci_stop(hcd); in ps3_ohci_hc_start()
70 struct usb_hcd *hcd; in ps3_ohci_probe() local
124 if (!hcd) { in ps3_ohci_probe()
134 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) in ps3_ohci_probe()
140 if (!hcd->regs) { in ps3_ohci_probe()
172 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ps3_ohci_probe()
173 usb_put_hcd(hcd); in ps3_ohci_probe()
192 BUG_ON(!hcd); in ps3_ohci_remove()
197 tmp = hcd->irq; in ps3_ohci_remove()
207 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ps3_ohci_remove()
[all …]
A Dxhci-plat.c44 priv->plat_start(hcd); in xhci_priv_plat_start()
100 return xhci_run(hcd); in xhci_plat_start()
179 if (!hcd) { in xhci_plat_probe()
185 if (IS_ERR(hcd->regs)) { in xhci_plat_probe()
193 xhci = hcd_to_xhci(hcd); in xhci_plat_probe()
239 xhci->main_hcd = hcd; in xhci_plat_probe()
285 hcd->usb_phy = NULL; in xhci_plat_probe()
359 usb_remove_hcd(hcd); in xhci_plat_probe()
374 usb_put_hcd(hcd); in xhci_plat_probe()
441 usb_remove_hcd(hcd); in xhci_plat_remove()
[all …]
A Dohci-s3c2410.c70 info->hcd = hcd; in s3c2410_start_hc()
86 info->hcd = NULL; in s3c2410_stop_hc()
161 struct usb_hcd *hcd, in ohci_s3c2410_hub_control() argument
337 usb_remove_hcd(hcd); in ohci_hcd_s3c2410_remove()
339 usb_put_hcd(hcd); in ohci_hcd_s3c2410_remove()
354 struct usb_hcd *hcd = NULL; in ohci_hcd_s3c2410_probe() local
362 if (hcd == NULL) in ohci_hcd_s3c2410_probe()
369 if (IS_ERR(hcd->regs)) { in ohci_hcd_s3c2410_probe()
394 s3c2410_start_hc(dev, hcd); in ohci_hcd_s3c2410_probe()
407 usb_put_hcd(hcd); in ohci_hcd_s3c2410_probe()
[all …]
A Dohci-sa1111.c73 ohci_stop(hcd); in ohci_sa1111_start()
178 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() local
191 if (!hcd) in ohci_hcd_sa1111_probe()
228 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { in ohci_hcd_sa1111_probe()
234 hcd->regs = dev->mapbase; in ohci_hcd_sa1111_probe()
248 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_probe()
250 usb_put_hcd(hcd); in ohci_hcd_sa1111_probe()
265 usb_remove_hcd(hcd); in ohci_hcd_sa1111_remove()
267 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_remove()
268 usb_put_hcd(hcd); in ohci_hcd_sa1111_remove()
[all …]
A Dehci-ps3.c87 struct usb_hcd *hcd; in ps3_ehci_probe() local
140 if (!hcd) { in ps3_ehci_probe()
150 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) in ps3_ehci_probe()
156 if (!hcd->regs) { in ps3_ehci_probe()
186 iounmap(hcd->regs); in ps3_ehci_probe()
188 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ps3_ehci_probe()
189 usb_put_hcd(hcd); in ps3_ehci_probe()
208 BUG_ON(!hcd); in ps3_ehci_remove()
213 tmp = hcd->irq; in ps3_ehci_remove()
222 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ps3_ehci_remove()
[all …]
A Dehci-xilinx-of.c41 if (hcd->has_tt) { in ehci_xilinx_port_handed_over()
121 struct usb_hcd *hcd; in ehci_hcd_xilinx_of_probe() local
139 if (!hcd) in ehci_hcd_xilinx_of_probe()
154 if (IS_ERR(hcd->regs)) { in ehci_hcd_xilinx_of_probe()
155 rv = PTR_ERR(hcd->regs); in ehci_hcd_xilinx_of_probe()
159 ehci = hcd_to_ehci(hcd); in ehci_hcd_xilinx_of_probe()
172 hcd->has_tt = 1; in ehci_hcd_xilinx_of_probe()
176 hcd->has_tt = 0; in ehci_hcd_xilinx_of_probe()
190 usb_put_hcd(hcd); in ehci_hcd_xilinx_of_probe()
210 usb_remove_hcd(hcd); in ehci_hcd_xilinx_of_remove()
[all …]
A Dehci-sh.c14 struct usb_hcd *hcd; member
21 ehci->caps = hcd->regs; in ehci_sh_reset()
23 return ehci_setup(hcd); in ehci_sh_reset()
78 struct usb_hcd *hcd; in ehci_hcd_sh_probe() local
93 if (!hcd) { in ehci_hcd_sh_probe()
136 priv->hcd = hcd; in ehci_hcd_sh_probe()
147 usb_put_hcd(hcd); in ehci_hcd_sh_probe()
157 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_remove() local
160 usb_put_hcd(hcd); in ehci_hcd_sh_remove()
169 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_shutdown() local
[all …]
A Dehci-brcm.c53 struct usb_hcd *hcd, in ehci_brcm_hub_control() argument
119 return ehci_setup(hcd); in ehci_brcm_reset()
134 struct usb_hcd *hcd; in ehci_brcm_probe() local
151 if (!hcd) in ehci_brcm_probe()
155 priv = hcd_to_ehci_priv(hcd); in ehci_brcm_probe()
168 if (IS_ERR(hcd->regs)) { in ehci_brcm_probe()
169 err = PTR_ERR(hcd->regs); in ehci_brcm_probe()
186 usb_put_hcd(hcd); in ehci_brcm_probe()
196 usb_remove_hcd(hcd); in ehci_brcm_remove()
198 usb_put_hcd(hcd); in ehci_brcm_remove()
[all …]
A Dohci-pci.c35 static int broken_suspend(struct usb_hcd *hcd) in broken_suspend() argument
46 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_amd756()
52 return broken_suspend(hcd); in ohci_quirk_amd756()
61 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_opti()
96 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_zfmicro()
109 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_toshiba_scc()
153 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_quirk_amd700()
182 hcd->regs += SZ_4K; /* SZ_4K = 0x1000 */ in ohci_quirk_loongson()
267 if (hcd->self.controller) { in ohci_pci_reset()
274 ret = quirk(hcd); in ohci_pci_reset()
[all …]
A Dohci-spear.c30 #define to_spear_ohci(hcd) (struct spear_ohci *)(hcd_to_ohci(hcd)->priv) argument
37 struct usb_hcd *hcd = NULL; in spear_ohci_hcd_drv_probe() local
66 if (!hcd) { in spear_ohci_hcd_drv_probe()
72 if (IS_ERR(hcd->regs)) { in spear_ohci_hcd_drv_probe()
73 retval = PTR_ERR(hcd->regs); in spear_ohci_hcd_drv_probe()
77 hcd->rsrc_start = res->start; in spear_ohci_hcd_drv_probe()
80 sohci_p = to_spear_ohci(hcd); in spear_ohci_hcd_drv_probe()
93 usb_put_hcd(hcd); in spear_ohci_hcd_drv_probe()
105 usb_remove_hcd(hcd); in spear_ohci_hcd_drv_remove()
108 usb_put_hcd(hcd); in spear_ohci_hcd_drv_remove()
[all …]
A Dohci-exynos.c26 #define to_exynos_ohci(hcd) (struct exynos_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument
108 struct usb_hcd *hcd; in exynos_ohci_probe() local
124 if (!hcd) { in exynos_ohci_probe()
144 if (IS_ERR(hcd->regs)) { in exynos_ohci_probe()
145 err = PTR_ERR(hcd->regs); in exynos_ohci_probe()
185 usb_put_hcd(hcd); in exynos_ohci_probe()
196 usb_remove_hcd(hcd); in exynos_ohci_remove()
200 usb_put_hcd(hcd); in exynos_ohci_remove()
207 if (hcd->driver->shutdown) in exynos_ohci_shutdown()
208 hcd->driver->shutdown(hcd); in exynos_ohci_shutdown()
[all …]
A Dehci-spear.c31 #define to_spear_ehci(hcd) (struct spear_ehci *)(hcd_to_ehci(hcd)->priv) argument
47 ehci_resume(hcd, false); in ehci_spear_drv_resume()
56 struct usb_hcd *hcd ; in spear_ehci_hcd_drv_probe() local
89 if (!hcd) { in spear_ehci_hcd_drv_probe()
95 if (IS_ERR(hcd->regs)) { in spear_ehci_hcd_drv_probe()
96 retval = PTR_ERR(hcd->regs); in spear_ehci_hcd_drv_probe()
102 sehci = to_spear_ehci(hcd); in spear_ehci_hcd_drv_probe()
106 hcd_to_ehci(hcd)->caps = hcd->regs; in spear_ehci_hcd_drv_probe()
121 usb_put_hcd(hcd); in spear_ehci_hcd_drv_probe()
133 usb_remove_hcd(hcd); in spear_ehci_hcd_drv_remove()
[all …]
A Dxhci-pci.c134 if (hcd->irq > 0) in xhci_cleanup_msix()
157 if (hcd->irq) in xhci_try_enable_msi()
158 free_irq(hcd->irq, hcd); in xhci_try_enable_msi()
159 hcd->irq = 0; in xhci_try_enable_msi()
182 hcd->msi_enabled = 1; in xhci_try_enable_msi()
198 snprintf(hcd->irq_descr, sizeof(hcd->irq_descr), "%s:usb%d", in xhci_try_enable_msi()
199 hcd->driver->description, hcd->self.busnum); in xhci_try_enable_msi()
207 hcd->irq = pdev->irq; in xhci_try_enable_msi()
221 return xhci_run(hcd); in xhci_pci_run()
228 xhci_stop(hcd); in xhci_pci_stop()
[all …]
A Dehci-atmel.c91 struct usb_hcd *hcd; in ehci_atmel_drv_probe() local
119 if (!hcd) { in ehci_atmel_drv_probe()
126 if (IS_ERR(hcd->regs)) { in ehci_atmel_drv_probe()
127 retval = PTR_ERR(hcd->regs); in ehci_atmel_drv_probe()
131 hcd->rsrc_start = res->start; in ehci_atmel_drv_probe()
148 ehci = hcd_to_ehci(hcd); in ehci_atmel_drv_probe()
150 ehci->caps = hcd->regs; in ehci_atmel_drv_probe()
167 usb_put_hcd(hcd); in ehci_atmel_drv_probe()
179 usb_remove_hcd(hcd); in ehci_atmel_drv_remove()
180 usb_put_hcd(hcd); in ehci_atmel_drv_remove()
[all …]
A DMakefile9 fhci-y := fhci-hcd.o fhci-hub.o fhci-q.o
16 xhci-hcd-y += xhci-trace.o
19 xhci-hcd-y += xhci-dbgcap.o xhci-dbgtty.o
24 xhci-plat-hcd-y := xhci-plat.o
26 xhci-plat-hcd-y += xhci-mvebu.o
29 xhci-hcd-y += xhci-debugfs.o
32 xhci-rcar-hcd-y += xhci-rcar.o
36 xhci-hcd-y += xhci-sideband.o
41 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o
89 obj-$(CONFIG_USB_HCD_SSB) += ssb-hcd.o
[all …]
/drivers/usb/chipidea/
A Dhost.c122 struct usb_hcd *hcd; in host_start() local
132 if (!hcd) in host_start()
139 hcd->has_tt = 1; in host_start()
177 ci->hcd = hcd; in host_start()
181 ci->hcd = NULL; in host_start()
204 usb_put_hcd(hcd); in host_start()
211 struct usb_hcd *hcd = ci->hcd; in host_stop() local
213 if (hcd) { in host_stop()
220 usb_put_hcd(hcd); in host_stop()
225 ci->hcd = NULL; in host_stop()
[all …]

Completed in 73 milliseconds

123456