Lines Matching refs:wdata
2090 struct sof_widget_data *wdata, in sof_get_control_data() argument
2107 wdata[i].control = sm->dobj.private; in sof_get_control_data()
2111 wdata[i].control = sbe->dobj.private; in sof_get_control_data()
2115 wdata[i].control = se->dobj.private; in sof_get_control_data()
2124 if (!wdata[i].control) { in sof_get_control_data()
2130 wdata[i].pdata = wdata[i].control->control_data->data; in sof_get_control_data()
2131 if (!wdata[i].pdata) in sof_get_control_data()
2136 wdata[i].pdata->magic != SOF_ABI_MAGIC) in sof_get_control_data()
2139 *size += wdata[i].pdata->size; in sof_get_control_data()
2142 switch (wdata[i].control->cmd) { in sof_get_control_data()
2146 wdata[i].ipc_cmd = SOF_IPC_COMP_SET_VALUE; in sof_get_control_data()
2147 wdata[i].ctrl_type = SOF_CTRL_TYPE_VALUE_CHAN_SET; in sof_get_control_data()
2150 wdata[i].ipc_cmd = SOF_IPC_COMP_SET_DATA; in sof_get_control_data()
2151 wdata[i].ctrl_type = SOF_CTRL_TYPE_DATA_SET; in sof_get_control_data()
2169 struct sof_widget_data *wdata = NULL; in sof_process_load() local
2178 wdata = kcalloc(widget->num_kcontrols, in sof_process_load()
2179 sizeof(*wdata), in sof_process_load()
2182 if (!wdata) in sof_process_load()
2186 ret = sof_get_control_data(scomp, widget, wdata, in sof_process_load()
2231 wdata[i].pdata->data, in sof_process_load()
2232 wdata[i].pdata->size); in sof_process_load()
2233 offset += wdata[i].pdata->size; in sof_process_load()
2243 kfree(wdata); in sof_process_load()