Home
last modified time | relevance | path

Searched full:hcd (Results 1 – 25 of 522) sorted by relevance

12345678910>>...21

/kernel/linux/linux-5.10/drivers/usb/core/
Dhcd.c38 #include <linux/usb/hcd.h>
51 * HCD-specific behaviors/bugs.
60 * tracking overhead. The HCD code should only block on spinlocks or on
65 * and includes mostly a "HCDI" (HCD Interface) along with some APIs used
428 * @hcd: the host controller for this root hub
439 rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) in rh_string() argument
456 s = hcd->self.bus_name; in rh_string()
460 s = hcd->product_desc; in rh_string()
465 init_utsname()->release, hcd->driver->description); in rh_string()
478 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() argument
[all …]
Dhcd-pci.c10 #include <linux/usb/hcd.h>
42 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd,
46 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, in for_each_companion() argument
75 fn(pdev, hcd, companion, companion_hcd); in for_each_companion()
85 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_pre_add() argument
102 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_post_add() argument
111 companion_hcd->self.hs_companion = &hcd->self; in ehci_post_add()
123 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, in non_ehci_add() argument
129 hcd->self.hs_companion = &companion_hcd->self; in non_ehci_add()
134 static void ehci_remove(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_remove() argument
[all …]
/kernel/linux/linux-4.19/drivers/usb/core/
Dhcd.c35 #include <linux/usb/hcd.h>
48 * HCD-specific behaviors/bugs.
57 * tracking overhead. The HCD code should only block on spinlocks or on
62 * and includes mostly a "HCDI" (HCD Interface) along with some APIs used
424 * @hcd: the host controller for this root hub
435 rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) in rh_string() argument
452 s = hcd->self.bus_name; in rh_string()
456 s = hcd->product_desc; in rh_string()
461 init_utsname()->release, hcd->driver->description); in rh_string()
474 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() argument
[all …]
Dhcd-pci.c10 #include <linux/usb/hcd.h>
42 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd,
46 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, in for_each_companion() argument
75 fn(pdev, hcd, companion, companion_hcd); in for_each_companion()
85 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_pre_add() argument
102 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_post_add() argument
111 companion_hcd->self.hs_companion = &hcd->self; in ehci_post_add()
123 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, in non_ehci_add() argument
129 hcd->self.hs_companion = &companion_hcd->self; in non_ehci_add()
134 static void ehci_remove(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_remove() argument
[all …]
/kernel/linux/linux-4.19/drivers/usb/host/
Dohci-da8xx.c3 * OHCI HCD (Host Controller Driver) for USB.
22 #include <linux/usb/hcd.h>
32 static int (*orig_ohci_hub_control)(struct usb_hcd *hcd, u16 typeReq,
34 static int (*orig_ohci_hub_status_data)(struct usb_hcd *hcd, char *buf);
37 struct usb_hcd *hcd; member
45 #define to_da8xx_ohci(hcd) (struct da8xx_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument
50 static int ohci_da8xx_enable(struct usb_hcd *hcd) in ohci_da8xx_enable() argument
52 struct da8xx_ohci_hcd *da8xx_ohci = to_da8xx_ohci(hcd); in ohci_da8xx_enable()
77 static void ohci_da8xx_disable(struct usb_hcd *hcd) in ohci_da8xx_disable() argument
79 struct da8xx_ohci_hcd *da8xx_ohci = to_da8xx_ohci(hcd); in ohci_da8xx_disable()
[all …]
Dohci-ps3.c12 static int ps3_ohci_hc_reset(struct usb_hcd *hcd) in ps3_ohci_hc_reset() argument
14 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_reset()
21 static int ps3_ohci_hc_start(struct usb_hcd *hcd) in ps3_ohci_hc_start() argument
24 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_start()
36 dev_err(hcd->self.controller, "can't start %s\n", in ps3_ohci_hc_start()
37 hcd->self.bus_name); in ps3_ohci_hc_start()
38 ohci_stop(hcd); in ps3_ohci_hc_start()
70 struct usb_hcd *hcd; in ps3_ohci_probe() local
122 hcd = usb_create_hcd(&ps3_ohci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ohci_probe()
124 if (!hcd) { in ps3_ohci_probe()
[all …]
Dxhci-plat.c29 static int xhci_plat_setup(struct usb_hcd *hcd);
30 static int xhci_plat_start(struct usb_hcd *hcd);
38 static void xhci_priv_plat_start(struct usb_hcd *hcd) in xhci_priv_plat_start() argument
40 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_plat_start()
43 priv->plat_start(hcd); in xhci_priv_plat_start()
46 static int xhci_priv_init_quirk(struct usb_hcd *hcd) in xhci_priv_init_quirk() argument
48 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_init_quirk()
53 return priv->init_quirk(hcd); in xhci_priv_init_quirk()
56 static int xhci_priv_resume_quirk(struct usb_hcd *hcd) in xhci_priv_resume_quirk() argument
58 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_resume_quirk()
[all …]
Dmax3421-hcd.c18 * For USB HCD implementation.
63 #include <linux/usb/hcd.h>
66 #include <linux/platform_data/max3421-hcd.h>
140 * SPI-thread without acquiring the HCD lock:
339 hcd_to_max3421(struct usb_hcd *hcd) in hcd_to_max3421() argument
341 return (struct max3421_hcd *) hcd->hcd_priv; in hcd_to_max3421()
351 spi_rd8(struct usb_hcd *hcd, unsigned int reg) in spi_rd8() argument
353 struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd); in spi_rd8()
354 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_rd8()
377 spi_wr8(struct usb_hcd *hcd, unsigned int reg, u8 val) in spi_wr8() argument
[all …]
Dehci-sh.c15 struct usb_hcd *hcd; member
18 static int ehci_sh_reset(struct usb_hcd *hcd) in ehci_sh_reset() argument
20 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_sh_reset()
22 ehci->caps = hcd->regs; in ehci_sh_reset()
24 return ehci_setup(hcd); in ehci_sh_reset()
80 struct usb_hcd *hcd; in ehci_hcd_sh_probe() local
97 /* initialize hcd */ in ehci_hcd_sh_probe()
98 hcd = usb_create_hcd(&ehci_sh_hc_driver, &pdev->dev, in ehci_hcd_sh_probe()
100 if (!hcd) { in ehci_hcd_sh_probe()
106 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in ehci_hcd_sh_probe()
[all …]
Dehci-fsl.c21 #include <linux/usb/hcd.h>
49 struct usb_hcd *hcd; in fsl_ehci_drv_probe() local
86 hcd = __usb_create_hcd(&fsl_ehci_hc_driver, pdev->dev.parent, in fsl_ehci_drv_probe()
88 if (!hcd) { in fsl_ehci_drv_probe()
94 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in fsl_ehci_drv_probe()
95 if (IS_ERR(hcd->regs)) { in fsl_ehci_drv_probe()
96 retval = PTR_ERR(hcd->regs); in fsl_ehci_drv_probe()
100 hcd->rsrc_start = res->start; in fsl_ehci_drv_probe()
101 hcd->rsrc_len = resource_size(res); in fsl_ehci_drv_probe()
103 pdata->regs = hcd->regs; in fsl_ehci_drv_probe()
[all …]
Dehci-ps3.c40 static int ps3_ehci_hc_reset(struct usb_hcd *hcd) in ps3_ehci_hc_reset() argument
43 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ps3_ehci_hc_reset()
46 ehci->caps = hcd->regs; in ps3_ehci_hc_reset()
48 result = ehci_setup(hcd); in ps3_ehci_hc_reset()
87 struct usb_hcd *hcd; in ps3_ehci_probe() local
138 hcd = usb_create_hcd(&ps3_ehci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ehci_probe()
140 if (!hcd) { in ps3_ehci_probe()
147 hcd->rsrc_start = dev->m_region->lpar_addr; in ps3_ehci_probe()
148 hcd->rsrc_len = dev->m_region->len; in ps3_ehci_probe()
150 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) in ps3_ehci_probe()
[all …]
Dohci-spear.c3 * OHCI HCD (Host Controller Driver) for USB.
20 #include <linux/usb/hcd.h>
31 #define to_spear_ohci(hcd) (struct spear_ohci *)(hcd_to_ohci(hcd)->priv) argument
39 struct usb_hcd *hcd = NULL; in spear_ohci_hcd_drv_probe() local
67 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in spear_ohci_hcd_drv_probe()
68 if (!hcd) { in spear_ohci_hcd_drv_probe()
74 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in spear_ohci_hcd_drv_probe()
75 if (IS_ERR(hcd->regs)) { in spear_ohci_hcd_drv_probe()
76 retval = PTR_ERR(hcd->regs); in spear_ohci_hcd_drv_probe()
80 hcd->rsrc_start = pdev->resource[0].start; in spear_ohci_hcd_drv_probe()
[all …]
/kernel/linux/linux-5.10/drivers/usb/host/
Dohci-da8xx.c3 * OHCI HCD (Host Controller Driver) for USB.
23 #include <linux/usb/hcd.h>
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; member
46 #define to_da8xx_ohci(hcd) (struct da8xx_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument
51 static int ohci_da8xx_enable(struct usb_hcd *hcd) in ohci_da8xx_enable() argument
53 struct da8xx_ohci_hcd *da8xx_ohci = to_da8xx_ohci(hcd); in ohci_da8xx_enable()
78 static void ohci_da8xx_disable(struct usb_hcd *hcd) in ohci_da8xx_disable() argument
80 struct da8xx_ohci_hcd *da8xx_ohci = to_da8xx_ohci(hcd); in ohci_da8xx_disable()
[all …]
Dxhci-plat.c30 static int xhci_plat_setup(struct usb_hcd *hcd);
31 static int xhci_plat_start(struct usb_hcd *hcd);
39 static void xhci_priv_plat_start(struct usb_hcd *hcd) in xhci_priv_plat_start() argument
41 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_plat_start()
44 priv->plat_start(hcd); in xhci_priv_plat_start()
47 static int xhci_priv_plat_setup(struct usb_hcd *hcd) in xhci_priv_plat_setup() argument
49 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_plat_setup()
54 return priv->plat_setup(hcd); in xhci_priv_plat_setup()
57 static int xhci_priv_init_quirk(struct usb_hcd *hcd) in xhci_priv_init_quirk() argument
59 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_init_quirk()
[all …]
Dohci-ps3.c12 static int ps3_ohci_hc_reset(struct usb_hcd *hcd) in ps3_ohci_hc_reset() argument
14 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_reset()
21 static int ps3_ohci_hc_start(struct usb_hcd *hcd) in ps3_ohci_hc_start() argument
24 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_start()
36 dev_err(hcd->self.controller, "can't start %s\n", in ps3_ohci_hc_start()
37 hcd->self.bus_name); in ps3_ohci_hc_start()
38 ohci_stop(hcd); in ps3_ohci_hc_start()
70 struct usb_hcd *hcd; in ps3_ohci_probe() local
122 hcd = usb_create_hcd(&ps3_ohci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ohci_probe()
124 if (!hcd) { in ps3_ohci_probe()
[all …]
Dehci-sh.c14 struct usb_hcd *hcd; member
17 static int ehci_sh_reset(struct usb_hcd *hcd) in ehci_sh_reset() argument
19 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_sh_reset()
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
90 /* initialize hcd */ in ehci_hcd_sh_probe()
91 hcd = usb_create_hcd(&ehci_sh_hc_driver, &pdev->dev, in ehci_hcd_sh_probe()
93 if (!hcd) { in ehci_hcd_sh_probe()
99 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in ehci_hcd_sh_probe()
[all …]
Dmax3421-hcd.c18 * For USB HCD implementation.
63 #include <linux/usb/hcd.h>
66 #include <linux/platform_data/max3421-hcd.h>
140 * SPI-thread without acquiring the HCD lock:
339 hcd_to_max3421(struct usb_hcd *hcd) in hcd_to_max3421() argument
341 return (struct max3421_hcd *) hcd->hcd_priv; in hcd_to_max3421()
351 spi_rd8(struct usb_hcd *hcd, unsigned int reg) in spi_rd8() argument
353 struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd); in spi_rd8()
354 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_rd8()
377 spi_wr8(struct usb_hcd *hcd, unsigned int reg, u8 val) in spi_wr8() argument
[all …]
Dehci-ps3.c40 static int ps3_ehci_hc_reset(struct usb_hcd *hcd) in ps3_ehci_hc_reset() argument
43 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ps3_ehci_hc_reset()
46 ehci->caps = hcd->regs; in ps3_ehci_hc_reset()
48 result = ehci_setup(hcd); in ps3_ehci_hc_reset()
87 struct usb_hcd *hcd; in ps3_ehci_probe() local
138 hcd = usb_create_hcd(&ps3_ehci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ehci_probe()
140 if (!hcd) { in ps3_ehci_probe()
147 hcd->rsrc_start = dev->m_region->lpar_addr; in ps3_ehci_probe()
148 hcd->rsrc_len = dev->m_region->len; in ps3_ehci_probe()
150 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) in ps3_ehci_probe()
[all …]
Dehci-fsl.c21 #include <linux/usb/hcd.h>
50 struct usb_hcd *hcd; in fsl_ehci_drv_probe() local
88 hcd = __usb_create_hcd(&fsl_ehci_hc_driver, pdev->dev.parent, in fsl_ehci_drv_probe()
90 if (!hcd) { in fsl_ehci_drv_probe()
96 hcd->regs = devm_ioremap_resource(&pdev->dev, res); 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()
102 hcd->rsrc_start = res->start; in fsl_ehci_drv_probe()
103 hcd->rsrc_len = resource_size(res); in fsl_ehci_drv_probe()
105 pdata->regs = hcd->regs; in fsl_ehci_drv_probe()
[all …]
Dohci-sm501.c3 * OHCI HCD (Host Controller Driver) for USB.
22 static int ohci_sm501_init(struct usb_hcd *hcd) in ohci_sm501_init() argument
24 return ohci_init(hcd_to_ohci(hcd)); in ohci_sm501_init()
27 static int ohci_sm501_start(struct usb_hcd *hcd) in ohci_sm501_start() argument
29 struct device *dev = hcd->self.controller; in ohci_sm501_start()
32 ret = ohci_run(hcd_to_ohci(hcd)); in ohci_sm501_start()
34 dev_err(dev, "can't start %s", hcd->self.bus_name); in ohci_sm501_start()
35 ohci_stop(hcd); in ohci_sm501_start()
94 struct usb_hcd *hcd = NULL; in ohci_hcd_sm501_drv_probe() local
121 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in ohci_hcd_sm501_drv_probe()
[all …]
/kernel/linux/linux-5.10/drivers/usb/isp1760/
Disp1760-hcd.c21 #include <linux/usb/hcd.h>
32 #include "isp1760-hcd.h"
39 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh,
42 static inline struct isp1760_hcd *hcd_to_priv(struct usb_hcd *hcd) in hcd_to_priv() argument
44 return *(struct isp1760_hcd **)hcd->hcd_priv; in hcd_to_priv()
126 /* the rest is HCD-private */
337 static void alloc_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in alloc_mem() argument
339 struct isp1760_hcd *priv = hcd_to_priv(hcd); in alloc_mem()
357 static void free_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in free_mem() argument
359 struct isp1760_hcd *priv = hcd_to_priv(hcd); in free_mem()
[all …]
/kernel/linux/linux-4.19/drivers/usb/isp1760/
Disp1760-hcd.c21 #include <linux/usb/hcd.h>
31 #include "isp1760-hcd.h"
38 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh,
41 static inline struct isp1760_hcd *hcd_to_priv(struct usb_hcd *hcd) in hcd_to_priv() argument
43 return *(struct isp1760_hcd **)hcd->hcd_priv; in hcd_to_priv()
125 /* the rest is HCD-private */
336 static void alloc_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in alloc_mem() argument
338 struct isp1760_hcd *priv = hcd_to_priv(hcd); in alloc_mem()
356 static void free_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in free_mem() argument
358 struct isp1760_hcd *priv = hcd_to_priv(hcd); in free_mem()
[all …]
/kernel/linux/linux-4.19/drivers/usb/chipidea/
Dhost.c13 #include <linux/usb/hcd.h>
24 static int (*orig_bus_suspend)(struct usb_hcd *hcd);
31 static int ehci_ci_portpower(struct usb_hcd *hcd, int portnum, bool enable) in ehci_ci_portpower() argument
33 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower()
35 struct device *dev = hcd->self.controller; in ehci_ci_portpower()
70 static int ehci_ci_reset(struct usb_hcd *hcd) in ehci_ci_reset() argument
72 struct device *dev = hcd->self.controller; in ehci_ci_reset()
74 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_reset()
77 ret = ehci_setup(hcd); in ehci_ci_reset()
103 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
[all …]
/kernel/linux/linux-5.10/drivers/staging/greybus/
Dusb.c12 #include <linux/usb/hcd.h>
38 static inline struct gb_usb_device *to_gb_usb_device(struct usb_hcd *hcd) in to_gb_usb_device() argument
40 return (struct gb_usb_device *)hcd->hcd_priv; in to_gb_usb_device()
48 static void hcd_stop(struct usb_hcd *hcd) in hcd_stop() argument
50 struct gb_usb_device *dev = to_gb_usb_device(hcd); in hcd_stop()
56 dev_err(&dev->gbphy_dev->dev, "HCD stop failed '%d'\n", ret); in hcd_stop()
59 static int hcd_start(struct usb_hcd *hcd) in hcd_start() argument
61 struct usb_bus *bus = hcd_to_bus(hcd); in hcd_start()
62 struct gb_usb_device *dev = to_gb_usb_device(hcd); in hcd_start()
68 dev_err(&dev->gbphy_dev->dev, "HCD start failed '%d'\n", ret); in hcd_start()
[all …]
/kernel/linux/linux-4.19/drivers/staging/greybus/
Dusb.c12 #include <linux/usb/hcd.h>
38 static inline struct gb_usb_device *to_gb_usb_device(struct usb_hcd *hcd) in to_gb_usb_device() argument
40 return (struct gb_usb_device *)hcd->hcd_priv; in to_gb_usb_device()
48 static void hcd_stop(struct usb_hcd *hcd) in hcd_stop() argument
50 struct gb_usb_device *dev = to_gb_usb_device(hcd); in hcd_stop()
56 dev_err(&dev->gbphy_dev->dev, "HCD stop failed '%d'\n", ret); in hcd_stop()
59 static int hcd_start(struct usb_hcd *hcd) in hcd_start() argument
61 struct usb_bus *bus = hcd_to_bus(hcd); in hcd_start()
62 struct gb_usb_device *dev = to_gb_usb_device(hcd); in hcd_start()
68 dev_err(&dev->gbphy_dev->dev, "HCD start failed '%d'\n", ret); in hcd_start()
[all …]

12345678910>>...21