Home
last modified time | relevance | path

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

123456

/drivers/usb/core/
Dhcd.c447 rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) in rh_string() argument
464 s = hcd->self.bus_name; in rh_string()
468 s = hcd->product_desc; in rh_string()
473 init_utsname()->release, hcd->driver->description); in rh_string()
486 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() argument
502 status = usb_hcd_link_urb_to_ep(hcd, urb); in rh_call_control()
506 urb->hcpriv = hcd; /* Indicate it's queued */ in rh_call_control()
553 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
561 device_set_wakeup_enable(&hcd->self.root_hub->dev, 0); in rh_call_control()
566 if (device_can_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
[all …]
Dhcd-pci.c55 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd,
59 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, in for_each_companion() argument
88 fn(pdev, hcd, companion, companion_hcd); in for_each_companion()
98 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_pre_add() argument
115 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_post_add() argument
124 companion_hcd->self.hs_companion = &hcd->self; in ehci_post_add()
136 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, in non_ehci_add() argument
142 hcd->self.hs_companion = &companion_hcd->self; in non_ehci_add()
147 static void ehci_remove(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_remove() argument
157 static void ehci_wait_for_companions(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_wait_for_companions() argument
[all …]
/drivers/usb/host/
Dmax3421-hcd.c337 hcd_to_max3421(struct usb_hcd *hcd) in hcd_to_max3421() argument
339 return (struct max3421_hcd *) hcd->hcd_priv; in hcd_to_max3421()
349 spi_rd8(struct usb_hcd *hcd, unsigned int reg) in spi_rd8() argument
351 struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd); in spi_rd8()
352 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_rd8()
375 spi_wr8(struct usb_hcd *hcd, unsigned int reg, u8 val) in spi_wr8() argument
377 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_wr8()
378 struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd); in spi_wr8()
399 spi_rd_buf(struct usb_hcd *hcd, unsigned int reg, void *buf, size_t len) in spi_rd_buf() argument
401 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_rd_buf()
[all …]
Dohci-omap.c177 struct usb_hcd *hcd = ohci_to_hcd(ohci); in start_hnp() local
178 const unsigned port = hcd->self.otg_port - 1; in start_hnp()
182 otg_start_hnp(hcd->usb_phy->otg); in start_hnp()
185 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp()
197 static int ohci_omap_reset(struct usb_hcd *hcd) in ohci_omap_reset() argument
199 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_reset()
200 struct omap_usb_config *config = dev_get_platdata(hcd->self.controller); in ohci_omap_reset()
204 dev_dbg(hcd->self.controller, "starting USB Controller\n"); in ohci_omap_reset()
207 hcd->self.otg_port = config->otg; in ohci_omap_reset()
209 hcd->power_budget = 8; in ohci_omap_reset()
[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_init_quirk(struct usb_hcd *hcd) in xhci_priv_init_quirk() argument
49 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_init_quirk()
54 return priv->init_quirk(hcd); in xhci_priv_init_quirk()
68 static int xhci_plat_setup(struct usb_hcd *hcd) in xhci_plat_setup() argument
73 ret = xhci_priv_init_quirk(hcd); in xhci_plat_setup()
[all …]
Dehci-fsl.c62 struct usb_hcd *hcd; in fsl_ehci_drv_probe() local
99 hcd = usb_create_hcd(&fsl_ehci_hc_driver, &pdev->dev, in fsl_ehci_drv_probe()
101 if (!hcd) { in fsl_ehci_drv_probe()
107 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in fsl_ehci_drv_probe()
108 if (IS_ERR(hcd->regs)) { in fsl_ehci_drv_probe()
109 retval = PTR_ERR(hcd->regs); in fsl_ehci_drv_probe()
113 hcd->rsrc_start = res->start; in fsl_ehci_drv_probe()
114 hcd->rsrc_len = resource_size(res); in fsl_ehci_drv_probe()
116 pdata->regs = hcd->regs; in fsl_ehci_drv_probe()
119 hcd->power_budget = pdata->power_budget; in fsl_ehci_drv_probe()
[all …]
Dohci-s3c2410.c52 static struct s3c2410_hcd_info *to_s3c2410_info(struct usb_hcd *hcd) in to_s3c2410_info() argument
54 return dev_get_platdata(hcd->self.controller); in to_s3c2410_info()
57 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd) in s3c2410_start_hc() argument
69 info->hcd = hcd; in s3c2410_start_hc()
85 info->hcd = NULL; in s3c2410_stop_hc()
102 ohci_s3c2410_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_s3c2410_hub_status_data() argument
104 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd); in ohci_s3c2410_hub_status_data()
109 orig = ohci_hub_status_data(hcd, buf); in ohci_s3c2410_hub_status_data()
121 dev_dbg(hcd->self.controller, in ohci_s3c2410_hub_status_data()
160 struct usb_hcd *hcd, in ohci_s3c2410_hub_control() argument
[all …]
Dohci-ps3.c24 static int ps3_ohci_hc_reset(struct usb_hcd *hcd) in ps3_ohci_hc_reset() argument
26 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_reset()
33 static int ps3_ohci_hc_start(struct usb_hcd *hcd) in ps3_ohci_hc_start() argument
36 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_start()
48 dev_err(hcd->self.controller, "can't start %s\n", in ps3_ohci_hc_start()
49 hcd->self.bus_name); in ps3_ohci_hc_start()
50 ohci_stop(hcd); in ps3_ohci_hc_start()
82 struct usb_hcd *hcd; in ps3_ohci_probe() local
132 hcd = usb_create_hcd(&ps3_ohci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ohci_probe()
134 if (!hcd) { in ps3_ohci_probe()
[all …]
Dohci-sm501.c21 static int ohci_sm501_init(struct usb_hcd *hcd) in ohci_sm501_init() argument
23 return ohci_init(hcd_to_ohci(hcd)); in ohci_sm501_init()
26 static int ohci_sm501_start(struct usb_hcd *hcd) in ohci_sm501_start() argument
28 struct device *dev = hcd->self.controller; in ohci_sm501_start()
31 ret = ohci_run(hcd_to_ohci(hcd)); in ohci_sm501_start()
33 dev_err(dev, "can't start %s", hcd->self.bus_name); in ohci_sm501_start()
34 ohci_stop(hcd); in ohci_sm501_start()
93 struct usb_hcd *hcd = NULL; in ohci_hcd_sm501_drv_probe() local
144 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in ohci_hcd_sm501_drv_probe()
145 if (!hcd) { in ohci_hcd_sm501_drv_probe()
[all …]
Dohci-tmio.c72 #define hcd_to_tmio(hcd) ((struct tmio_hcd *)(hcd_to_ohci(hcd) + 1)) argument
78 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_write_pm() local
79 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in tmio_write_pm()
94 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_stop_hc() local
95 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in tmio_stop_hc()
96 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in tmio_stop_hc()
119 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_start_hc() local
120 struct tmio_hcd *tmio = hcd_to_tmio(hcd); in tmio_start_hc()
121 unsigned long base = hcd->rsrc_start; in tmio_start_hc()
131 (u64) hcd->rsrc_start, hcd->irq); in tmio_start_hc()
[all …]
Dehci-msm.c40 #define MSM_USB_BASE (hcd->regs)
47 static int ehci_msm_reset(struct usb_hcd *hcd) in ehci_msm_reset() argument
49 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_msm_reset()
53 hcd->has_tt = 1; in ehci_msm_reset()
55 retval = ehci_setup(hcd); in ehci_msm_reset()
75 struct usb_hcd *hcd; in ehci_msm_probe() local
82 hcd = usb_create_hcd(&msm_hc_driver, &pdev->dev, dev_name(&pdev->dev)); in ehci_msm_probe()
83 if (!hcd) { in ehci_msm_probe()
93 hcd->irq = ret; in ehci_msm_probe()
102 hcd->rsrc_start = res->start; in ehci_msm_probe()
[all …]
Dehci-xilinx-of.c50 static int ehci_xilinx_port_handed_over(struct usb_hcd *hcd, int portnum) in ehci_xilinx_port_handed_over() argument
52 dev_warn(hcd->self.controller, "port %d cannot be enabled\n", portnum); in ehci_xilinx_port_handed_over()
53 if (hcd->has_tt) { in ehci_xilinx_port_handed_over()
54 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
57 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
60 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
62 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
65 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
133 struct usb_hcd *hcd; in ehci_hcd_xilinx_of_probe() local
149 hcd = usb_create_hcd(&ehci_xilinx_of_hc_driver, &op->dev, in ehci_hcd_xilinx_of_probe()
[all …]
Dohci-sa1111.c43 static void dump_hci_status(struct usb_hcd *hcd, const char *label)
45 unsigned long status = sa1111_readl(hcd->regs + USB_STATUS);
56 static int ohci_sa1111_reset(struct usb_hcd *hcd) in ohci_sa1111_reset() argument
58 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_reset()
64 static int ohci_sa1111_start(struct usb_hcd *hcd) in ohci_sa1111_start() argument
66 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_start()
72 ohci_stop(hcd); in ohci_sa1111_start()
180 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() local
192 hcd = usb_create_hcd(&ohci_sa1111_hc_driver, &dev->dev, "sa1111"); in ohci_hcd_sa1111_probe()
193 if (!hcd) in ohci_hcd_sa1111_probe()
[all …]
Dehci-ps3.c52 static int ps3_ehci_hc_reset(struct usb_hcd *hcd) in ps3_ehci_hc_reset() argument
55 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ps3_ehci_hc_reset()
58 ehci->caps = hcd->regs; in ps3_ehci_hc_reset()
60 result = ehci_setup(hcd); in ps3_ehci_hc_reset()
99 struct usb_hcd *hcd; in ps3_ehci_probe() local
148 hcd = usb_create_hcd(&ps3_ehci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ehci_probe()
150 if (!hcd) { in ps3_ehci_probe()
157 hcd->rsrc_start = dev->m_region->lpar_addr; in ps3_ehci_probe()
158 hcd->rsrc_len = dev->m_region->len; in ps3_ehci_probe()
160 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) in ps3_ehci_probe()
[all …]
Dohci-da8xx.c85 static int ohci_da8xx_init(struct usb_hcd *hcd) in ohci_da8xx_init() argument
87 struct device *dev = hcd->self.controller; in ohci_da8xx_init()
89 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_init()
129 static void ohci_da8xx_stop(struct usb_hcd *hcd) in ohci_da8xx_stop() argument
131 ohci_stop(hcd); in ohci_da8xx_stop()
135 static int ohci_da8xx_start(struct usb_hcd *hcd) in ohci_da8xx_start() argument
137 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_da8xx_start()
142 ohci_da8xx_stop(hcd); in ohci_da8xx_start()
150 static int ohci_da8xx_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_da8xx_hub_status_data() argument
152 int length = ohci_hub_status_data(hcd, buf); in ohci_da8xx_hub_status_data()
[all …]
Dohci-spear.c34 #define to_spear_ohci(hcd) (struct spear_ohci *)(hcd_to_ohci(hcd)->priv) argument
42 struct usb_hcd *hcd = NULL; in spear_ohci_hcd_drv_probe() local
70 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in spear_ohci_hcd_drv_probe()
71 if (!hcd) { in spear_ohci_hcd_drv_probe()
77 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in spear_ohci_hcd_drv_probe()
78 if (IS_ERR(hcd->regs)) { in spear_ohci_hcd_drv_probe()
79 retval = PTR_ERR(hcd->regs); in spear_ohci_hcd_drv_probe()
83 hcd->rsrc_start = pdev->resource[0].start; in spear_ohci_hcd_drv_probe()
84 hcd->rsrc_len = resource_size(res); in spear_ohci_hcd_drv_probe()
86 sohci_p = to_spear_ohci(hcd); in spear_ohci_hcd_drv_probe()
[all …]
Dehci-sh.c18 struct usb_hcd *hcd; member
21 static int ehci_sh_reset(struct usb_hcd *hcd) in ehci_sh_reset() argument
23 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_sh_reset()
25 ehci->caps = hcd->regs; in ehci_sh_reset()
27 return ehci_setup(hcd); in ehci_sh_reset()
83 struct usb_hcd *hcd; in ehci_hcd_sh_probe() local
101 hcd = usb_create_hcd(&ehci_sh_hc_driver, &pdev->dev, in ehci_hcd_sh_probe()
103 if (!hcd) { in ehci_hcd_sh_probe()
109 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in ehci_hcd_sh_probe()
110 if (IS_ERR(hcd->regs)) { in ehci_hcd_sh_probe()
[all …]
Dehci-pmcmsp.c74 static int ehci_msp_setup(struct usb_hcd *hcd) in ehci_msp_setup() argument
76 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_msp_setup()
82 ehci->caps = hcd->regs; in ehci_msp_setup()
83 hcd->has_tt = 1; in ehci_msp_setup()
85 retval = ehci_setup(hcd); in ehci_msp_setup()
165 struct usb_hcd *hcd; in usb_hcd_msp_probe() local
169 hcd = usb_create_hcd(driver, &dev->dev, "pmcmsp"); in usb_hcd_msp_probe()
170 if (!hcd) in usb_hcd_msp_probe()
179 hcd->rsrc_start = res->start; in usb_hcd_msp_probe()
180 hcd->rsrc_len = resource_size(res); in usb_hcd_msp_probe()
[all …]
Dohci-exynos.c32 #define to_exynos_ohci(hcd) (struct exynos_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument
85 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ohci_phy_enable() local
86 struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_phy_enable()
103 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ohci_phy_disable() local
104 struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_phy_disable()
115 struct usb_hcd *hcd; in exynos_ohci_probe() local
129 hcd = usb_create_hcd(&exynos_ohci_hc_driver, in exynos_ohci_probe()
131 if (!hcd) { in exynos_ohci_probe()
136 exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_probe()
160 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in exynos_ohci_probe()
[all …]
Dehci-mv.c23 struct usb_hcd *hcd; member
70 static int mv_ehci_reset(struct usb_hcd *hcd) in mv_ehci_reset() argument
72 struct device *dev = hcd->self.controller; in mv_ehci_reset()
81 hcd->has_tt = 1; in mv_ehci_reset()
83 retval = ehci_setup(hcd); in mv_ehci_reset()
135 struct usb_hcd *hcd; in mv_ehci_probe() local
150 hcd = usb_create_hcd(&mv_ehci_hc_driver, &pdev->dev, "mv ehci"); in mv_ehci_probe()
151 if (!hcd) in mv_ehci_probe()
162 ehci_mv->hcd = hcd; in mv_ehci_probe()
195 hcd->rsrc_start = r->start; in mv_ehci_probe()
[all …]
Dehci-spear.c36 #define to_spear_ehci(hcd) (struct spear_ehci *)(hcd_to_ehci(hcd)->priv) argument
43 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_spear_drv_suspend() local
46 return ehci_suspend(hcd, do_wakeup); in ehci_spear_drv_suspend()
51 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_spear_drv_resume() local
53 ehci_resume(hcd, false); in ehci_spear_drv_resume()
63 struct usb_hcd *hcd ; in spear_ehci_hcd_drv_probe() local
95 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in spear_ehci_hcd_drv_probe()
96 if (!hcd) { in spear_ehci_hcd_drv_probe()
102 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in spear_ehci_hcd_drv_probe()
103 if (IS_ERR(hcd->regs)) { in spear_ehci_hcd_drv_probe()
[all …]
Dehci-atmel.c71 struct usb_hcd *hcd = platform_get_drvdata(pdev); in atmel_start_ehci() local
72 struct atmel_ehci_priv *atmel_ehci = hcd_to_atmel_ehci_priv(hcd); in atmel_start_ehci()
80 struct usb_hcd *hcd = platform_get_drvdata(pdev); in atmel_stop_ehci() local
81 struct atmel_ehci_priv *atmel_ehci = hcd_to_atmel_ehci_priv(hcd); in atmel_stop_ehci()
91 struct usb_hcd *hcd; in ehci_atmel_drv_probe() local
121 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in ehci_atmel_drv_probe()
122 if (!hcd) { in ehci_atmel_drv_probe()
126 atmel_ehci = hcd_to_atmel_ehci_priv(hcd); in ehci_atmel_drv_probe()
129 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in ehci_atmel_drv_probe()
130 if (IS_ERR(hcd->regs)) { in ehci_atmel_drv_probe()
[all …]
Duhci-platform.c14 static int uhci_platform_init(struct usb_hcd *hcd) in uhci_platform_init() argument
16 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_platform_init()
18 uhci->rh_numports = uhci_count_ports(hcd); in uhci_platform_init()
66 struct usb_hcd *hcd; in uhci_hcd_platform_probe() local
83 hcd = usb_create_hcd(&uhci_platform_hc_driver, &pdev->dev, in uhci_hcd_platform_probe()
85 if (!hcd) in uhci_hcd_platform_probe()
89 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in uhci_hcd_platform_probe()
90 if (IS_ERR(hcd->regs)) { in uhci_hcd_platform_probe()
91 ret = PTR_ERR(hcd->regs); in uhci_hcd_platform_probe()
94 hcd->rsrc_start = res->start; in uhci_hcd_platform_probe()
[all …]
/drivers/usb/isp1760/
Disp1760-hcd.c37 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh,
40 static inline struct isp1760_hcd *hcd_to_priv(struct usb_hcd *hcd) in hcd_to_priv() argument
42 return *(struct isp1760_hcd **)hcd->hcd_priv; in hcd_to_priv()
335 static void alloc_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in alloc_mem() argument
337 struct isp1760_hcd *priv = hcd_to_priv(hcd); in alloc_mem()
355 static void free_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in free_mem() argument
357 struct isp1760_hcd *priv = hcd_to_priv(hcd); in free_mem()
372 dev_err(hcd->self.controller, "%s: Invalid pointer: %08x\n", in free_mem()
378 static int handshake(struct usb_hcd *hcd, u32 reg, in handshake() argument
384 result = reg_read32(hcd->regs, reg); in handshake()
[all …]
/drivers/usb/chipidea/
Dhost.c36 static int (*orig_bus_suspend)(struct usb_hcd *hcd);
42 static int ehci_ci_portpower(struct usb_hcd *hcd, int portnum, bool enable) in ehci_ci_portpower() argument
44 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower()
46 struct device *dev = hcd->self.controller; in ehci_ci_portpower()
80 static int ehci_ci_reset(struct usb_hcd *hcd) in ehci_ci_reset() argument
82 struct device *dev = hcd->self.controller; in ehci_ci_reset()
84 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_reset()
87 ret = ehci_setup(hcd); in ehci_ci_reset()
106 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
111 struct usb_hcd *hcd; in host_start() local
[all …]

123456