Lines Matching full:private

410 	swidget->private = host;  in sof_ipc3_widget_setup_comp_host()
438 kfree(swidget->private); in sof_ipc3_widget_setup_comp_host()
439 swidget->private = NULL; in sof_ipc3_widget_setup_comp_host()
446 kfree(swidget->private); in sof_ipc3_widget_free_comp()
460 swidget->private = tone; in sof_ipc3_widget_setup_comp_tone()
470 kfree(swidget->private); in sof_ipc3_widget_setup_comp_tone()
471 swidget->private = NULL; in sof_ipc3_widget_setup_comp_tone()
493 swidget->private = mixer; in sof_ipc3_widget_setup_comp_mixer()
504 kfree(swidget->private); in sof_ipc3_widget_setup_comp_mixer()
505 swidget->private = NULL; in sof_ipc3_widget_setup_comp_mixer()
534 swidget->private = pipeline; in sof_ipc3_widget_setup_comp_pipeline()
577 kfree(swidget->private); in sof_ipc3_widget_setup_comp_pipeline()
578 swidget->private = NULL; in sof_ipc3_widget_setup_comp_pipeline()
593 swidget->private = buffer; in sof_ipc3_widget_setup_comp_buffer()
607 kfree(swidget->private); in sof_ipc3_widget_setup_comp_buffer()
608 swidget->private = NULL; in sof_ipc3_widget_setup_comp_buffer()
629 swidget->private = src; in sof_ipc3_widget_setup_comp_src()
653 kfree(swidget->private); in sof_ipc3_widget_setup_comp_src()
654 swidget->private = NULL; in sof_ipc3_widget_setup_comp_src()
670 swidget->private = asrc; in sof_ipc3_widget_setup_comp_asrc()
696 kfree(swidget->private); in sof_ipc3_widget_setup_comp_asrc()
697 swidget->private = NULL; in sof_ipc3_widget_setup_comp_asrc()
716 swidget->private = mux; in sof_ipc3_widget_setup_comp_mux()
726 kfree(swidget->private); in sof_ipc3_widget_setup_comp_mux()
727 swidget->private = NULL; in sof_ipc3_widget_setup_comp_mux()
755 swidget->private = volume; in sof_ipc3_widget_setup_comp_pga()
791 kfree(swidget->private); in sof_ipc3_widget_setup_comp_pga()
792 swidget->private = NULL; in sof_ipc3_widget_setup_comp_pga()
816 wdata[i].control = sm->dobj.private; in sof_get_control_data()
820 wdata[i].control = sbe->dobj.private; in sof_get_control_data()
824 wdata[i].control = se->dobj.private; in sof_get_control_data()
917 swidget->private = process; in sof_process_load()
934 * found private data in control, so copy it. in sof_process_load()
955 kfree(swidget->private); in sof_process_load()
956 swidget->private = NULL; in sof_process_load()
1001 struct sof_dai_private_data *private = dai->private; in sof_link_hda_load() local
1022 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_hda_load()
1023 if (!private->dai_config) in sof_link_hda_load()
1067 struct sof_dai_private_data *private = dai->private; in sof_link_sai_load() local
1107 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_sai_load()
1108 if (!private->dai_config) in sof_link_sai_load()
1118 struct sof_dai_private_data *private = dai->private; in sof_link_esai_load() local
1157 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_esai_load()
1158 if (!private->dai_config) in sof_link_esai_load()
1168 struct sof_dai_private_data *private = dai->private; in sof_link_micfil_load() local
1188 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_micfil_load()
1189 if (!private->dai_config) in sof_link_micfil_load()
1199 struct sof_dai_private_data *private = dai->private; in sof_link_acp_dmic_load() local
1220 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_dmic_load()
1221 if (!private->dai_config) in sof_link_acp_dmic_load()
1231 struct sof_dai_private_data *private = dai->private; in sof_link_acp_bt_load() local
1253 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_bt_load()
1254 if (!private->dai_config) in sof_link_acp_bt_load()
1264 struct sof_dai_private_data *private = dai->private; in sof_link_acp_sp_load() local
1287 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_sp_load()
1288 if (!private->dai_config) in sof_link_acp_sp_load()
1298 struct sof_dai_private_data *private = dai->private; in sof_link_acp_hs_load() local
1320 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_hs_load()
1321 if (!private->dai_config) in sof_link_acp_hs_load()
1330 struct sof_dai_private_data *private = dai->private; in sof_link_acp_sdw_load() local
1348 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_acp_sdw_load()
1349 if (!private->dai_config) in sof_link_acp_sdw_load()
1358 struct sof_dai_private_data *private = dai->private; in sof_link_afe_load() local
1377 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_afe_load()
1378 if (!private->dai_config) in sof_link_afe_load()
1389 struct sof_dai_private_data *private = dai->private; in sof_link_ssp_load() local
1450 private->dai_config = kmemdup(config, size * slink->num_hw_configs, GFP_KERNEL); in sof_link_ssp_load()
1451 if (!private->dai_config) in sof_link_ssp_load()
1461 struct sof_dai_private_data *private = dai->private; in sof_link_dmic_load() local
1522 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_dmic_load()
1523 if (!private->dai_config) in sof_link_dmic_load()
1532 struct sof_dai_private_data *private = dai->private; in sof_link_alh_load() local
1548 private->dai_config = kmemdup(config, size, GFP_KERNEL); in sof_link_alh_load()
1549 if (!private->dai_config) in sof_link_alh_load()
1559 struct snd_sof_dai *dai = swidget->private; in sof_ipc3_widget_setup_comp_dai()
1560 struct sof_dai_private_data *private; in sof_ipc3_widget_setup_comp_dai() local
1567 private = kzalloc(sizeof(*private), GFP_KERNEL); in sof_ipc3_widget_setup_comp_dai()
1568 if (!private) in sof_ipc3_widget_setup_comp_dai()
1571 dai->private = private; in sof_ipc3_widget_setup_comp_dai()
1573 private->comp_dai = sof_comp_alloc(swidget, &ipc_size, swidget->pipeline_id); in sof_ipc3_widget_setup_comp_dai()
1574 if (!private->comp_dai) { in sof_ipc3_widget_setup_comp_dai()
1580 comp_dai = private->comp_dai; in sof_ipc3_widget_setup_comp_dai()
1689 kfree(private); in sof_ipc3_widget_setup_comp_dai()
1690 dai->private = NULL; in sof_ipc3_widget_setup_comp_dai()
1700 struct snd_sof_dai *dai = swidget->private; in sof_ipc3_widget_free_comp_dai()
1706 dai_data = dai->private; in sof_ipc3_widget_free_comp_dai()
1967 struct snd_sof_widget *swidget = w->dobj.private; in sof_ipc3_keyword_dapm_event()
2054 ipc_comp = swidget->private; in sof_ipc3_widget_bind_event()
2102 if (!swidget->private) in sof_ipc3_widget_free()
2130 struct snd_sof_dai *dai = swidget->private; in sof_ipc3_dai_config()
2131 struct sof_dai_private_data *private; in sof_ipc3_dai_config() local
2135 if (!dai || !dai->private) { in sof_ipc3_dai_config()
2136 dev_err(sdev->dev, "No private data for DAI %s\n", swidget->widget->name); in sof_ipc3_dai_config()
2140 private = dai->private; in sof_ipc3_dai_config()
2141 if (!private->dai_config) { in sof_ipc3_dai_config()
2146 config = &private->dai_config[dai->current_config]; in sof_ipc3_dai_config()
2224 if (!swidget->private) in sof_ipc3_widget_setup()
2231 struct snd_sof_dai *dai = swidget->private; in sof_ipc3_widget_setup()
2232 struct sof_dai_private_data *dai_data = dai->private; in sof_ipc3_widget_setup()
2242 pipeline = swidget->private; in sof_ipc3_widget_setup()
2250 hdr = swidget->private; in sof_ipc3_widget_setup()
2251 ret = sof_ipc_tx_message_no_reply(sdev->ipc, swidget->private, hdr->size); in sof_ipc3_widget_setup()
2284 struct snd_sof_dai *dai = swidget->private; in sof_ipc3_set_up_all_pipelines()
2285 struct sof_dai_private_data *private; in sof_ipc3_set_up_all_pipelines() local
2288 if (!dai || !dai->private) in sof_ipc3_set_up_all_pipelines()
2290 private = dai->private; in sof_ipc3_set_up_all_pipelines()
2291 if (!private->dai_config) in sof_ipc3_set_up_all_pipelines()
2294 config = private->dai_config; in sof_ipc3_set_up_all_pipelines()
2505 struct sof_dai_private_data *private = dai->private; in sof_ipc3_dai_get_param() local
2507 if (!private || !private->dai_config) in sof_ipc3_dai_get_param()
2510 switch (private->dai_config->type) { in sof_ipc3_dai_get_param()
2514 return private->dai_config->ssp.mclk_rate; in sof_ipc3_dai_get_param()
2516 return private->dai_config->ssp.bclk_rate; in sof_ipc3_dai_get_param()
2518 return private->dai_config->ssp.tdm_slots; in sof_ipc3_dai_get_param()
2526 dev_err(sdev->dev, "DAI type %d not supported yet!\n", private->dai_config->type); in sof_ipc3_dai_get_param()