Lines Matching refs:sof_ops
21 #define sof_ops(sdev) \ macro
29 return sof_ops(sdev)->probe(sdev); in snd_sof_probe()
34 if (sof_ops(sdev)->remove) in snd_sof_remove()
35 return sof_ops(sdev)->remove(sdev); in snd_sof_remove()
48 return sof_ops(sdev)->run(sdev); in snd_sof_dsp_run()
53 if (sof_ops(sdev)->stall) in snd_sof_dsp_stall()
54 return sof_ops(sdev)->stall(sdev); in snd_sof_dsp_stall()
61 if (sof_ops(sdev)->reset) in snd_sof_dsp_reset()
62 return sof_ops(sdev)->reset(sdev); in snd_sof_dsp_reset()
71 if (sof_ops(sdev)->core_power_up) in snd_sof_dsp_core_power_up()
72 return sof_ops(sdev)->core_power_up(sdev, core_mask); in snd_sof_dsp_core_power_up()
80 if (sof_ops(sdev)->core_power_down) in snd_sof_dsp_core_power_down()
81 return sof_ops(sdev)->core_power_down(sdev, core_mask); in snd_sof_dsp_core_power_down()
89 if (sof_ops(sdev)->pre_fw_run) in snd_sof_dsp_pre_fw_run()
90 return sof_ops(sdev)->pre_fw_run(sdev); in snd_sof_dsp_pre_fw_run()
97 if (sof_ops(sdev)->post_fw_run) in snd_sof_dsp_post_fw_run()
98 return sof_ops(sdev)->post_fw_run(sdev); in snd_sof_dsp_post_fw_run()
116 if (sof_ops(sdev)->get_bar_index) in snd_sof_dsp_get_bar_index()
117 return sof_ops(sdev)->get_bar_index(sdev, type); in snd_sof_dsp_get_bar_index()
124 if (sof_ops(sdev)->get_mailbox_offset) in snd_sof_dsp_get_mailbox_offset()
125 return sof_ops(sdev)->get_mailbox_offset(sdev); in snd_sof_dsp_get_mailbox_offset()
134 if (sof_ops(sdev)->get_window_offset) in snd_sof_dsp_get_window_offset()
135 return sof_ops(sdev)->get_window_offset(sdev, id); in snd_sof_dsp_get_window_offset()
143 if (sof_ops(sdev)->resume) in snd_sof_dsp_resume()
144 return sof_ops(sdev)->resume(sdev); in snd_sof_dsp_resume()
152 if (sof_ops(sdev)->suspend) in snd_sof_dsp_suspend()
153 return sof_ops(sdev)->suspend(sdev, target_state); in snd_sof_dsp_suspend()
160 if (sof_ops(sdev)->runtime_resume) in snd_sof_dsp_runtime_resume()
161 return sof_ops(sdev)->runtime_resume(sdev); in snd_sof_dsp_runtime_resume()
168 if (sof_ops(sdev)->runtime_suspend) in snd_sof_dsp_runtime_suspend()
169 return sof_ops(sdev)->runtime_suspend(sdev); in snd_sof_dsp_runtime_suspend()
176 if (sof_ops(sdev)->runtime_idle) in snd_sof_dsp_runtime_idle()
177 return sof_ops(sdev)->runtime_idle(sdev); in snd_sof_dsp_runtime_idle()
184 if (sof_ops(sdev)->set_hw_params_upon_resume) in snd_sof_dsp_hw_params_upon_resume()
185 return sof_ops(sdev)->set_hw_params_upon_resume(sdev); in snd_sof_dsp_hw_params_upon_resume()
191 if (sof_ops(sdev)->set_clk) in snd_sof_dsp_set_clk()
192 return sof_ops(sdev)->set_clk(sdev, freq); in snd_sof_dsp_set_clk()
201 if (sof_ops(sdev)->set_power_state) in snd_sof_dsp_set_power_state()
202 return sof_ops(sdev)->set_power_state(sdev, target_state); in snd_sof_dsp_set_power_state()
211 if (sof_ops(sdev)->dbg_dump) in snd_sof_dsp_dbg_dump()
212 return sof_ops(sdev)->dbg_dump(sdev, flags); in snd_sof_dsp_dbg_dump()
217 if (sof_ops(sdev)->ipc_dump) in snd_sof_ipc_dump()
218 return sof_ops(sdev)->ipc_dump(sdev); in snd_sof_ipc_dump()
225 if (sof_ops(sdev)->write) { in snd_sof_dsp_write()
226 sof_ops(sdev)->write(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write()
236 if (sof_ops(sdev)->write64) { in snd_sof_dsp_write64()
237 sof_ops(sdev)->write64(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write64()
247 if (sof_ops(sdev)->read) in snd_sof_dsp_read()
248 return sof_ops(sdev)->read(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read()
257 if (sof_ops(sdev)->read64) in snd_sof_dsp_read64()
258 return sof_ops(sdev)->read64(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read64()
268 sof_ops(sdev)->block_read(sdev, bar, offset, dest, bytes); in snd_sof_dsp_block_read()
274 sof_ops(sdev)->block_write(sdev, bar, offset, src, bytes); in snd_sof_dsp_block_write()
281 return sof_ops(sdev)->send_msg(sdev, msg); in snd_sof_dsp_send_msg()
288 if (sof_ops(sdev)->trace_init) in snd_sof_dma_trace_init()
289 return sof_ops(sdev)->trace_init(sdev, stream_tag); in snd_sof_dma_trace_init()
296 if (sof_ops(sdev)->trace_release) in snd_sof_dma_trace_release()
297 return sof_ops(sdev)->trace_release(sdev); in snd_sof_dma_trace_release()
304 if (sof_ops(sdev)->trace_trigger) in snd_sof_dma_trace_trigger()
305 return sof_ops(sdev)->trace_trigger(sdev, cmd); in snd_sof_dma_trace_trigger()
315 if (sof_ops(sdev) && sof_ops(sdev)->pcm_open) in snd_sof_pcm_platform_open()
316 return sof_ops(sdev)->pcm_open(sdev, substream); in snd_sof_pcm_platform_open()
326 if (sof_ops(sdev) && sof_ops(sdev)->pcm_close) in snd_sof_pcm_platform_close()
327 return sof_ops(sdev)->pcm_close(sdev, substream); in snd_sof_pcm_platform_close()
339 if (sof_ops(sdev) && sof_ops(sdev)->pcm_hw_params) in snd_sof_pcm_platform_hw_params()
340 return sof_ops(sdev)->pcm_hw_params(sdev, substream, in snd_sof_pcm_platform_hw_params()
351 if (sof_ops(sdev) && sof_ops(sdev)->pcm_hw_free) in snd_sof_pcm_platform_hw_free()
352 return sof_ops(sdev)->pcm_hw_free(sdev, substream); in snd_sof_pcm_platform_hw_free()
362 if (sof_ops(sdev) && sof_ops(sdev)->pcm_trigger) in snd_sof_pcm_platform_trigger()
363 return sof_ops(sdev)->pcm_trigger(sdev, substream, cmd); in snd_sof_pcm_platform_trigger()
373 sof_ops(sdev)->ipc_msg_data(sdev, substream, p, sz); in snd_sof_ipc_msg_data()
382 return sof_ops(sdev)->ipc_pcm_params(sdev, substream, reply); in snd_sof_ipc_pcm_params()
390 if (sof_ops(sdev) && sof_ops(sdev)->pcm_pointer) in snd_sof_pcm_platform_pointer()
391 return sof_ops(sdev)->pcm_pointer(sdev, substream); in snd_sof_pcm_platform_pointer()
401 return sof_ops(sdev)->probe_assign(sdev, cstream, dai); in snd_sof_probe_compr_assign()
408 return sof_ops(sdev)->probe_free(sdev, cstream, dai); in snd_sof_probe_compr_free()
416 return sof_ops(sdev)->probe_set_params(sdev, cstream, params, dai); in snd_sof_probe_compr_set_params()
424 return sof_ops(sdev)->probe_trigger(sdev, cstream, cmd, dai); in snd_sof_probe_compr_trigger()
432 if (sof_ops(sdev) && sof_ops(sdev)->probe_pointer) in snd_sof_probe_compr_pointer()
433 return sof_ops(sdev)->probe_pointer(sdev, cstream, tstamp, dai); in snd_sof_probe_compr_pointer()
443 if (sof_ops(sdev) && sof_ops(sdev)->machine_register) in snd_sof_machine_register()
444 return sof_ops(sdev)->machine_register(sdev, pdata); in snd_sof_machine_register()
452 if (sof_ops(sdev) && sof_ops(sdev)->machine_unregister) in snd_sof_machine_unregister()
453 sof_ops(sdev)->machine_unregister(sdev, pdata); in snd_sof_machine_unregister()
459 if (sof_ops(sdev) && sof_ops(sdev)->machine_select) in snd_sof_machine_select()
460 sof_ops(sdev)->machine_select(sdev); in snd_sof_machine_select()
469 if (sof_ops(sdev) && sof_ops(sdev)->set_mach_params) in snd_sof_set_mach_params()
470 sof_ops(sdev)->set_mach_params(mach, dev); in snd_sof_set_mach_params()