Lines Matching refs:sdw

96 #define SDW_INTEL_CHECK_OPS(sdw, cb)	((sdw) && (sdw)->link_res && (sdw)->link_res->hw_ops && \  argument
97 (sdw)->link_res->hw_ops->cb)
98 #define SDW_INTEL_OPS(sdw, cb) ((sdw)->link_res->hw_ops->cb) argument
101 void intel_ace2x_debugfs_init(struct sdw_intel *sdw);
102 void intel_ace2x_debugfs_exit(struct sdw_intel *sdw);
104 static inline void intel_ace2x_debugfs_init(struct sdw_intel *sdw) {} in intel_ace2x_debugfs_init() argument
105 static inline void intel_ace2x_debugfs_exit(struct sdw_intel *sdw) {} in intel_ace2x_debugfs_exit() argument
108 static inline void sdw_intel_debugfs_init(struct sdw_intel *sdw) in sdw_intel_debugfs_init() argument
110 if (SDW_INTEL_CHECK_OPS(sdw, debugfs_init)) in sdw_intel_debugfs_init()
111 SDW_INTEL_OPS(sdw, debugfs_init)(sdw); in sdw_intel_debugfs_init() local
114 static inline void sdw_intel_debugfs_exit(struct sdw_intel *sdw) in sdw_intel_debugfs_exit() argument
116 if (SDW_INTEL_CHECK_OPS(sdw, debugfs_exit)) in sdw_intel_debugfs_exit()
117 SDW_INTEL_OPS(sdw, debugfs_exit)(sdw); in sdw_intel_debugfs_exit() local
120 static inline int sdw_intel_register_dai(struct sdw_intel *sdw) in sdw_intel_register_dai() argument
122 if (SDW_INTEL_CHECK_OPS(sdw, register_dai)) in sdw_intel_register_dai()
123 return SDW_INTEL_OPS(sdw, register_dai)(sdw); in sdw_intel_register_dai()
127 static inline void sdw_intel_check_clock_stop(struct sdw_intel *sdw) in sdw_intel_check_clock_stop() argument
129 if (SDW_INTEL_CHECK_OPS(sdw, check_clock_stop)) in sdw_intel_check_clock_stop()
130 SDW_INTEL_OPS(sdw, check_clock_stop)(sdw); in sdw_intel_check_clock_stop() local
133 static inline int sdw_intel_start_bus(struct sdw_intel *sdw) in sdw_intel_start_bus() argument
135 if (SDW_INTEL_CHECK_OPS(sdw, start_bus)) in sdw_intel_start_bus()
136 return SDW_INTEL_OPS(sdw, start_bus)(sdw); in sdw_intel_start_bus()
140 static inline int sdw_intel_start_bus_after_reset(struct sdw_intel *sdw) in sdw_intel_start_bus_after_reset() argument
142 if (SDW_INTEL_CHECK_OPS(sdw, start_bus_after_reset)) in sdw_intel_start_bus_after_reset()
143 return SDW_INTEL_OPS(sdw, start_bus_after_reset)(sdw); in sdw_intel_start_bus_after_reset()
147 static inline int sdw_intel_start_bus_after_clock_stop(struct sdw_intel *sdw) in sdw_intel_start_bus_after_clock_stop() argument
149 if (SDW_INTEL_CHECK_OPS(sdw, start_bus_after_clock_stop)) in sdw_intel_start_bus_after_clock_stop()
150 return SDW_INTEL_OPS(sdw, start_bus_after_clock_stop)(sdw); in sdw_intel_start_bus_after_clock_stop()
154 static inline int sdw_intel_stop_bus(struct sdw_intel *sdw, bool clock_stop) in sdw_intel_stop_bus() argument
156 if (SDW_INTEL_CHECK_OPS(sdw, stop_bus)) in sdw_intel_stop_bus()
157 return SDW_INTEL_OPS(sdw, stop_bus)(sdw, clock_stop); in sdw_intel_stop_bus()
161 static inline int sdw_intel_link_power_up(struct sdw_intel *sdw) in sdw_intel_link_power_up() argument
163 if (SDW_INTEL_CHECK_OPS(sdw, link_power_up)) in sdw_intel_link_power_up()
164 return SDW_INTEL_OPS(sdw, link_power_up)(sdw); in sdw_intel_link_power_up()
168 static inline int sdw_intel_link_power_down(struct sdw_intel *sdw) in sdw_intel_link_power_down() argument
170 if (SDW_INTEL_CHECK_OPS(sdw, link_power_down)) in sdw_intel_link_power_down()
171 return SDW_INTEL_OPS(sdw, link_power_down)(sdw); in sdw_intel_link_power_down()
175 static inline int sdw_intel_shim_check_wake(struct sdw_intel *sdw) in sdw_intel_shim_check_wake() argument
177 if (SDW_INTEL_CHECK_OPS(sdw, shim_check_wake)) in sdw_intel_shim_check_wake()
178 return SDW_INTEL_OPS(sdw, shim_check_wake)(sdw); in sdw_intel_shim_check_wake()
182 static inline void sdw_intel_shim_wake(struct sdw_intel *sdw, bool wake_enable) in sdw_intel_shim_wake() argument
184 if (SDW_INTEL_CHECK_OPS(sdw, shim_wake)) in sdw_intel_shim_wake()
185 SDW_INTEL_OPS(sdw, shim_wake)(sdw, wake_enable); in sdw_intel_shim_wake() local
188 static inline void sdw_intel_sync_arm(struct sdw_intel *sdw) in sdw_intel_sync_arm() argument
190 if (SDW_INTEL_CHECK_OPS(sdw, sync_arm)) in sdw_intel_sync_arm()
191 SDW_INTEL_OPS(sdw, sync_arm)(sdw); in sdw_intel_sync_arm() local
194 static inline int sdw_intel_sync_go_unlocked(struct sdw_intel *sdw) in sdw_intel_sync_go_unlocked() argument
196 if (SDW_INTEL_CHECK_OPS(sdw, sync_go_unlocked)) in sdw_intel_sync_go_unlocked()
197 return SDW_INTEL_OPS(sdw, sync_go_unlocked)(sdw); in sdw_intel_sync_go_unlocked()
201 static inline int sdw_intel_sync_go(struct sdw_intel *sdw) in sdw_intel_sync_go() argument
203 if (SDW_INTEL_CHECK_OPS(sdw, sync_go)) in sdw_intel_sync_go()
204 return SDW_INTEL_OPS(sdw, sync_go)(sdw); in sdw_intel_sync_go()
208 static inline bool sdw_intel_sync_check_cmdsync_unlocked(struct sdw_intel *sdw) in sdw_intel_sync_check_cmdsync_unlocked() argument
210 if (SDW_INTEL_CHECK_OPS(sdw, sync_check_cmdsync_unlocked)) in sdw_intel_sync_check_cmdsync_unlocked()
211 return SDW_INTEL_OPS(sdw, sync_check_cmdsync_unlocked)(sdw); in sdw_intel_sync_check_cmdsync_unlocked()
216 int intel_start_bus(struct sdw_intel *sdw);
217 int intel_start_bus_after_reset(struct sdw_intel *sdw);
218 void intel_check_clock_stop(struct sdw_intel *sdw);
219 int intel_start_bus_after_clock_stop(struct sdw_intel *sdw);
220 int intel_stop_bus(struct sdw_intel *sdw, bool clock_stop);
223 int intel_pre_bank_switch(struct sdw_intel *sdw);
224 int intel_post_bank_switch(struct sdw_intel *sdw);