Home
last modified time | relevance | path

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

12345678910

/linux/drivers/usb/core/
A Dhcd.c683 status = hcd->driver->hub_control (hcd, in rh_call_control()
1984 hcd->driver->endpoint_reset(hcd, ep); in usb_hcd_reset_endpoint()
2515 hcd = hcd->shared_hcd; in usb_hc_died()
2703 return hcd == hcd->primary_hcd; in usb_hcd_is_primary_hcd()
2725 hcd->irq_descr, hcd); in usb_hcd_request_irqs()
2775 hcd->driver->stop(hcd); in usb_stop_hcd()
2838 hcd->dev_policy = hcd->wireless ? in usb_add_hcd()
2920 retval = hcd->driver->reset(hcd); in usb_add_hcd()
2952 retval = hcd->driver->start(hcd); in usb_add_hcd()
3043 free_irq(hcd->irq, hcd); in usb_remove_hcd()
[all …]
A Dhcd-pci.c210 if (!hcd) { in usb_hcd_pci_probe()
323 if (!hcd) in usb_hcd_pci_remove()
370 if (!hcd) in usb_hcd_pci_shutdown()
375 hcd->driver->shutdown(hcd); in usb_hcd_pci_shutdown()
376 if (usb_hcd_is_primary_hcd(hcd) && hcd->irq > 0) in usb_hcd_pci_shutdown()
377 free_irq(hcd->irq, hcd); in usb_hcd_pci_shutdown()
415 hcd = hcd->shared_hcd; in check_root_hub_suspended()
439 if (hcd->driver->pci_suspend && !HCD_DEAD(hcd)) { in suspend_common()
456 hcd->driver->pci_resume(hcd, false); in suspend_common()
500 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()
105 dma_pool_destroy(hcd->pool[i]); in hcd_buffer_destroy()
106 hcd->pool[i] = NULL; in hcd_buffer_destroy()
122 struct usb_hcd *hcd = bus_to_hcd(bus); in hcd_buffer_alloc() local
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()
[all …]
/linux/drivers/usb/isp1760/
A Disp1760-hcd.c1206 if (!hcd) { in schedule_ptds()
1960 schedule_ptds(hcd); in isp1760_urb_enqueue()
2062 schedule_ptds(hcd); in isp1760_urb_dequeue()
2095 schedule_ptds(hcd); in isp1760_endpoint_disable()
2471 ehci_reset(hcd); in isp1760_stop()
2481 isp1760_stop(hcd); in isp1760_shutdown()
2573 if (!hcd) in isp1760_hcd_register()
2578 priv->hcd = hcd; in isp1760_hcd_register()
2596 hcd->irq = irq; in isp1760_hcd_register()
2616 usb_put_hcd(hcd); in isp1760_hcd_register()
[all …]
/linux/drivers/usb/host/
A Dohci-da8xx.c38 struct usb_hcd *hcd; member
46 #define to_da8xx_ohci(hcd) (struct da8xx_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument
247 result = ohci_setup(hcd); in ohci_da8xx_reset()
249 ohci_da8xx_disable(hcd); in ohci_da8xx_reset()
378 struct usb_hcd *hcd; in ohci_da8xx_probe() local
382 if (!hcd) in ohci_da8xx_probe()
386 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.c248 if (!hcd) in ohci_hcd_omap_probe()
294 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { in ohci_hcd_omap_probe()
300 hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_omap_probe()
301 if (!hcd->regs) { in ohci_hcd_omap_probe()
319 iounmap(hcd->regs); in ohci_hcd_omap_probe()
321 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_omap_probe()
327 usb_put_hcd(hcd); in ohci_hcd_omap_probe()
350 usb_remove_hcd(hcd); in ohci_hcd_omap_remove()
356 iounmap(hcd->regs); in ohci_hcd_omap_remove()
357 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_omap_remove()
[all …]
A Dxhci-plat.c44 priv->plat_start(hcd); in xhci_priv_plat_start()
115 return xhci_run(hcd); in xhci_plat_start()
194 struct usb_hcd *hcd; in xhci_plat_probe() local
250 if (!hcd) { in xhci_plat_probe()
256 if (IS_ERR(hcd->regs)) { in xhci_plat_probe()
303 xhci->main_hcd = hcd; in xhci_plat_probe()
335 hcd->usb_phy = NULL; in xhci_plat_probe()
381 usb_remove_hcd(hcd); in xhci_plat_probe()
396 usb_put_hcd(hcd); in xhci_plat_probe()
420 usb_remove_hcd(hcd); in xhci_plat_remove()
[all …]
A Dehci-fsl.c50 struct usb_hcd *hcd; in fsl_ehci_drv_probe() local
90 if (!hcd) { in fsl_ehci_drv_probe()
97 if (IS_ERR(hcd->regs)) { in fsl_ehci_drv_probe()
98 retval = PTR_ERR(hcd->regs); in fsl_ehci_drv_probe()
105 pdata->regs = hcd->regs; in fsl_ehci_drv_probe()
157 hcd, ehci, hcd->usb_phy); in fsl_ehci_drv_probe()
178 usb_put_hcd(hcd); in fsl_ehci_drv_probe()
399 hcd->has_tt = 1; in ehci_fsl_setup()
401 retval = ehci_setup(hcd); in ehci_fsl_setup()
702 usb_remove_hcd(hcd); in fsl_ehci_drv_remove()
[all …]
A Dmax3421-hcd.c1227 max3421_detect_conn(hcd); in max3421_handle_irqs()
1278 dump_eps(hcd); in max3421_handle_irqs()
1325 max3421_detect_conn(hcd); in max3421_reset_hcd()
1473 hcd->speed = HCD_USB2; in max3421_reset()
1875 if (!hcd) { in max3421_probe()
1919 if (hcd) { in max3421_probe()
1924 usb_put_hcd(hcd); in max3421_probe()
1933 struct usb_hcd *hcd; in max3421_remove() local
1939 usb_remove_hcd(hcd); in max3421_remove()
1947 free_irq(spi->irq, hcd); in max3421_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 Dohci-tmio.c69 #define hcd_to_tmio(hcd) ((struct tmio_hcd *)(hcd_to_ohci(hcd) + 1)) argument
131 (u64) hcd->rsrc_start, hcd->irq); in tmio_start_hc()
145 ohci_stop(hcd); in ohci_tmio_start()
196 struct usb_hcd *hcd; in ohci_hcd_tmio_drv_probe() local
209 if (!hcd) { in ohci_hcd_tmio_drv_probe()
227 hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_tmio_drv_probe()
228 if (!hcd->regs) { in ohci_hcd_tmio_drv_probe()
263 iounmap(hcd->regs); in ohci_hcd_tmio_drv_probe()
267 usb_put_hcd(hcd); in ohci_hcd_tmio_drv_probe()
283 iounmap(hcd->regs); in ohci_hcd_tmio_drv_remove()
[all …]
A Dohci-s3c2410.c72 info->hcd = hcd; in s3c2410_start_hc()
88 info->hcd = NULL; in s3c2410_stop_hc()
163 struct usb_hcd *hcd, in ohci_s3c2410_hub_control() argument
339 usb_remove_hcd(hcd); in ohci_hcd_s3c2410_remove()
341 usb_put_hcd(hcd); in ohci_hcd_s3c2410_remove()
357 struct usb_hcd *hcd = NULL; in ohci_hcd_s3c2410_probe() local
365 if (hcd == NULL) in ohci_hcd_s3c2410_probe()
372 if (IS_ERR(hcd->regs)) { in ohci_hcd_s3c2410_probe()
391 s3c2410_start_hc(dev, hcd); in ohci_hcd_s3c2410_probe()
404 usb_put_hcd(hcd); in ohci_hcd_s3c2410_probe()
[all …]
A Dehci-xilinx-of.c39 if (hcd->has_tt) { in ehci_xilinx_port_handed_over()
119 struct usb_hcd *hcd; in ehci_hcd_xilinx_of_probe() local
137 if (!hcd) in ehci_hcd_xilinx_of_probe()
152 if (IS_ERR(hcd->regs)) { in ehci_hcd_xilinx_of_probe()
153 rv = PTR_ERR(hcd->regs); in ehci_hcd_xilinx_of_probe()
157 ehci = hcd_to_ehci(hcd); in ehci_hcd_xilinx_of_probe()
170 hcd->has_tt = 1; in ehci_hcd_xilinx_of_probe()
174 hcd->has_tt = 0; in ehci_hcd_xilinx_of_probe()
188 usb_put_hcd(hcd); in ehci_hcd_xilinx_of_probe()
206 usb_remove_hcd(hcd); in ehci_hcd_xilinx_of_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 Dohci-sa1111.c73 ohci_stop(hcd); in ohci_sa1111_start()
181 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() local
194 if (!hcd) in ohci_hcd_sa1111_probe()
206 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) { in ohci_hcd_sa1111_probe()
212 hcd->regs = dev->mapbase; in ohci_hcd_sa1111_probe()
226 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_probe()
228 usb_put_hcd(hcd); in ohci_hcd_sa1111_probe()
243 usb_remove_hcd(hcd); in ohci_hcd_sa1111_remove()
245 release_mem_region(hcd->rsrc_start, hcd->rsrc_len); in ohci_hcd_sa1111_remove()
246 usb_put_hcd(hcd); in ohci_hcd_sa1111_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()
133 priv->hcd = hcd; in ehci_hcd_sh_probe()
143 usb_put_hcd(hcd); in ehci_hcd_sh_probe()
153 struct usb_hcd *hcd = priv->hcd; in ehci_hcd_sh_remove() local
156 usb_put_hcd(hcd); in ehci_hcd_sh_remove()
167 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
115 return ehci_setup(hcd); in ehci_brcm_reset()
130 struct usb_hcd *hcd; in ehci_brcm_probe() local
147 if (!hcd) in ehci_brcm_probe()
151 priv = hcd_to_ehci_priv(hcd); in ehci_brcm_probe()
164 if (IS_ERR(hcd->regs)) { in ehci_brcm_probe()
165 err = PTR_ERR(hcd->regs); in ehci_brcm_probe()
182 usb_put_hcd(hcd); in ehci_brcm_probe()
192 usb_remove_hcd(hcd); in ehci_brcm_remove()
194 usb_put_hcd(hcd); in ehci_brcm_remove()
[all …]
A Dohci-spear.c31 #define to_spear_ohci(hcd) (struct spear_ohci *)(hcd_to_ohci(hcd)->priv) argument
38 struct usb_hcd *hcd = NULL; in spear_ohci_hcd_drv_probe() local
67 if (!hcd) { in spear_ohci_hcd_drv_probe()
74 if (IS_ERR(hcd->regs)) { in spear_ohci_hcd_drv_probe()
75 retval = PTR_ERR(hcd->regs); in spear_ohci_hcd_drv_probe()
82 sohci_p = to_spear_ohci(hcd); in spear_ohci_hcd_drv_probe()
87 retval = usb_add_hcd(hcd, irq, 0); in spear_ohci_hcd_drv_probe()
95 usb_put_hcd(hcd); in spear_ohci_hcd_drv_probe()
107 usb_remove_hcd(hcd); in spear_ohci_hcd_drv_remove()
111 usb_put_hcd(hcd); in spear_ohci_hcd_drv_remove()
[all …]
A Dehci-atmel.c93 struct usb_hcd *hcd; in ehci_atmel_drv_probe() local
121 if (!hcd) { in ehci_atmel_drv_probe()
129 if (IS_ERR(hcd->regs)) { in ehci_atmel_drv_probe()
130 retval = PTR_ERR(hcd->regs); in ehci_atmel_drv_probe()
134 hcd->rsrc_start = res->start; in ehci_atmel_drv_probe()
151 ehci = hcd_to_ehci(hcd); in ehci_atmel_drv_probe()
153 ehci->caps = hcd->regs; in ehci_atmel_drv_probe()
170 usb_put_hcd(hcd); in ehci_atmel_drv_probe()
182 usb_remove_hcd(hcd); in ehci_atmel_drv_remove()
183 usb_put_hcd(hcd); in ehci_atmel_drv_remove()
[all …]
A Dehci-spear.c33 #define to_spear_ehci(hcd) (struct spear_ehci *)(hcd_to_ehci(hcd)->priv) argument
49 ehci_resume(hcd, false); in ehci_spear_drv_resume()
58 struct usb_hcd *hcd ; in spear_ehci_hcd_drv_probe() local
91 if (!hcd) { in spear_ehci_hcd_drv_probe()
98 if (IS_ERR(hcd->regs)) { in spear_ehci_hcd_drv_probe()
99 retval = PTR_ERR(hcd->regs); in spear_ehci_hcd_drv_probe()
105 sehci = to_spear_ehci(hcd); in spear_ehci_hcd_drv_probe()
109 hcd_to_ehci(hcd)->caps = hcd->regs; in spear_ehci_hcd_drv_probe()
122 usb_put_hcd(hcd); in spear_ehci_hcd_drv_probe()
134 usb_remove_hcd(hcd); in spear_ehci_hcd_drv_remove()
[all …]
A Dxhci-rcar.c111 void xhci_rcar_start(struct usb_hcd *hcd) in xhci_rcar_start() argument
115 if (hcd->regs != NULL) { in xhci_rcar_start()
117 temp = readl(hcd->regs + RCAR_USB3_INT_ENA); in xhci_rcar_start()
121 xhci_rcar_start_gen2(hcd); in xhci_rcar_start()
127 struct device *dev = hcd->self.controller; in xhci_rcar_download_firmware()
128 void __iomem *regs = hcd->regs; in xhci_rcar_download_firmware()
209 if (!hcd->regs) in xhci_rcar_init_quirk()
212 if (!xhci_rcar_wait_for_pll_active(hcd)) in xhci_rcar_init_quirk()
215 return xhci_rcar_download_firmware(hcd); in xhci_rcar_init_quirk()
222 ret = xhci_rcar_download_firmware(hcd); in xhci_rcar_resume_quirk()
[all …]
A Dohci-at91.c173 struct usb_hcd *hcd; in usb_hcd_at91_probe() local
186 if (!hcd) in usb_hcd_at91_probe()
192 if (IS_ERR(hcd->regs)) { in usb_hcd_at91_probe()
193 retval = PTR_ERR(hcd->regs); in usb_hcd_at91_probe()
196 hcd->rsrc_start = res->start; in usb_hcd_at91_probe()
223 ohci = hcd_to_ohci(hcd); in usb_hcd_at91_probe()
243 usb_put_hcd(hcd); in usb_hcd_at91_probe()
264 usb_remove_hcd(hcd); in usb_hcd_at91_remove()
266 usb_put_hcd(hcd); in usb_hcd_at91_remove()
612 enable_irq_wake(hcd->irq); in ohci_hcd_at91_drv_suspend()
[all …]
/linux/include/linux/usb/
A Dhcd.h131 #define HCD_HW_ACCESSIBLE(hcd) ((hcd)->flags & (1U << HCD_FLAG_HW_ACCESSIBLE)) argument
132 #define HCD_POLL_RH(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_RH)) argument
133 #define HCD_POLL_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_PENDING)) argument
134 #define HCD_WAKEUP_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_WAKEUP_PENDING)) argument
135 #define HCD_RH_RUNNING(hcd) ((hcd)->flags & (1U << HCD_FLAG_RH_RUNNING)) argument
136 #define HCD_DEAD(hcd) ((hcd)->flags & (1U << HCD_FLAG_DEAD)) argument
143 #define HCD_INTF_AUTHORIZED(hcd) \ argument
238 return &hcd->self; in hcd_to_bus()
271 int (*reset) (struct usb_hcd *hcd);
272 int (*start) (struct usb_hcd *hcd);
[all …]
/linux/drivers/usb/chipidea/
A Dhost.c115 struct usb_hcd *hcd; in host_start() local
125 if (!hcd) in host_start()
132 hcd->has_tt = 1; in host_start()
169 ci->hcd = hcd; in host_start()
173 ci->hcd = NULL; in host_start()
196 usb_put_hcd(hcd); in host_start()
203 struct usb_hcd *hcd = ci->hcd; in host_stop() local
205 if (hcd) { in host_stop()
212 usb_put_hcd(hcd); in host_stop()
217 ci->hcd = NULL; in host_stop()
[all …]

Completed in 65 milliseconds

12345678910