Lines Matching refs:sdw

86 	struct sdw_intel *sdw = cdns_to_intel(cdns);  in generic_bpt_send_async()  local
88 if (sdw->link_res->hw_ops->bpt_send_async) in generic_bpt_send_async()
89 return sdw->link_res->hw_ops->bpt_send_async(sdw, slave, msg); in generic_bpt_send_async()
96 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_bpt_wait() local
98 if (sdw->link_res->hw_ops->bpt_wait) in generic_bpt_wait()
99 return sdw->link_res->hw_ops->bpt_wait(sdw, slave, msg); in generic_bpt_wait()
106 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_pre_bank_switch() local
108 return sdw->link_res->hw_ops->pre_bank_switch(sdw); in generic_pre_bank_switch()
114 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_post_bank_switch() local
116 return sdw->link_res->hw_ops->post_bank_switch(sdw); in generic_post_bank_switch()
124 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_new_peripheral_assigned() local
144 if (sdw->link_res->hw_ops->program_sdi && wake_capable) in generic_new_peripheral_assigned()
145 sdw->link_res->hw_ops->program_sdi(sdw, dev_num); in generic_new_peripheral_assigned()
305 struct sdw_intel *sdw; in intel_link_probe() local
310 sdw = devm_kzalloc(dev, sizeof(*sdw), GFP_KERNEL); in intel_link_probe()
311 if (!sdw) in intel_link_probe()
314 cdns = &sdw->cdns; in intel_link_probe()
317 sdw->instance = auxdev->id; in intel_link_probe()
318 sdw->link_res = &ldev->link_res; in intel_link_probe()
320 cdns->registers = sdw->link_res->registers; in intel_link_probe()
321 cdns->ip_offset = sdw->link_res->ip_offset; in intel_link_probe()
322 cdns->instance = sdw->instance; in intel_link_probe()
335 ret = sdw_intel_get_link_count(sdw); in intel_link_probe()
340 if (ret <= sdw->instance) { in intel_link_probe()
354 sdw->cdns.bus.compute_params = sdw_compute_params; in intel_link_probe()
379 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_link_startup() local
389 sdw->instance); in intel_link_startup()
409 ret = sdw_intel_link_power_up(sdw); in intel_link_startup()
414 ret = sdw_intel_register_dai(sdw); in intel_link_startup()
420 sdw_intel_debugfs_init(sdw); in intel_link_startup()
436 ret = sdw_intel_start_bus(sdw); in intel_link_startup()
442 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_link_startup()
475 sdw->startup_done = true; in intel_link_startup()
482 sdw_intel_link_power_down(sdw); in intel_link_startup()
490 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_link_remove() local
499 sdw_intel_debugfs_exit(sdw); in intel_link_remove()
509 struct sdw_intel *sdw; in intel_link_process_wakeen_event() local
512 sdw = auxiliary_get_drvdata(auxdev); in intel_link_process_wakeen_event()
513 bus = &sdw->cdns.bus; in intel_link_process_wakeen_event()
515 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_link_process_wakeen_event()
521 if (!sdw_intel_shim_check_wake(sdw)) in intel_link_process_wakeen_event()
525 sdw_intel_shim_wake(sdw, false); in intel_link_process_wakeen_event()
569 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_pm_prepare() local
574 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_pm_prepare()
580 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_pm_prepare()
629 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_suspend() local
634 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_suspend()
646 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_suspend()
658 sdw_intel_shim_wake(sdw, false); in intel_suspend()
665 ret = sdw_intel_stop_bus(sdw, false); in intel_suspend()
677 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_suspend_runtime() local
682 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_suspend_runtime()
688 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_suspend_runtime()
691 ret = sdw_intel_stop_bus(sdw, false); in intel_suspend_runtime()
698 ret = sdw_intel_stop_bus(sdw, true); in intel_suspend_runtime()
716 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_resume() local
720 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_resume()
726 ret = sdw_intel_link_power_up(sdw); in intel_resume()
738 ret = sdw_intel_start_bus(sdw); in intel_resume()
741 sdw_intel_link_power_down(sdw); in intel_resume()
772 struct sdw_intel *sdw = cdns_to_intel(cdns); in intel_resume_runtime() local
777 if (bus->prop.hw_disabled || !sdw->startup_done) { in intel_resume_runtime()
784 sdw_intel_shim_wake(sdw, false); in intel_resume_runtime()
786 clock_stop_quirks = sdw->link_res->clock_stop_quirks; in intel_resume_runtime()
789 ret = sdw_intel_link_power_up(sdw); in intel_resume_runtime()
801 ret = sdw_intel_start_bus(sdw); in intel_resume_runtime()
804 sdw_intel_link_power_down(sdw); in intel_resume_runtime()
809 ret = sdw_intel_link_power_up(sdw); in intel_resume_runtime()
815 ret = sdw_intel_start_bus_after_reset(sdw); in intel_resume_runtime()
818 sdw_intel_link_power_down(sdw); in intel_resume_runtime()
823 sdw_intel_check_clock_stop(sdw); in intel_resume_runtime()
825 ret = sdw_intel_link_power_up(sdw); in intel_resume_runtime()
831 ret = sdw_intel_start_bus_after_clock_stop(sdw); in intel_resume_runtime()
834 sdw_intel_link_power_down(sdw); in intel_resume_runtime()