• Home
  • Raw
  • Download

Lines Matching refs:cdns

50 #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()
334 sdw->cdns.link_up = true; in intel_link_power_up()
468 dev_err(sdw->cdns.dev, in intel_link_power_down()
471 sdw->cdns.link_up = false; in intel_link_power_down()
479 dev_dbg(sdw->cdns.dev, "%s: powering down all links\n", __func__); in intel_link_power_down()
492 dev_err(sdw->cdns.dev, "%s: could not power down link\n", __func__); in intel_link_power_down()
541 dev_err(sdw->cdns.dev, "SyncGO clear failed: %d\n", ret); in intel_shim_sync_go_unlocked()
576 dev_dbg(sdw->cdns.dev, "PCM cap bd:%d in:%d out:%d\n", in intel_pdi_init()
586 dev_dbg(sdw->cdns.dev, "PDM cap bd:%d in:%d out:%d\n", in intel_pdi_init()
655 intel_pdi_stream_ch_update(sdw, &sdw->cdns.pcm, true); in intel_pdi_ch_update()
656 intel_pdi_stream_ch_update(sdw, &sdw->cdns.pdm, false); in intel_pdi_ch_update()
759 struct sdw_cdns *cdns = bus_to_cdns(bus); in intel_pre_bank_switch() local
760 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_pre_bank_switch()
773 struct sdw_cdns *cdns = bus_to_cdns(bus); in intel_post_bank_switch() local
774 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_post_bank_switch()
805 dev_err(sdw->cdns.dev, "Post bank switch failed: %d\n", ret); in intel_post_bank_switch()
817 struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai); in intel_startup() local
820 ret = pm_runtime_get_sync(cdns->dev); in intel_startup()
822 dev_err_ratelimited(cdns->dev, in intel_startup()
825 pm_runtime_put_noidle(cdns->dev); in intel_startup()
835 struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai); in intel_hw_params() local
836 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_hw_params()
859 pdi = sdw_cdns_alloc_pdi(cdns, &cdns->pcm, ch, dir, dai->id); in intel_hw_params()
861 pdi = sdw_cdns_alloc_pdi(cdns, &cdns->pdm, ch, dir, dai->id); in intel_hw_params()
871 sdw_cdns_config_stream(cdns, ch, dir, pdi); in intel_hw_params()
907 ret = sdw_stream_add_master(&cdns->bus, &sconfig, in intel_hw_params()
910 dev_err(cdns->dev, "add master to stream failed:%d\n", ret); in intel_hw_params()
920 struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai); in intel_prepare() local
921 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_prepare()
953 sdw_cdns_config_stream(cdns, ch, dir, dma->pdi); in intel_prepare()
968 struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai); in intel_hw_free() local
969 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_hw_free()
983 ret = sdw_stream_remove_master(&cdns->bus, dma->stream); in intel_hw_free()
1005 struct sdw_cdns *cdns = snd_soc_dai_get_drvdata(dai); in intel_shutdown() local
1007 pm_runtime_mark_last_busy(cdns->dev); in intel_shutdown()
1008 pm_runtime_put_autosuspend(cdns->dev); in intel_shutdown()
1087 static int intel_create_dai(struct sdw_cdns *cdns, in intel_create_dai() argument
1099 dais[i].name = devm_kasprintf(cdns->dev, GFP_KERNEL, in intel_create_dai()
1101 cdns->instance, i); in intel_create_dai()
1130 struct sdw_cdns *cdns = &sdw->cdns; in intel_register_dai() local
1136 num_dai = cdns->pcm.num_pdi + cdns->pdm.num_pdi; in intel_register_dai()
1138 dais = devm_kcalloc(cdns->dev, num_dai, sizeof(*dais), GFP_KERNEL); in intel_register_dai()
1143 stream = &cdns->pcm; in intel_register_dai()
1145 ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, cdns->pcm.num_in, in intel_register_dai()
1150 off += cdns->pcm.num_in; in intel_register_dai()
1151 ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, cdns->pcm.num_out, in intel_register_dai()
1156 off += cdns->pcm.num_out; in intel_register_dai()
1157 ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, cdns->pcm.num_bd, in intel_register_dai()
1163 stream = &cdns->pdm; in intel_register_dai()
1164 off += cdns->pcm.num_bd; in intel_register_dai()
1165 ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, cdns->pdm.num_in, in intel_register_dai()
1170 off += cdns->pdm.num_in; in intel_register_dai()
1171 ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, cdns->pdm.num_out, in intel_register_dai()
1176 off += cdns->pdm.num_out; in intel_register_dai()
1177 ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, cdns->pdm.num_bd, in intel_register_dai()
1182 return snd_soc_register_component(cdns->dev, &dai_component, in intel_register_dai()
1252 clock_stop = sdw_cdns_is_clock_stop(&sdw->cdns); in intel_init()
1269 struct sdw_cdns *cdns; in intel_link_probe() local
1277 cdns = &sdw->cdns; in intel_link_probe()
1278 bus = &cdns->bus; in intel_link_probe()
1282 cdns->dev = dev; in intel_link_probe()
1283 cdns->registers = sdw->link_res->registers; in intel_link_probe()
1284 cdns->instance = sdw->instance; in intel_link_probe()
1285 cdns->msg_count = 0; in intel_link_probe()
1290 sdw_cdns_probe(cdns); in intel_link_probe()
1297 dev_set_drvdata(dev, cdns); in intel_link_probe()
1300 sdw->cdns.bus.compute_params = sdw_compute_params; in intel_link_probe()
1328 struct sdw_cdns *cdns = dev_get_drvdata(dev); in intel_link_startup() local
1329 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_link_startup()
1330 struct sdw_bus *bus = &cdns->bus; in intel_link_startup()
1366 ret = sdw_cdns_pdi_init(cdns, config); in intel_link_startup()
1372 ret = sdw_cdns_enable_interrupt(cdns, true); in intel_link_startup()
1385 ret = sdw_cdns_init(cdns); in intel_link_startup()
1391 ret = sdw_cdns_exit_reset(cdns); in intel_link_startup()
1404 sdw_cdns_check_self_clearing_bits(cdns, __func__, in intel_link_startup()
1461 sdw_cdns_enable_interrupt(cdns, false); in intel_link_startup()
1469 struct sdw_cdns *cdns = dev_get_drvdata(dev); in intel_link_remove() local
1470 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_link_remove()
1471 struct sdw_bus *bus = &cdns->bus; in intel_link_remove()
1480 sdw_cdns_enable_interrupt(cdns, false); in intel_link_remove()
1495 bus = &sdw->cdns.bus; in intel_link_process_wakeen_event()
1551 struct sdw_cdns *cdns = dev_get_drvdata(dev); in intel_pm_prepare() local
1552 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_pm_prepare()
1553 struct sdw_bus *bus = &cdns->bus; in intel_pm_prepare()
1611 struct sdw_cdns *cdns = dev_get_drvdata(dev); in intel_suspend() local
1612 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_suspend()
1613 struct sdw_bus *bus = &cdns->bus; in intel_suspend()
1645 ret = sdw_cdns_enable_interrupt(cdns, false); in intel_suspend()
1664 struct sdw_cdns *cdns = dev_get_drvdata(dev); in intel_suspend_runtime() local
1665 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_suspend_runtime()
1666 struct sdw_bus *bus = &cdns->bus; in intel_suspend_runtime()
1680 ret = sdw_cdns_enable_interrupt(cdns, false); in intel_suspend_runtime()
1698 ret = sdw_cdns_clock_stop(cdns, true); in intel_suspend_runtime()
1704 ret = sdw_cdns_enable_interrupt(cdns, false); in intel_suspend_runtime()
1728 struct sdw_cdns *cdns = dev_get_drvdata(dev); in intel_resume() local
1729 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_resume()
1730 struct sdw_bus *bus = &cdns->bus; in intel_resume()
1771 ret = sdw_cdns_enable_interrupt(cdns, true); in intel_resume()
1784 ret = sdw_cdns_init(&sdw->cdns); in intel_resume()
1790 ret = sdw_cdns_exit_reset(cdns); in intel_resume()
1803 sdw_cdns_check_self_clearing_bits(cdns, __func__, in intel_resume()
1823 struct sdw_cdns *cdns = dev_get_drvdata(dev); in intel_resume_runtime() local
1824 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_resume_runtime()
1825 struct sdw_bus *bus = &cdns->bus; in intel_resume_runtime()
1857 ret = sdw_cdns_enable_interrupt(cdns, true); in intel_resume_runtime()
1870 ret = sdw_cdns_init(&sdw->cdns); in intel_resume_runtime()
1876 ret = sdw_cdns_exit_reset(cdns); in intel_resume_runtime()
1889 sdw_cdns_check_self_clearing_bits(cdns, "intel_resume_runtime TEARDOWN", in intel_resume_runtime()
1906 clock_stop0 = sdw_cdns_is_clock_stop(&sdw->cdns); in intel_resume_runtime()
1918 ret = sdw_cdns_enable_interrupt(cdns, true); in intel_resume_runtime()
1934 sdw_cdns_init(&sdw->cdns); in intel_resume_runtime()
1937 ret = sdw_cdns_enable_interrupt(cdns, true); in intel_resume_runtime()
1944 ret = sdw_cdns_clock_restart(cdns, !clock_stop0); in intel_resume_runtime()
1951 ret = sdw_cdns_exit_reset(cdns); in intel_resume_runtime()
1960 dev_err(sdw->cdns.dev, "sync go failed during resume\n"); in intel_resume_runtime()
1965 sdw_cdns_check_self_clearing_bits(cdns, "intel_resume_runtime BUS_RESET", in intel_resume_runtime()
1970 clock_stop0 = sdw_cdns_is_clock_stop(&sdw->cdns); in intel_resume_runtime()
1980 ret = sdw_cdns_enable_interrupt(cdns, true); in intel_resume_runtime()
1986 ret = sdw_cdns_clock_restart(cdns, false); in intel_resume_runtime()
1992 sdw_cdns_check_self_clearing_bits(cdns, "intel_resume_runtime no_quirks", in intel_resume_runtime()