Lines Matching +full:loop +full:- +full:powered

1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2 // Copyright(c) 2015-2023 Intel Corporation. All rights reserved.
14 struct device *dev = sdw->cdns.dev; in intel_start_bus()
15 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus()
16 struct sdw_bus *bus = &cdns->bus; in intel_start_bus()
23 if (bus->multi_link) in intel_start_bus()
34 if (bus->multi_link) { in intel_start_bus()
68 struct device *dev = sdw->cdns.dev; in intel_start_bus_after_reset()
69 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus_after_reset()
70 struct sdw_bus *bus = &cdns->bus; in intel_start_bus_after_reset()
78 * all the masters are powered on for they are in the same power in intel_start_bus_after_reset()
82 clock_stop0 = sdw_cdns_is_clock_stop(&sdw->cdns); in intel_start_bus_after_reset()
98 if (bus->multi_link) in intel_start_bus_after_reset()
102 * Re-initialize the IP since it was powered-off in intel_start_bus_after_reset()
104 sdw_cdns_init(&sdw->cdns); in intel_start_bus_after_reset()
125 if (bus->multi_link) { in intel_start_bus_after_reset()
128 dev_err(sdw->cdns.dev, "sync go failed during resume\n"); in intel_start_bus_after_reset()
159 struct device *dev = sdw->cdns.dev; in intel_check_clock_stop()
162 clock_stop0 = sdw_cdns_is_clock_stop(&sdw->cdns); in intel_check_clock_stop()
169 struct device *dev = sdw->cdns.dev; in intel_start_bus_after_clock_stop()
170 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus_after_clock_stop()
192 struct device *dev = sdw->cdns.dev; in intel_stop_bus()
193 struct sdw_cdns *cdns = &sdw->cdns; in intel_stop_bus()
228 struct sdw_cdns *cdns = &sdw->cdns; in intel_pre_bank_switch()
229 struct sdw_bus *bus = &cdns->bus; in intel_pre_bank_switch()
231 /* Write to register only for multi-link */ in intel_pre_bank_switch()
232 if (!bus->multi_link) in intel_pre_bank_switch()
242 struct sdw_cdns *cdns = &sdw->cdns; in intel_post_bank_switch()
243 struct sdw_bus *bus = &cdns->bus; in intel_post_bank_switch()
246 /* Write to register only for multi-link */ in intel_post_bank_switch()
247 if (!bus->multi_link) in intel_post_bank_switch()
250 mutex_lock(sdw->link_res->shim_lock); in intel_post_bank_switch()
253 * post_bank_switch() ops is called from the bus in loop for in intel_post_bank_switch()
263 mutex_unlock(sdw->link_res->shim_lock); in intel_post_bank_switch()
266 dev_err(sdw->cdns.dev, "Post bank switch failed: %d\n", ret); in intel_post_bank_switch()