/linux/drivers/usb/core/ |
H A D | hcd.c | 416 rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) in rh_string() argument 433 s = hcd->self.bus_name; in rh_string() 437 s = hcd->product_desc; in rh_string() 442 init_utsname()->release, hcd->driver->description); in rh_string() 455 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() argument 471 status = usb_hcd_link_urb_to_ep(hcd, urb); in rh_call_control() 475 urb->hcpriv = hcd; /* Indicate it's queued */ in rh_call_control() 522 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control() 530 device_set_wakeup_enable(&hcd->self.root_hub->dev, 0); in rh_call_control() 535 if (device_can_wakeup(&hcd->self.root_hub->dev) in rh_call_control() [all …]
|
H A D | buffer.c | 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() 97 void hcd_buffer_destroy(struct usb_hcd *hcd) in hcd_buffer_destroy() argument 105 dma_pool_destroy(hcd->pool[i]); in hcd_buffer_destroy() 106 hcd->pool[i] = NULL; in hcd_buffer_destroy() 122 struct usb_hcd *hcd = bus_to_hcd(bus); in hcd_buffer_alloc() local 128 if (hcd->localmem_pool) in hcd_buffer_alloc() [all …]
|
/linux/drivers/usb/isp1760/ |
H A D | isp1760-hcd.c | 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() 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() 235 static void isp1760_hcd_set(struct usb_hcd *hcd, u32 field) in isp1760_hcd_set() argument 237 isp1760_hcd_write(hcd, field, 0xFFFFFFFF); in isp1760_hcd_set() 240 static void isp1760_hcd_clear(struct usb_hcd *hcd, u32 field) in isp1760_hcd_clear() argument [all …]
|
H A D | isp1760-core.c | 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() 68 isp1760_field_set(hcd->fields, HW_INTR_EDGE_TRIG); in isp1760_init_core() [all …]
|
/linux/drivers/usb/host/ |
H A D | max3421-hcd.c | 329 hcd_to_max3421(struct usb_hcd *hcd) in hcd_to_max3421() argument 331 return (struct max3421_hcd *) hcd->hcd_priv; in hcd_to_max3421() 341 spi_rd8(struct usb_hcd *hcd, unsigned int reg) in spi_rd8() argument 343 struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd); in spi_rd8() 344 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_rd8() 367 spi_wr8(struct usb_hcd *hcd, unsigned int reg, u8 val) in spi_wr8() argument 369 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_wr8() 370 struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd); in spi_wr8() 391 spi_rd_buf(struct usb_hcd *hcd, unsigned int reg, void *buf, size_t len) in spi_rd_buf() argument 393 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_rd_buf() [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 | xhci-plat.c | 30 static int xhci_plat_setup(struct usb_hcd *hcd); 31 static int xhci_plat_start(struct usb_hcd *hcd); 39 static void xhci_priv_plat_start(struct usb_hcd *hcd) in xhci_priv_plat_start() argument 41 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_plat_start() 44 priv->plat_start(hcd); in xhci_priv_plat_start() 47 static int xhci_priv_init_quirk(struct usb_hcd *hcd) in xhci_priv_init_quirk() argument 49 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_init_quirk() 54 return priv->init_quirk(hcd); in xhci_priv_init_quirk() 57 static int xhci_priv_suspend_quirk(struct usb_hcd *hcd) in xhci_priv_suspend_quirk() argument 59 struct xhci_plat_priv *priv = hcd_to_xhci_priv(hcd); in xhci_priv_suspend_quirk() [all …]
|
H A D | ohci-sa1111.c | 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() 178 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() local 190 hcd = usb_create_hcd(&ohci_sa1111_hc_driver, &dev->dev, "sa1111"); in ohci_hcd_sa1111_probe() 191 if (!hcd) in ohci_hcd_sa1111_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 | 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 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() 99 if (IS_ERR(hcd->regs)) { in ehci_hcd_sh_probe() [all …]
|
H A D | xhci-pci.c | 91 static int xhci_pci_setup(struct usb_hcd *hcd); 92 static int xhci_pci_run(struct usb_hcd *hcd); 93 static int xhci_pci_update_hub_device(struct usb_hcd *hcd, struct usb_device *hdev, 108 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_msix_sync_irqs() local 110 if (hcd->msix_enabled) { in xhci_msix_sync_irqs() 111 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_msix_sync_irqs() 121 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_cleanup_msix() local 122 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_cleanup_msix() 124 if (hcd->irq > 0) in xhci_cleanup_msix() 129 hcd->msix_enabled = 0; in xhci_cleanup_msix() [all …]
|
H A D | ohci-pci.c | 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 74 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ohci_quirk_ns() 80 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_quirk_ns() [all …]
|
H A D | Makefile | 9 fhci-y := fhci-hcd.o fhci-hub.o fhci-q.o 14 xhci-hcd-y := xhci.o xhci-mem.o xhci-ext-caps.o 15 xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o 16 xhci-hcd-y += xhci-trace.o 19 xhci-hcd-y += xhci-dbgcap.o xhci-dbgtty.o 22 xhci-mtk-hcd-y := xhci-mtk.o xhci-mtk-sch.o 24 xhci-plat-hcd-y := xhci-plat.o 26 xhci-plat-hcd-y += xhci-mvebu.o 29 xhci-hcd-y += xhci-debugfs.o 32 xhci-rcar-hcd-y += xhci-rcar.o [all …]
|
H A D | uhci-pci.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); 174 static int uhci_pci_suspend(struct usb_hcd *hcd, bool do_wakeup) in uhci_pci_suspend() argument 176 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_pci_suspend() 183 if (!HCD_HW_ACCESSIBLE(hcd) || uhci->dead) in uhci_pci_suspend() [all …]
|
H A D | xhci-hub.c | 279 static void xhci_usb2_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb2_hub_descriptor() argument 334 static void xhci_usb3_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_usb3_hub_descriptor() argument 367 static void xhci_hub_descriptor(struct usb_hcd *hcd, struct xhci_hcd *xhci, in xhci_hub_descriptor() argument 371 if (hcd->speed >= HCD_USB3) in xhci_hub_descriptor() 372 xhci_usb3_hub_descriptor(hcd, xhci, desc); in xhci_hub_descriptor() 374 xhci_usb2_hub_descriptor(hcd, xhci, desc); in xhci_hub_descriptor() 552 struct usb_hcd *hcd; in xhci_disable_port() local 555 hcd = port->rhub->hcd; in xhci_disable_port() 558 if (hcd->speed >= HCD_USB3) { in xhci_disable_port() 577 hcd->self.busnum, port->hcd_portnum + 1, portsc); in xhci_disable_port() [all …]
|
H A D | ohci-hcd.c | 84 static void ohci_stop(struct usb_hcd *hcd); 148 struct usb_hcd *hcd, in ohci_urb_enqueue() argument 152 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_enqueue() 213 if (!HCD_HW_ACCESSIBLE(hcd)) { in ohci_urb_enqueue() 221 retval = usb_hcd_link_urb_to_ep(hcd, urb); in ohci_urb_enqueue() 229 usb_hcd_unlink_urb_from_ep(hcd, urb); in ohci_urb_enqueue() 313 static int ohci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in ohci_urb_dequeue() argument 315 struct ohci_hcd *ohci = hcd_to_ohci (hcd); in ohci_urb_dequeue() 321 rc = usb_hcd_check_unlink_urb(hcd, urb, status); in ohci_urb_dequeue() 348 ohci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep) in ohci_endpoint_disable() argument [all …]
|
H A D | ohci-mem.c | 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() 124 gen_pool_free(hcd->localmem_pool, (unsigned long)td, in td_free() 138 struct usb_hcd *hcd = ohci_to_hcd(hc); in ed_alloc() local 140 if (hcd->localmem_pool) in ed_alloc() 141 ed = gen_pool_dma_zalloc_align(hcd->localmem_pool, in ed_alloc() 155 struct usb_hcd *hcd = ohci_to_hcd(hc); in ed_free() local [all …]
|
H A D | uhci-hcd.c | 450 static irqreturn_t uhci_irq(struct usb_hcd *hcd) in uhci_irq() argument 452 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_irq() 487 usb_hc_died(hcd); in uhci_irq() 491 mod_timer(&hcd->rh_timer, jiffies); in uhci_irq() 498 usb_hcd_poll_rh_status(hcd); in uhci_irq() 576 static int uhci_start(struct usb_hcd *hcd) in uhci_start() argument 578 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_start() 582 hcd->uses_new_polling = 1; in uhci_start() 584 if (!hcd->localmem_pool) in uhci_start() 585 hcd->self.sg_tablesize = ~0; in uhci_start() [all …]
|
H A D | xhci.c | 371 struct usb_hcd *hcd; in compliance_mode_recovery() local 378 hcd = rhub->hcd; in compliance_mode_recovery() 380 if (!hcd) in compliance_mode_recovery() 396 if (hcd->state == HC_STATE_SUSPENDED) in compliance_mode_recovery() 397 usb_hcd_resume_root_hub(hcd); in compliance_mode_recovery() 399 usb_hcd_poll_rh_status(hcd); in compliance_mode_recovery() 471 static int xhci_init(struct usb_hcd *hcd) in xhci_init() argument 473 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_init() 541 int xhci_run(struct usb_hcd *hcd) in xhci_run() argument 545 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_run() [all …]
|
/linux/include/linux/usb/ |
H A D | hcd.h | 119 #define HCD_HW_ACCESSIBLE(hcd) ((hcd)->flags & (1U << HCD_FLAG_HW_ACCESSIBLE)) argument 120 #define HCD_POLL_RH(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_RH)) argument 121 #define HCD_POLL_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_PENDING)) argument 122 #define HCD_WAKEUP_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_WAKEUP_PENDING)) argument 123 #define HCD_RH_RUNNING(hcd) ((hcd)->flags & (1U << HCD_FLAG_RH_RUNNING)) argument 124 #define HCD_DEAD(hcd) ((hcd)->flags & (1U << HCD_FLAG_DEAD)) argument 125 #define HCD_DEFER_RH_REGISTER(hcd) ((hcd)->flags & (1U << HCD_FLAG_DEFER_RH_REGISTER)) argument 132 #define HCD_INTF_AUTHORIZED(hcd) \ argument 133 ((hcd)->flags & (1U << HCD_FLAG_INTF_AUTHORIZED)) 224 static inline struct usb_bus *hcd_to_bus(struct usb_hcd *hcd) in hcd_to_bus() argument [all …]
|
/linux/drivers/usb/chipidea/ |
H A D | host.c | 13 #include <linux/usb/hcd.h> 26 static int (*orig_bus_suspend)(struct usb_hcd *hcd); 38 static int ehci_ci_portpower(struct usb_hcd *hcd, int portnum, bool enable) in ehci_ci_portpower() 40 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower() 42 struct device *dev = hcd->self.controller; in ehci_ci_portpower() 84 static int ehci_ci_reset(struct usb_hcd *hcd) in ehci_ci_reset() 86 struct device *dev = hcd->self.controller; in ehci_ci_reset() 88 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_reset() 91 ret = ehci_setup(hcd); in ehci_ci_reset() 117 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq() 37 ehci_ci_portpower(struct usb_hcd * hcd,int portnum,bool enable) ehci_ci_portpower() argument 83 ehci_ci_reset(struct usb_hcd * hcd) ehci_ci_reset() argument 121 struct usb_hcd *hcd; host_start() local 210 struct usb_hcd *hcd = ci->hcd; host_stop() local 241 ci_ehci_hub_control(struct usb_hcd * hcd,u16 typeReq,u16 wValue,u16 wIndex,char * buf,u16 wLength) ci_ehci_hub_control() argument 329 ci_ehci_bus_suspend(struct usb_hcd * hcd) ci_ehci_bus_suspend() argument 433 ci_hdrc_map_urb_for_dma(struct usb_hcd * hcd,struct urb * urb,gfp_t mem_flags) ci_hdrc_map_urb_for_dma() argument 449 ci_hdrc_unmap_urb_for_dma(struct usb_hcd * hcd,struct urb * urb) ci_hdrc_unmap_urb_for_dma() argument [all...] |
/linux/drivers/staging/greybus/ |
H A D | usb.c | 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() 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() 72 hcd->state = HC_STATE_RUNNING; in hcd_start() 74 usb_hcd_resume_root_hub(hcd); in hcd_start() 78 static int urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags) in urb_enqueue() argument [all …]
|
/linux/drivers/usb/c67x00/ |
H A D | c67x00-hcd.c | 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 268 hcd->uses_new_polling = 1; in c67x00_hcd_start() 269 hcd->state = HC_STATE_RUNNING; in c67x00_hcd_start() [all …]
|
/linux/drivers/usb/cdns3/ |
H A D | host.c | 32 static void xhci_cdns3_plat_start(struct usb_hcd *hcd) in xhci_cdns3_plat_start() argument 34 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_cdns3_plat_start() 42 if (hcd->regs) { in xhci_cdns3_plat_start() 43 value = readl(hcd->regs + XECP_AUX_CTRL_REG1); in xhci_cdns3_plat_start() 45 writel(value, hcd->regs + XECP_AUX_CTRL_REG1); in xhci_cdns3_plat_start() 47 value = readl(hcd->regs + XECP_PORT_CAP_REG); in xhci_cdns3_plat_start() 49 writel(value, hcd->regs + XECP_PORT_CAP_REG); in xhci_cdns3_plat_start() 53 static int xhci_cdns3_resume_quirk(struct usb_hcd *hcd) in xhci_cdns3_resume_quirk() argument 55 xhci_cdns3_plat_start(hcd); in xhci_cdns3_resume_quirk() 73 struct usb_hcd *hcd; in __cdns_host_init() local [all …]
|
/linux/sound/soc/codecs/ |
H A D | hdmi-codec.c | 282 struct hdmi_codec_pdata hcd; member 446 bool has_capture = !hcp->hcd.no_i2s_capture; in hdmi_codec_startup() 447 bool has_playback = !hcp->hcd.no_i2s_playback; in hdmi_codec_startup() 460 if (hcp->hcd.ops->audio_startup) { in hdmi_codec_startup() 461 ret = hcp->hcd.ops->audio_startup(dai->dev->parent, hcp->hcd.data); in hdmi_codec_startup() 466 if (tx && hcp->hcd.ops->get_eld) { in hdmi_codec_startup() 467 ret = hcp->hcd.ops->get_eld(dai->dev->parent, hcp->hcd.data, in hdmi_codec_startup() 492 bool has_capture = !hcp->hcd.no_i2s_capture; in hdmi_codec_shutdown() 493 bool has_playback = !hcp->hcd.no_i2s_playback; in hdmi_codec_shutdown() 499 hcp->hcd.ops->audio_shutdown(dai->dev->parent, hcp->hcd.data); in hdmi_codec_shutdown() [all …]
|