Lines Matching refs:sdw
80 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_pre_bank_switch() local
82 return sdw->link_res->hw_ops->pre_bank_switch(sdw); in generic_pre_bank_switch()
88 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_post_bank_switch() local
90 return sdw->link_res->hw_ops->post_bank_switch(sdw); in generic_post_bank_switch()
98 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_new_peripheral_assigned() local
118 if (sdw->link_res->hw_ops->program_sdi && wake_capable) in generic_new_peripheral_assigned()
119 sdw->link_res->hw_ops->program_sdi(sdw, dev_num); in generic_new_peripheral_assigned()
217 struct sdw_intel *sdw; in intel_link_probe() local
222 sdw = devm_kzalloc(dev, sizeof(*sdw), GFP_KERNEL); in intel_link_probe()
223 if (!sdw) in intel_link_probe()
226 cdns = &sdw->cdns; in intel_link_probe()
229 sdw->instance = auxdev->id; in intel_link_probe()
230 sdw->link_res = &ldev->link_res; in intel_link_probe()
232 cdns->registers = sdw->link_res->registers; in intel_link_probe()
233 cdns->ip_offset = sdw->link_res->ip_offset; in intel_link_probe()
234 cdns->instance = sdw->instance; in intel_link_probe()
249 sdw->cdns.bus.compute_params = sdw_compute_params; in intel_link_probe()
277 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_link_startup() local
287 sdw->instance); in intel_link_startup()
307 ret = sdw_intel_link_power_up(sdw); in intel_link_startup()
312 ret = sdw_intel_register_dai(sdw); in intel_link_startup()
318 sdw_intel_debugfs_init(sdw); in intel_link_startup()
334 ret = sdw_intel_start_bus(sdw); in intel_link_startup()
340 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_link_startup()
373 sdw->startup_done = true; in intel_link_startup()
380 sdw_intel_link_power_down(sdw); in intel_link_startup()
388 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_link_remove() local
397 sdw_intel_debugfs_exit(sdw); in intel_link_remove()
406 struct sdw_intel *sdw; in intel_link_process_wakeen_event() local
409 sdw = auxiliary_get_drvdata(auxdev); in intel_link_process_wakeen_event()
410 bus = &sdw->cdns.bus; in intel_link_process_wakeen_event()
412 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_link_process_wakeen_event()
418 if (!sdw_intel_shim_check_wake(sdw)) in intel_link_process_wakeen_event()
422 sdw_intel_shim_wake(sdw, false); in intel_link_process_wakeen_event()
466 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_pm_prepare() local
471 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_pm_prepare()
477 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_pm_prepare()
526 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_suspend() local
531 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_suspend()
540 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_suspend()
552 sdw_intel_shim_wake(sdw, false); in intel_suspend()
559 ret = sdw_intel_stop_bus(sdw, false); in intel_suspend()
571 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_suspend_runtime() local
576 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_suspend_runtime()
582 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_suspend_runtime()
585 ret = sdw_intel_stop_bus(sdw, false); in intel_suspend_runtime()
592 ret = sdw_intel_stop_bus(sdw, true); in intel_suspend_runtime()
610 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_resume() local
615 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_resume()
640 ret = sdw_intel_link_power_up(sdw); in intel_resume()
652 ret = sdw_intel_start_bus(sdw); in intel_resume()
655 sdw_intel_link_power_down(sdw); in intel_resume()
678 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_resume_runtime() local
683 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_resume_runtime()
690 sdw_intel_shim_wake(sdw, false); in intel_resume_runtime()
692 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_resume_runtime()
695 ret = sdw_intel_link_power_up(sdw); in intel_resume_runtime()
707 ret = sdw_intel_start_bus(sdw); in intel_resume_runtime()
710 sdw_intel_link_power_down(sdw); in intel_resume_runtime()
715 ret = sdw_intel_link_power_up(sdw); in intel_resume_runtime()
721 ret = sdw_intel_start_bus_after_reset(sdw); in intel_resume_runtime()
724 sdw_intel_link_power_down(sdw); in intel_resume_runtime()
729 sdw_intel_check_clock_stop(sdw); in intel_resume_runtime()
731 ret = sdw_intel_link_power_up(sdw); in intel_resume_runtime()
737 ret = sdw_intel_start_bus_after_clock_stop(sdw); in intel_resume_runtime()
740 sdw_intel_link_power_down(sdw); in intel_resume_runtime()