Lines Matching defs:sdw
94 #define SDW_INTEL_CHECK_OPS(sdw, cb) ((sdw) && (sdw)->link_res && (sdw)->link_res->hw_ops && \
95 (sdw)->link_res->hw_ops->cb)
96 #define SDW_INTEL_OPS(sdw, cb) ((sdw)->link_res->hw_ops->cb)
99 void intel_ace2x_debugfs_init(struct sdw_intel *sdw);
100 void intel_ace2x_debugfs_exit(struct sdw_intel *sdw);
102 static inline void intel_ace2x_debugfs_init(struct sdw_intel *sdw) {}
103 static inline void intel_ace2x_debugfs_exit(struct sdw_intel *sdw) {}
106 static inline void sdw_intel_debugfs_init(struct sdw_intel *sdw)
108 if (SDW_INTEL_CHECK_OPS(sdw, debugfs_init))
109 SDW_INTEL_OPS(sdw, debugfs_init)(sdw);
112 static inline void sdw_intel_debugfs_exit(struct sdw_intel *sdw)
114 if (SDW_INTEL_CHECK_OPS(sdw, debugfs_exit))
115 SDW_INTEL_OPS(sdw, debugfs_exit)(sdw);
118 static inline int sdw_intel_register_dai(struct sdw_intel *sdw)
120 if (SDW_INTEL_CHECK_OPS(sdw, register_dai))
121 return SDW_INTEL_OPS(sdw, register_dai)(sdw);
125 static inline void sdw_intel_check_clock_stop(struct sdw_intel *sdw)
127 if (SDW_INTEL_CHECK_OPS(sdw, check_clock_stop))
128 SDW_INTEL_OPS(sdw, check_clock_stop)(sdw);
131 static inline int sdw_intel_start_bus(struct sdw_intel *sdw)
133 if (SDW_INTEL_CHECK_OPS(sdw, start_bus))
134 return SDW_INTEL_OPS(sdw, start_bus)(sdw);
138 static inline int sdw_intel_start_bus_after_reset(struct sdw_intel *sdw)
140 if (SDW_INTEL_CHECK_OPS(sdw, start_bus_after_reset))
141 return SDW_INTEL_OPS(sdw, start_bus_after_reset)(sdw);
145 static inline int sdw_intel_start_bus_after_clock_stop(struct sdw_intel *sdw)
147 if (SDW_INTEL_CHECK_OPS(sdw, start_bus_after_clock_stop))
148 return SDW_INTEL_OPS(sdw, start_bus_after_clock_stop)(sdw);
152 static inline int sdw_intel_stop_bus(struct sdw_intel *sdw, bool clock_stop)
154 if (SDW_INTEL_CHECK_OPS(sdw, stop_bus))
155 return SDW_INTEL_OPS(sdw, stop_bus)(sdw, clock_stop);
159 static inline int sdw_intel_link_power_up(struct sdw_intel *sdw)
161 if (SDW_INTEL_CHECK_OPS(sdw, link_power_up))
162 return SDW_INTEL_OPS(sdw, link_power_up)(sdw);
166 static inline int sdw_intel_link_power_down(struct sdw_intel *sdw)
168 if (SDW_INTEL_CHECK_OPS(sdw, link_power_down))
169 return SDW_INTEL_OPS(sdw, link_power_down)(sdw);
173 static inline int sdw_intel_shim_check_wake(struct sdw_intel *sdw)
175 if (SDW_INTEL_CHECK_OPS(sdw, shim_check_wake))
176 return SDW_INTEL_OPS(sdw, shim_check_wake)(sdw);
180 static inline void sdw_intel_shim_wake(struct sdw_intel *sdw, bool wake_enable)
182 if (SDW_INTEL_CHECK_OPS(sdw, shim_wake))
183 SDW_INTEL_OPS(sdw, shim_wake)(sdw, wake_enable);
186 static inline void sdw_intel_sync_arm(struct sdw_intel *sdw)
188 if (SDW_INTEL_CHECK_OPS(sdw, sync_arm))
189 SDW_INTEL_OPS(sdw, sync_arm)(sdw);
192 static inline int sdw_intel_sync_go_unlocked(struct sdw_intel *sdw)
194 if (SDW_INTEL_CHECK_OPS(sdw, sync_go_unlocked))
195 return SDW_INTEL_OPS(sdw, sync_go_unlocked)(sdw);
199 static inline int sdw_intel_sync_go(struct sdw_intel *sdw)
201 if (SDW_INTEL_CHECK_OPS(sdw, sync_go))
202 return SDW_INTEL_OPS(sdw, sync_go)(sdw);
206 static inline bool sdw_intel_sync_check_cmdsync_unlocked(struct sdw_intel *sdw)
208 if (SDW_INTEL_CHECK_OPS(sdw, sync_check_cmdsync_unlocked))
209 return SDW_INTEL_OPS(sdw, sync_check_cmdsync_unlocked)(sdw);
214 int intel_start_bus(struct sdw_intel *sdw);
215 int intel_start_bus_after_reset(struct sdw_intel *sdw);
216 void intel_check_clock_stop(struct sdw_intel *sdw);
217 int intel_start_bus_after_clock_stop(struct sdw_intel *sdw);
218 int intel_stop_bus(struct sdw_intel *sdw, bool clock_stop);
221 int intel_pre_bank_switch(struct sdw_intel *sdw);
222 int intel_post_bank_switch(struct sdw_intel *sdw);