Home
last modified time | relevance | path

Searched refs:cdns (Results 1 – 25 of 30) sorted by relevance

12

/drivers/usb/cdns3/
A Ddrd.c86 int cdns_get_id(struct cdns *cdns) in cdns_get_id() argument
96 int cdns_get_vbus(struct cdns *cdns) in cdns_get_vbus() argument
106 void cdns_clear_vbus(struct cdns *cdns) in cdns_clear_vbus() argument
119 void cdns_set_vbus(struct cdns *cdns) in cdns_set_vbus() argument
132 bool cdns_is_host(struct cdns *cdns) in cdns_is_host() argument
142 bool cdns_is_device(struct cdns *cdns) in cdns_is_device() argument
179 int cdns_drd_host_on(struct cdns *cdns) in cdns_drd_host_on() argument
339 struct cdns *cdns = data; in cdns_drd_thread_irq() local
357 struct cdns *cdns = data; in cdns_drd_irq() local
389 int cdns_drd_init(struct cdns *cdns) in cdns_drd_init() argument
[all …]
A Dcore.c27 static int cdns_idle_init(struct cdns *cdns);
47 ret = cdns->roles[role]->start(cdns); in cdns_role_start()
66 cdns->roles[role]->stop(cdns); in cdns_role_stop()
157 ret = cdns->gadget_init(cdns); in cdns_core_init_role()
407 struct cdns *cdns = data; in cdns_wakeup_irq() local
427 int cdns_init(struct cdns *cdns) in cdns_init() argument
460 dev_name(cdns->dev), cdns); in cdns_init()
497 int cdns_remove(struct cdns *cdns) in cdns_remove() argument
517 cdns->roles[cdns->role]->suspend(cdns, false); in cdns_suspend()
525 int cdns_resume(struct cdns *cdns) in cdns_resume() argument
[all …]
A Dcdns3-plat.c26 static int set_phy_power_on(struct cdns *cdns) in set_phy_power_on() argument
41 static void set_phy_power_off(struct cdns *cdns) in set_phy_power_off() argument
57 struct cdns *cdns; in cdns3_plat_probe() local
61 cdns = devm_kzalloc(dev, sizeof(*cdns), GFP_KERNEL); in cdns3_plat_probe()
62 if (!cdns) in cdns3_plat_probe()
185 struct cdns *cdns = platform_get_drvdata(pdev); in cdns3_plat_remove() local
202 struct cdns *cdns = dev_get_drvdata(dev); in cdns3_set_platform_suspend() local
205 if (cdns->pdata && cdns->pdata->platform_suspend) in cdns3_set_platform_suspend()
213 struct cdns *cdns = dev_get_drvdata(dev); in cdns3_controller_suspend() local
237 struct cdns *cdns = dev_get_drvdata(dev); in cdns3_controller_resume() local
[all …]
A Dcore.h17 struct cdns;
30 int (*start)(struct cdns *cdns);
31 void (*stop)(struct cdns *cdns);
32 int (*suspend)(struct cdns *cdns, bool do_wakeup);
33 int (*resume)(struct cdns *cdns, bool lost_power);
124 int (*gadget_init)(struct cdns *cdns); argument
127 int cdns_hw_role_switch(struct cdns *cdns);
128 int cdns_init(struct cdns *cdns);
129 int cdns_remove(struct cdns *cdns);
132 int cdns_resume(struct cdns *cdns);
[all …]
A Dhost.c69 static int __cdns_host_init(struct cdns *cdns) in __cdns_host_init() argument
75 cdns_drd_host_on(cdns); in __cdns_host_init()
84 cdns->host_dev = xhci; in __cdns_host_init()
100 if (!cdns->xhci_plat_data) { in __cdns_host_init()
105 if (cdns->pdata && (cdns->pdata->quirks & CDNS3_DEFAULT_PM_RUNTIME_ALLOW)) in __cdns_host_init()
127 kfree(cdns->xhci_plat_data); in __cdns_host_init()
133 static void cdns_host_exit(struct cdns *cdns) in cdns_host_exit() argument
137 cdns->host_dev = NULL; in cdns_host_exit()
138 cdns_drd_host_off(cdns); in cdns_host_exit()
141 static int cdns_host_resume(struct cdns *cdns, bool power_lost) in cdns_host_resume() argument
[all …]
A Ddrd.h212 bool cdns_is_host(struct cdns *cdns);
213 bool cdns_is_device(struct cdns *cdns);
214 int cdns_get_id(struct cdns *cdns);
215 int cdns_get_vbus(struct cdns *cdns);
216 void cdns_clear_vbus(struct cdns *cdns);
217 void cdns_set_vbus(struct cdns *cdns);
218 int cdns_drd_init(struct cdns *cdns);
219 int cdns_drd_exit(struct cdns *cdns);
221 int cdns_drd_gadget_on(struct cdns *cdns);
223 int cdns_drd_host_on(struct cdns *cdns);
[all …]
A Dgadget-export.h15 int cdnsp_gadget_init(struct cdns *cdns);
18 static inline int cdnsp_gadget_init(struct cdns *cdns) in cdnsp_gadget_init() argument
27 int cdns3_gadget_init(struct cdns *cdns);
30 static inline int cdns3_gadget_init(struct cdns *cdns) in cdns3_gadget_init() argument
A Dcdnsp-pci.c54 struct cdns *cdnsp; in cdnsp_pci_probe()
182 struct cdns *cdnsp; in cdnsp_pci_remove()
186 cdnsp = (struct cdns *)pci_get_drvdata(pdev); in cdnsp_pci_remove()
202 struct cdns *cdns = dev_get_drvdata(dev); in cdnsp_pci_suspend() local
204 return cdns_suspend(cdns); in cdnsp_pci_suspend()
209 struct cdns *cdns = dev_get_drvdata(dev); in cdnsp_pci_resume() local
213 spin_lock_irqsave(&cdns->lock, flags); in cdnsp_pci_resume()
214 ret = cdns_resume(cdns); in cdnsp_pci_resume()
215 spin_unlock_irqrestore(&cdns->lock, flags); in cdnsp_pci_resume()
216 cdns_set_active(cdns, 1); in cdnsp_pci_resume()
A Dhost-export.h14 int cdns_host_init(struct cdns *cdns);
18 static inline int cdns_host_init(struct cdns *cdns) in cdns_host_init() argument
23 static inline void cdns_host_exit(struct cdns *cdns) { } in cdns_host_exit() argument
A Dcdnsp-gadget.c145 struct cdns *cdns = dev_get_drvdata(pdev->dev); in cdnsp_set_apb_timeout_value() local
1573 struct cdns *cdns = dev_get_drvdata(pdev->dev); in cdnsp_gadget_pullup() local
1587 cdns_clear_vbus(cdns); in cdnsp_gadget_pullup()
1589 cdns_set_vbus(cdns); in cdnsp_gadget_pullup()
1900 static int __cdnsp_gadget_init(struct cdns *cdns) in __cdnsp_gadget_init() argument
1914 cdns->gadget_dev = pdev; in __cdnsp_gadget_init()
1915 pdev->dev = cdns->dev; in __cdnsp_gadget_init()
1994 static void cdnsp_gadget_exit(struct cdns *cdns) in cdnsp_gadget_exit() argument
2009 static int cdnsp_gadget_suspend(struct cdns *cdns, bool do_wakeup) in cdnsp_gadget_suspend() argument
2025 static int cdnsp_gadget_resume(struct cdns *cdns, bool lost_power) in cdnsp_gadget_resume() argument
[all …]
A Dcdns3-gadget.c1916 struct cdns *cdns = dev_get_drvdata(priv_dev->dev); in cdns3_device_irq_handler() local
1920 if (cdns->in_lpm) in cdns3_device_irq_handler()
3247 static void cdns3_gadget_exit(struct cdns *cdns) in cdns3_gadget_exit() argument
3258 devm_free_irq(cdns->dev, cdns->dev_irq, priv_dev); in cdns3_gadget_exit()
3285 static int cdns3_gadget_start(struct cdns *cdns) in cdns3_gadget_start() argument
3415 static int __cdns3_gadget_init(struct cdns *cdns) in __cdns3_gadget_init() argument
3439 ret = devm_request_threaded_irq(cdns->dev, cdns->dev_irq, in __cdns3_gadget_init()
3443 cdns->gadget_dev); in __cdns3_gadget_init()
3454 static int cdns3_gadget_suspend(struct cdns *cdns, bool do_wakeup) in cdns3_gadget_suspend() argument
3473 static int cdns3_gadget_resume(struct cdns *cdns, bool lost_power) in cdns3_gadget_resume() argument
[all …]
A DMakefile6 cdns-usb-common-y := core.o drd.o
10 obj-m += cdns-usb-common.o
13 obj-$(CONFIG_USB_CDNS_SUPPORT) += cdns-usb-common.o
17 cdns-usb-common-$(CONFIG_USB_CDNS_HOST) += host.o
A Dcdns3-imx.c251 struct cdns *cdns = dev_get_drvdata(dev); in cdns_imx_platform_suspend() local
254 void __iomem *otg_regs = (void __iomem *)(cdns->otg_regs); in cdns_imx_platform_suspend()
255 void __iomem *xhci_regs = cdns->xhci_regs; in cdns_imx_platform_suspend()
259 if (cdns->role != USB_ROLE_HOST) in cdns_imx_platform_suspend()
/drivers/soundwire/
A Dcadence_master.c218 return cdns_readl(cdns, cdns->ip_offset + offset); in cdns_ip_readl()
223 return cdns_writel(cdns, cdns->ip_offset + offset, value); in cdns_ip_writel()
239 cdns_updatel(cdns, cdns->ip_offset + offset, mask, val); in cdns_ip_updatel()
428 bus = &cdns->bus; in cdns_parity_error_injection()
501 unsigned int pdi_out_num = cdns->pcm.num_bd + cdns->pcm.num_out; in cdns_set_pdi_loopback_source()
518 unsigned int pdi_in_num = cdns->pcm.num_bd + cdns->pcm.num_in; in cdns_set_pdi_loopback_target()
621 cdns->response_buf[i] = cdns_ip_readl(cdns, cmd_base); in cdns_read_response()
918 if (!cdns->link_up) in sdw_cdns_irq()
1001 struct sdw_cdns *cdns = in cdns_check_attached_status_dwork() local
1308 stream = &cdns->pcm; in sdw_cdns_pdi_init()
[all …]
A Dintel_bus_common.c15 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus() local
16 struct sdw_bus *bus = &cdns->bus; in intel_start_bus()
19 ret = sdw_cdns_soft_reset(cdns); in intel_start_bus()
32 ret = sdw_cdns_init(cdns); in intel_start_bus()
38 sdw_cdns_config_update(cdns); in intel_start_bus()
78 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus_after_reset() local
113 sdw_cdns_init(&sdw->cdns); in intel_start_bus_after_reset()
182 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus_after_clock_stop() local
208 struct sdw_cdns *cdns = &sdw->cdns; in intel_stop_bus() local
245 struct sdw_cdns *cdns = &sdw->cdns; in intel_pre_bank_switch() local
[all …]
A Dintel_ace2x.c50 struct sdw_cdns *cdns = &sdw->cdns; in intel_ace2x_bpt_open_stream() local
84 pdi0 = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, 1, dir, 0); in intel_ace2x_bpt_open_stream()
96 pdi1 = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, 1, dir, 1); in intel_ace2x_bpt_open_stream()
200 ret1 = sdw_stream_remove_master(&cdns->bus, cdns->bus.bpt_stream); in intel_ace2x_bpt_open_stream()
221 struct sdw_cdns *cdns = &sdw->cdns; in intel_ace2x_bpt_close_stream() local
236 ret = sdw_stream_remove_master(&cdns->bus, cdns->bus.bpt_stream); in intel_ace2x_bpt_close_stream()
254 struct sdw_cdns *cdns = &sdw->cdns; in intel_ace2x_bpt_send_async() local
293 struct sdw_cdns *cdns = &sdw->cdns; in intel_ace2x_bpt_wait() local
643 pdi = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, ch, dir, dai->id); in intel_hw_params()
955 struct sdw_cdns *cdns = &sdw->cdns; in intel_register_dai() local
[all …]
A Dintel_auxdevice.c307 struct sdw_cdns *cdns; in intel_link_probe() local
315 cdns = &sdw->cdns; in intel_link_probe()
316 bus = &cdns->bus; in intel_link_probe()
320 cdns->dev = dev; in intel_link_probe()
323 cdns->instance = sdw->instance; in intel_link_probe()
324 cdns->msg_count = 0; in intel_link_probe()
346 sdw_cdns_probe(cdns); in intel_link_probe()
381 struct sdw_bus *bus = &cdns->bus; in intel_link_startup()
492 struct sdw_bus *bus = &cdns->bus; in intel_link_remove()
514 bus = &sdw->cdns.bus; in intel_link_process_wakeen_event()
[all …]
A Dintel.c396 dev_dbg(sdw->cdns.dev, in intel_link_power_up()
426 dev_err(sdw->cdns.dev, in intel_link_power_up()
441 sdw->cdns.link_up = true; in intel_link_power_up()
462 dev_err(sdw->cdns.dev, in intel_link_power_down()
742 pdi = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, ch, dir, dai->id); in intel_hw_params()
1036 struct sdw_cdns *cdns = &sdw->cdns; in intel_register_dai() local
1064 stream = &cdns->pcm; in intel_register_dai()
1066 ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, cdns->pcm.num_in, in intel_register_dai()
1071 off += cdns->pcm.num_in; in intel_register_dai()
1072 ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, cdns->pcm.num_out, in intel_register_dai()
[all …]
A Dcadence_master.h166 int sdw_cdns_probe(struct sdw_cdns *cdns);
171 int sdw_cdns_soft_reset(struct sdw_cdns *cdns);
172 int sdw_cdns_init(struct sdw_cdns *cdns);
173 int sdw_cdns_pdi_init(struct sdw_cdns *cdns,
175 int sdw_cdns_exit_reset(struct sdw_cdns *cdns);
178 bool sdw_cdns_is_clock_stop(struct sdw_cdns *cdns);
179 int sdw_cdns_clock_stop(struct sdw_cdns *cdns, bool block_wake);
186 struct sdw_cdns_pdi *sdw_cdns_alloc_pdi(struct sdw_cdns *cdns,
189 void sdw_cdns_config_stream(struct sdw_cdns *cdns,
208 void sdw_cdns_config_update(struct sdw_cdns *cdns);
[all …]
A Dintel_init.c149 sdw_cdns_irq(irq, link->cdns); in sdw_intel_thread()
238 link->cdns = auxiliary_get_drvdata(&ldev->auxdev); in sdw_intel_probe_controller()
240 if (!link->cdns) { in sdw_intel_probe_controller()
250 bus = &link->cdns->bus; in sdw_intel_probe_controller()
263 bus = &link->cdns->bus; in sdw_intel_probe_controller()
364 struct sdw_bus *bus = &link->cdns->bus; in sdw_intel_exit()
A Dintel_ace2x_debugfs.c95 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_m_datamode()
113 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_s_datamode()
130 struct dentry *root = sdw->cdns.bus.debugfs; in intel_ace2x_debugfs_init()
146 sdw_cdns_debugfs_init(&sdw->cdns, sdw->debugfs); in intel_ace2x_debugfs_init()
/drivers/gpu/drm/bridge/cadence/
A DMakefile2 obj-$(CONFIG_DRM_CDNS_DSI) += cdns-dsi.o
3 cdns-dsi-y := cdns-dsi-core.o
4 cdns-dsi-$(CONFIG_DRM_CDNS_DSI_J721E) += cdns-dsi-j721e.o
5 obj-$(CONFIG_DRM_CDNS_MHDP8546) += cdns-mhdp8546.o
6 cdns-mhdp8546-y := cdns-mhdp8546-core.o cdns-mhdp8546-hdcp.o
7 cdns-mhdp8546-$(CONFIG_DRM_CDNS_MHDP8546_J721E) += cdns-mhdp8546-j721e.o
/drivers/media/platform/cadence/
A DMakefile3 obj-$(CONFIG_VIDEO_CADENCE_CSI2RX) += cdns-csi2rx.o
4 obj-$(CONFIG_VIDEO_CADENCE_CSI2TX) += cdns-csi2tx.o
A DKconfig17 called cdns-csi2rx.
29 called cdns-csi2tx.
/drivers/phy/cadence/
A DMakefile3 obj-$(CONFIG_PHY_CADENCE_DPHY) += cdns-dphy.o
4 obj-$(CONFIG_PHY_CADENCE_DPHY_RX) += cdns-dphy-rx.o

Completed in 55 milliseconds

12