Lines Matching full:sdev
7 int sof_fw_trace_init(struct snd_sof_dev *sdev) in sof_fw_trace_init() argument
9 const struct sof_ipc_fw_tracing_ops *fw_tracing = sof_ipc_get_ops(sdev, fw_tracing); in sof_fw_trace_init()
12 dev_info(sdev->dev, "Firmware tracing is not available\n"); in sof_fw_trace_init()
13 sdev->fw_trace_is_supported = false; in sof_fw_trace_init()
18 return fw_tracing->init(sdev); in sof_fw_trace_init()
21 void sof_fw_trace_free(struct snd_sof_dev *sdev) in sof_fw_trace_free() argument
23 if (!sdev->fw_trace_is_supported) in sof_fw_trace_free()
26 if (sdev->ipc->ops->fw_tracing->free) in sof_fw_trace_free()
27 sdev->ipc->ops->fw_tracing->free(sdev); in sof_fw_trace_free()
30 void sof_fw_trace_fw_crashed(struct snd_sof_dev *sdev) in sof_fw_trace_fw_crashed() argument
32 if (!sdev->fw_trace_is_supported) in sof_fw_trace_fw_crashed()
35 if (sdev->ipc->ops->fw_tracing->fw_crashed) in sof_fw_trace_fw_crashed()
36 sdev->ipc->ops->fw_tracing->fw_crashed(sdev); in sof_fw_trace_fw_crashed()
39 void sof_fw_trace_suspend(struct snd_sof_dev *sdev, pm_message_t pm_state) in sof_fw_trace_suspend() argument
41 if (!sdev->fw_trace_is_supported) in sof_fw_trace_suspend()
44 sdev->ipc->ops->fw_tracing->suspend(sdev, pm_state); in sof_fw_trace_suspend()
47 int sof_fw_trace_resume(struct snd_sof_dev *sdev) in sof_fw_trace_resume() argument
49 if (!sdev->fw_trace_is_supported) in sof_fw_trace_resume()
52 return sdev->ipc->ops->fw_tracing->resume(sdev); in sof_fw_trace_resume()