/linux-6.3-rc2/drivers/usb/core/ |
A D | hcd.c | 683 status = hcd->driver->hub_control (hcd, in rh_call_control() 2009 hcd->driver->endpoint_reset(hcd, ep); in usb_hcd_reset_endpoint() 2533 hcd = hcd->shared_hcd; in usb_hc_died() 2721 return hcd == hcd->primary_hcd; in usb_hcd_is_primary_hcd() 2743 hcd->irq_descr, hcd); in usb_hcd_request_irqs() 2793 hcd->driver->stop(hcd); in usb_stop_hcd() 2857 hcd->dev_policy = hcd->wireless ? in usb_add_hcd() 2939 retval = hcd->driver->reset(hcd); in usb_add_hcd() 2972 retval = hcd->driver->start(hcd); in usb_add_hcd() 3085 free_irq(hcd->irq, hcd); in usb_remove_hcd() [all …]
|
A D | hcd-pci.c | 204 if (!hcd) { in usb_hcd_pci_probe() 317 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() 433 if (hcd->driver->pci_suspend && !HCD_DEAD(hcd)) { in suspend_common() 450 hcd->driver->pci_resume(hcd, false); in suspend_common() 494 if (hcd->driver->pci_resume && !HCD_DEAD(hcd)) { in resume_common() [all …]
|
A D | buffer.c | 70 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-6.3-rc2/drivers/usb/host/ |
A D | ohci-da8xx.c | 38 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 D | ohci-omap.c | 216 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 D | ehci-fsl.c | 50 struct usb_hcd *hcd; in fsl_ehci_drv_probe() local 85 if (!hcd) { in fsl_ehci_drv_probe() 92 if (IS_ERR(hcd->regs)) { in fsl_ehci_drv_probe() 93 retval = PTR_ERR(hcd->regs); in fsl_ehci_drv_probe() 100 pdata->regs = hcd->regs; in fsl_ehci_drv_probe() 152 hcd, ehci, hcd->usb_phy); in fsl_ehci_drv_probe() 173 usb_put_hcd(hcd); in fsl_ehci_drv_probe() 394 hcd->has_tt = 1; in ehci_fsl_setup() 396 retval = ehci_setup(hcd); in ehci_fsl_setup() 697 usb_remove_hcd(hcd); in fsl_ehci_drv_remove() [all …]
|
A D | ohci-sm501.c | 35 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 D | max3421-hcd.c | 1218 max3421_detect_conn(hcd); in max3421_handle_irqs() 1269 dump_eps(hcd); in max3421_handle_irqs() 1316 max3421_detect_conn(hcd); in max3421_reset_hcd() 1464 hcd->speed = HCD_USB2; in max3421_reset() 1866 if (!hcd) { in max3421_probe() 1910 if (hcd) { in max3421_probe() 1915 usb_put_hcd(hcd); in max3421_probe() 1924 struct usb_hcd *hcd; in max3421_remove() local 1930 usb_remove_hcd(hcd); in max3421_remove() 1938 free_irq(spi->irq, hcd); in max3421_remove() [all …]
|
A D | ohci-ps3.c | 38 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 D | xhci-plat.c | 44 priv->plat_start(hcd); in xhci_priv_plat_start() 105 return xhci_run(hcd); in xhci_plat_start() 181 if (!hcd) { in xhci_plat_probe() 187 if (IS_ERR(hcd->regs)) { in xhci_plat_probe() 195 xhci = hcd_to_xhci(hcd); in xhci_plat_probe() 241 xhci->main_hcd = hcd; in xhci_plat_probe() 267 hcd->usb_phy = NULL; in xhci_plat_probe() 323 usb_remove_hcd(hcd); in xhci_plat_probe() 338 usb_put_hcd(hcd); in xhci_plat_probe() 407 usb_remove_hcd(hcd); in xhci_plat_remove() [all …]
|
A D | ohci-sa1111.c | 73 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 D | ehci-xilinx-of.c | 41 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 D | ehci-sh.c | 14 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 D | ehci-ps3.c | 87 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 D | ohci-s3c2410.c | 70 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() 355 struct usb_hcd *hcd = NULL; in ohci_hcd_s3c2410_probe() local 363 if (hcd == NULL) in ohci_hcd_s3c2410_probe() 370 if (IS_ERR(hcd->regs)) { in ohci_hcd_s3c2410_probe() 395 s3c2410_start_hc(dev, hcd); in ohci_hcd_s3c2410_probe() 408 usb_put_hcd(hcd); in ohci_hcd_s3c2410_probe() [all …]
|
A D | ehci-brcm.c | 53 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 D | ohci-spear.c | 30 #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() 73 if (IS_ERR(hcd->regs)) { in spear_ohci_hcd_drv_probe() 74 retval = PTR_ERR(hcd->regs); in spear_ohci_hcd_drv_probe() 78 hcd->rsrc_start = res->start; in spear_ohci_hcd_drv_probe() 81 sohci_p = to_spear_ohci(hcd); in spear_ohci_hcd_drv_probe() 94 usb_put_hcd(hcd); in spear_ohci_hcd_drv_probe() 106 usb_remove_hcd(hcd); in spear_ohci_hcd_drv_remove() 110 usb_put_hcd(hcd); in spear_ohci_hcd_drv_remove() [all …]
|
A D | ehci-spear.c | 31 #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() 96 if (IS_ERR(hcd->regs)) { in spear_ehci_hcd_drv_probe() 97 retval = PTR_ERR(hcd->regs); in spear_ehci_hcd_drv_probe() 103 sehci = to_spear_ehci(hcd); in spear_ehci_hcd_drv_probe() 107 hcd_to_ehci(hcd)->caps = hcd->regs; in spear_ehci_hcd_drv_probe() 120 usb_put_hcd(hcd); in spear_ehci_hcd_drv_probe() 132 usb_remove_hcd(hcd); in spear_ehci_hcd_drv_remove() [all …]
|
A D | ehci-atmel.c | 91 struct usb_hcd *hcd; in ehci_atmel_drv_probe() local 119 if (!hcd) { in ehci_atmel_drv_probe() 127 if (IS_ERR(hcd->regs)) { in ehci_atmel_drv_probe() 128 retval = PTR_ERR(hcd->regs); in ehci_atmel_drv_probe() 132 hcd->rsrc_start = res->start; in ehci_atmel_drv_probe() 149 ehci = hcd_to_ehci(hcd); in ehci_atmel_drv_probe() 151 ehci->caps = hcd->regs; in ehci_atmel_drv_probe() 168 usb_put_hcd(hcd); in ehci_atmel_drv_probe() 180 usb_remove_hcd(hcd); in ehci_atmel_drv_remove() 181 usb_put_hcd(hcd); in ehci_atmel_drv_remove() [all …]
|
A D | Makefile | 9 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 22 xhci-mtk-hcd-y := xhci-mtk.o xhci-mtk-sch.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 37 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o 86 obj-$(CONFIG_USB_HCD_SSB) += ssb-hcd.o [all …]
|
A D | ehci-npcm7xx.c | 34 return ehci_suspend(hcd, do_wakeup); in ehci_npcm7xx_drv_suspend() 41 ehci_resume(hcd, false); in ehci_npcm7xx_drv_resume() 50 struct usb_hcd *hcd; in npcm7xx_ehci_hcd_drv_probe() local 77 if (!hcd) { in npcm7xx_ehci_hcd_drv_probe() 84 if (IS_ERR(hcd->regs)) { in npcm7xx_ehci_hcd_drv_probe() 85 retval = PTR_ERR(hcd->regs); in npcm7xx_ehci_hcd_drv_probe() 88 hcd->rsrc_start = res->start; in npcm7xx_ehci_hcd_drv_probe() 92 hcd_to_ehci(hcd)->caps = hcd->regs; in npcm7xx_ehci_hcd_drv_probe() 102 usb_put_hcd(hcd); in npcm7xx_ehci_hcd_drv_probe() 113 usb_remove_hcd(hcd); in npcm7xx_ehci_hcd_drv_remove() [all …]
|
A D | uhci-grlib.c | 93 struct usb_hcd *hcd; in uhci_hcd_grlib_probe() local 112 if (!hcd) in uhci_hcd_grlib_probe() 115 hcd->rsrc_start = res.start; in uhci_hcd_grlib_probe() 126 if (IS_ERR(hcd->regs)) { in uhci_hcd_grlib_probe() 127 rv = PTR_ERR(hcd->regs); in uhci_hcd_grlib_probe() 131 uhci = hcd_to_uhci(hcd); in uhci_hcd_grlib_probe() 133 uhci->regs = hcd->regs; in uhci_hcd_grlib_probe() 135 rv = usb_add_hcd(hcd, irq, 0); in uhci_hcd_grlib_probe() 145 usb_put_hcd(hcd); in uhci_hcd_grlib_probe() 156 usb_remove_hcd(hcd); in uhci_hcd_grlib_remove() [all …]
|
A D | ohci-exynos.c | 26 #define to_exynos_ohci(hcd) (struct exynos_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument 113 struct usb_hcd *hcd; in exynos_ohci_probe() local 129 if (!hcd) { in exynos_ohci_probe() 154 if (IS_ERR(hcd->regs)) { in exynos_ohci_probe() 155 err = PTR_ERR(hcd->regs); in exynos_ohci_probe() 197 usb_put_hcd(hcd); in exynos_ohci_probe() 208 usb_remove_hcd(hcd); in exynos_ohci_remove() 214 usb_put_hcd(hcd); in exynos_ohci_remove() 223 if (hcd->driver->shutdown) in exynos_ohci_shutdown() 224 hcd->driver->shutdown(hcd); in exynos_ohci_shutdown() [all …]
|
/linux-6.3-rc2/drivers/usb/isp1760/ |
A D | isp1760-hcd.c | 1205 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() 2570 if (!hcd) in isp1760_hcd_register() 2575 priv->hcd = hcd; in isp1760_hcd_register() 2593 hcd->irq = irq; in isp1760_hcd_register() 2613 usb_put_hcd(hcd); in isp1760_hcd_register() [all …]
|
/linux-6.3-rc2/include/linux/usb/ |
A D | hcd.h | 119 #define HCD_HW_ACCESSIBLE(hcd) ((hcd)->flags & (1U << HCD_FLAG_HW_ACCESSIBLE)) argument 120 #define HCD_POLL_RH(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_RH)) argument 121 #define HCD_POLL_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_PENDING)) argument 122 #define HCD_WAKEUP_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_WAKEUP_PENDING)) argument 123 #define HCD_RH_RUNNING(hcd) ((hcd)->flags & (1U << HCD_FLAG_RH_RUNNING)) argument 124 #define HCD_DEAD(hcd) ((hcd)->flags & (1U << HCD_FLAG_DEAD)) argument 125 #define HCD_DEFER_RH_REGISTER(hcd) ((hcd)->flags & (1U << HCD_FLAG_DEFER_RH_REGISTER)) argument 132 #define HCD_INTF_AUTHORIZED(hcd) \ argument 227 return &hcd->self; in hcd_to_bus() 260 int (*reset) (struct usb_hcd *hcd); [all …]
|