Lines Matching full:private

376 	swidget->private = host;  in sof_ipc3_widget_setup_comp_host()
404 kfree(swidget->private); in sof_ipc3_widget_setup_comp_host()
405 swidget->private = NULL; in sof_ipc3_widget_setup_comp_host()
412 kfree(swidget->private); in sof_ipc3_widget_free_comp()
426 swidget->private = tone; in sof_ipc3_widget_setup_comp_tone()
436 kfree(swidget->private); in sof_ipc3_widget_setup_comp_tone()
437 swidget->private = NULL; in sof_ipc3_widget_setup_comp_tone()
459 swidget->private = mixer; in sof_ipc3_widget_setup_comp_mixer()
470 kfree(swidget->private); in sof_ipc3_widget_setup_comp_mixer()
471 swidget->private = NULL; in sof_ipc3_widget_setup_comp_mixer()
499 swidget->private = pipeline; in sof_ipc3_widget_setup_comp_pipeline()
541 kfree(swidget->private); in sof_ipc3_widget_setup_comp_pipeline()
542 swidget->private = NULL; in sof_ipc3_widget_setup_comp_pipeline()
557 swidget->private = buffer; in sof_ipc3_widget_setup_comp_buffer()
571 kfree(swidget->private); in sof_ipc3_widget_setup_comp_buffer()
572 swidget->private = NULL; in sof_ipc3_widget_setup_comp_buffer()
593 swidget->private = src; in sof_ipc3_widget_setup_comp_src()
617 kfree(swidget->private); in sof_ipc3_widget_setup_comp_src()
618 swidget->private = NULL; in sof_ipc3_widget_setup_comp_src()
634 swidget->private = asrc; in sof_ipc3_widget_setup_comp_asrc()
660 kfree(swidget->private); in sof_ipc3_widget_setup_comp_asrc()
661 swidget->private = NULL; in sof_ipc3_widget_setup_comp_asrc()
680 swidget->private = mux; in sof_ipc3_widget_setup_comp_mux()
690 kfree(swidget->private); in sof_ipc3_widget_setup_comp_mux()
691 swidget->private = NULL; in sof_ipc3_widget_setup_comp_mux()
719 swidget->private = volume; in sof_ipc3_widget_setup_comp_pga()
755 kfree(swidget->private); in sof_ipc3_widget_setup_comp_pga()
756 swidget->private = NULL; in sof_ipc3_widget_setup_comp_pga()
780 wdata[i].control = sm->dobj.private; in sof_get_control_data()
784 wdata[i].control = sbe->dobj.private; in sof_get_control_data()
788 wdata[i].control = se->dobj.private; in sof_get_control_data()
881 swidget->private = process; in sof_process_load()
898 * found private data in control, so copy it. in sof_process_load()
919 kfree(swidget->private); in sof_process_load()
920 swidget->private = NULL; in sof_process_load()
965 struct sof_dai_private_data *private = dai->private; in sof_link_hda_load() local
986 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_hda_load()
987 if (!private->dai_config) in sof_link_hda_load()
1031 struct sof_dai_private_data *private = dai->private; in sof_link_sai_load() local
1071 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_sai_load()
1072 if (!private->dai_config) in sof_link_sai_load()
1082 struct sof_dai_private_data *private = dai->private; in sof_link_esai_load() local
1121 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_esai_load()
1122 if (!private->dai_config) in sof_link_esai_load()
1132 struct sof_dai_private_data *private = dai->private; in sof_link_acp_dmic_load() local
1153 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_dmic_load()
1154 if (!private->dai_config) in sof_link_acp_dmic_load()
1164 struct sof_dai_private_data *private = dai->private; in sof_link_acp_bt_load() local
1183 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_bt_load()
1184 if (!private->dai_config) in sof_link_acp_bt_load()
1194 struct sof_dai_private_data *private = dai->private; in sof_link_acp_sp_load() local
1213 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_sp_load()
1214 if (!private->dai_config) in sof_link_acp_sp_load()
1224 struct sof_dai_private_data *private = dai->private; in sof_link_acp_hs_load() local
1243 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_hs_load()
1244 if (!private->dai_config) in sof_link_acp_hs_load()
1253 struct sof_dai_private_data *private = dai->private; in sof_link_afe_load() local
1272 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_afe_load()
1273 if (!private->dai_config) in sof_link_afe_load()
1284 struct sof_dai_private_data *private = dai->private; in sof_link_ssp_load() local
1345 private->dai_config = kmemdup(config, size * slink->num_hw_configs, GFP_KERNEL); in sof_link_ssp_load()
1346 if (!private->dai_config) in sof_link_ssp_load()
1356 struct sof_dai_private_data *private = dai->private; in sof_link_dmic_load() local
1417 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_dmic_load()
1418 if (!private->dai_config) in sof_link_dmic_load()
1427 struct sof_dai_private_data *private = dai->private; in sof_link_alh_load() local
1443 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_alh_load()
1444 if (!private->dai_config) in sof_link_alh_load()
1454 struct snd_sof_dai *dai = swidget->private; in sof_ipc3_widget_setup_comp_dai()
1455 struct sof_dai_private_data *private; in sof_ipc3_widget_setup_comp_dai() local
1462 private = kzalloc(sizeof(*private), GFP_KERNEL); in sof_ipc3_widget_setup_comp_dai()
1463 if (!private) in sof_ipc3_widget_setup_comp_dai()
1466 dai->private = private; in sof_ipc3_widget_setup_comp_dai()
1468 private->comp_dai = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); in sof_ipc3_widget_setup_comp_dai()
1469 if (!private->comp_dai) { in sof_ipc3_widget_setup_comp_dai()
1475 comp_dai = private->comp_dai; in sof_ipc3_widget_setup_comp_dai()
1576 kfree(private); in sof_ipc3_widget_setup_comp_dai()
1577 dai->private = NULL; in sof_ipc3_widget_setup_comp_dai()
1587 struct snd_sof_dai *dai = swidget->private; in sof_ipc3_widget_free_comp_dai()
1593 dai_data = dai->private; in sof_ipc3_widget_free_comp_dai()
1855 struct snd_sof_widget *swidget = w->dobj.private; in sof_ipc3_keyword_dapm_event()
1942 ipc_comp = swidget->private; in sof_ipc3_widget_bind_event()
1992 if (!swidget->private) in sof_ipc3_widget_free()
2021 struct snd_sof_dai *dai = swidget->private; in sof_ipc3_dai_config()
2022 struct sof_dai_private_data *private; in sof_ipc3_dai_config() local
2027 if (!dai || !dai->private) { in sof_ipc3_dai_config()
2028 dev_err(sdev->dev, "No private data for DAI %s\n", swidget->widget->name); in sof_ipc3_dai_config()
2032 private = dai->private; in sof_ipc3_dai_config()
2033 if (!private->dai_config) { in sof_ipc3_dai_config()
2038 config = &private->dai_config[dai->current_config]; in sof_ipc3_dai_config()
2087 if (!swidget->private) in sof_ipc3_widget_setup()
2094 struct snd_sof_dai *dai = swidget->private; in sof_ipc3_widget_setup()
2095 struct sof_dai_private_data *dai_data = dai->private; in sof_ipc3_widget_setup()
2106 pipeline = swidget->private; in sof_ipc3_widget_setup()
2115 hdr = swidget->private; in sof_ipc3_widget_setup()
2116 ret = sof_ipc_tx_message(sdev->ipc, swidget->private, hdr->size, in sof_ipc3_widget_setup()
2150 struct snd_sof_dai *dai = swidget->private; in sof_ipc3_set_up_all_pipelines()
2151 struct sof_dai_private_data *private; in sof_ipc3_set_up_all_pipelines() local
2154 if (!dai || !dai->private) in sof_ipc3_set_up_all_pipelines()
2156 private = dai->private; in sof_ipc3_set_up_all_pipelines()
2157 if (!private->dai_config) in sof_ipc3_set_up_all_pipelines()
2160 config = private->dai_config; in sof_ipc3_set_up_all_pipelines()
2341 struct sof_dai_private_data *private = dai->private; in sof_ipc3_dai_get_clk() local
2343 if (!private || !private->dai_config) in sof_ipc3_dai_get_clk()
2346 switch (private->dai_config->type) { in sof_ipc3_dai_get_clk()
2350 return private->dai_config->ssp.mclk_rate; in sof_ipc3_dai_get_clk()
2352 return private->dai_config->ssp.bclk_rate; in sof_ipc3_dai_get_clk()
2360 dev_err(sdev->dev, "DAI type %d not supported yet!\n", private->dai_config->type); in sof_ipc3_dai_get_clk()