/linux-4.4.14/drivers/usb/core/ |
D | hcd.c | 426 rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) in rh_string() argument 443 s = hcd->self.bus_name; in rh_string() 447 s = hcd->product_desc; in rh_string() 452 init_utsname()->release, hcd->driver->description); in rh_string() 465 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() argument 481 status = usb_hcd_link_urb_to_ep(hcd, urb); in rh_call_control() 485 urb->hcpriv = hcd; /* Indicate it's queued */ in rh_call_control() 530 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control() 538 device_set_wakeup_enable(&hcd->self.root_hub->dev, 0); in rh_call_control() 543 if (device_can_wakeup(&hcd->self.root_hub->dev) in rh_call_control() [all …]
|
D | hcd-pci.c | 56 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 …]
|
D | buffer.c | 60 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() 101 hcd->pool[i] = NULL; in hcd_buffer_destroy() 118 struct usb_hcd *hcd = bus_to_hcd(bus); in hcd_buffer_alloc() local [all …]
|
D | hub.c | 734 drv = clear->hcd->driver; in hub_tt_work() 736 (drv->clear_tt_buffer_complete)(clear->hcd, clear->ep); in hub_tt_work() 820 clear->hcd = bus_to_hcd(udev->bus); in usb_hub_clear_tt_buffer() 1030 struct usb_hcd *hcd; in hub_activate() local 1104 hcd = bus_to_hcd(hdev->bus); in hub_activate() 1105 if (hcd->driver->update_hub_device) { in hub_activate() 1106 ret = hcd->driver->update_hub_device(hcd, hdev, in hub_activate() 1356 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 …]
|
D | message.c | 1148 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 …]
|
D | Makefile | 5 usbcore-y := usb.o hub.o hcd.o urb.o message.o driver.o 10 usbcore-$(CONFIG_PCI) += hcd-pci.o
|
D | quirks.c | 265 struct usb_hcd *hcd; in usb_amd_resume_quirk() local 267 hcd = bus_to_hcd(udev->bus); in usb_amd_resume_quirk() 269 if (udev->level == 1 && hcd->amd_resume_bug == 1) in usb_amd_resume_quirk()
|
D | port.c | 318 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()
|
D | usb-acpi.c | 173 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()
|
D | usb.c | 279 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()
|
D | driver.c | 1872 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_set_usb2_hardware_lpm() local 1878 if (hcd->driver->set_usb2_hw_lpm) { in usb_set_usb2_hardware_lpm() 1879 ret = hcd->driver->set_usb2_hw_lpm(hcd, udev, enable); in usb_set_usb2_hardware_lpm()
|
/linux-4.4.14/drivers/usb/host/ |
D | ohci-omap.c | 178 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 …]
|
D | xhci-plat.c | 30 static int xhci_plat_setup(struct usb_hcd *hcd); 31 static int xhci_plat_start(struct usb_hcd *hcd); 50 static int xhci_plat_setup(struct usb_hcd *hcd) in xhci_plat_setup() argument 52 struct device_node *of_node = hcd->self.controller->of_node; in xhci_plat_setup() 57 ret = xhci_rcar_init_quirk(hcd); in xhci_plat_setup() 62 return xhci_gen_setup(hcd, xhci_plat_quirks); in xhci_plat_setup() 65 static int xhci_plat_start(struct usb_hcd *hcd) in xhci_plat_start() argument 67 struct device_node *of_node = hcd->self.controller->of_node; in xhci_plat_start() 71 xhci_rcar_start(hcd); in xhci_plat_start() 73 return xhci_run(hcd); in xhci_plat_start() [all …]
|
D | max3421-hcd.c | 337 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 …]
|
D | ohci-sm501.c | 21 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 …]
|
D | ohci-ps3.c | 24 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 …]
|
D | ohci-s3c2410.c | 52 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 …]
|
D | ehci-xilinx-of.c | 50 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 …]
|
D | ohci-sa1111.c | 45 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 …]
|
D | ehci-fsl.c | 61 struct usb_hcd *hcd; in fsl_ehci_drv_probe() local 98 hcd = usb_create_hcd(&fsl_ehci_hc_driver, &pdev->dev, in fsl_ehci_drv_probe() 100 if (!hcd) { in fsl_ehci_drv_probe() 106 hcd->regs = devm_ioremap_resource(&pdev->dev, res); in fsl_ehci_drv_probe() 107 if (IS_ERR(hcd->regs)) { in fsl_ehci_drv_probe() 108 retval = PTR_ERR(hcd->regs); in fsl_ehci_drv_probe() 112 hcd->rsrc_start = res->start; in fsl_ehci_drv_probe() 113 hcd->rsrc_len = resource_size(res); in fsl_ehci_drv_probe() 115 pdata->regs = hcd->regs; in fsl_ehci_drv_probe() 118 hcd->power_budget = pdata->power_budget; in fsl_ehci_drv_probe() [all …]
|
D | ohci-tmio.c | 72 #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 …]
|
D | ehci-sead3.c | 25 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 …]
|
D | ehci-ps3.c | 52 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 …]
|
D | ehci-sh.c | 18 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 …]
|
D | ohci-spear.c | 34 #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 …]
|
D | ohci-da8xx.c | 85 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 …]
|
D | ehci-msm.c | 39 #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() 88 hcd->irq = ret; in ehci_msm_probe() 97 hcd->rsrc_start = res->start; in ehci_msm_probe() [all …]
|
D | ehci-spear.c | 36 #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 …]
|
D | ehci-pmcmsp.c | 74 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 …]
|
D | uhci-platform.c | 14 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 …]
|
D | ohci-jz4740.c | 27 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 …]
|
D | ohci-exynos.c | 32 #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 …]
|
D | ehci-mv.c | 23 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 …]
|
D | uhci-grlib.c | 25 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 …]
|
D | ehci-atmel.c | 71 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 …]
|
D | ehci-w90x900.c | 39 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 …]
|
D | ehci-exynos.c | 50 #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 …]
|
D | ohci-ppc-of.c | 25 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 …]
|
D | ohci-pci.c | 34 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 …]
|
D | ohci-tilegx.c | 37 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 …]
|
D | ohci-at91.c | 98 struct usb_hcd *hcd = platform_get_drvdata(pdev); in at91_start_hc() local 99 struct ohci_regs __iomem *regs = hcd->regs; in at91_start_hc() 100 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_start_hc() 117 struct usb_hcd *hcd = platform_get_drvdata(pdev); in at91_stop_hc() local 118 struct ohci_regs __iomem *regs = hcd->regs; in at91_stop_hc() 119 struct ohci_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_stop_hc() 157 struct usb_hcd *hcd; in usb_hcd_at91_probe() local 169 hcd = usb_create_hcd(driver, dev, "at91"); in usb_hcd_at91_probe() 170 if (!hcd) in usb_hcd_at91_probe() 172 ohci_at91 = hcd_to_ohci_at91_priv(hcd); in usb_hcd_at91_probe() [all …]
|
D | Makefile | 8 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 31 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o 45 obj-$(CONFIG_USB_OXU210HP_HCD) += oxu210hp-hcd.o 46 obj-$(CONFIG_USB_ISP116X_HCD) += isp116x-hcd.o [all …]
|
D | ehci-st.c | 52 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() 61 writel(threshold, hcd->regs + AHB2STBUS_INSREG01); in st_ehci_platform_reset() 63 ehci->caps = hcd->regs + pdata->caps_offset; in st_ehci_platform_reset() 64 return ehci_setup(hcd); in st_ehci_platform_reset() 69 struct usb_hcd *hcd = platform_get_drvdata(dev); in st_ehci_platform_power_on() local 70 struct st_ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in st_ehci_platform_power_on() 120 struct usb_hcd *hcd = platform_get_drvdata(dev); in st_ehci_platform_power_off() local 121 struct st_ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in st_ehci_platform_power_off() [all …]
|
D | uhci-pci.c | 113 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 …]
|
D | ehci-tegra.c | 81 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() 361 static int tegra_ehci_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, in tegra_ehci_map_urb_for_dma() argument 370 ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); in tegra_ehci_map_urb_for_dma() 377 static void tegra_ehci_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) in tegra_ehci_unmap_urb_for_dma() argument [all …]
|
D | ehci-grlib.c | 88 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 …]
|
D | ehci-tilegx.c | 37 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 …]
|
D | ehci-platform.c | 54 static int ehci_platform_reset(struct usb_hcd *hcd) in ehci_platform_reset() argument 56 struct platform_device *pdev = to_platform_device(hcd->self.controller); in ehci_platform_reset() 58 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_platform_reset() 64 retval = pdata->pre_setup(hcd); in ehci_platform_reset() 69 ehci->caps = hcd->regs + pdata->caps_offset; in ehci_platform_reset() 70 retval = ehci_setup(hcd); in ehci_platform_reset() 81 struct usb_hcd *hcd = platform_get_drvdata(dev); in ehci_platform_power_on() local 82 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in ehci_platform_power_on() 118 struct usb_hcd *hcd = platform_get_drvdata(dev); in ehci_platform_power_off() local 119 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in ehci_platform_power_off() [all …]
|
D | ehci-mxc.c | 53 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 …]
|
D | ehci-ppc-of.c | 96 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 …]
|
D | ohci-st.c | 50 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 …]
|
D | ohci-pxa27x.c | 128 #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 …]
|
D | ohci-omap3.c | 65 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 …]
|
D | ehci-orion.c | 28 #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 …]
|
D | xhci-rcar.c | 59 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 …]
|
D | ohci-platform.c | 49 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() 86 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_platform_power_off() local 87 struct ohci_platform_priv *priv = hcd_to_ohci_priv(hcd); in ohci_platform_power_off() 115 struct usb_hcd *hcd; in ohci_platform_probe() local 142 hcd = usb_create_hcd(&ohci_platform_hc_driver, &dev->dev, in ohci_platform_probe() 144 if (!hcd) in ohci_platform_probe() 147 platform_set_drvdata(dev, hcd); in ohci_platform_probe() 149 priv = hcd_to_ohci_priv(hcd); in ohci_platform_probe() 150 ohci = hcd_to_ohci(hcd); in ohci_platform_probe() [all …]
|
D | ehci-omap.c | 105 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 …]
|
D | xhci-pci.c | 57 static int xhci_pci_setup(struct usb_hcd *hcd); 208 static int xhci_pci_setup(struct usb_hcd *hcd) in xhci_pci_setup() argument 211 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_setup() 214 xhci = hcd_to_xhci(hcd); in xhci_pci_setup() 218 retval = xhci_gen_setup(hcd, xhci_pci_quirks); in xhci_pci_setup() 222 if (!usb_hcd_is_primary_hcd(hcd)) in xhci_pci_setup() 244 struct usb_hcd *hcd; in xhci_pci_probe() local 263 hcd = dev_get_drvdata(&dev->dev); in xhci_pci_probe() 264 xhci = hcd_to_xhci(hcd); in xhci_pci_probe() 266 pci_name(dev), hcd); in xhci_pci_probe() [all …]
|
D | ohci-nxp.c | 166 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 …]
|
D | fhci-hcd.c | 327 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 …]
|
D | xhci-hub.c | 178 static void xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb2_hub_descriptor() argument 231 static void xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb3_hub_descriptor() argument 261 static void xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_hub_descriptor() argument 265 if (hcd->speed >= HCD_USB3) in xhci_hub_descriptor() 266 xhci_usb3_hub_descriptor(hcd, xhci, desc); in xhci_hub_descriptor() 268 xhci_usb2_hub_descriptor(hcd, xhci, desc); in xhci_hub_descriptor() 342 int xhci_find_slot_id_by_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_find_slot_id_by_port() argument 354 if (((speed >= USB_SPEED_SUPER) == (hcd->speed >= HCD_USB3)) in xhci_find_slot_id_by_port() 439 static void xhci_disable_port(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_disable_port() argument 443 if (hcd->speed >= HCD_USB3) { in xhci_disable_port() [all …]
|
D | ohci-hcd.c | 81 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() 212 if (!HCD_HW_ACCESSIBLE(hcd)) { in ohci_urb_enqueue() 220 retval = usb_hcd_link_urb_to_ep(hcd, urb); in ohci_urb_enqueue() 228 usb_hcd_unlink_urb_from_ep(hcd, urb); in ohci_urb_enqueue() 311 static int ohci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in ohci_urb_dequeue() argument 313 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_dequeue() 319 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in ohci_urb_dequeue() 346 ohci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep) in ohci_endpoint_disable() argument [all …]
|
D | sl811-hcd.c | 79 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 …]
|
D | ehci-hcd.c | 367 static void ehci_shutdown(struct usb_hcd *hcd) in ehci_shutdown() argument 369 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_shutdown() 422 static void ehci_stop (struct usb_hcd *hcd) in ehci_stop() argument 424 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_stop() 456 static int ehci_init(struct usb_hcd *hcd) in ehci_init() argument 458 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_init() 566 if (!(hcd->driver->flags & HCD_LOCAL_MEM)) in ehci_init() 567 hcd->self.sg_tablesize = ~0; in ehci_init() 572 static int ehci_run (struct usb_hcd *hcd) in ehci_run() argument 574 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_run() [all …]
|
D | uhci-hcd.c | 438 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 …]
|
D | isp116x-hcd.c | 590 static irqreturn_t isp116x_irq(struct usb_hcd *hcd) in isp116x_irq() argument 592 struct isp116x *isp116x = hcd_to_isp116x(hcd); in isp116x_irq() 613 hcd->state = HC_STATE_HALT; in isp116x_irq() 614 usb_hc_died(hcd); in isp116x_irq() 622 mod_timer(&hcd->rh_timer, jiffies in isp116x_irq() 626 usb_hcd_resume_root_hub(hcd); in isp116x_irq() 680 static int isp116x_urb_enqueue(struct usb_hcd *hcd, in isp116x_urb_enqueue() argument 684 struct isp116x *isp116x = hcd_to_isp116x(hcd); in isp116x_urb_enqueue() 711 if (!HC_IS_RUNNING(hcd->state)) { in isp116x_urb_enqueue() 716 ret = usb_hcd_link_urb_to_ep(hcd, urb); in isp116x_urb_enqueue() [all …]
|
D | ehci-pci.c | 100 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 …]
|
D | imx21-hcd.c | 78 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 …]
|
D | ehci-hub.c | 51 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() 225 static int ehci_bus_suspend (struct usb_hcd *hcd) in ehci_bus_suspend() argument 227 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_bus_suspend() 250 if (hcd->self.root_hub->do_remote_wakeup) { in ehci_bus_suspend() 282 if (hcd->self.root_hub->do_remote_wakeup) { in ehci_bus_suspend() 358 if (!hcd->self.root_hub->do_remote_wakeup) in ehci_bus_suspend() 375 static int ehci_bus_resume (struct usb_hcd *hcd) in ehci_bus_resume() argument 377 struct ehci_hcd *ehci = hcd_to_ehci (hcd); in ehci_bus_resume() [all …]
|
D | xhci.c | 281 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 …]
|
D | xhci-rcar.h | 15 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
|
D | xhci.h | 1489 static inline unsigned int hcd_index(struct usb_hcd *hcd) in hcd_index() argument 1491 if (hcd->speed == HCD_USB3) in hcd_index() 1665 int (*reset)(struct usb_hcd *hcd); 1666 int (*start)(struct usb_hcd *hcd); 1672 static inline struct xhci_hcd *hcd_to_xhci(struct usb_hcd *hcd) in hcd_to_xhci() argument 1676 if (usb_hcd_is_primary_hcd(hcd)) in hcd_to_xhci() 1677 primary_hcd = hcd; in hcd_to_xhci() 1679 primary_hcd = hcd->primary_hcd; in hcd_to_xhci() 1822 int xhci_init(struct usb_hcd *hcd); 1823 int xhci_run(struct usb_hcd *hcd); [all …]
|
D | oxu210hp-hcd.c | 71 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 …]
|
D | ohci-hub.c | 152 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 …]
|
D | isp1362-hcd.c | 106 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 …]
|
D | u132-hcd.c | 230 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 …]
|
D | uhci-hub.c | 185 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()
|
D | r8a66597-hcd.c | 55 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 …]
|
D | fotg210-hcd.c | 460 struct usb_hcd *hcd; in fill_async_buffer() local 467 hcd = bus_to_hcd(buf->bus); in fill_async_buffer() 468 fotg210 = hcd_to_fotg210(hcd); in fill_async_buffer() 527 struct usb_hcd *hcd; in fill_periodic_buffer() local 542 hcd = bus_to_hcd(buf->bus); in fill_periodic_buffer() 543 fotg210 = hcd_to_fotg210(hcd); in fill_periodic_buffer() 652 struct usb_hcd *hcd; in fill_registers_buffer() local 660 hcd = bus_to_hcd(buf->bus); in fill_registers_buffer() 661 fotg210 = hcd_to_fotg210(hcd); in fill_registers_buffer() 667 if (!HCD_HW_ACCESSIBLE(hcd)) { in fill_registers_buffer() [all …]
|
D | ehci-dbg.c | 499 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 636 hcd = bus_to_hcd(buf->bus); in fill_periodic_buffer() 637 ehci = hcd_to_ehci (hcd); in fill_periodic_buffer() 781 struct usb_hcd *hcd; in fill_registers_buffer() local 789 hcd = bus_to_hcd(buf->bus); in fill_registers_buffer() 790 ehci = hcd_to_ehci (hcd); in fill_registers_buffer() 796 if (!HCD_HW_ACCESSIBLE(hcd)) { in fill_registers_buffer() [all …]
|
D | ohci.h | 478 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);
|
D | ehci.h | 271 static inline struct ehci_hcd *hcd_to_ehci (struct usb_hcd *hcd) in hcd_to_ehci() argument 273 return (struct ehci_hcd *) (hcd->hcd_priv); in hcd_to_ehci() 873 int (*reset)(struct usb_hcd *hcd); 874 int (*port_power)(struct usb_hcd *hcd, 880 extern int ehci_setup(struct usb_hcd *hcd); 886 extern int ehci_suspend(struct usb_hcd *hcd, bool do_wakeup); 887 extern int ehci_resume(struct usb_hcd *hcd, bool force_reset); 892 extern int ehci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
|
D | fhci-hub.c | 181 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()
|
D | fhci.h | 468 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);
|
D | sl811.h | 158 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()
|
D | xhci-ring.c | 599 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 …]
|
D | ohci-dbg.c | 582 struct usb_hcd *hcd; in fill_registers_buffer() local 591 hcd = ohci_to_hcd(ohci); in fill_registers_buffer() 604 hcd->self.controller->bus->name, in fill_registers_buffer() 605 dev_name(hcd->self.controller), in fill_registers_buffer() 606 hcd->product_desc, in fill_registers_buffer() 609 if (!HCD_HW_ACCESSIBLE(hcd)) { in fill_registers_buffer()
|
D | Kconfig | 25 module will be called xhci-hcd. 81 module will be called ehci-hcd. 328 module will be called oxu210hp-hcd. 339 module will be called isp116x-hcd. 349 module will be called isp1362-hcd. 360 module will be called fotg210-hcd. 371 be called max3421-hcd. 386 module will be called ohci-hcd. 596 module will be called uhci-hcd. 646 USB-to-PCMCIA adapter, and this "u132-hcd" module is a USB host [all …]
|
D | r8a66597.h | 137 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()
|
D | fotg210.h | 189 static inline struct fotg210_hcd *hcd_to_fotg210(struct usb_hcd *hcd) in hcd_to_fotg210() argument 191 return (struct fotg210_hcd *)(hcd->hcd_priv); in hcd_to_fotg210()
|
D | uhci-hcd.h | 458 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()
|
D | uhci-q.c | 1409 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()
|
D | fhci-sched.c | 510 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()
|
D | xhci-trace.h | 15 #define TRACE_SYSTEM xhci-hcd
|
D | ehci-q.c | 145 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()
|
D | isp116x.h | 291 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()
|
D | imx21-hcd.h | 422 struct usb_hcd *hcd; member
|
D | oxu210hp.h | 349 struct usb_hcd *hcd[2]; member
|
D | isp1362.h | 569 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()
|
D | xhci-mem.c | 1073 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()
|
D | ehci-sched.c | 37 static int ehci_get_frame (struct usb_hcd *hcd);
|
/linux-4.4.14/drivers/usb/isp1760/ |
D | isp1760-hcd.c | 37 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 …]
|
D | isp1760-core.c | 147 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()
|
D | Makefile | 2 isp1760-$(CONFIG_USB_ISP1760_HCD) += isp1760-hcd.o
|
D | isp1760-core.h | 48 struct isp1760_hcd hcd; member
|
D | isp1760-hcd.h | 51 struct usb_hcd *hcd; member
|
/linux-4.4.14/drivers/usb/chipidea/ |
D | host.c | 36 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() 86 ret = ehci_setup(hcd); in ehci_ci_reset() 103 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq() 108 struct usb_hcd *hcd; in host_start() local 116 hcd = usb_create_hcd(&ci_ehci_hc_driver, ci->dev, dev_name(ci->dev)); in host_start() [all …]
|
D | ci.h | 242 struct usb_hcd *hcd; member
|
/linux-4.4.14/include/linux/usb/ |
D | hcd.h | 123 #define HCD_HW_ACCESSIBLE(hcd) ((hcd)->flags & (1U << HCD_FLAG_HW_ACCESSIBLE)) argument 124 #define HCD_POLL_RH(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_RH)) argument 125 #define HCD_POLL_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_PENDING)) argument 126 #define HCD_WAKEUP_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_WAKEUP_PENDING)) argument 127 #define HCD_RH_RUNNING(hcd) ((hcd)->flags & (1U << HCD_FLAG_RH_RUNNING)) argument 128 #define HCD_DEAD(hcd) ((hcd)->flags & (1U << HCD_FLAG_DEAD)) argument 135 #define HCD_INTF_AUTHORIZED(hcd) \ argument 136 ((hcd)->flags & (1U << HCD_FLAG_INTF_AUTHORIZED)) 143 #define HCD_DEV_AUTHORIZED(hcd) \ argument 144 ((hcd)->flags & (1U << HCD_FLAG_DEV_AUTHORIZED)) [all …]
|
D | ehci-dbgp.h | 56 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()
|
D | ehci_pdriver.h | 60 int (*pre_setup)(struct usb_hcd *hcd);
|
/linux-4.4.14/drivers/usb/usbip/ |
D | vhci_hcd.c | 46 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 …]
|
D | Makefile | 6 obj-$(CONFIG_USBIP_VHCI_HCD) += vhci-hcd.o 7 vhci-hcd-y := vhci_sysfs.o vhci_tx.o vhci_rx.o vhci_hcd.o
|
D | vhci.h | 114 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()
|
D | Kconfig | 18 tristate "VHCI hcd" 25 module will be called vhci-hcd.
|
/linux-4.4.14/drivers/usb/c67x00/ |
D | c67x00-hcd.c | 61 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 …]
|
D | c67x00-hcd.h | 101 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,
|
D | c67x00-sched.c | 319 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 …]
|
D | Makefile | 7 c67x00-y := c67x00-drv.o c67x00-ll-hpi.o c67x00-hcd.o c67x00-sched.o
|
/linux-4.4.14/drivers/xen/ |
D | dbgp.c | 9 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.4.14/drivers/usb/renesas_usbhs/ |
D | mod_host.c | 466 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.4.14/Documentation/DocBook/ |
D | usb.xml.db | 112 API-usb-hcd-link-urb-to-ep 113 API-usb-hcd-check-unlink-urb 114 API-usb-hcd-unlink-urb-from-ep 115 API-usb-hcd-giveback-urb 118 API-usb-hcd-resume-root-hub 120 API-usb-hcd-irq 122 API-usb-create-shared-hcd 123 API-usb-create-hcd 124 API-usb-add-hcd 125 API-usb-remove-hcd [all …]
|
D | .usb.xml.cmd | 2 …drivers/usb/core/usb.c drivers/usb/core/hub.c drivers/usb/core/hcd.c drivers/usb/core/hcd-pci.c dr…
|
/linux-4.4.14/drivers/usb/gadget/udc/ |
D | dummy_hcd.c | 271 static inline struct dummy_hcd *hcd_to_dummy_hcd(struct usb_hcd *hcd) in hcd_to_dummy_hcd() argument 273 return (struct dummy_hcd *) (hcd->hcd_priv); in hcd_to_dummy_hcd() 1209 struct usb_hcd *hcd, in dummy_urb_enqueue() argument 1224 dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_urb_enqueue() 1233 rc = usb_hcd_link_urb_to_ep(hcd, urb); in dummy_urb_enqueue() 1259 static int dummy_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in dummy_urb_dequeue() argument 1267 dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_urb_dequeue() 1270 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in dummy_urb_dequeue() 1949 static int dummy_hub_status(struct usb_hcd *hcd, char *buf) in dummy_hub_status() argument 1955 dum_hcd = hcd_to_dummy_hcd(hcd); in dummy_hub_status() [all …]
|
D | Kconfig | 24 # - debug/dummy gadget+hcd is last.
|
/linux-4.4.14/drivers/usb/dwc2/ |
D | hcd.c | 710 struct usb_hcd *hcd; in dwc2_hc_setup_align_buf() local 733 hcd = dwc2_hsotg_to_hcd(hsotg); in dwc2_hc_setup_align_buf() 734 usb_hcd_unmap_urb_for_dma(hcd, usb_urb); in dwc2_hc_setup_align_buf() 1441 struct usb_hcd *hcd = dwc2_hsotg_to_hcd(hsotg); in dwc2_host_is_b_hnp_enabled() local 1443 return hcd->self.b_hnp_enable; in dwc2_host_is_b_hnp_enabled() 2129 static struct dwc2_hsotg *dwc2_hcd_to_hsotg(struct usb_hcd *hcd) in dwc2_hcd_to_hsotg() argument 2133 p = (struct wrapper_priv_data *) &hcd->hcd_priv; in dwc2_hcd_to_hsotg() 2137 static int _dwc2_hcd_start(struct usb_hcd *hcd); 2141 struct usb_hcd *hcd = dwc2_hsotg_to_hcd(hsotg); in dwc2_host_start() local 2143 hcd->self.is_b_host = dwc2_hcd_is_b_host(hsotg); in dwc2_host_start() [all …]
|
D | Makefile | 8 dwc2-y += hcd.o hcd_intr.o
|
D | core.h | 905 extern void dwc2_enable_global_interrupts(struct dwc2_hsotg *hcd); 906 extern void dwc2_disable_global_interrupts(struct dwc2_hsotg *hcd);
|
/linux-4.4.14/drivers/usb/misc/ |
D | lvstest.c | 48 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 …]
|
D | Kconfig | 139 adapter you will need this "ftdi-elan" module as well as the "u132-hcd"
|
/linux-4.4.14/drivers/usb/musb/ |
D | musb_virthub.c | 70 usb_hcd_poll_rh_status(musb->hcd); in musb_host_finish_resume() 213 usb_hcd_poll_rh_status(musb->hcd); in musb_port_reset() 226 usb_hcd_poll_rh_status(musb->hcd); in musb_root_disconnect() 254 int musb_hub_status_data(struct usb_hcd *hcd, char *buf) in musb_hub_status_data() argument 256 struct musb *musb = hcd_to_musb(hcd); in musb_hub_status_data() 283 struct usb_hcd *hcd, in musb_hub_control() argument 290 struct musb *musb = hcd_to_musb(hcd); in musb_hub_control() 297 if (unlikely(!HCD_HW_ACCESSIBLE(hcd))) { in musb_hub_control() 328 if (!hcd->self.is_b_host) in musb_hub_control() 394 if (!hcd->self.is_b_host && musb_has_gadget(musb)) in musb_hub_control()
|
D | musb_host.c | 97 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() 326 usb_hcd_unlink_urb_from_ep(musb->hcd, urb); in musb_giveback() 328 usb_hcd_giveback_urb(musb->hcd, urb, status); in musb_giveback() 1508 usb_hcd_unmap_urb_for_dma(musb->hcd, urb); in musb_host_tx() 2019 usb_hcd_unmap_urb_for_dma(musb->hcd, urb); in musb_host_rx() 2192 struct usb_hcd *hcd, in musb_urb_enqueue() argument 2197 struct musb *musb = hcd_to_musb(hcd); in musb_urb_enqueue() 2210 ret = usb_hcd_link_urb_to_ep(hcd, urb); in musb_urb_enqueue() 2236 usb_hcd_unlink_urb_from_ep(hcd, urb); in musb_urb_enqueue() [all …]
|
D | musb_host.h | 99 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,
|
D | musb_core.c | 488 struct usb_hcd *hcd = musb->hcd; in musb_hnp_stop() local 503 if (hcd) in musb_hnp_stop() 504 hcd->self.is_b_host = 0; in musb_hnp_stop() 759 musb->is_active = musb->hcd->self.b_hnp_enable; in musb_stage0_irq() 773 struct usb_hcd *hcd = musb->hcd; in musb_stage0_irq() local 810 if (musb->hcd) in musb_stage0_irq() 811 musb->hcd->self.is_b_host = 1; in musb_stage0_irq() 818 if (hcd) in musb_stage0_irq() 819 hcd->self.is_b_host = 0; in musb_stage0_irq() 852 if (musb->hcd) in musb_stage0_irq() [all …]
|
D | musb_core.h | 424 struct usb_hcd *hcd; /* the usb hcd */ member
|
D | omap2430.c | 91 usb_hcd_poll_rh_status(musb->hcd); in musb_do_idle()
|
/linux-4.4.14/drivers/usb/host/whci/ |
D | Kbuild | 1 obj-$(CONFIG_USB_WHCI_HCD) += whci-hcd.o 3 whci-hcd-y := \ 6 hcd.o \
|
D | int.c | 31 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()
|
D | whcd.h | 167 irqreturn_t whc_int_handler(struct usb_hcd *hcd);
|
/linux-4.4.14/drivers/staging/octeon-usb/ |
D | octeon-hcd.c | 528 static int octeon_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb, in octeon_map_urb_for_dma() argument 537 ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); in octeon_map_urb_for_dma() 549 static void octeon_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) in octeon_unmap_urb_for_dma() argument 551 usb_hcd_unmap_urb_for_dma(hcd, urb); in octeon_unmap_urb_for_dma() 1381 struct usb_hcd *hcd = octeon_to_hcd(priv); in cvmx_usb_start_channel_control() local 1382 struct device *dev = hcd->self.controller; in cvmx_usb_start_channel_control() 1998 struct usb_hcd *hcd = octeon_to_hcd(priv); in octeon_usb_urb_complete_callback() local 1999 struct device *dev = hcd->self.controller; in octeon_usb_urb_complete_callback() 2451 struct usb_hcd *hcd = octeon_to_hcd(priv); in cvmx_usb_poll_channel() local 2452 struct device *dev = hcd->self.controller; in cvmx_usb_poll_channel() [all …]
|
D | Makefile | 1 obj-${CONFIG_OCTEON_USB} := octeon-hcd.o
|
/linux-4.4.14/drivers/usb/storage/ |
D | uas-detect.h | 59 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.4.14/Documentation/usb/ |
D | ohci.txt | 3 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
|
D | acm.txt | 59 uhci-hcd.ko ohci-hcd.ko or ehci-hcd.ko
|
D | ehci.txt | 91 # 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.4.14/Documentation/ia64/ |
D | xen.txt | 47 --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.4.14/include/linux/platform_data/ |
D | usb-ohci-s3c2410.h | 26 struct usb_hcd *hcd; member
|
/linux-4.4.14/drivers/usb/phy/ |
D | phy-mv-usb.c | 206 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()
|
D | phy-msm-usb.c | 690 struct usb_hcd *hcd; in msm_otg_start_host() local 695 hcd = bus_to_hcd(phy->otg->host); in msm_otg_start_host() 710 usb_add_hcd(hcd, hcd->irq, IRQF_SHARED); in msm_otg_start_host() 711 device_wakeup_enable(hcd->self.controller); in msm_otg_start_host() 717 usb_remove_hcd(hcd); in msm_otg_start_host() 729 struct usb_hcd *hcd; in msm_otg_set_host() local 754 hcd = bus_to_hcd(host); in msm_otg_set_host() 755 hcd->power_budget = motg->pdata->power_budget; in msm_otg_set_host()
|
/linux-4.4.14/arch/arm/mach-imx/devices/ |
D | Makefile | 8 obj-$(CONFIG_IMX_HAVE_PLATFORM_IMX21_HCD) += platform-imx21-hcd.o
|
/linux-4.4.14/arch/avr32/boards/hammerhead/ |
D | Kconfig | 6 bool "Philips ISP116x-hcd USB support"
|
/linux-4.4.14/tools/usb/usbip/ |
D | README | 56 client:# insmod vhci-hcd.ko 140 deux:# insmod path/to/vhci-hcd.ko
|
/linux-4.4.14/drivers/usb/early/ |
D | ehci-dbgp.c | 974 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.4.14/Documentation/x86/ |
D | earlyprintk.txt | 32 Kernel modules: ehci-hcd
|
/linux-4.4.14/Documentation/ |
D | kernel-parameters.txt | 3851 uhci-hcd.ignore_oc=
|