| /linux/drivers/usb/core/ |
| H A D | hcd-pci.c | 10 #include <linux/usb/hcd.h> 41 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd, 45 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, in for_each_companion() argument 74 fn(pdev, hcd, companion, companion_hcd); in for_each_companion() 84 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_pre_add() argument 101 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_post_add() argument 110 companion_hcd->self.hs_companion = &hcd->self; in ehci_post_add() 122 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, in non_ehci_add() argument 128 hcd->self.hs_companion = &companion_hcd->self; in non_ehci_add() 133 static void ehci_remove(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_remove() argument [all …]
|
| H A D | buffer.c | 3 * DMA memory management for framework level HCD code (hc_driver) 21 #include <linux/usb/hcd.h> 53 * @hcd: the bus whose buffer pools are to be initialized 65 int hcd_buffer_create(struct usb_hcd *hcd) in hcd_buffer_create() argument 70 if (hcd->localmem_pool || !hcd_uses_dma(hcd)) in hcd_buffer_create() 78 hcd->pool[i] = dma_pool_create(name, hcd->self.sysdev, in hcd_buffer_create() 80 if (!hcd->pool[i]) { in hcd_buffer_create() 81 hcd_buffer_destroy(hcd); in hcd_buffer_create() 91 * @hcd: the bus whose buffer pools are to be destroyed 97 void hcd_buffer_destroy(struct usb_hcd *hcd) in hcd_buffer_destroy() argument [all …]
|
| /linux/drivers/usb/isp1760/ |
| H A D | isp1760-hcd.c | 23 #include <linux/usb/hcd.h> 34 #include "isp1760-hcd.h" 41 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh, 44 static inline struct isp1760_hcd *hcd_to_priv(struct usb_hcd *hcd) in hcd_to_priv() argument 46 return *(struct isp1760_hcd **)hcd->hcd_priv; in hcd_to_priv() 150 /* the rest is HCD-private */ 200 static u32 isp1760_hcd_read(struct usb_hcd *hcd, u32 field) in isp1760_hcd_read() argument 202 struct isp1760_hcd *priv = hcd_to_priv(hcd); in isp1760_hcd_read() 225 static void isp1760_hcd_write(struct usb_hcd *hcd, u32 field, u32 val) in isp1760_hcd_write() argument 227 struct isp1760_hcd *priv = hcd_to_priv(hcd); in isp1760_hcd_write() [all …]
|
| H A D | isp1760-core.c | 25 #include "isp1760-hcd.h" 31 struct isp1760_hcd *hcd = &isp->hcd; in isp1760_init_core() local 46 isp1760_field_set(hcd->fields, SW_RESET_RESET_ALL); in isp1760_init_core() 50 if ((isp->devflags & ISP1760_FLAG_ANALOG_OC) && hcd->is_isp1763) { in isp1760_init_core() 56 isp1760_field_clear(hcd->fields, HW_DATA_BUS_WIDTH); in isp1760_init_core() 58 isp1760_field_set(hcd->fields, HW_DATA_BUS_WIDTH); in isp1760_init_core() 60 isp1760_field_set(hcd->fields, HW_ANA_DIGI_OC); in isp1760_init_core() 62 isp1760_field_set(hcd->fields, HW_DACK_POL_HIGH); in isp1760_init_core() 64 isp1760_field_set(hcd->fields, HW_DREQ_POL_HIGH); in isp1760_init_core() 66 isp1760_field_set(hcd->fields, HW_INTR_HIGH_ACT); in isp1760_init_core() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | ohci-da8xx.c | 3 * OHCI HCD (Host Controller Driver) for USB. 23 #include <linux/usb/hcd.h> 33 static int (*orig_ohci_hub_control)(struct usb_hcd *hcd, u16 typeReq, 35 static int (*orig_ohci_hub_status_data)(struct usb_hcd *hcd, char *buf); 38 struct usb_hcd *hcd; member 46 #define to_da8xx_ohci(hcd) (struct da8xx_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument 51 static int ohci_da8xx_enable(struct usb_hcd *hcd) in ohci_da8xx_enable() argument 53 struct da8xx_ohci_hcd *da8xx_ohci = to_da8xx_ohci(hcd); in ohci_da8xx_enable() 78 static void ohci_da8xx_disable(struct usb_hcd *hcd) in ohci_da8xx_disable() argument 80 struct da8xx_ohci_hcd *da8xx_ohci = to_da8xx_ohci(hcd); in ohci_da8xx_disable() [all …]
|
| H A D | ohci-ps3.c | 12 static int ps3_ohci_hc_reset(struct usb_hcd *hcd) in ps3_ohci_hc_reset() argument 14 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_reset() 21 static int ps3_ohci_hc_start(struct usb_hcd *hcd) in ps3_ohci_hc_start() argument 24 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_start() 36 dev_err(hcd->self.controller, "can't start %s\n", in ps3_ohci_hc_start() 37 hcd->self.bus_name); in ps3_ohci_hc_start() 38 ohci_stop(hcd); in ps3_ohci_hc_start() 70 struct usb_hcd *hcd; in ps3_ohci_probe() local 122 hcd = usb_create_hcd(&ps3_ohci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ohci_probe() 124 if (!hcd) { in ps3_ohci_probe() [all …]
|
| H A D | ehci-sh.c | 14 struct usb_hcd *hcd; member 17 static int ehci_sh_reset(struct usb_hcd *hcd) in ehci_sh_reset() argument 19 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_sh_reset() 21 ehci->caps = hcd->regs; in ehci_sh_reset() 23 return ehci_setup(hcd); in ehci_sh_reset() 78 struct usb_hcd *hcd; in ehci_hcd_sh_probe() local 90 /* initialize hcd */ in ehci_hcd_sh_probe() 91 hcd = usb_create_hcd(&ehci_sh_hc_driver, &pdev->dev, in ehci_hcd_sh_probe() 93 if (!hcd) { in ehci_hcd_sh_probe() 98 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in ehci_hcd_sh_probe() [all …]
|
| H A D | ehci-fsl.c | 21 #include <linux/usb/hcd.h> 50 struct usb_hcd *hcd; in fsl_ehci_drv_probe() local 83 hcd = __usb_create_hcd(&fsl_ehci_hc_driver, pdev->dev.parent, in fsl_ehci_drv_probe() 85 if (!hcd) { in fsl_ehci_drv_probe() 90 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in fsl_ehci_drv_probe() 91 if (IS_ERR(hcd->regs)) { in fsl_ehci_drv_probe() 92 retval = PTR_ERR(hcd->regs); in fsl_ehci_drv_probe() 96 hcd->rsrc_start = res->start; in fsl_ehci_drv_probe() 97 hcd->rsrc_len = resource_size(res); in fsl_ehci_drv_probe() 99 pdata->regs = hcd->regs; in fsl_ehci_drv_probe() [all …]
|
| H A D | ehci-ps3.c | 40 static int ps3_ehci_hc_reset(struct usb_hcd *hcd) in ps3_ehci_hc_reset() argument 43 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ps3_ehci_hc_reset() 46 ehci->caps = hcd->regs; in ps3_ehci_hc_reset() 48 result = ehci_setup(hcd); in ps3_ehci_hc_reset() 87 struct usb_hcd *hcd; in ps3_ehci_probe() local 138 hcd = usb_create_hcd(&ps3_ehci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ehci_probe() 140 if (!hcd) { in ps3_ehci_probe() 147 hcd->rsrc_start = dev->m_region->lpar_addr; in ps3_ehci_probe() 148 hcd->rsrc_len = dev->m_region->len; in ps3_ehci_probe() 150 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) in ps3_ehci_probe() [all …]
|
| H A D | ohci-spear.c | 3 * OHCI HCD (Host Controller Driver) for USB. 20 #include <linux/usb/hcd.h> 30 #define to_spear_ohci(hcd) (struct spear_ohci *)(hcd_to_ohci(hcd)->priv) argument 37 struct usb_hcd *hcd = NULL; in spear_ohci_hcd_drv_probe() local 65 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in spear_ohci_hcd_drv_probe() 66 if (!hcd) { in spear_ohci_hcd_drv_probe() 71 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in spear_ohci_hcd_drv_probe() 72 if (IS_ERR(hcd->regs)) { in spear_ohci_hcd_drv_probe() 73 retval = PTR_ERR(hcd->regs); in spear_ohci_hcd_drv_probe() 77 hcd->rsrc_start = res->start; in spear_ohci_hcd_drv_probe() [all …]
|
| H A D | ehci-brcm.c | 12 #include <linux/usb/hcd.h> 48 * The fix is to Intercept the echi-hcd request to complete RESUME and 53 struct usb_hcd *hcd, in ehci_brcm_hub_control() argument 60 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_brcm_hub_control() 91 retval = ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ehci_brcm_hub_control() 97 static int ehci_brcm_reset(struct usb_hcd *hcd) in ehci_brcm_reset() argument 99 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_brcm_reset() 104 ehci->caps = (void __iomem *)hcd->regs; in ehci_brcm_reset() 106 ehci->regs = (void __iomem *)(hcd->regs + len); in ehci_brcm_reset() 119 return ehci_setup(hcd); in ehci_brcm_reset() [all …]
|
| H A D | ohci-sa1111.c | 3 * OHCI HCD (Host Controller Driver) for USB. 44 static void dump_hci_status(struct usb_hcd *hcd, const char *label) 46 unsigned long status = readl_relaxed(hcd->regs + USB_STATUS); 57 static int ohci_sa1111_reset(struct usb_hcd *hcd) in ohci_sa1111_reset() argument 59 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_reset() 65 static int ohci_sa1111_start(struct usb_hcd *hcd) in ohci_sa1111_start() argument 67 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_start() 73 ohci_stop(hcd); in ohci_sa1111_start() 174 * then invokes the start() method for the HCD associated with it. 178 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() local [all …]
|
| H A D | ohci-pci.c | 3 * OHCI HCD (Host Controller Driver) for USB. 23 #include <linux/usb/hcd.h> 35 static int broken_suspend(struct usb_hcd *hcd) in broken_suspend() argument 37 device_init_wakeup(&hcd->self.root_hub->dev, 0); in broken_suspend() 44 static int ohci_quirk_amd756(struct usb_hcd *hcd) in ohci_quirk_amd756() argument 46 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_amd756() 52 return broken_suspend(hcd); in ohci_quirk_amd756() 59 static int ohci_quirk_opti(struct usb_hcd *hcd) in ohci_quirk_opti() argument 61 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_opti() 72 static int ohci_quirk_ns(struct usb_hcd *hcd) in ohci_quirk_ns() argument [all …]
|
| H A D | ehci-platform.c | 36 #include <linux/usb/hcd.h> 57 static int ehci_platform_reset(struct usb_hcd *hcd) in ehci_platform_reset() argument 59 struct platform_device *pdev = to_platform_device(hcd->self.controller); in ehci_platform_reset() 61 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_platform_reset() 67 retval = pdata->pre_setup(hcd); in ehci_platform_reset() 72 ehci->caps = hcd->regs + pdata->caps_offset; in ehci_platform_reset() 73 retval = ehci_setup(hcd); in ehci_platform_reset() 89 struct usb_hcd *hcd = platform_get_drvdata(dev); in ehci_platform_power_on() local 90 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in ehci_platform_power_on() 110 struct usb_hcd *hcd = platform_get_drvdata(dev); in ehci_platform_power_off() local [all …]
|
| H A D | uhci-platform.c | 3 * Generic UHCI HCD (Host Controller Driver) for Platform Devices 16 static int uhci_platform_init(struct usb_hcd *hcd) in uhci_platform_init() argument 18 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_platform_init() 22 uhci->rh_numports = uhci_count_ports(hcd); in uhci_platform_init() 72 struct usb_hcd *hcd; in uhci_hcd_platform_probe() local 93 hcd = usb_create_hcd(&uhci_platform_hc_driver, &pdev->dev, in uhci_hcd_platform_probe() 95 if (!hcd) in uhci_hcd_platform_probe() 98 uhci = hcd_to_uhci(hcd); in uhci_hcd_platform_probe() 100 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in uhci_hcd_platform_probe() 101 if (IS_ERR(hcd->regs)) { in uhci_hcd_platform_probe() [all …]
|
| H A D | ohci-platform.c | 30 #include <linux/usb/hcd.h> 46 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_platform_power_on() local 47 struct ohci_platform_priv *priv = hcd_to_ohci_priv(hcd); in ohci_platform_power_on() 67 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_platform_power_off() local 68 struct ohci_platform_priv *priv = hcd_to_ohci_priv(hcd); in ohci_platform_power_off() 90 struct usb_hcd *hcd; in ohci_platform_probe() local 115 hcd = usb_create_hcd(&ohci_platform_hc_driver, &dev->dev, in ohci_platform_probe() 117 if (!hcd) in ohci_platform_probe() 120 platform_set_drvdata(dev, hcd); in ohci_platform_probe() 122 priv = hcd_to_ohci_priv(hcd); in ohci_platform_probe() [all …]
|
| H A D | ohci-at91.c | 3 * OHCI HCD (Host Controller Driver) for USB. 29 #include <linux/usb/hcd.h> 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_at91_priv *ohci_at91 = hcd_to_ohci_at91_priv(hcd); in at91_stop_hc() 177 * then invokes the start() method for the HCD associated with it 186 struct usb_hcd *hcd; in usb_hcd_at91_probe() local 196 hcd = usb_create_hcd(driver, dev, dev_name(dev)); in usb_hcd_at91_probe() [all …]
|
| H A D | uhci-pci.c | 3 * UHCI HCD (Host Controller Driver) PCI Bus Glue. 5 * Extracted from uhci-hcd.c: 46 * This function is called at the end of configure_hc in uhci-hcd.c. 114 static int uhci_pci_init(struct usb_hcd *hcd) in uhci_pci_init() argument 116 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_pci_init() 118 uhci->io_addr = (unsigned long) hcd->rsrc_start; in uhci_pci_init() 120 uhci->rh_numports = uhci_count_ports(hcd); in uhci_pci_init() 165 struct usb_hcd *hcd = pci_get_drvdata(pdev); in uhci_shutdown() local 167 uhci_hc_died(hcd_to_uhci(hcd)); in uhci_shutdown() 172 static int uhci_pci_resume(struct usb_hcd *hcd, pm_message_t state); [all …]
|
| H A D | ohci-mem.c | 3 * OHCI HCD (Host Controller Driver) for USB. 15 * - data used only by the HCD ... kmalloc is fine 16 * - async and periodic schedules, shared by HC and HCD ... these 18 * - driver buffers, read/written by HC ... the hcd glue or the 22 * No memory seen by this driver (or any HCD) may be paged out. 94 struct usb_hcd *hcd = ohci_to_hcd(hc); in td_alloc() local 96 if (hcd->localmem_pool) in td_alloc() 97 td = gen_pool_dma_zalloc_align(hcd->localmem_pool, in td_alloc() 114 struct usb_hcd *hcd = ohci_to_hcd(hc); in td_free() local 123 if (hcd->localmem_pool) in td_free() [all …]
|
| H A D | ohci-nxp.c | 28 #include <linux/usb/hcd.h> 151 struct usb_hcd *hcd = NULL; in ohci_hcd_nxp_probe() local 191 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in ohci_hcd_nxp_probe() 192 if (!hcd) { in ohci_hcd_nxp_probe() 198 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in ohci_hcd_nxp_probe() 199 if (IS_ERR(hcd->regs)) { in ohci_hcd_nxp_probe() 200 ret = PTR_ERR(hcd->regs); in ohci_hcd_nxp_probe() 203 hcd->rsrc_start = res->start; in ohci_hcd_nxp_probe() 204 hcd->rsrc_len = resource_size(res); in ohci_hcd_nxp_probe() 213 platform_set_drvdata(pdev, hcd); in ohci_hcd_nxp_probe() [all …]
|
| /linux/drivers/staging/greybus/ |
| H A D | usb.c | 12 #include <linux/usb/hcd.h> 38 static inline struct gb_usb_device *to_gb_usb_device(struct usb_hcd *hcd) in to_gb_usb_device() argument 40 return (struct gb_usb_device *)hcd->hcd_priv; in to_gb_usb_device() 48 static void hcd_stop(struct usb_hcd *hcd) in hcd_stop() argument 50 struct gb_usb_device *dev = to_gb_usb_device(hcd); in hcd_stop() 56 dev_err(&dev->gbphy_dev->dev, "HCD stop failed '%d'\n", ret); in hcd_stop() 59 static int hcd_start(struct usb_hcd *hcd) in hcd_start() argument 61 struct usb_bus *bus = hcd_to_bus(hcd); in hcd_start() 62 struct gb_usb_device *dev = to_gb_usb_device(hcd); in hcd_start() 68 dev_err(&dev->gbphy_dev->dev, "HCD start failed '%d'\n", ret); in hcd_start() [all …]
|
| /linux/drivers/usb/usbip/ |
| H A D | vhci_hcd.c | 32 /* See usb gadget dummy hcd */ 34 static int vhci_hub_status(struct usb_hcd *hcd, char *buff); 35 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, 37 static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, 39 static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); 41 static void vhci_stop(struct usb_hcd *hcd); 42 static int vhci_get_frame_number(struct usb_hcd *hcd); 220 * Ports are 0-indexed from the HCD point of view, 229 static int vhci_hub_status(struct usb_hcd *hcd, char *buf) in vhci_hub_status() argument 231 struct vhci_hcd *vhci_hcd = hcd_to_vhci_hcd(hcd); in vhci_hub_status() [all …]
|
| /linux/drivers/usb/c67x00/ |
| H A D | c67x00-hcd.c | 3 * c67x00-hcd.c: Cypress C67X00 USB Host Controller Driver 15 #include "c67x00-hcd.h" 47 static int c67x00_hub_status_data(struct usb_hcd *hcd, char *buf) in c67x00_hub_status_data() argument 49 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd); in c67x00_hub_status_data() 66 static int c67x00_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in c67x00_hub_control() argument 69 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd); in c67x00_hub_control() 239 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00); in c67x00_hcd_irq() local 250 if (unlikely(hcd->state == HC_STATE_HALT)) in c67x00_hcd_irq() 253 if (!HCD_HW_ACCESSIBLE(hcd)) in c67x00_hcd_irq() 266 static int c67x00_hcd_start(struct usb_hcd *hcd) in c67x00_hcd_start() argument [all …]
|
| /linux/drivers/xen/ |
| H A D | dbgp.c | 5 #include <linux/usb/hcd.h> 10 static int xen_dbgp_op(struct usb_hcd *hcd, int op) in xen_dbgp_op() argument 13 const struct device *ctrlr = hcd_to_bus(hcd)->controller; in xen_dbgp_op() 37 int xen_dbgp_reset_prep(struct usb_hcd *hcd) in xen_dbgp_reset_prep() argument 39 return xen_dbgp_op(hcd, PHYSDEVOP_DBGP_RESET_PREPARE); in xen_dbgp_reset_prep() 42 int xen_dbgp_external_startup(struct usb_hcd *hcd) in xen_dbgp_external_startup() argument 44 return xen_dbgp_op(hcd, PHYSDEVOP_DBGP_RESET_DONE); in xen_dbgp_external_startup()
|
| /linux/sound/soc/codecs/ |
| H A D | hdmi-codec.c | 282 struct hdmi_codec_pdata hcd; member 448 bool has_capture = !hcp->hcd.no_i2s_capture; in hdmi_codec_startup() 449 bool has_playback = !hcp->hcd.no_i2s_playback; in hdmi_codec_startup() 462 if (hcp->hcd.ops->audio_startup) { in hdmi_codec_startup() 463 ret = hcp->hcd.ops->audio_startup(dai->dev->parent, hcp->hcd.data); in hdmi_codec_startup() 468 if (tx && hcp->hcd.ops->get_eld) { in hdmi_codec_startup() 469 ret = hcp->hcd.ops->get_eld(dai->dev->parent, hcp->hcd.data, in hdmi_codec_startup() 497 bool has_capture = !hcp->hcd in hdmi_codec_shutdown() 1126 struct hdmi_codec_pdata *hcd = pdev->dev.platform_data; hdmi_codec_probe() local [all...] |