Lines Matching refs:dest
1762 static void stream_caps_new_ver(struct snd_soc_tplg_stream_caps *dest, in stream_caps_new_ver() argument
1765 dest->size = cpu_to_le32(sizeof(*dest)); in stream_caps_new_ver()
1766 memcpy(dest->name, src->name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN); in stream_caps_new_ver()
1767 dest->formats = src->formats; in stream_caps_new_ver()
1768 dest->rates = src->rates; in stream_caps_new_ver()
1769 dest->rate_min = src->rate_min; in stream_caps_new_ver()
1770 dest->rate_max = src->rate_max; in stream_caps_new_ver()
1771 dest->channels_min = src->channels_min; in stream_caps_new_ver()
1772 dest->channels_max = src->channels_max; in stream_caps_new_ver()
1773 dest->periods_min = src->periods_min; in stream_caps_new_ver()
1774 dest->periods_max = src->periods_max; in stream_caps_new_ver()
1775 dest->period_size_min = src->period_size_min; in stream_caps_new_ver()
1776 dest->period_size_max = src->period_size_max; in stream_caps_new_ver()
1777 dest->buffer_size_min = src->buffer_size_min; in stream_caps_new_ver()
1778 dest->buffer_size_max = src->buffer_size_max; in stream_caps_new_ver()
1793 struct snd_soc_tplg_pcm *dest; in pcm_new_ver() local
1806 dest = kzalloc(sizeof(*dest), GFP_KERNEL); in pcm_new_ver()
1807 if (!dest) in pcm_new_ver()
1810 dest->size = cpu_to_le32(sizeof(*dest)); /* size of latest abi version */ in pcm_new_ver()
1811 memcpy(dest->pcm_name, src_v4->pcm_name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN); in pcm_new_ver()
1812 memcpy(dest->dai_name, src_v4->dai_name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN); in pcm_new_ver()
1813 dest->pcm_id = src_v4->pcm_id; in pcm_new_ver()
1814 dest->dai_id = src_v4->dai_id; in pcm_new_ver()
1815 dest->playback = src_v4->playback; in pcm_new_ver()
1816 dest->capture = src_v4->capture; in pcm_new_ver()
1817 dest->compress = src_v4->compress; in pcm_new_ver()
1818 dest->num_streams = src_v4->num_streams; in pcm_new_ver()
1819 for (i = 0; i < le32_to_cpu(dest->num_streams); i++) in pcm_new_ver()
1820 memcpy(&dest->stream[i], &src_v4->stream[i], in pcm_new_ver()
1824 stream_caps_new_ver(&dest->caps[i], &src_v4->caps[i]); in pcm_new_ver()
1826 *pcm = dest; in pcm_new_ver()
1978 struct snd_soc_tplg_link_config *dest; in link_new_ver() local
1993 dest = kzalloc(sizeof(*dest), GFP_KERNEL); in link_new_ver()
1994 if (!dest) in link_new_ver()
1997 dest->size = cpu_to_le32(sizeof(*dest)); in link_new_ver()
1998 dest->id = src_v4->id; in link_new_ver()
1999 dest->num_streams = src_v4->num_streams; in link_new_ver()
2000 for (i = 0; i < le32_to_cpu(dest->num_streams); i++) in link_new_ver()
2001 memcpy(&dest->stream[i], &src_v4->stream[i], in link_new_ver()
2004 *link = dest; in link_new_ver()
2286 struct snd_soc_tplg_manifest *dest; in manifest_new_ver() local
2304 dest = kzalloc(sizeof(*dest) + le32_to_cpu(src_v4->priv.size), in manifest_new_ver()
2306 if (!dest) in manifest_new_ver()
2309 dest->size = cpu_to_le32(sizeof(*dest)); /* size of latest abi version */ in manifest_new_ver()
2310 dest->control_elems = src_v4->control_elems; in manifest_new_ver()
2311 dest->widget_elems = src_v4->widget_elems; in manifest_new_ver()
2312 dest->graph_elems = src_v4->graph_elems; in manifest_new_ver()
2313 dest->pcm_elems = src_v4->pcm_elems; in manifest_new_ver()
2314 dest->dai_link_elems = src_v4->dai_link_elems; in manifest_new_ver()
2315 dest->priv.size = src_v4->priv.size; in manifest_new_ver()
2316 if (dest->priv.size) in manifest_new_ver()
2317 memcpy(dest->priv.data, src_v4->priv.data, in manifest_new_ver()
2320 *manifest = dest; in manifest_new_ver()