Lines Matching refs:cdev
37 struct sof_client_dev *cdev = snd_soc_card_get_drvdata(card); in sof_probes_compr_startup() local
38 struct sof_probes_priv *priv = cdev->data; in sof_probes_compr_startup()
42 if (sof_client_get_fw_state(cdev) == SOF_FW_CRASHED) in sof_probes_compr_startup()
45 ret = sof_client_core_module_get(cdev); in sof_probes_compr_startup()
49 ret = ops->startup(cdev, cstream, dai, &priv->extractor_stream_tag); in sof_probes_compr_startup()
53 sof_client_core_module_put(cdev); in sof_probes_compr_startup()
63 struct sof_client_dev *cdev = snd_soc_card_get_drvdata(card); in sof_probes_compr_shutdown() local
64 struct sof_probes_priv *priv = cdev->data; in sof_probes_compr_shutdown()
72 ret = ipc->points_info(cdev, &desc, &num_desc); in sof_probes_compr_shutdown()
79 ipc->points_remove(cdev, &desc[i].buffer_id, 1); in sof_probes_compr_shutdown()
83 ret = ipc->deinit(cdev); in sof_probes_compr_shutdown()
90 ret = ops->shutdown(cdev, cstream, dai); in sof_probes_compr_shutdown()
92 sof_client_core_module_put(cdev); in sof_probes_compr_shutdown()
102 struct sof_client_dev *cdev = snd_soc_card_get_drvdata(card); in sof_probes_compr_set_params() local
104 struct sof_probes_priv *priv = cdev->data; in sof_probes_compr_set_params()
110 cstream->dma_buffer.dev.dev = sof_client_get_dma_dev(cdev); in sof_probes_compr_set_params()
115 ret = ops->set_params(cdev, cstream, params, dai); in sof_probes_compr_set_params()
119 ret = ipc->init(cdev, priv->extractor_stream_tag, rtd->dma_bytes); in sof_probes_compr_set_params()
132 struct sof_client_dev *cdev = snd_soc_card_get_drvdata(card); in sof_probes_compr_trigger() local
133 struct sof_probes_priv *priv = cdev->data; in sof_probes_compr_trigger()
136 return ops->trigger(cdev, cstream, cmd, dai); in sof_probes_compr_trigger()
144 struct sof_client_dev *cdev = snd_soc_card_get_drvdata(card); in sof_probes_compr_pointer() local
145 struct sof_probes_priv *priv = cdev->data; in sof_probes_compr_pointer()
148 return ops->pointer(cdev, cstream, tstamp, dai); in sof_probes_compr_pointer()
194 struct sof_client_dev *cdev = file->private_data; in sof_probes_dfs_points_read() local
195 struct sof_probes_priv *priv = cdev->data; in sof_probes_dfs_points_read()
196 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_read()
219 ret = ipc->points_info(cdev, &desc, &num_desc); in sof_probes_dfs_points_read()
254 struct sof_client_dev *cdev = file->private_data; in sof_probes_dfs_points_write() local
255 struct sof_probes_priv *priv = cdev->data; in sof_probes_dfs_points_write()
257 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_write()
287 ret = ipc->points_add(cdev, desc, bytes / sizeof(*desc)); in sof_probes_dfs_points_write()
312 struct sof_client_dev *cdev = file->private_data; in sof_probes_dfs_points_remove_write() local
313 struct sof_probes_priv *priv = cdev->data; in sof_probes_dfs_points_remove_write()
315 struct device *dev = &cdev->auxdev.dev; in sof_probes_dfs_points_remove_write()
334 ret = ipc->points_remove(cdev, &array[1], array[0]); in sof_probes_dfs_points_remove_write()
384 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_probes_client_probe() local
385 struct dentry *dfsroot = sof_client_get_debugfs_root(cdev); in sof_probes_client_probe()
420 switch (sof_client_get_ipc_type(cdev)) { in sof_probes_client_probe()
436 cdev->data = priv; in sof_probes_client_probe()
452 cdev, &sof_probes_points_fops); in sof_probes_client_probe()
456 dfsroot, cdev, in sof_probes_client_probe()
490 snd_soc_card_set_drvdata(card, cdev); in sof_probes_client_probe()
512 struct sof_client_dev *cdev = auxiliary_dev_to_sof_client_dev(auxdev); in sof_probes_client_remove() local
513 struct sof_probes_priv *priv = cdev->data; in sof_probes_client_remove()