Home
last modified time | relevance | path

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

12

/drivers/usb/cdns3/
Ddrd.c28 static int cdns_set_mode(struct cdns *cdns, enum usb_dr_mode mode) in cdns_set_mode() argument
39 dev_dbg(cdns->dev, "Set controller to OTG mode\n"); in cdns_set_mode()
41 if (cdns->version == CDNSP_CONTROLLER_V2) in cdns_set_mode()
42 override_reg = &cdns->otg_cdnsp_regs->override; in cdns_set_mode()
43 else if (cdns->version == CDNS3_CONTROLLER_V1) in cdns_set_mode()
44 override_reg = &cdns->otg_v1_regs->override; in cdns_set_mode()
46 override_reg = &cdns->otg_v0_regs->ctrl1; in cdns_set_mode()
50 if (cdns->version != CDNS3_CONTROLLER_V0) in cdns_set_mode()
57 if (cdns->version == CDNS3_CONTROLLER_V1) { in cdns_set_mode()
64 if (cdns->phyrst_a_enable) { in cdns_set_mode()
[all …]
Dcore.c26 static int cdns_idle_init(struct cdns *cdns);
28 static int cdns_role_start(struct cdns *cdns, enum usb_role role) in cdns_role_start() argument
35 mutex_lock(&cdns->mutex); in cdns_role_start()
36 cdns->role = role; in cdns_role_start()
37 mutex_unlock(&cdns->mutex); in cdns_role_start()
39 if (!cdns->roles[role]) in cdns_role_start()
42 if (cdns->roles[role]->state == CDNS_ROLE_STATE_ACTIVE) in cdns_role_start()
45 mutex_lock(&cdns->mutex); in cdns_role_start()
46 ret = cdns->roles[role]->start(cdns); in cdns_role_start()
48 cdns->roles[role]->state = CDNS_ROLE_STATE_ACTIVE; in cdns_role_start()
[all …]
Dcdns3-plat.c24 static int set_phy_power_on(struct cdns *cdns) in set_phy_power_on() argument
28 ret = phy_power_on(cdns->usb2_phy); in set_phy_power_on()
32 ret = phy_power_on(cdns->usb3_phy); in set_phy_power_on()
34 phy_power_off(cdns->usb2_phy); in set_phy_power_on()
39 static void set_phy_power_off(struct cdns *cdns) in set_phy_power_off() argument
41 phy_power_off(cdns->usb3_phy); in set_phy_power_off()
42 phy_power_off(cdns->usb2_phy); in set_phy_power_off()
55 struct cdns *cdns; in cdns3_plat_probe() local
59 cdns = devm_kzalloc(dev, sizeof(*cdns), GFP_KERNEL); in cdns3_plat_probe()
60 if (!cdns) in cdns3_plat_probe()
[all …]
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 hibernated);
83 struct cdns { struct
120 int (*gadget_init)(struct cdns *cdns); argument
123 int cdns_hw_role_switch(struct cdns *cdns);
124 int cdns_init(struct cdns *cdns);
125 int cdns_remove(struct cdns *cdns);
[all …]
Dhost.c66 static int __cdns_host_init(struct cdns *cdns) in __cdns_host_init() argument
72 cdns_drd_host_on(cdns); in __cdns_host_init()
76 dev_err(cdns->dev, "couldn't allocate xHCI device\n"); in __cdns_host_init()
80 xhci->dev.parent = cdns->dev; in __cdns_host_init()
81 cdns->host_dev = xhci; in __cdns_host_init()
83 ret = platform_device_add_resources(xhci, cdns->xhci_res, in __cdns_host_init()
86 dev_err(cdns->dev, "couldn't add resources to xHCI device\n"); in __cdns_host_init()
90 if (cdns->version < CDNSP_CONTROLLER_V2) in __cdns_host_init()
91 cdns->xhci_plat_data = kmemdup(&xhci_plat_cdns3_xhci, in __cdns_host_init()
94 cdns->xhci_plat_data = kmemdup(&xhci_plat_cdnsp_xhci, in __cdns_host_init()
[all …]
Ddrd.h209 bool cdns_is_host(struct cdns *cdns);
210 bool cdns_is_device(struct cdns *cdns);
211 int cdns_get_id(struct cdns *cdns);
212 int cdns_get_vbus(struct cdns *cdns);
213 void cdns_clear_vbus(struct cdns *cdns);
214 void cdns_set_vbus(struct cdns *cdns);
215 int cdns_drd_init(struct cdns *cdns);
216 int cdns_drd_exit(struct cdns *cdns);
217 int cdns_drd_update_mode(struct cdns *cdns);
218 int cdns_drd_gadget_on(struct cdns *cdns);
[all …]
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
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
Dcdnsp-pci.c57 struct cdns *cdnsp; in cdnsp_pci_probe()
179 struct cdns *cdnsp; in cdnsp_pci_remove()
183 cdnsp = (struct cdns *)pci_get_drvdata(pdev); in cdnsp_pci_remove()
201 struct cdns *cdns = dev_get_drvdata(dev); in cdnsp_pci_suspend() local
203 return cdns_suspend(cdns); in cdnsp_pci_suspend()
208 struct cdns *cdns = dev_get_drvdata(dev); in cdnsp_pci_resume() local
212 spin_lock_irqsave(&cdns->lock, flags); in cdnsp_pci_resume()
213 ret = cdns_resume(cdns); in cdnsp_pci_resume()
214 spin_unlock_irqrestore(&cdns->lock, flags); in cdnsp_pci_resume()
215 cdns_set_active(cdns, 1); in cdnsp_pci_resume()
Dcdnsp-gadget.c1542 struct cdns *cdns = dev_get_drvdata(pdev->dev); in cdnsp_gadget_pullup() local
1551 disable_irq(cdns->dev_irq); in cdnsp_gadget_pullup()
1556 cdns_clear_vbus(cdns); in cdnsp_gadget_pullup()
1558 cdns_set_vbus(cdns); in cdnsp_gadget_pullup()
1562 enable_irq(cdns->dev_irq); in cdnsp_gadget_pullup()
1858 static int __cdnsp_gadget_init(struct cdns *cdns) in __cdnsp_gadget_init() argument
1864 cdns_drd_gadget_on(cdns); in __cdnsp_gadget_init()
1870 pm_runtime_get_sync(cdns->dev); in __cdnsp_gadget_init()
1872 cdns->gadget_dev = pdev; in __cdnsp_gadget_init()
1873 pdev->dev = cdns->dev; in __cdnsp_gadget_init()
[all …]
Dcdns3-gadget.c1913 struct cdns *cdns = dev_get_drvdata(priv_dev->dev); in cdns3_device_irq_handler() local
1917 if (cdns->in_lpm) in cdns3_device_irq_handler()
3240 static void cdns3_gadget_exit(struct cdns *cdns) in cdns3_gadget_exit() argument
3244 priv_dev = cdns->gadget_dev; in cdns3_gadget_exit()
3247 pm_runtime_mark_last_busy(cdns->dev); in cdns3_gadget_exit()
3248 pm_runtime_put_autosuspend(cdns->dev); in cdns3_gadget_exit()
3251 devm_free_irq(cdns->dev, cdns->dev_irq, priv_dev); in cdns3_gadget_exit()
3274 cdns->gadget_dev = NULL; in cdns3_gadget_exit()
3275 cdns_drd_gadget_off(cdns); in cdns3_gadget_exit()
3278 static int cdns3_gadget_start(struct cdns *cdns) in cdns3_gadget_start() argument
[all …]
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
Dcdns3-imx.c253 struct cdns *cdns = dev_get_drvdata(dev); in cdns_imx_platform_suspend() local
256 void __iomem *otg_regs = (void __iomem *)(cdns->otg_regs); in cdns_imx_platform_suspend()
257 void __iomem *xhci_regs = cdns->xhci_regs; in cdns_imx_platform_suspend()
261 if (cdns->role != USB_ROLE_HOST) in cdns_imx_platform_suspend()
/drivers/soundwire/
Dcadence_master.c199 static inline u32 cdns_readl(struct sdw_cdns *cdns, int offset) in cdns_readl() argument
201 return readl(cdns->registers + offset); in cdns_readl()
204 static inline void cdns_writel(struct sdw_cdns *cdns, int offset, u32 value) in cdns_writel() argument
206 writel(value, cdns->registers + offset); in cdns_writel()
209 static inline void cdns_updatel(struct sdw_cdns *cdns, in cdns_updatel() argument
214 tmp = cdns_readl(cdns, offset); in cdns_updatel()
216 cdns_writel(cdns, offset, tmp); in cdns_updatel()
219 static int cdns_set_wait(struct sdw_cdns *cdns, int offset, u32 mask, u32 value) in cdns_set_wait() argument
226 reg_read = readl(cdns->registers + offset); in cdns_set_wait()
237 static int cdns_clear_bit(struct sdw_cdns *cdns, int offset, u32 value) in cdns_clear_bit() argument
[all …]
Dintel.c50 #define cdns_to_intel(_cdns) container_of(_cdns, struct sdw_intel, cdns)
195 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_m_datamode()
213 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_s_datamode()
230 struct dentry *root = sdw->cdns.bus.debugfs; in intel_debugfs_init()
246 sdw_cdns_debugfs_init(&sdw->cdns, sdw->debugfs); in intel_debugfs_init()
267 struct sdw_bus *bus = &sdw->cdns.bus; in intel_link_power_up()
293 dev_dbg(sdw->cdns.dev, "%s: powering up all links\n", __func__); in intel_link_power_up()
296 dev_dbg(sdw->cdns.dev, in intel_link_power_up()
318 dev_err(sdw->cdns.dev, "Failed to power up link: %d\n", ret); in intel_link_power_up()
326 dev_err(sdw->cdns.dev, in intel_link_power_up()
[all …]
Dcadence_master.h161 int sdw_cdns_probe(struct sdw_cdns *cdns);
167 int sdw_cdns_init(struct sdw_cdns *cdns);
168 int sdw_cdns_pdi_init(struct sdw_cdns *cdns,
170 int sdw_cdns_exit_reset(struct sdw_cdns *cdns);
171 int sdw_cdns_enable_interrupt(struct sdw_cdns *cdns, bool state);
173 bool sdw_cdns_is_clock_stop(struct sdw_cdns *cdns);
174 int sdw_cdns_clock_stop(struct sdw_cdns *cdns, bool block_wake);
175 int sdw_cdns_clock_restart(struct sdw_cdns *cdns, bool bus_reset);
178 void sdw_cdns_debugfs_init(struct sdw_cdns *cdns, struct dentry *root);
181 struct sdw_cdns_pdi *sdw_cdns_alloc_pdi(struct sdw_cdns *cdns,
[all …]
Dintel_init.c158 sdw_cdns_irq(irq, link->cdns); in sdw_intel_thread()
247 link->cdns = dev_get_drvdata(&ldev->auxdev.dev); in sdw_intel_probe_controller()
249 if (!link->cdns) { in sdw_intel_probe_controller()
259 bus = &link->cdns->bus; in sdw_intel_probe_controller()
272 bus = &link->cdns->bus; in sdw_intel_probe_controller()
Dintel.h36 struct sdw_cdns *cdns; member
41 struct sdw_cdns cdns; member
/drivers/gpu/drm/bridge/cadence/
DMakefile2 obj-$(CONFIG_DRM_CDNS_MHDP8546) += cdns-mhdp8546.o
3 cdns-mhdp8546-y := cdns-mhdp8546-core.o cdns-mhdp8546-hdcp.o
4 cdns-mhdp8546-$(CONFIG_DRM_CDNS_MHDP8546_J721E) += cdns-mhdp8546-j721e.o
/drivers/media/platform/cadence/
DMakefile3 obj-$(CONFIG_VIDEO_CADENCE_CSI2RX) += cdns-csi2rx.o
4 obj-$(CONFIG_VIDEO_CADENCE_CSI2TX) += cdns-csi2tx.o
DKconfig23 called cdns-csi2rx.
35 called cdns-csi2tx.
/drivers/i3c/master/
DMakefile2 obj-$(CONFIG_CDNS_I3C_MASTER) += i3c-master-cdns.o
/drivers/phy/cadence/
DMakefile3 obj-$(CONFIG_PHY_CADENCE_DPHY) += cdns-dphy.o
DKconfig23 cdns-dphy.
/drivers/ufs/host/
DMakefile5 obj-$(CONFIG_SCSI_UFS_CDNS_PLATFORM) += cdns-pltfrm.o

12