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()
252 sdw->cdns.bus.compute_params = sdw_compute_params; in intel_link_probe()
280 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_link_startup() local
290 sdw->instance); in intel_link_startup()
310 ret = sdw_intel_link_power_up(sdw); in intel_link_startup()
315 ret = sdw_intel_register_dai(sdw); in intel_link_startup()
321 sdw_intel_debugfs_init(sdw); in intel_link_startup()
337 ret = sdw_intel_start_bus(sdw); in intel_link_startup()
343 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_link_startup()
376 sdw->startup_done = true; in intel_link_startup()
383 sdw_intel_link_power_down(sdw); in intel_link_startup()
391 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_link_remove() local
400 sdw_intel_debugfs_exit(sdw); in intel_link_remove()
410 struct sdw_intel *sdw; in intel_link_process_wakeen_event() local
413 sdw = auxiliary_get_drvdata(auxdev); in intel_link_process_wakeen_event()
414 bus = &sdw->cdns.bus; in intel_link_process_wakeen_event()
416 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_link_process_wakeen_event()
422 if (!sdw_intel_shim_check_wake(sdw)) in intel_link_process_wakeen_event()
426 sdw_intel_shim_wake(sdw, false); in intel_link_process_wakeen_event()
470 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_pm_prepare() local
475 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_pm_prepare()
481 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_pm_prepare()
530 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_suspend() local
535 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_suspend()
544 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_suspend()
556 sdw_intel_shim_wake(sdw, false); in intel_suspend()
563 ret = sdw_intel_stop_bus(sdw, false); in intel_suspend()
575 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_suspend_runtime() local
580 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_suspend_runtime()
586 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_suspend_runtime()
589 ret = sdw_intel_stop_bus(sdw, false); in intel_suspend_runtime()
596 ret = sdw_intel_stop_bus(sdw, true); in intel_suspend_runtime()
614 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_resume() local
619 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_resume()
644 ret = sdw_intel_link_power_up(sdw); in intel_resume()
656 ret = sdw_intel_start_bus(sdw); in intel_resume()
659 sdw_intel_link_power_down(sdw); in intel_resume()
682 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_resume_runtime() local
687 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_resume_runtime()
694 sdw_intel_shim_wake(sdw, false); in intel_resume_runtime()
696 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_resume_runtime()
699 ret = sdw_intel_link_power_up(sdw); in intel_resume_runtime()
711 ret = sdw_intel_start_bus(sdw); in intel_resume_runtime()
714 sdw_intel_link_power_down(sdw); in intel_resume_runtime()
719 ret = sdw_intel_link_power_up(sdw); in intel_resume_runtime()
725 ret = sdw_intel_start_bus_after_reset(sdw); in intel_resume_runtime()
728 sdw_intel_link_power_down(sdw); in intel_resume_runtime()
733 sdw_intel_check_clock_stop(sdw); in intel_resume_runtime()
735 ret = sdw_intel_link_power_up(sdw); in intel_resume_runtime()
741 ret = sdw_intel_start_bus_after_clock_stop(sdw); in intel_resume_runtime()
744 sdw_intel_link_power_down(sdw); in intel_resume_runtime()