Lines Matching refs:sparams
549 struct sof_ipc_ctrl_data_params *sparams) in sof_get_ctrl_copy_params() argument
554 sparams->src = (u8 *)src->chanv; in sof_get_ctrl_copy_params()
555 sparams->dst = (u8 *)dst->chanv; in sof_get_ctrl_copy_params()
559 sparams->src = (u8 *)src->compv; in sof_get_ctrl_copy_params()
560 sparams->dst = (u8 *)dst->compv; in sof_get_ctrl_copy_params()
564 sparams->src = (u8 *)src->data->data; in sof_get_ctrl_copy_params()
565 sparams->dst = (u8 *)dst->data->data; in sof_get_ctrl_copy_params()
572 sparams->pl_size = SOF_IPC_MSG_MAX_SIZE - sparams->hdr_bytes; in sof_get_ctrl_copy_params()
573 sparams->num_msg = DIV_ROUND_UP(sparams->msg_bytes, sparams->pl_size); in sof_get_ctrl_copy_params()
580 struct sof_ipc_ctrl_data_params *sparams, in sof_set_get_large_ctrl_data() argument
598 sparams); in sof_set_get_large_ctrl_data()
601 sparams); in sof_set_get_large_ctrl_data()
607 msg_bytes = sparams->msg_bytes; in sof_set_get_large_ctrl_data()
608 pl_size = sparams->pl_size; in sof_set_get_large_ctrl_data()
611 memcpy(partdata, cdata, sparams->hdr_bytes); in sof_set_get_large_ctrl_data()
617 for (i = 0; i < sparams->num_msg; i++) { in sof_set_get_large_ctrl_data()
620 partdata->rhdr.hdr.size = sparams->hdr_bytes + send_bytes; in sof_set_get_large_ctrl_data()
626 memcpy(sparams->dst, sparams->src + offset, send_bytes); in sof_set_get_large_ctrl_data()
638 memcpy(sparams->dst + offset, sparams->src, send_bytes); in sof_set_get_large_ctrl_data()
663 struct sof_ipc_ctrl_data_params sparams; in snd_sof_ipc_set_get_comp_data() local
694 sparams.msg_bytes = scontrol->num_channels * in snd_sof_ipc_set_get_comp_data()
696 sparams.hdr_bytes = sizeof(struct sof_ipc_ctrl_data); in snd_sof_ipc_set_get_comp_data()
697 sparams.elems = scontrol->num_channels; in snd_sof_ipc_set_get_comp_data()
701 sparams.msg_bytes = scontrol->num_channels * in snd_sof_ipc_set_get_comp_data()
703 sparams.hdr_bytes = sizeof(struct sof_ipc_ctrl_data); in snd_sof_ipc_set_get_comp_data()
704 sparams.elems = scontrol->num_channels; in snd_sof_ipc_set_get_comp_data()
708 sparams.msg_bytes = cdata->data->size; in snd_sof_ipc_set_get_comp_data()
709 sparams.hdr_bytes = sizeof(struct sof_ipc_ctrl_data) + in snd_sof_ipc_set_get_comp_data()
711 sparams.elems = cdata->data->size; in snd_sof_ipc_set_get_comp_data()
717 cdata->rhdr.hdr.size = sparams.msg_bytes + sparams.hdr_bytes; in snd_sof_ipc_set_get_comp_data()
718 cdata->num_elems = sparams.elems; in snd_sof_ipc_set_get_comp_data()
744 err = sof_set_get_large_ctrl_data(sdev, cdata, &sparams, send); in snd_sof_ipc_set_get_comp_data()