Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/usb/core/
Dhcd.c425 rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) in rh_string() argument
442 s = hcd->self.bus_name; in rh_string()
446 s = hcd->product_desc; in rh_string()
451 init_utsname()->release, hcd->driver->description); in rh_string()
464 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() argument
480 status = usb_hcd_link_urb_to_ep(hcd, urb); in rh_call_control()
484 urb->hcpriv = hcd; /* Indicate it's queued */ in rh_call_control()
529 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
537 device_set_wakeup_enable(&hcd->self.root_hub->dev, 0); in rh_call_control()
542 if (device_can_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
[all …]
Dhcd-pci.c56 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd,
60 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, in for_each_companion() argument
89 fn(pdev, hcd, companion, companion_hcd); in for_each_companion()
99 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_pre_add() argument
116 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_post_add() argument
125 companion_hcd->self.hs_companion = &hcd->self; in ehci_post_add()
137 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, in non_ehci_add() argument
143 hcd->self.hs_companion = &companion_hcd->self; in non_ehci_add()
148 static void ehci_remove(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_remove() argument
158 static void ehci_wait_for_companions(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_wait_for_companions() argument
[all …]
Dbuffer.c60 int hcd_buffer_create(struct usb_hcd *hcd) in hcd_buffer_create() argument
65 if (!hcd->self.controller->dma_mask && in hcd_buffer_create()
66 !(hcd->driver->flags & HCD_LOCAL_MEM)) in hcd_buffer_create()
74 hcd->pool[i] = dma_pool_create(name, hcd->self.controller, in hcd_buffer_create()
76 if (!hcd->pool[i]) { in hcd_buffer_create()
77 hcd_buffer_destroy(hcd); in hcd_buffer_create()
92 void hcd_buffer_destroy(struct usb_hcd *hcd) in hcd_buffer_destroy() argument
97 struct dma_pool *pool = hcd->pool[i]; in hcd_buffer_destroy()
100 hcd->pool[i] = NULL; in hcd_buffer_destroy()
117 struct usb_hcd *hcd = bus_to_hcd(bus); in hcd_buffer_alloc() local
[all …]
Dhub.c734 drv = clear->hcd->driver; in hub_tt_work()
736 (drv->clear_tt_buffer_complete)(clear->hcd, clear->ep); in hub_tt_work()
819 clear->hcd = bus_to_hcd(udev->bus); in usb_hub_clear_tt_buffer()
1029 struct usb_hcd *hcd; in hub_activate() local
1103 hcd = bus_to_hcd(hdev->bus); in hub_activate()
1104 if (hcd->driver->update_hub_device) { in hub_activate()
1105 ret = hcd->driver->update_hub_device(hcd, hdev, in hub_activate()
1355 struct usb_hcd *hcd; in hub_configure() local
1540 hcd = bus_to_hcd(hdev->bus); in hub_configure()
1542 if (hcd->power_budget > 0) in hub_configure()
[all …]
DMakefile5 usbcore-y := usb.o hub.o hcd.o urb.o message.o driver.o
10 usbcore-$(CONFIG_PCI) += hcd-pci.o
Dmessage.c1148 struct usb_hcd *hcd = bus_to_hcd(dev->bus); in usb_disable_device() local
1195 if (hcd->driver->check_bandwidth) { in usb_disable_device()
1202 mutex_lock(hcd->bandwidth_mutex); in usb_disable_device()
1204 mutex_unlock(hcd->bandwidth_mutex); in usb_disable_device()
1293 struct usb_hcd *hcd = bus_to_hcd(dev->bus); in usb_set_interface() local
1320 mutex_lock(hcd->bandwidth_mutex); in usb_set_interface()
1326 mutex_unlock(hcd->bandwidth_mutex); in usb_set_interface()
1338 mutex_unlock(hcd->bandwidth_mutex); in usb_set_interface()
1361 mutex_unlock(hcd->bandwidth_mutex); in usb_set_interface()
1364 mutex_unlock(hcd->bandwidth_mutex); in usb_set_interface()
[all …]
Dquirks.c262 struct usb_hcd *hcd; in usb_amd_resume_quirk() local
264 hcd = bus_to_hcd(udev->bus); in usb_amd_resume_quirk()
266 if (udev->level == 1 && hcd->amd_resume_bug == 1) in usb_amd_resume_quirk()
Dport.c318 struct usb_hcd *hcd, *peer_hcd; in match_location() local
326 hcd = bus_to_hcd(hdev->bus); in match_location()
329 if (peer_hcd != hcd->shared_hcd) in match_location()
366 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in find_and_link_peer() local
367 struct usb_hcd *peer_hcd = hcd->shared_hcd; in find_and_link_peer()
Dusb-acpi.c173 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_acpi_find_companion() local
176 raw = usb_hcd_find_raw_port_number(hcd, port1); in usb_acpi_find_companion()
Dusb.c279 struct usb_hcd *hcd; in usb_release_dev() local
282 hcd = bus_to_hcd(udev->bus); in usb_release_dev()
286 usb_put_hcd(hcd); in usb_release_dev()
399 struct usb_hcd *hcd = container_of(bus, struct usb_hcd, self); in usb_bus_is_wusb() local
400 return hcd->wireless; in usb_bus_is_wusb()
Ddriver.c1865 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_set_usb2_hardware_lpm() local
1871 if (hcd->driver->set_usb2_hw_lpm) { in usb_set_usb2_hardware_lpm()
1872 ret = hcd->driver->set_usb2_hw_lpm(hcd, udev, enable); in usb_set_usb2_hardware_lpm()
/linux-4.1.27/drivers/usb/host/
Dohci-omap.c178 struct usb_hcd *hcd = ohci_to_hcd(ohci); in start_hnp() local
179 const unsigned port = hcd->self.otg_port - 1; in start_hnp()
183 otg_start_hnp(hcd->usb_phy->otg); in start_hnp()
186 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp()
198 static int ohci_omap_reset(struct usb_hcd *hcd) in ohci_omap_reset() argument
200 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_reset()
201 struct omap_usb_config *config = dev_get_platdata(hcd->self.controller); in ohci_omap_reset()
205 dev_dbg(hcd->self.controller, "starting USB Controller\n"); in ohci_omap_reset()
208 hcd->self.otg_port = config->otg; in ohci_omap_reset()
210 hcd->power_budget = 8; in ohci_omap_reset()
[all …]
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-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 …]
Dxhci-plat.c40 static int xhci_plat_setup(struct usb_hcd *hcd) in xhci_plat_setup() argument
42 struct device_node *of_node = hcd->self.controller->of_node; in xhci_plat_setup()
47 ret = xhci_rcar_init_quirk(hcd); in xhci_plat_setup()
52 return xhci_gen_setup(hcd, xhci_plat_quirks); in xhci_plat_setup()
55 static int xhci_plat_start(struct usb_hcd *hcd) in xhci_plat_start() argument
57 struct device_node *of_node = hcd->self.controller->of_node; in xhci_plat_start()
61 xhci_rcar_start(hcd); in xhci_plat_start()
63 return xhci_run(hcd); in xhci_plat_start()
73 struct usb_hcd *hcd; in xhci_plat_probe() local
96 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in xhci_plat_probe()
[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-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 …]
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.c45 static void dump_hci_status(struct usb_hcd *hcd, const char *label)
47 unsigned long status = sa1111_readl(hcd->regs + USB_STATUS);
58 static int ohci_sa1111_reset(struct usb_hcd *hcd) in ohci_sa1111_reset() argument
60 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_reset()
66 static int ohci_sa1111_start(struct usb_hcd *hcd) in ohci_sa1111_start() argument
68 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_start()
74 ohci_stop(hcd); in ohci_sa1111_start()
182 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() local
194 hcd = usb_create_hcd(&ohci_sa1111_hc_driver, &dev->dev, "sa1111"); in ohci_hcd_sa1111_probe()
195 if (!hcd) in ohci_hcd_sa1111_probe()
[all …]
Dehci-fsl.c52 struct usb_hcd *hcd; in usb_hcd_fsl_probe() local
89 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in usb_hcd_fsl_probe()
90 if (!hcd) { in usb_hcd_fsl_probe()
96 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in usb_hcd_fsl_probe()
97 if (IS_ERR(hcd->regs)) { in usb_hcd_fsl_probe()
98 retval = PTR_ERR(hcd->regs); in usb_hcd_fsl_probe()
102 hcd->rsrc_start = res->start; in usb_hcd_fsl_probe()
103 hcd->rsrc_len = resource_size(res); in usb_hcd_fsl_probe()
105 pdata->regs = hcd->regs; in usb_hcd_fsl_probe()
108 hcd->power_budget = pdata->power_budget; in usb_hcd_fsl_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.c39 #define MSM_USB_BASE (hcd->regs)
46 static int ehci_msm_reset(struct usb_hcd *hcd) in ehci_msm_reset() argument
48 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_msm_reset()
52 hcd->has_tt = 1; in ehci_msm_reset()
54 retval = ehci_setup(hcd); in ehci_msm_reset()
70 struct usb_hcd *hcd; in ehci_msm_probe() local
77 hcd = usb_create_hcd(&msm_hc_driver, &pdev->dev, dev_name(&pdev->dev)); in ehci_msm_probe()
78 if (!hcd) { in ehci_msm_probe()
83 hcd->irq = platform_get_irq(pdev, 0); in ehci_msm_probe()
84 if (hcd->irq < 0) { in ehci_msm_probe()
[all …]
Dehci-sead3.c25 static int ehci_sead3_setup(struct usb_hcd *hcd) in ehci_sead3_setup() argument
28 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_sead3_setup()
30 ehci->caps = hcd->regs + 0x100; in ehci_sead3_setup()
37 ret = ehci_setup(hcd); in ehci_sead3_setup()
97 struct usb_hcd *hcd; in ehci_hcd_sead3_drv_probe() local
108 hcd = usb_create_hcd(&ehci_sead3_hc_driver, &pdev->dev, "SEAD-3"); in ehci_hcd_sead3_drv_probe()
109 if (!hcd) in ehci_hcd_sead3_drv_probe()
113 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in ehci_hcd_sead3_drv_probe()
114 if (IS_ERR(hcd->regs)) { in ehci_hcd_sead3_drv_probe()
115 ret = PTR_ERR(hcd->regs); in ehci_hcd_sead3_drv_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 …]
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 …]
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 …]
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 …]
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 …]
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-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-jz4740.c27 static inline struct jz4740_ohci_hcd *hcd_to_jz4740_hcd(struct usb_hcd *hcd) in hcd_to_jz4740_hcd() argument
29 return (struct jz4740_ohci_hcd *)(hcd->hcd_priv); in hcd_to_jz4740_hcd()
37 static int ohci_jz4740_start(struct usb_hcd *hcd) in ohci_jz4740_start() argument
39 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_jz4740_start()
50 dev_err(hcd->self.controller, "Can not start %s", in ohci_jz4740_start()
51 hcd->self.bus_name); in ohci_jz4740_start()
52 ohci_stop(hcd); in ohci_jz4740_start()
81 static int ohci_jz4740_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in ohci_jz4740_hub_control() argument
84 struct jz4740_ohci_hcd *jz4740_ohci = hcd_to_jz4740_hcd(hcd); in ohci_jz4740_hub_control()
101 return ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_jz4740_hub_control()
[all …]
Dohci-exynos.c32 #define to_exynos_ohci(hcd) (struct exynos_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument
83 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ohci_phy_enable() local
84 struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_phy_enable()
101 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ohci_phy_disable() local
102 struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_phy_disable()
113 struct usb_hcd *hcd; in exynos_ohci_probe() local
127 hcd = usb_create_hcd(&exynos_ohci_hc_driver, in exynos_ohci_probe()
129 if (!hcd) { in exynos_ohci_probe()
134 exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_probe()
158 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 …]
Duhci-grlib.c25 static int uhci_grlib_init(struct usb_hcd *hcd) in uhci_grlib_init() argument
27 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_grlib_init()
43 uhci->rh_numports = uhci_count_ports(hcd); in uhci_grlib_init()
92 struct usb_hcd *hcd; in uhci_hcd_grlib_probe() local
109 hcd = usb_create_hcd(&uhci_grlib_hc_driver, &op->dev, in uhci_hcd_grlib_probe()
111 if (!hcd) in uhci_hcd_grlib_probe()
114 hcd->rsrc_start = res.start; in uhci_hcd_grlib_probe()
115 hcd->rsrc_len = resource_size(&res); in uhci_hcd_grlib_probe()
124 hcd->regs = devm_ioremap_resource(&op->dev, &res); in uhci_hcd_grlib_probe()
125 if (IS_ERR(hcd->regs)) { in uhci_hcd_grlib_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 …]
Dehci-w90x900.c39 struct usb_hcd *hcd; in usb_w90x900_probe() local
45 hcd = usb_create_hcd(driver, &pdev->dev, "w90x900 EHCI"); in usb_w90x900_probe()
46 if (!hcd) { in usb_w90x900_probe()
52 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in usb_w90x900_probe()
53 if (IS_ERR(hcd->regs)) { in usb_w90x900_probe()
54 retval = PTR_ERR(hcd->regs); in usb_w90x900_probe()
57 hcd->rsrc_start = res->start; in usb_w90x900_probe()
58 hcd->rsrc_len = resource_size(res); in usb_w90x900_probe()
60 ehci = hcd_to_ehci(hcd); in usb_w90x900_probe()
61 ehci->caps = hcd->regs; in usb_w90x900_probe()
[all …]
DMakefile8 fhci-y := fhci-hcd.o fhci-hub.o fhci-q.o
13 xhci-hcd-y := xhci.o xhci-mem.o
14 xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o
15 xhci-hcd-y += xhci-trace.o
17 xhci-plat-hcd-y := xhci-plat.o
19 xhci-plat-hcd-y += xhci-mvebu.o
22 xhci-plat-hcd-y += xhci-rcar.o
29 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o
43 obj-$(CONFIG_USB_OXU210HP_HCD) += oxu210hp-hcd.o
44 obj-$(CONFIG_USB_ISP116X_HCD) += isp116x-hcd.o
[all …]
Dehci-exynos.c50 #define to_exynos_ehci(hcd) (struct exynos_ehci_hcd *)(hcd_to_ehci(hcd)->priv) argument
94 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ehci_phy_enable() local
95 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd); in exynos_ehci_phy_enable()
112 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ehci_phy_disable() local
113 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd); in exynos_ehci_phy_disable()
142 struct usb_hcd *hcd; in exynos_ehci_probe() local
159 hcd = usb_create_hcd(&exynos_ehci_hc_driver, in exynos_ehci_probe()
161 if (!hcd) { in exynos_ehci_probe()
165 exynos_ehci = to_exynos_ehci(hcd); in exynos_ehci_probe()
190 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in exynos_ehci_probe()
[all …]
Dohci-ppc-of.c25 ohci_ppc_of_start(struct usb_hcd *hcd) in ohci_ppc_of_start() argument
27 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_ppc_of_start()
34 dev_err(hcd->self.controller, "can't start %s\n", in ohci_ppc_of_start()
35 hcd->self.bus_name); in ohci_ppc_of_start()
36 ohci_stop(hcd); in ohci_ppc_of_start()
89 struct usb_hcd *hcd; in ohci_hcd_ppc_of_probe() local
111 hcd = usb_create_hcd(&ohci_ppc_of_hc_driver, &op->dev, "PPC-OF USB"); in ohci_hcd_ppc_of_probe()
112 if (!hcd) in ohci_hcd_ppc_of_probe()
115 hcd->rsrc_start = res.start; in ohci_hcd_ppc_of_probe()
116 hcd->rsrc_len = resource_size(&res); in ohci_hcd_ppc_of_probe()
[all …]
Dohci-pci.c34 static int broken_suspend(struct usb_hcd *hcd) in broken_suspend() argument
36 device_init_wakeup(&hcd->self.root_hub->dev, 0); in broken_suspend()
43 static int ohci_quirk_amd756(struct usb_hcd *hcd) in ohci_quirk_amd756() argument
45 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_amd756()
51 return broken_suspend(hcd); in ohci_quirk_amd756()
58 static int ohci_quirk_opti(struct usb_hcd *hcd) in ohci_quirk_opti() argument
60 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_opti()
71 static int ohci_quirk_ns(struct usb_hcd *hcd) in ohci_quirk_ns() argument
73 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ohci_quirk_ns()
79 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_ns()
[all …]
Dohci-tilegx.c37 static int tilegx_ohci_start(struct usb_hcd *hcd) in tilegx_ohci_start() argument
39 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in tilegx_ohci_start()
48 dev_err(hcd->self.controller, "can't start %s\n", in tilegx_ohci_start()
49 hcd->self.bus_name); in tilegx_ohci_start()
50 ohci_stop(hcd); in tilegx_ohci_start()
97 struct usb_hcd *hcd; in ohci_hcd_tilegx_drv_probe() local
113 hcd = usb_create_hcd(&ohci_tilegx_hc_driver, &pdev->dev, in ohci_hcd_tilegx_drv_probe()
115 if (!hcd) { in ohci_hcd_tilegx_drv_probe()
124 hcd->rsrc_start = in ohci_hcd_tilegx_drv_probe()
126 hcd->rsrc_len = gxio_usb_host_get_reg_len(&pdata->usb_ctx); in ohci_hcd_tilegx_drv_probe()
[all …]
Dehci-st.c52 static int st_ehci_platform_reset(struct usb_hcd *hcd) in st_ehci_platform_reset() argument
54 struct platform_device *pdev = to_platform_device(hcd->self.controller); in st_ehci_platform_reset()
56 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in st_ehci_platform_reset()
62 writel(threshold, hcd->regs + AHB2STBUS_INSREG01); in st_ehci_platform_reset()
64 ehci->caps = hcd->regs + pdata->caps_offset; in st_ehci_platform_reset()
65 retval = ehci_setup(hcd); in st_ehci_platform_reset()
74 struct usb_hcd *hcd = platform_get_drvdata(dev); in st_ehci_platform_power_on() local
75 struct st_ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in st_ehci_platform_power_on()
125 struct usb_hcd *hcd = platform_get_drvdata(dev); in st_ehci_platform_power_off() local
126 struct st_ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in st_ehci_platform_power_off()
[all …]
Duhci-pci.c113 static int uhci_pci_init(struct usb_hcd *hcd) in uhci_pci_init() argument
115 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_pci_init()
117 uhci->io_addr = (unsigned long) hcd->rsrc_start; in uhci_pci_init()
119 uhci->rh_numports = uhci_count_ports(hcd); in uhci_pci_init()
158 struct usb_hcd *hcd = pci_get_drvdata(pdev); in uhci_shutdown() local
160 uhci_hc_died(hcd_to_uhci(hcd)); in uhci_shutdown()
165 static int uhci_pci_resume(struct usb_hcd *hcd, bool hibernated);
167 static int uhci_pci_suspend(struct usb_hcd *hcd, bool do_wakeup) in uhci_pci_suspend() argument
169 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_pci_suspend()
176 if (!HCD_HW_ACCESSIBLE(hcd) || uhci->dead) in uhci_pci_suspend()
[all …]
Dohci-at91.c87 struct usb_hcd *hcd = platform_get_drvdata(pdev); in at91_start_hc() local
88 struct ohci_regs __iomem *regs = hcd->regs; in at91_start_hc()
89 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_start_hc()
106 struct usb_hcd *hcd = platform_get_drvdata(pdev); in at91_stop_hc() local
107 struct ohci_regs __iomem *regs = hcd->regs; in at91_stop_hc()
108 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_stop_hc()
146 struct usb_hcd *hcd; in usb_hcd_at91_probe() local
158 hcd = usb_create_hcd(driver, dev, "at91"); in usb_hcd_at91_probe()
159 if (!hcd) in usb_hcd_at91_probe()
161 ohci_at91 = hcd_to_ohci_at91_priv(hcd); in usb_hcd_at91_probe()
[all …]
Dehci-grlib.c88 struct usb_hcd *hcd; in ehci_hcd_grlib_probe() local
106 hcd = usb_create_hcd(&ehci_grlib_hc_driver, &op->dev, in ehci_hcd_grlib_probe()
108 if (!hcd) in ehci_hcd_grlib_probe()
111 hcd->rsrc_start = res.start; in ehci_hcd_grlib_probe()
112 hcd->rsrc_len = resource_size(&res); in ehci_hcd_grlib_probe()
122 hcd->regs = devm_ioremap_resource(&op->dev, &res); in ehci_hcd_grlib_probe()
123 if (IS_ERR(hcd->regs)) { in ehci_hcd_grlib_probe()
124 rv = PTR_ERR(hcd->regs); in ehci_hcd_grlib_probe()
128 ehci = hcd_to_ehci(hcd); in ehci_hcd_grlib_probe()
130 ehci->caps = hcd->regs; in ehci_hcd_grlib_probe()
[all …]
Dehci-tegra.c81 struct usb_hcd *hcd = platform_get_drvdata(pdev); in tegra_reset_usb_controller() local
83 (struct tegra_ehci_hcd *)hcd_to_ehci(hcd)->priv; in tegra_reset_usb_controller()
185 struct usb_hcd *hcd, in tegra_ehci_hub_control() argument
193 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in tegra_ehci_hub_control()
209 tegra_usb_phy_postresume(hcd->usb_phy); in tegra_ehci_hub_control()
262 tegra_usb_phy_preresume(hcd->usb_phy); in tegra_ehci_hub_control()
291 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in tegra_ehci_hub_control()
355 static int tegra_ehci_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, in tegra_ehci_map_urb_for_dma() argument
364 ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); in tegra_ehci_map_urb_for_dma()
371 static void tegra_ehci_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) in tegra_ehci_unmap_urb_for_dma() argument
[all …]
Dehci-tilegx.c37 static int tilegx_ehci_setup(struct usb_hcd *hcd) in tilegx_ehci_setup() argument
39 int ret = ehci_init(hcd); in tilegx_ehci_setup()
102 struct usb_hcd *hcd; in ehci_hcd_tilegx_drv_probe() local
119 hcd = usb_create_hcd(&ehci_tilegx_hc_driver, &pdev->dev, in ehci_hcd_tilegx_drv_probe()
121 if (!hcd) { in ehci_hcd_tilegx_drv_probe()
130 hcd->rsrc_start = in ehci_hcd_tilegx_drv_probe()
132 hcd->rsrc_len = gxio_usb_host_get_reg_len(&pdata->usb_ctx); in ehci_hcd_tilegx_drv_probe()
133 hcd->regs = gxio_usb_host_get_reg_start(&pdata->usb_ctx); in ehci_hcd_tilegx_drv_probe()
137 ehci = hcd_to_ehci(hcd); in ehci_hcd_tilegx_drv_probe()
138 ehci->caps = hcd->regs; in ehci_hcd_tilegx_drv_probe()
[all …]
Dehci-mxc.c53 struct usb_hcd *hcd; in ehci_mxc_drv_probe() local
67 hcd = usb_create_hcd(&ehci_mxc_hc_driver, dev, dev_name(dev)); in ehci_mxc_drv_probe()
68 if (!hcd) in ehci_mxc_drv_probe()
72 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in ehci_mxc_drv_probe()
73 if (IS_ERR(hcd->regs)) { in ehci_mxc_drv_probe()
74 ret = PTR_ERR(hcd->regs); in ehci_mxc_drv_probe()
77 hcd->rsrc_start = res->start; in ehci_mxc_drv_probe()
78 hcd->rsrc_len = resource_size(res); in ehci_mxc_drv_probe()
80 hcd->has_tt = 1; in ehci_mxc_drv_probe()
81 ehci = hcd_to_ehci(hcd); in ehci_mxc_drv_probe()
[all …]
Dehci-platform.c52 static int ehci_platform_reset(struct usb_hcd *hcd) in ehci_platform_reset() argument
54 struct platform_device *pdev = to_platform_device(hcd->self.controller); in ehci_platform_reset()
56 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_platform_reset()
59 hcd->has_tt = pdata->has_tt; in ehci_platform_reset()
63 retval = pdata->pre_setup(hcd); in ehci_platform_reset()
68 ehci->caps = hcd->regs + pdata->caps_offset; in ehci_platform_reset()
69 retval = ehci_setup(hcd); in ehci_platform_reset()
80 struct usb_hcd *hcd = platform_get_drvdata(dev); in ehci_platform_power_on() local
81 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in ehci_platform_power_on()
121 struct usb_hcd *hcd = platform_get_drvdata(dev); in ehci_platform_power_off() local
[all …]
Dehci-ppc-of.c96 struct usb_hcd *hcd; in ehci_hcd_ppc_of_probe() local
113 hcd = usb_create_hcd(&ehci_ppc_of_hc_driver, &op->dev, "PPC-OF USB"); in ehci_hcd_ppc_of_probe()
114 if (!hcd) in ehci_hcd_ppc_of_probe()
117 hcd->rsrc_start = res.start; in ehci_hcd_ppc_of_probe()
118 hcd->rsrc_len = resource_size(&res); in ehci_hcd_ppc_of_probe()
128 hcd->regs = devm_ioremap_resource(&op->dev, &res); in ehci_hcd_ppc_of_probe()
129 if (IS_ERR(hcd->regs)) { in ehci_hcd_ppc_of_probe()
130 rv = PTR_ERR(hcd->regs); in ehci_hcd_ppc_of_probe()
134 ehci = hcd_to_ehci(hcd); in ehci_hcd_ppc_of_probe()
161 ehci->caps = hcd->regs; in ehci_hcd_ppc_of_probe()
[all …]
Dohci-st.c50 struct usb_hcd *hcd = platform_get_drvdata(dev); in st_ohci_platform_power_on() local
51 struct st_ohci_platform_priv *priv = hcd_to_ohci_priv(hcd); in st_ohci_platform_power_on()
101 struct usb_hcd *hcd = platform_get_drvdata(dev); in st_ohci_platform_power_off() local
102 struct st_ohci_platform_priv *priv = hcd_to_ohci_priv(hcd); in st_ohci_platform_power_off()
134 struct usb_hcd *hcd; in st_ohci_platform_probe() local
156 hcd = usb_create_hcd(&ohci_platform_hc_driver, &dev->dev, in st_ohci_platform_probe()
158 if (!hcd) in st_ohci_platform_probe()
161 platform_set_drvdata(dev, hcd); in st_ohci_platform_probe()
163 priv = hcd_to_ohci_priv(hcd); in st_ohci_platform_probe()
164 ohci = hcd_to_ohci(hcd); in st_ohci_platform_probe()
[all …]
Dohci-pxa27x.c128 #define to_pxa27x_ohci(hcd) (struct pxa27x_ohci *)(hcd_to_ohci(hcd)->priv) argument
194 static int pxa27x_ohci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in pxa27x_ohci_hub_control() argument
197 struct pxa27x_ohci *pxa_ohci = to_pxa27x_ohci(hcd); in pxa27x_ohci_hub_control()
216 return ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in pxa27x_ohci_hub_control()
280 struct usb_hcd *hcd = dev_get_drvdata(dev); in pxa27x_start_hc() local
303 pxa3xx_u2d_start_hc(&hcd->self); in pxa27x_start_hc()
317 struct usb_hcd *hcd = dev_get_drvdata(dev); in pxa27x_stop_hc() local
323 pxa3xx_u2d_stop_hc(&hcd->self); in pxa27x_stop_hc()
418 struct usb_hcd *hcd; in usb_hcd_pxa27x_probe() local
445 hcd = usb_create_hcd (driver, &pdev->dev, "pxa27x"); in usb_hcd_pxa27x_probe()
[all …]
Dohci-omap3.c65 struct usb_hcd *hcd = NULL; in ohci_hcd_omap3_probe() local
107 hcd = usb_create_hcd(&ohci_omap3_hc_driver, dev, in ohci_hcd_omap3_probe()
109 if (!hcd) { in ohci_hcd_omap3_probe()
114 hcd->rsrc_start = res->start; in ohci_hcd_omap3_probe()
115 hcd->rsrc_len = resource_size(res); in ohci_hcd_omap3_probe()
116 hcd->regs = regs; in ohci_hcd_omap3_probe()
121 ohci = hcd_to_ohci(hcd); in ohci_hcd_omap3_probe()
128 ret = usb_add_hcd(hcd, irq, 0); in ohci_hcd_omap3_probe()
133 device_wakeup_enable(hcd->self.controller); in ohci_hcd_omap3_probe()
139 usb_put_hcd(hcd); in ohci_hcd_omap3_probe()
[all …]
Dehci-orion.c28 #define rdl(off) readl_relaxed(hcd->regs + (off))
29 #define wrl(off, val) writel_relaxed((val), hcd->regs + (off))
66 static void orion_usb_phy_v1_setup(struct usb_hcd *hcd) in orion_usb_phy_v1_setup() argument
134 ehci_orion_conf_mbus_windows(struct usb_hcd *hcd, in ehci_orion_conf_mbus_windows() argument
163 struct usb_hcd *hcd; in ehci_orion_drv_probe() local
200 hcd = usb_create_hcd(&ehci_orion_hc_driver, in ehci_orion_drv_probe()
202 if (!hcd) { in ehci_orion_drv_probe()
207 hcd->rsrc_start = res->start; in ehci_orion_drv_probe()
208 hcd->rsrc_len = resource_size(res); in ehci_orion_drv_probe()
209 hcd->regs = regs; in ehci_orion_drv_probe()
[all …]
Dxhci-rcar.c59 void xhci_rcar_start(struct usb_hcd *hcd) in xhci_rcar_start() argument
63 if (hcd->regs != NULL) { in xhci_rcar_start()
65 temp = readl(hcd->regs + RCAR_USB3_INT_ENA); in xhci_rcar_start()
67 writel(temp, hcd->regs + RCAR_USB3_INT_ENA); in xhci_rcar_start()
69 writel(RCAR_USB3_LCLK_ENA_VAL, hcd->regs + RCAR_USB3_LCLK); in xhci_rcar_start()
71 writel(RCAR_USB3_CONF1_VAL, hcd->regs + RCAR_USB3_CONF1); in xhci_rcar_start()
72 writel(RCAR_USB3_CONF2_VAL, hcd->regs + RCAR_USB3_CONF2); in xhci_rcar_start()
73 writel(RCAR_USB3_CONF3_VAL, hcd->regs + RCAR_USB3_CONF3); in xhci_rcar_start()
75 writel(RCAR_USB3_RX_POL_VAL, hcd->regs + RCAR_USB3_RX_POL); in xhci_rcar_start()
76 writel(RCAR_USB3_TX_POL_VAL, hcd->regs + RCAR_USB3_TX_POL); in xhci_rcar_start()
[all …]
Dohci-platform.c49 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_platform_power_on() local
50 struct ohci_platform_priv *priv = hcd_to_ohci_priv(hcd); in ohci_platform_power_on()
90 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_platform_power_off() local
91 struct ohci_platform_priv *priv = hcd_to_ohci_priv(hcd); in ohci_platform_power_off()
121 struct usb_hcd *hcd; in ohci_platform_probe() local
149 hcd = usb_create_hcd(&ohci_platform_hc_driver, &dev->dev, in ohci_platform_probe()
151 if (!hcd) in ohci_platform_probe()
154 platform_set_drvdata(dev, hcd); in ohci_platform_probe()
156 priv = hcd_to_ohci_priv(hcd); in ohci_platform_probe()
157 ohci = hcd_to_ohci(hcd); in ohci_platform_probe()
[all …]
Dehci-omap.c105 struct usb_hcd *hcd; in ehci_hcd_omap_probe() local
152 hcd = usb_create_hcd(&ehci_omap_hc_driver, dev, in ehci_hcd_omap_probe()
154 if (!hcd) { in ehci_hcd_omap_probe()
159 hcd->rsrc_start = res->start; in ehci_hcd_omap_probe()
160 hcd->rsrc_len = resource_size(res); in ehci_hcd_omap_probe()
161 hcd->regs = regs; in ehci_hcd_omap_probe()
162 hcd_to_ehci(hcd)->caps = regs; in ehci_hcd_omap_probe()
164 omap = (struct omap_hcd *)hcd_to_ehci(hcd)->priv; in ehci_hcd_omap_probe()
167 platform_set_drvdata(pdev, hcd); in ehci_hcd_omap_probe()
213 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in ehci_hcd_omap_probe()
[all …]
Dxhci-pci.c201 static int xhci_pci_setup(struct usb_hcd *hcd) in xhci_pci_setup() argument
204 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_setup()
207 retval = xhci_gen_setup(hcd, xhci_pci_quirks); in xhci_pci_setup()
211 xhci = hcd_to_xhci(hcd); in xhci_pci_setup()
212 if (!usb_hcd_is_primary_hcd(hcd)) in xhci_pci_setup()
236 struct usb_hcd *hcd; in xhci_pci_probe() local
255 hcd = dev_get_drvdata(&dev->dev); in xhci_pci_probe()
256 xhci = hcd_to_xhci(hcd); in xhci_pci_probe()
258 pci_name(dev), hcd); in xhci_pci_probe()
323 static void xhci_ssic_port_unused_quirk(struct usb_hcd *hcd, bool suspend) in xhci_ssic_port_unused_quirk() argument
[all …]
Dxhci-hub.c77 static void xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb2_hub_descriptor() argument
130 static void xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb3_hub_descriptor() argument
160 static void xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_hub_descriptor() argument
164 if (hcd->speed == HCD_USB3) in xhci_hub_descriptor()
165 xhci_usb3_hub_descriptor(hcd, xhci, desc); in xhci_hub_descriptor()
167 xhci_usb2_hub_descriptor(hcd, xhci, desc); in xhci_hub_descriptor()
241 int xhci_find_slot_id_by_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_find_slot_id_by_port() argument
253 if (((speed == USB_SPEED_SUPER) == (hcd->speed == HCD_USB3)) in xhci_find_slot_id_by_port()
338 static void xhci_disable_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_disable_port() argument
342 if (hcd->speed == HCD_USB3) { in xhci_disable_port()
[all …]
Dohci-nxp.c166 struct usb_hcd *hcd = 0; in ohci_hcd_nxp_probe() local
250 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in ohci_hcd_nxp_probe()
251 if (!hcd) { in ohci_hcd_nxp_probe()
258 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in ohci_hcd_nxp_probe()
259 if (IS_ERR(hcd->regs)) { in ohci_hcd_nxp_probe()
260 ret = PTR_ERR(hcd->regs); in ohci_hcd_nxp_probe()
263 hcd->rsrc_start = res->start; in ohci_hcd_nxp_probe()
264 hcd->rsrc_len = resource_size(res); in ohci_hcd_nxp_probe()
273 platform_set_drvdata(pdev, hcd); in ohci_hcd_nxp_probe()
275 dev_info(&pdev->dev, "at 0x%p, irq %d\n", hcd->regs, hcd->irq); in ohci_hcd_nxp_probe()
[all …]
Dfhci-hcd.c327 static int fhci_start(struct usb_hcd *hcd) in fhci_start() argument
330 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_start()
360 hcd->state = HC_STATE_RUNNING; in fhci_start()
378 static void fhci_stop(struct usb_hcd *hcd) in fhci_stop() argument
380 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_stop()
390 static int fhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, in fhci_urb_enqueue() argument
393 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_urb_enqueue()
447 ret = usb_hcd_link_urb_to_ep(hcd, urb); in fhci_urb_enqueue()
470 static int fhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in fhci_urb_dequeue() argument
472 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_urb_dequeue()
[all …]
Dohci-hcd.c81 static void ohci_stop(struct usb_hcd *hcd);
145 struct usb_hcd *hcd, in ohci_urb_enqueue() argument
149 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_enqueue()
211 if (!HCD_HW_ACCESSIBLE(hcd)) { in ohci_urb_enqueue()
219 retval = usb_hcd_link_urb_to_ep(hcd, urb); in ohci_urb_enqueue()
227 usb_hcd_unlink_urb_from_ep(hcd, urb); in ohci_urb_enqueue()
310 static int ohci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in ohci_urb_dequeue() argument
312 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_dequeue()
318 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in ohci_urb_dequeue()
345 ohci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep) in ohci_endpoint_disable() argument
[all …]
Dsl811-hcd.c79 struct usb_hcd *hcd = sl811_to_hcd(sl811); in port_power() local
91 hcd->state = HC_STATE_HALT; in port_power()
99 dev_dbg(hcd->self.controller, "power %s\n", in port_power()
101 sl811->board->port_power(hcd->self.controller, is_on); in port_power()
106 sl811->board->reset(hcd->self.controller); in port_power()
619 static irqreturn_t sl811h_irq(struct usb_hcd *hcd) in sl811h_irq() argument
621 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_irq()
728 dev_dbg(hcd->self.controller, "wakeup\n"); in sl811h_irq()
790 struct usb_hcd *hcd, in sl811h_urb_enqueue() argument
794 struct sl811 *sl811 = hcd_to_sl811(hcd); in sl811h_urb_enqueue()
[all …]
Dehci-hcd.c366 static void ehci_shutdown(struct usb_hcd *hcd) in ehci_shutdown() argument
368 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_shutdown()
421 static void ehci_stop (struct usb_hcd *hcd) in ehci_stop() argument
423 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_stop()
455 static int ehci_init(struct usb_hcd *hcd) in ehci_init() argument
457 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_init()
565 if (!(hcd->driver->flags & HCD_LOCAL_MEM)) in ehci_init()
566 hcd->self.sg_tablesize = ~0; in ehci_init()
571 static int ehci_run (struct usb_hcd *hcd) in ehci_run() argument
573 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_run()
[all …]
Duhci-hcd.c438 static irqreturn_t uhci_irq(struct usb_hcd *hcd) in uhci_irq() argument
440 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_irq()
475 usb_hc_died(hcd); in uhci_irq()
479 mod_timer(&hcd->rh_timer, jiffies); in uhci_irq()
486 usb_hcd_poll_rh_status(hcd); in uhci_irq()
563 static int uhci_start(struct usb_hcd *hcd) in uhci_start() argument
565 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_start()
570 hcd->uses_new_polling = 1; in uhci_start()
572 if (!(hcd->driver->flags & HCD_LOCAL_MEM)) in uhci_start()
573 hcd->self.sg_tablesize = ~0; in uhci_start()
[all …]
Disp116x-hcd.c589 static irqreturn_t isp116x_irq(struct usb_hcd *hcd) in isp116x_irq() argument
591 struct isp116x *isp116x = hcd_to_isp116x(hcd); in isp116x_irq()
612 hcd->state = HC_STATE_HALT; in isp116x_irq()
613 usb_hc_died(hcd); in isp116x_irq()
621 mod_timer(&hcd->rh_timer, jiffies in isp116x_irq()
625 usb_hcd_resume_root_hub(hcd); in isp116x_irq()
679 static int isp116x_urb_enqueue(struct usb_hcd *hcd, in isp116x_urb_enqueue() argument
683 struct isp116x *isp116x = hcd_to_isp116x(hcd); in isp116x_urb_enqueue()
710 if (!HC_IS_RUNNING(hcd->state)) { in isp116x_urb_enqueue()
715 ret = usb_hcd_link_urb_to_ep(hcd, urb); in isp116x_urb_enqueue()
[all …]
Dehci-pci.c100 static int ehci_pci_setup(struct usb_hcd *hcd) in ehci_pci_setup() argument
102 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_pci_setup()
103 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_setup()
107 ehci->caps = hcd->regs; in ehci_pci_setup()
157 hcd->has_tt = 1; in ehci_pci_setup()
161 hcd->has_tt = 1; in ehci_pci_setup()
244 ehci->debug = hcd->regs + temp; in ehci_pci_setup()
254 retval = ehci_setup(hcd); in ehci_pci_setup()
349 static int ehci_pci_resume(struct usb_hcd *hcd, bool hibernated) in ehci_pci_resume() argument
351 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_pci_resume()
[all …]
Dimx21-hcd.c78 static inline struct imx21 *hcd_to_imx21(struct usb_hcd *hcd) in hcd_to_imx21() argument
80 return (struct imx21 *)hcd->hcd_priv; in hcd_to_imx21()
138 static int imx21_hc_get_frame(struct usb_hcd *hcd) in imx21_hc_get_frame() argument
140 struct imx21 *imx21 = hcd_to_imx21(hcd); in imx21_hc_get_frame()
520 static void urb_done(struct usb_hcd *hcd, struct urb *urb, int status) in urb_done() argument
524 struct imx21 *imx21 = hcd_to_imx21(hcd); in urb_done()
534 usb_hcd_unlink_urb_from_ep(hcd, urb); in urb_done()
536 usb_hcd_giveback_urb(hcd, urb, status); in urb_done()
547 urb_done(imx21->hcd, etd->urb, status); in nonisoc_urb_completed_for_etd()
564 static void schedule_isoc_etds(struct usb_hcd *hcd, in schedule_isoc_etds() argument
[all …]
Dehci-hub.c51 struct usb_hcd *hcd = ehci_to_hcd(ehci); in ehci_handover_companion_ports() local
94 ehci_hub_control(hcd, SetPortFeature, in ehci_handover_companion_ports()
112 ehci_hub_control(hcd, GetPortStatus, in ehci_handover_companion_ports()
224 static int ehci_bus_suspend (struct usb_hcd *hcd) in ehci_bus_suspend() argument
226 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_bus_suspend()
249 if (hcd->self.root_hub->do_remote_wakeup) { in ehci_bus_suspend()
281 if (hcd->self.root_hub->do_remote_wakeup) { in ehci_bus_suspend()
357 if (!hcd->self.root_hub->do_remote_wakeup) in ehci_bus_suspend()
374 static int ehci_bus_resume (struct usb_hcd *hcd) in ehci_bus_resume() argument
376 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_bus_resume()
[all …]
Dxhci.c281 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_setup_msix() local
282 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_setup_msix()
322 hcd->msix_enabled = 1; in xhci_setup_msix()
338 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_cleanup_msix() local
339 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_cleanup_msix()
354 hcd->msix_enabled = 0; in xhci_cleanup_msix()
368 static int xhci_try_enable_msi(struct usb_hcd *hcd) in xhci_try_enable_msi() argument
370 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_try_enable_msi()
387 if (hcd->irq) in xhci_try_enable_msi()
388 free_irq(hcd->irq, hcd); in xhci_try_enable_msi()
[all …]
Dxhci-rcar.h15 void xhci_rcar_start(struct usb_hcd *hcd);
16 int xhci_rcar_init_quirk(struct usb_hcd *hcd);
18 static inline void xhci_rcar_start(struct usb_hcd *hcd) in xhci_rcar_start() argument
22 static inline int xhci_rcar_init_quirk(struct usb_hcd *hcd) in xhci_rcar_init_quirk() argument
Doxu210hp-hcd.c71 static inline struct oxu_hcd *hcd_to_oxu(struct usb_hcd *hcd) in hcd_to_oxu() argument
73 return (struct oxu_hcd *) (hcd->hcd_priv); in hcd_to_oxu()
244 static int oxu_hub_control(struct usb_hcd *hcd,
2440 static irqreturn_t oxu210_hcd_irq(struct usb_hcd *hcd) in oxu210_hcd_irq() argument
2442 struct oxu_hcd *oxu = hcd_to_oxu(hcd); in oxu210_hcd_irq()
2458 if (!status || unlikely(hcd->state == HC_STATE_HALT)) { in oxu210_hcd_irq()
2492 usb_hcd_resume_root_hub(hcd); in oxu210_hcd_irq()
2510 mod_timer(&hcd->rh_timer, oxu->reset_done[i]); in oxu210_hcd_irq()
2525 usb_hc_died(hcd); in oxu210_hcd_irq()
2537 usb_hcd_poll_rh_status(hcd); in oxu210_hcd_irq()
[all …]
Dxhci.h1438 static inline unsigned int hcd_index(struct usb_hcd *hcd) in hcd_index() argument
1440 if (hcd->speed == HCD_USB3) in hcd_index()
1603 static inline struct xhci_hcd *hcd_to_xhci(struct usb_hcd *hcd) in hcd_to_xhci() argument
1605 return *((struct xhci_hcd **) (hcd->hcd_priv)); in hcd_to_xhci()
1754 int xhci_init(struct usb_hcd *hcd);
1755 int xhci_run(struct usb_hcd *hcd);
1756 void xhci_stop(struct usb_hcd *hcd);
1757 void xhci_shutdown(struct usb_hcd *hcd);
1758 int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks);
1769 int xhci_get_frame(struct usb_hcd *hcd);
[all …]
Dohci-hub.c152 struct usb_hcd *hcd = ohci_to_hcd (ohci); in ohci_rh_resume() local
199 usb_root_hub_lost_power(hcd->self.root_hub); in ohci_rh_resume()
285 if (hcd->self.bandwidth_isoc_reqs || hcd->self.bandwidth_int_reqs) in ohci_rh_resume()
300 static int ohci_bus_suspend (struct usb_hcd *hcd) in ohci_bus_suspend() argument
302 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_bus_suspend()
307 if (unlikely(!HCD_HW_ACCESSIBLE(hcd))) in ohci_bus_suspend()
318 static int ohci_bus_resume (struct usb_hcd *hcd) in ohci_bus_resume() argument
320 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_bus_resume()
328 if (unlikely(!HCD_HW_ACCESSIBLE(hcd))) in ohci_bus_resume()
336 usb_hcd_poll_rh_status(hcd); in ohci_bus_resume()
[all …]
Disp1362-hcd.c106 static void isp1362_hc_stop(struct usb_hcd *hcd);
107 static int isp1362_hc_start(struct usb_hcd *hcd);
1005 static irqreturn_t isp1362_irq(struct usb_hcd *hcd) in isp1362_irq() argument
1008 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd); in isp1362_irq()
1146 usb_hcd_resume_root_hub(hcd); in isp1362_irq()
1214 static int isp1362_urb_enqueue(struct usb_hcd *hcd, in isp1362_urb_enqueue() argument
1218 struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd); in isp1362_urb_enqueue()
1259 !HC_IS_RUNNING(hcd->state)) { in isp1362_urb_enqueue()
1265 retval = usb_hcd_link_urb_to_ep(hcd, urb); in isp1362_urb_enqueue()
1385 usb_hcd_unlink_urb_from_ep(hcd, urb); in isp1362_urb_enqueue()
[all …]
Du132-hcd.c230 static inline struct u132 *hcd_to_u132(struct usb_hcd *hcd) in hcd_to_u132() argument
232 return (struct u132 *)(hcd->hcd_priv); in hcd_to_u132()
258 struct usb_hcd *hcd = u132_to_hcd(u132); in u132_hcd_delete() local
265 "2=%p going=%d pdev=%p\n", hcd, u132, u132->going, pdev); in u132_hcd_delete()
266 usb_put_hcd(hcd); in u132_hcd_delete()
495 struct usb_hcd *hcd = u132_to_hcd(u132); in u132_hcd_monitor_work() local
499 usb_hc_died(hcd); in u132_hcd_monitor_work()
516 struct usb_hcd *hcd = u132_to_hcd(u132); in u132_hcd_giveback_urb() local
519 usb_hcd_unlink_urb_from_ep(hcd, urb); in u132_hcd_giveback_urb()
542 usb_hcd_giveback_urb(hcd, urb, status); in u132_hcd_giveback_urb()
[all …]
Duhci-hub.c185 static int uhci_hub_status_data(struct usb_hcd *hcd, char *buf) in uhci_hub_status_data() argument
187 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_hub_status_data()
194 if (!HCD_HW_ACCESSIBLE(hcd) || uhci->dead) in uhci_hub_status_data()
205 usb_hcd_resume_root_hub(hcd); in uhci_hub_status_data()
242 static int uhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in uhci_hub_control() argument
245 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_hub_control()
252 if (!HCD_HW_ACCESSIBLE(hcd) || uhci->dead) in uhci_hub_control()
Dfusbh200-hcd.c455 struct usb_hcd *hcd; in fill_async_buffer() local
462 hcd = bus_to_hcd(buf->bus); in fill_async_buffer()
463 fusbh200 = hcd_to_fusbh200 (hcd); in fill_async_buffer()
493 struct usb_hcd *hcd; in fill_periodic_buffer() local
506 hcd = bus_to_hcd(buf->bus); in fill_periodic_buffer()
507 fusbh200 = hcd_to_fusbh200 (hcd); in fill_periodic_buffer()
640 struct usb_hcd *hcd; in fill_registers_buffer() local
648 hcd = bus_to_hcd(buf->bus); in fill_registers_buffer()
649 fusbh200 = hcd_to_fusbh200 (hcd); in fill_registers_buffer()
655 if (!HCD_HW_ACCESSIBLE(hcd)) { in fill_registers_buffer()
[all …]
Dr8a66597-hcd.c55 static int r8a66597_get_frame(struct usb_hcd *hcd);
1287 struct usb_hcd *hcd = r8a66597_to_hcd(r8a66597); in finish_request() local
1305 urb->start_frame = r8a66597_get_frame(hcd); in finish_request()
1615 static irqreturn_t r8a66597_irq(struct usb_hcd *hcd) in r8a66597_irq() argument
1617 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd); in r8a66597_irq()
1835 static int r8a66597_start(struct usb_hcd *hcd) in r8a66597_start() argument
1837 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd); in r8a66597_start()
1839 hcd->state = HC_STATE_RUNNING; in r8a66597_start()
1843 static void r8a66597_stop(struct usb_hcd *hcd) in r8a66597_stop() argument
1845 struct r8a66597 *r8a66597 = hcd_to_r8a66597(hcd); in r8a66597_stop()
[all …]
Dfotg210-hcd.c475 struct usb_hcd *hcd; in fill_async_buffer() local
482 hcd = bus_to_hcd(buf->bus); in fill_async_buffer()
483 fotg210 = hcd_to_fotg210(hcd); in fill_async_buffer()
514 struct usb_hcd *hcd; in fill_periodic_buffer() local
528 hcd = bus_to_hcd(buf->bus); in fill_periodic_buffer()
529 fotg210 = hcd_to_fotg210(hcd); in fill_periodic_buffer()
666 struct usb_hcd *hcd; in fill_registers_buffer() local
674 hcd = bus_to_hcd(buf->bus); in fill_registers_buffer()
675 fotg210 = hcd_to_fotg210(hcd); in fill_registers_buffer()
681 if (!HCD_HW_ACCESSIBLE(hcd)) { in fill_registers_buffer()
[all …]
Dehci-dbg.c499 struct usb_hcd *hcd; in fill_async_buffer() local
506 hcd = bus_to_hcd(buf->bus); in fill_async_buffer()
507 ehci = hcd_to_ehci (hcd); in fill_async_buffer()
622 struct usb_hcd *hcd; in fill_periodic_buffer() local
635 hcd = bus_to_hcd(buf->bus); in fill_periodic_buffer()
636 ehci = hcd_to_ehci (hcd); in fill_periodic_buffer()
780 struct usb_hcd *hcd; in fill_registers_buffer() local
788 hcd = bus_to_hcd(buf->bus); in fill_registers_buffer()
789 ehci = hcd_to_ehci (hcd); in fill_registers_buffer()
795 if (!HCD_HW_ACCESSIBLE(hcd)) { in fill_registers_buffer()
[all …]
Dohci.h478 static inline struct ohci_hcd *hcd_to_ohci (struct usb_hcd *hcd) in hcd_to_ohci() argument
480 return (struct ohci_hcd *) (hcd->hcd_priv); in hcd_to_ohci()
731 int (*reset)(struct usb_hcd *hcd);
737 extern int ohci_setup(struct usb_hcd *hcd);
739 extern int ohci_suspend(struct usb_hcd *hcd, bool do_wakeup);
740 extern int ohci_resume(struct usb_hcd *hcd, bool hibernated);
742 extern int ohci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
744 extern int ohci_hub_status_data(struct usb_hcd *hcd, char *buf);
Dehci.h270 static inline struct ehci_hcd *hcd_to_ehci (struct usb_hcd *hcd) in hcd_to_ehci() argument
272 return (struct ehci_hcd *) (hcd->hcd_priv); in hcd_to_ehci()
861 int (*reset)(struct usb_hcd *hcd);
862 int (*port_power)(struct usb_hcd *hcd,
868 extern int ehci_setup(struct usb_hcd *hcd);
873 extern int ehci_suspend(struct usb_hcd *hcd, bool do_wakeup);
874 extern int ehci_resume(struct usb_hcd *hcd, bool force_reset);
877 extern int ehci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
Dfhci-hub.c181 int fhci_hub_status_data(struct usb_hcd *hcd, char *buf) in fhci_hub_status_data() argument
183 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_hub_status_data()
206 int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in fhci_hub_control() argument
209 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_hub_control()
Dfhci.h468 static inline struct fhci_hcd *hcd_to_fhci(struct usb_hcd *hcd) in hcd_to_fhci() argument
470 return (struct fhci_hcd *)hcd->hcd_priv; in hcd_to_fhci()
536 int fhci_hub_status_data(struct usb_hcd *hcd, char *buf);
537 int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
566 irqreturn_t fhci_irq(struct usb_hcd *hcd);
Dxhci-ring.c599 struct usb_hcd *hcd; in xhci_giveback_urb_in_irq() local
606 hcd = bus_to_hcd(urb->dev->bus); in xhci_giveback_urb_in_irq()
617 usb_hcd_unlink_urb_from_ep(hcd, urb); in xhci_giveback_urb_in_irq()
620 usb_hcd_giveback_urb(hcd, urb, status); in xhci_giveback_urb_in_irq()
1431 static unsigned int find_faked_portnum_from_hw_portnum(struct usb_hcd *hcd, in find_faked_portnum_from_hw_portnum() argument
1456 if ((port_speed == 0x03) == (hcd->speed == HCD_USB3)) in find_faked_portnum_from_hw_portnum()
1485 struct usb_hcd *hcd; in handle_port_status() local
1517 hcd = xhci_to_hcd(xhci); in handle_port_status()
1518 if ((major_revision == 0x03) != (hcd->speed == HCD_USB3)) in handle_port_status()
1519 hcd = xhci->shared_hcd; in handle_port_status()
[all …]
Dsl811.h158 static inline struct sl811 *hcd_to_sl811(struct usb_hcd *hcd) in hcd_to_sl811() argument
160 return (struct sl811 *) (hcd->hcd_priv); in hcd_to_sl811()
Dohci-dbg.c580 struct usb_hcd *hcd; in fill_registers_buffer() local
589 hcd = ohci_to_hcd(ohci); in fill_registers_buffer()
602 hcd->self.controller->bus->name, in fill_registers_buffer()
603 dev_name(hcd->self.controller), in fill_registers_buffer()
604 hcd->product_desc, in fill_registers_buffer()
607 if (!HCD_HW_ACCESSIBLE(hcd)) { in fill_registers_buffer()
DKconfig25 module will be called xhci-hcd.
74 module will be called ehci-hcd.
321 module will be called oxu210hp-hcd.
332 module will be called isp116x-hcd.
342 module will be called isp1362-hcd.
352 module will be called fusbh200-hcd.
363 module will be called fotg210-hcd.
374 be called max3421-hcd.
389 module will be called ohci-hcd.
599 module will be called uhci-hcd.
[all …]
Dr8a66597.h137 static inline struct r8a66597 *hcd_to_r8a66597(struct usb_hcd *hcd) in hcd_to_r8a66597() argument
139 return (struct r8a66597 *)(hcd->hcd_priv); in hcd_to_r8a66597()
Dfotg210.h183 static inline struct fotg210_hcd *hcd_to_fotg210(struct usb_hcd *hcd) in hcd_to_fotg210() argument
185 return (struct fotg210_hcd *)(hcd->hcd_priv); in hcd_to_fotg210()
Dfusbh200.h178 static inline struct fusbh200_hcd *hcd_to_fusbh200 (struct usb_hcd *hcd) in hcd_to_fusbh200() argument
180 return (struct fusbh200_hcd *) (hcd->hcd_priv); in hcd_to_fusbh200()
Duhci-hcd.h458 static inline struct uhci_hcd *hcd_to_uhci(struct usb_hcd *hcd) in hcd_to_uhci() argument
460 return (struct uhci_hcd *) (hcd->hcd_priv); in hcd_to_uhci()
Duhci-q.c1409 static int uhci_urb_enqueue(struct usb_hcd *hcd, in uhci_urb_enqueue() argument
1413 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_urb_enqueue()
1420 ret = usb_hcd_link_urb_to_ep(hcd, urb); in uhci_urb_enqueue()
1476 usb_hcd_unlink_urb_from_ep(hcd, urb); in uhci_urb_enqueue()
1482 static int uhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in uhci_urb_dequeue() argument
1484 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_urb_dequeue()
1490 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in uhci_urb_dequeue()
Dfhci-sched.c510 struct usb_hcd *hcd = _hcd; in fhci_frame_limit_timer_irq() local
511 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_frame_limit_timer_irq()
546 irqreturn_t fhci_irq(struct usb_hcd *hcd) in fhci_irq() argument
548 struct fhci_hcd *fhci = hcd_to_fhci(hcd); in fhci_irq()
Dxhci-trace.h15 #define TRACE_SYSTEM xhci-hcd
Dehci-q.c145 static void ehci_clear_tt_buffer_complete(struct usb_hcd *hcd, in ehci_clear_tt_buffer_complete() argument
148 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_clear_tt_buffer_complete()
1164 struct usb_hcd *hcd, in submit_single_step_set_feature() argument
1168 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in submit_single_step_set_feature()
Disp116x.h291 static inline struct isp116x *hcd_to_isp116x(struct usb_hcd *hcd) in hcd_to_isp116x() argument
293 return (struct isp116x *)(hcd->hcd_priv); in hcd_to_isp116x()
Dimx21-hcd.h422 struct usb_hcd *hcd; member
Doxu210hp.h349 struct usb_hcd *hcd[2]; member
Disp1362.h569 static inline struct isp1362_hcd *hcd_to_isp1362_hcd(struct usb_hcd *hcd) in hcd_to_isp1362_hcd() argument
571 return (struct isp1362_hcd *) (hcd->hcd_priv); in hcd_to_isp1362_hcd()
Dxhci-mem.c1073 struct usb_hcd *hcd; in xhci_find_real_port_number() local
1076 hcd = xhci->shared_hcd; in xhci_find_real_port_number()
1078 hcd = xhci->main_hcd; in xhci_find_real_port_number()
1084 return xhci_find_raw_port_number(hcd, top_dev->portnum); in xhci_find_real_port_number()
Dehci-sched.c37 static int ehci_get_frame (struct usb_hcd *hcd);
/linux-4.1.27/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 …]
Disp1760-core.c147 ret = isp1760_hcd_register(&isp->hcd, isp->regs, mem, irq, in isp1760_register()
156 isp1760_hcd_unregister(&isp->hcd); in isp1760_register()
171 isp1760_hcd_unregister(&isp->hcd); in isp1760_unregister()
DMakefile2 isp1760-$(CONFIG_USB_ISP1760_HCD) += isp1760-hcd.o
Disp1760-core.h48 struct isp1760_hcd hcd; member
Disp1760-hcd.h51 struct usb_hcd *hcd; member
/linux-4.1.27/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()
77 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
82 struct usb_hcd *hcd; in host_start() local
90 hcd = usb_create_hcd(&ci_ehci_hc_driver, ci->dev, dev_name(ci->dev)); in host_start()
91 if (!hcd) in host_start()
95 hcd->rsrc_start = ci->hw_bank.phys; in host_start()
96 hcd->rsrc_len = ci->hw_bank.size; in host_start()
[all …]
Dci.h240 struct usb_hcd *hcd; member
/linux-4.1.27/include/linux/usb/
Dhcd.h127 #define HCD_HW_ACCESSIBLE(hcd) ((hcd)->flags & (1U << HCD_FLAG_HW_ACCESSIBLE)) argument
128 #define HCD_POLL_RH(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_RH)) argument
129 #define HCD_POLL_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_PENDING)) argument
130 #define HCD_WAKEUP_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_WAKEUP_PENDING)) argument
131 #define HCD_RH_RUNNING(hcd) ((hcd)->flags & (1U << HCD_FLAG_RH_RUNNING)) argument
132 #define HCD_DEAD(hcd) ((hcd)->flags & (1U << HCD_FLAG_DEAD)) argument
209 static inline struct usb_bus *hcd_to_bus(struct usb_hcd *hcd) in hcd_to_bus() argument
211 return &hcd->self; in hcd_to_bus()
233 irqreturn_t (*irq) (struct usb_hcd *hcd);
247 int (*reset) (struct usb_hcd *hcd);
[all …]
Dehci-dbgp.h56 static inline int xen_dbgp_reset_prep(struct usb_hcd *hcd) in xen_dbgp_reset_prep() argument
61 static inline int xen_dbgp_external_startup(struct usb_hcd *hcd) in xen_dbgp_external_startup() argument
72 static inline int dbgp_reset_prep(struct usb_hcd *hcd) in dbgp_reset_prep() argument
74 return xen_dbgp_reset_prep(hcd); in dbgp_reset_prep()
77 static inline int dbgp_external_startup(struct usb_hcd *hcd) in dbgp_external_startup() argument
79 return xen_dbgp_external_startup(hcd); in dbgp_external_startup()
Dehci_pdriver.h60 int (*pre_setup)(struct usb_hcd *hcd);
/linux-4.1.27/drivers/usb/usbip/
Dvhci_hcd.c46 static int vhci_hub_status(struct usb_hcd *hcd, char *buff);
47 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
49 static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
51 static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status);
53 static void vhci_stop(struct usb_hcd *hcd);
54 static int vhci_get_frame_number(struct usb_hcd *hcd);
179 static int vhci_hub_status(struct usb_hcd *hcd, char *buf) in vhci_hub_status() argument
189 vhci = hcd_to_vhci(hcd); in vhci_hub_status()
192 if (!HCD_HW_ACCESSIBLE(hcd)) { in vhci_hub_status()
208 if ((hcd->state == HC_STATE_SUSPENDED) && (changed == 1)) in vhci_hub_status()
[all …]
DMakefile6 obj-$(CONFIG_USBIP_VHCI_HCD) += vhci-hcd.o
7 vhci-hcd-y := vhci_sysfs.o vhci_tx.o vhci_rx.o vhci_hcd.o
Dvhci.h114 static inline struct vhci_hcd *hcd_to_vhci(struct usb_hcd *hcd) in hcd_to_vhci() argument
116 return (struct vhci_hcd *) (hcd->hcd_priv); in hcd_to_vhci()
DKconfig18 tristate "VHCI hcd"
25 module will be called vhci-hcd.
/linux-4.1.27/drivers/usb/c67x00/
Dc67x00-hcd.c61 static int c67x00_hub_status_data(struct usb_hcd *hcd, char *buf) in c67x00_hub_status_data() argument
63 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd); in c67x00_hub_status_data()
80 static int c67x00_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in c67x00_hub_control() argument
83 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd); in c67x00_hub_control()
253 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00); in c67x00_hcd_irq() local
264 if (unlikely(hcd->state == HC_STATE_HALT)) in c67x00_hcd_irq()
267 if (!HCD_HW_ACCESSIBLE(hcd)) in c67x00_hcd_irq()
280 static int c67x00_hcd_start(struct usb_hcd *hcd) in c67x00_hcd_start() argument
282 hcd->uses_new_polling = 1; in c67x00_hcd_start()
283 hcd->state = HC_STATE_RUNNING; in c67x00_hcd_start()
[all …]
Dc67x00-hcd.h101 static inline struct c67x00_hcd *hcd_to_c67x00_hcd(struct usb_hcd *hcd) in hcd_to_c67x00_hcd() argument
103 return (struct c67x00_hcd *)(hcd->hcd_priv); in hcd_to_c67x00_hcd()
121 int c67x00_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags);
122 int c67x00_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status);
123 void c67x00_endpoint_disable(struct usb_hcd *hcd,
Dc67x00-sched.c319 void c67x00_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *ep) in c67x00_endpoint_disable() argument
321 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd); in c67x00_endpoint_disable()
356 int c67x00_urb_enqueue(struct usb_hcd *hcd, in c67x00_urb_enqueue() argument
362 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd); in c67x00_urb_enqueue()
375 if (!HC_IS_RUNNING(hcd->state)) { in c67x00_urb_enqueue()
380 ret = usb_hcd_link_urb_to_ep(hcd, urb); in c67x00_urb_enqueue()
446 usb_hcd_unlink_urb_from_ep(hcd, urb); in c67x00_urb_enqueue()
455 int c67x00_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in c67x00_urb_dequeue() argument
457 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd); in c67x00_urb_dequeue()
462 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in c67x00_urb_dequeue()
[all …]
DMakefile7 c67x00-y := c67x00-drv.o c67x00-ll-hpi.o c67x00-hcd.o c67x00-sched.o
/linux-4.1.27/drivers/staging/ozwpan/
Dozhcd.c140 struct usb_hcd *hcd; member
150 static int oz_hcd_start(struct usb_hcd *hcd);
151 static void oz_hcd_stop(struct usb_hcd *hcd);
152 static void oz_hcd_shutdown(struct usb_hcd *hcd);
153 static int oz_hcd_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
155 static int oz_hcd_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status);
156 static void oz_hcd_endpoint_disable(struct usb_hcd *hcd,
158 static void oz_hcd_endpoint_reset(struct usb_hcd *hcd,
160 static int oz_hcd_get_frame_number(struct usb_hcd *hcd);
161 static int oz_hcd_hub_status_data(struct usb_hcd *hcd, char *buf);
[all …]
/linux-4.1.27/drivers/xen/
Ddbgp.c9 static int xen_dbgp_op(struct usb_hcd *hcd, int op) in xen_dbgp_op() argument
12 const struct device *ctrlr = hcd_to_bus(hcd)->controller; in xen_dbgp_op()
36 int xen_dbgp_reset_prep(struct usb_hcd *hcd) in xen_dbgp_reset_prep() argument
38 return xen_dbgp_op(hcd, PHYSDEVOP_DBGP_RESET_PREPARE); in xen_dbgp_reset_prep()
41 int xen_dbgp_external_startup(struct usb_hcd *hcd) in xen_dbgp_external_startup() argument
43 return xen_dbgp_op(hcd, PHYSDEVOP_DBGP_RESET_DONE); in xen_dbgp_external_startup()
/linux-4.1.27/drivers/usb/renesas_usbhs/
Dmod_host.c466 static int usbhsh_connected_to_rhdev(struct usb_hcd *hcd, in usbhsh_connected_to_rhdev() argument
471 return hcd->self.root_hub == usbv->parent; in usbhsh_connected_to_rhdev()
503 struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv); in usbhsh_device_attach() local
504 struct device *dev = usbhsh_hcd_to_dev(hcd); in usbhsh_device_attach()
579 if (!usbhsh_connected_to_rhdev(hcd, udev)) { in usbhsh_device_attach()
603 struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv); in usbhsh_device_detach() local
605 struct device *dev = usbhsh_hcd_to_dev(hcd); in usbhsh_device_detach()
648 struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv); in usbhsh_queue_done() local
670 usb_hcd_unlink_urb_from_ep(hcd, urb); in usbhsh_queue_done()
671 usb_hcd_giveback_urb(hcd, urb, status); in usbhsh_queue_done()
[all …]
/linux-4.1.27/drivers/usb/gadget/udc/
Ddummy_hcd.c207 static inline struct dummy_hcd *hcd_to_dummy_hcd(struct usb_hcd *hcd) in hcd_to_dummy_hcd() argument
209 return (struct dummy_hcd *) (hcd->hcd_priv); in hcd_to_dummy_hcd()
1144 struct usb_hcd *hcd, in dummy_urb_enqueue() argument
1159 dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_urb_enqueue()
1168 rc = usb_hcd_link_urb_to_ep(hcd, urb); in dummy_urb_enqueue()
1194 static int dummy_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in dummy_urb_dequeue() argument
1202 dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_urb_dequeue()
1205 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in dummy_urb_dequeue()
1870 static int dummy_hub_status(struct usb_hcd *hcd, char *buf) in dummy_hub_status() argument
1876 dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_hub_status()
[all …]
DKconfig24 # - debug/dummy gadget+hcd is last.
/linux-4.1.27/drivers/usb/misc/
Dlvstest.c48 struct usb_hcd *hcd; in create_lvs_device() local
57 hcd = bus_to_hcd(hdev->bus); in create_lvs_device()
68 if (hcd->driver->enable_device) { in create_lvs_device()
69 if (hcd->driver->enable_device(hcd, udev) < 0) { in create_lvs_device()
82 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in destroy_lvs_device() local
84 if (hcd->driver->free_dev) in destroy_lvs_device()
85 hcd->driver->free_dev(hcd, udev); in destroy_lvs_device()
300 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in lvs_rh_work() local
336 if (hcd->usb_phy) in lvs_rh_work()
337 usb_phy_notify_connect(hcd->usb_phy, in lvs_rh_work()
[all …]
DKconfig139 adapter you will need this "ftdi-elan" module as well as the "u132-hcd"
/linux-4.1.27/drivers/usb/dwc2/
Dhcd.c715 struct usb_hcd *hcd; in dwc2_hc_setup_align_buf() local
740 hcd = dwc2_hsotg_to_hcd(hsotg); in dwc2_hc_setup_align_buf()
741 usb_hcd_unmap_urb_for_dma(hcd, usb_urb); in dwc2_hc_setup_align_buf()
1435 struct usb_hcd *hcd = dwc2_hsotg_to_hcd(hsotg); in dwc2_host_is_b_hnp_enabled() local
1437 return hcd->self.b_hnp_enable; in dwc2_host_is_b_hnp_enabled()
2079 static struct dwc2_hsotg *dwc2_hcd_to_hsotg(struct usb_hcd *hcd) in dwc2_hcd_to_hsotg() argument
2083 p = (struct wrapper_priv_data *) &hcd->hcd_priv; in dwc2_hcd_to_hsotg()
2087 static int _dwc2_hcd_start(struct usb_hcd *hcd);
2091 struct usb_hcd *hcd = dwc2_hsotg_to_hcd(hsotg); in dwc2_host_start() local
2093 hcd->self.is_b_host = dwc2_hcd_is_b_host(hsotg); in dwc2_host_start()
[all …]
DMakefile8 dwc2-y += hcd.o hcd_intr.o
Dcore.h789 extern void dwc2_enable_global_interrupts(struct dwc2_hsotg *hcd);
790 extern void dwc2_disable_global_interrupts(struct dwc2_hsotg *hcd);
/linux-4.1.27/drivers/usb/musb/
Dmusb_host.c97 struct musb *hcd_to_musb(struct usb_hcd *hcd) in hcd_to_musb() argument
99 return *(struct musb **) hcd->hcd_priv; in hcd_to_musb()
316 usb_hcd_unlink_urb_from_ep(musb->hcd, urb); in musb_giveback()
318 usb_hcd_giveback_urb(musb->hcd, urb, status); in musb_giveback()
1463 usb_hcd_unmap_urb_for_dma(musb->hcd, urb); in musb_host_tx()
1900 usb_hcd_unmap_urb_for_dma(musb->hcd, urb); in musb_host_rx()
2073 struct usb_hcd *hcd, in musb_urb_enqueue() argument
2078 struct musb *musb = hcd_to_musb(hcd); in musb_urb_enqueue()
2091 ret = usb_hcd_link_urb_to_ep(hcd, urb); in musb_urb_enqueue()
2117 usb_hcd_unlink_urb_from_ep(hcd, urb); in musb_urb_enqueue()
[all …]
Dmusb_virthub.c70 usb_hcd_poll_rh_status(musb->hcd); in musb_host_finish_resume()
211 usb_hcd_poll_rh_status(musb->hcd); in musb_port_reset()
224 usb_hcd_poll_rh_status(musb->hcd); in musb_root_disconnect()
252 int musb_hub_status_data(struct usb_hcd *hcd, char *buf) in musb_hub_status_data() argument
254 struct musb *musb = hcd_to_musb(hcd); in musb_hub_status_data()
281 struct usb_hcd *hcd, in musb_hub_control() argument
288 struct musb *musb = hcd_to_musb(hcd); in musb_hub_control()
295 if (unlikely(!HCD_HW_ACCESSIBLE(hcd))) { in musb_hub_control()
326 if (!hcd->self.is_b_host) in musb_hub_control()
392 if (!hcd->self.is_b_host && musb_has_gadget(musb)) in musb_hub_control()
Dmusb_host.h99 static inline struct musb *hcd_to_musb(struct usb_hcd *hcd) in hcd_to_musb() argument
134 extern int musb_hub_status_data(struct usb_hcd *hcd, char *buf);
135 extern int musb_hub_control(struct usb_hcd *hcd,
Dmusb_core.c474 struct usb_hcd *hcd = musb->hcd; in musb_hnp_stop() local
489 if (hcd) in musb_hnp_stop()
490 hcd->self.is_b_host = 0; in musb_hnp_stop()
745 musb->is_active = musb->hcd->self.b_hnp_enable; in musb_stage0_irq()
759 struct usb_hcd *hcd = musb->hcd; in musb_stage0_irq() local
796 if (musb->hcd) in musb_stage0_irq()
797 musb->hcd->self.is_b_host = 1; in musb_stage0_irq()
804 if (hcd) in musb_stage0_irq()
805 hcd->self.is_b_host = 0; in musb_stage0_irq()
838 if (musb->hcd) in musb_stage0_irq()
[all …]
Dmusb_core.h417 struct usb_hcd *hcd; /* the usb hcd */ member
Domap2430.c91 usb_hcd_poll_rh_status(musb->hcd); in musb_do_idle()
/linux-4.1.27/drivers/usb/host/whci/
DKbuild1 obj-$(CONFIG_USB_WHCI_HCD) += whci-hcd.o
3 whci-hcd-y := \
6 hcd.o \
Dint.c31 irqreturn_t whc_int_handler(struct usb_hcd *hcd) in whc_int_handler() argument
33 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(hcd); in whc_int_handler()
Dwhcd.h167 irqreturn_t whc_int_handler(struct usb_hcd *hcd);
/linux-4.1.27/drivers/staging/octeon-usb/
Docteon-hcd.c522 static int octeon_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, in octeon_map_urb_for_dma() argument
531 ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); in octeon_map_urb_for_dma()
543 static void octeon_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) in octeon_unmap_urb_for_dma() argument
545 usb_hcd_unmap_urb_for_dma(hcd, urb); in octeon_unmap_urb_for_dma()
1375 struct usb_hcd *hcd = octeon_to_hcd(priv); in cvmx_usb_start_channel_control() local
1376 struct device *dev = hcd->self.controller; in cvmx_usb_start_channel_control()
1992 struct usb_hcd *hcd = octeon_to_hcd(priv); in octeon_usb_urb_complete_callback() local
1993 struct device *dev = hcd->self.controller; in octeon_usb_urb_complete_callback()
2445 struct usb_hcd *hcd = octeon_to_hcd(priv); in cvmx_usb_poll_channel() local
2446 struct device *dev = hcd->self.controller; in cvmx_usb_poll_channel()
[all …]
DMakefile1 obj-${CONFIG_OCTEON_USB} := octeon-hcd.o
/linux-4.1.27/drivers/usb/storage/
Duas-detect.h59 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in uas_use_uas_driver() local
124 hcd->driver->description); in uas_use_uas_driver()
130 if (udev->speed >= USB_SPEED_SUPER && !hcd->can_do_streams) { in uas_use_uas_driver()
133 hcd_to_bus(hcd)->bus_name); in uas_use_uas_driver()
/linux-4.1.27/Documentation/DocBook/
D.usb.xml.cmd2 …drivers/usb/core/usb.c drivers/usb/core/hub.c drivers/usb/core/hcd.c drivers/usb/core/hcd-pci.c dr…
/linux-4.1.27/Documentation/usb/
Dohci.txt3 The "ohci-hcd" driver is a USB Host Controller Driver (HCD) that is derived
19 - less code, by using the upper level "hcd" framework
23 The "ohci-hcd" driver handles all USB 1.1 transfer types. Transfers of all
Dacm.txt59 uhci-hcd.ko ohci-hcd.ko or ehci-hcd.ko
Dehci.txt91 # modprobe ehci-hcd
95 # rmmod ehci-hcd
98 "ohci-hcd" or "uhci-hcd". In case of any trouble with the EHCI driver,
181 default ehci-hcd driver uses the minimum latency, which means that if
/linux-4.1.27/Documentation/ia64/
Dxen.txt47 --builtin mptscsih --builtin uhci-hcd --builtin ohci-hcd \
48 --builtin ehci-hcd
152 --builtin mptbase --builtin mptscsih --builtin uhci-hcd \
153 --builtin ohci-hcd --builtin ehci-hcd
/linux-4.1.27/include/linux/platform_data/
Dusb-ohci-s3c2410.h26 struct usb_hcd *hcd; member
/linux-4.1.27/drivers/usb/phy/
Dphy-mv-usb.c206 struct usb_hcd *hcd; in mv_otg_start_host() local
213 hcd = bus_to_hcd(otg->host); in mv_otg_start_host()
216 usb_add_hcd(hcd, hcd->irq, IRQF_SHARED); in mv_otg_start_host()
217 device_wakeup_enable(hcd->self.controller); in mv_otg_start_host()
219 usb_remove_hcd(hcd); in mv_otg_start_host()
Dphy-msm-usb.c664 struct usb_hcd *hcd; in msm_otg_start_host() local
669 hcd = bus_to_hcd(phy->otg->host); in msm_otg_start_host()
684 usb_add_hcd(hcd, hcd->irq, IRQF_SHARED); in msm_otg_start_host()
685 device_wakeup_enable(hcd->self.controller); in msm_otg_start_host()
691 usb_remove_hcd(hcd); in msm_otg_start_host()
703 struct usb_hcd *hcd; in msm_otg_set_host() local
728 hcd = bus_to_hcd(host); in msm_otg_set_host()
729 hcd->power_budget = motg->pdata->power_budget; in msm_otg_set_host()
/linux-4.1.27/arch/arm/mach-shmobile/
Dsetup-r8a7778.c151 static int ehci_init_internal_buffer(struct usb_hcd *hcd) in ehci_init_internal_buffer() argument
158 iowrite32(0x00ff0040, hcd->regs + 0x0094); in ehci_init_internal_buffer()
160 iowrite32(0x00000001, hcd->regs + 0x009C); in ehci_init_internal_buffer()
Dsetup-r8a7779.c366 static int ehci_init_internal_buffer(struct usb_hcd *hcd) in ehci_init_internal_buffer() argument
373 iowrite32(0x00ff0040, hcd->regs + 0x0094); in ehci_init_internal_buffer()
375 iowrite32(0x00000001, hcd->regs + 0x009C); in ehci_init_internal_buffer()
/linux-4.1.27/arch/arm/mach-imx/devices/
DMakefile8 obj-$(CONFIG_IMX_HAVE_PLATFORM_IMX21_HCD) += platform-imx21-hcd.o
/linux-4.1.27/arch/avr32/boards/hammerhead/
DKconfig6 bool "Philips ISP116x-hcd USB support"
/linux-4.1.27/tools/usb/usbip/
DREADME56 client:# insmod vhci-hcd.ko
140 deux:# insmod path/to/vhci-hcd.ko
/linux-4.1.27/drivers/usb/early/
Dehci-dbgp.c974 int dbgp_reset_prep(struct usb_hcd *hcd) in dbgp_reset_prep() argument
976 int ret = xen_dbgp_reset_prep(hcd); in dbgp_reset_prep()
1002 int dbgp_external_startup(struct usb_hcd *hcd) in dbgp_external_startup() argument
1004 return xen_dbgp_external_startup(hcd) ?: _dbgp_external_startup(); in dbgp_external_startup()
/linux-4.1.27/Documentation/x86/
Dearlyprintk.txt32 Kernel modules: ehci-hcd
/linux-4.1.27/Documentation/
Dkernel-parameters.txt3731 uhci-hcd.ignore_oc=