Lines Matching full:cdns
14 struct device *dev = sdw->cdns.dev; in intel_start_bus()
15 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus() local
16 struct sdw_bus *bus = &cdns->bus; in intel_start_bus()
26 ret = sdw_cdns_init(cdns); in intel_start_bus()
32 sdw_cdns_config_update(cdns); in intel_start_bus()
42 ret = sdw_cdns_config_update_set_wait(cdns); in intel_start_bus()
48 ret = sdw_cdns_enable_interrupt(cdns, true); in intel_start_bus()
54 ret = sdw_cdns_exit_reset(cdns); in intel_start_bus()
60 sdw_cdns_check_self_clearing_bits(cdns, __func__, in intel_start_bus()
63 schedule_delayed_work(&cdns->attach_dwork, in intel_start_bus()
71 struct device *dev = sdw->cdns.dev; in intel_start_bus_after_reset()
72 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus_after_reset() local
73 struct sdw_bus *bus = &cdns->bus; in intel_start_bus_after_reset()
85 clock_stop0 = sdw_cdns_is_clock_stop(&sdw->cdns); in intel_start_bus_after_reset()
107 sdw_cdns_init(&sdw->cdns); in intel_start_bus_after_reset()
110 ret = sdw_cdns_enable_interrupt(cdns, true); in intel_start_bus_after_reset()
117 ret = sdw_cdns_clock_restart(cdns, !clock_stop0); in intel_start_bus_after_reset()
121 sdw_cdns_enable_interrupt(cdns, false); in intel_start_bus_after_reset()
126 sdw_cdns_config_update(cdns); in intel_start_bus_after_reset()
131 dev_err(sdw->cdns.dev, "sync go failed during resume\n"); in intel_start_bus_after_reset()
136 ret = sdw_cdns_config_update_set_wait(cdns); in intel_start_bus_after_reset()
142 ret = sdw_cdns_enable_interrupt(cdns, true); in intel_start_bus_after_reset()
148 ret = sdw_cdns_exit_reset(cdns); in intel_start_bus_after_reset()
155 sdw_cdns_check_self_clearing_bits(cdns, __func__, true, INTEL_MASTER_RESET_ITERATIONS); in intel_start_bus_after_reset()
157 schedule_delayed_work(&cdns->attach_dwork, in intel_start_bus_after_reset()
165 struct device *dev = sdw->cdns.dev; in intel_check_clock_stop()
168 clock_stop0 = sdw_cdns_is_clock_stop(&sdw->cdns); in intel_check_clock_stop()
175 struct device *dev = sdw->cdns.dev; in intel_start_bus_after_clock_stop()
176 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus_after_clock_stop() local
179 ret = sdw_cdns_clock_restart(cdns, false); in intel_start_bus_after_clock_stop()
185 ret = sdw_cdns_enable_interrupt(cdns, true); in intel_start_bus_after_clock_stop()
191 sdw_cdns_check_self_clearing_bits(cdns, __func__, true, INTEL_MASTER_RESET_ITERATIONS); in intel_start_bus_after_clock_stop()
193 schedule_delayed_work(&cdns->attach_dwork, in intel_start_bus_after_clock_stop()
201 struct device *dev = sdw->cdns.dev; in intel_stop_bus()
202 struct sdw_cdns *cdns = &sdw->cdns; in intel_stop_bus() local
206 cancel_delayed_work_sync(&cdns->attach_dwork); in intel_stop_bus()
209 ret = sdw_cdns_clock_stop(cdns, true); in intel_stop_bus()
216 ret = sdw_cdns_enable_interrupt(cdns, false); in intel_stop_bus()
239 struct sdw_cdns *cdns = &sdw->cdns; in intel_pre_bank_switch() local
240 struct sdw_bus *bus = &cdns->bus; in intel_pre_bank_switch()
253 struct sdw_cdns *cdns = &sdw->cdns; in intel_post_bank_switch() local
254 struct sdw_bus *bus = &cdns->bus; in intel_post_bank_switch()
277 dev_err(sdw->cdns.dev, "Post bank switch failed: %d\n", ret); in intel_post_bank_switch()