Lines Matching refs:le32_to_cpu

191 		if (le32_to_cpu(chan[i].id) == map)  in tplg_chan_get_reg()
192 return le32_to_cpu(chan[i].reg); in tplg_chan_get_reg()
204 if (le32_to_cpu(chan[i].id) == map) in tplg_chan_get_shift()
205 return le32_to_cpu(chan[i].shift); in tplg_chan_get_shift()
477 if (le32_to_cpu(hdr->ops.info) == SND_SOC_TPLG_CTL_BYTES in soc_tplg_kcontrol_bind_io()
509 ext_ops[i].id == le32_to_cpu(be->ext_ops.put)) in soc_tplg_kcontrol_bind_io()
512 ext_ops[i].id == le32_to_cpu(be->ext_ops.get)) in soc_tplg_kcontrol_bind_io()
528 if (k->put == NULL && ops[i].id == le32_to_cpu(hdr->ops.put)) in soc_tplg_kcontrol_bind_io()
530 if (k->get == NULL && ops[i].id == le32_to_cpu(hdr->ops.get)) in soc_tplg_kcontrol_bind_io()
532 if (k->info == NULL && ops[i].id == le32_to_cpu(hdr->ops.info)) in soc_tplg_kcontrol_bind_io()
545 if (k->put == NULL && ops[i].id == le32_to_cpu(hdr->ops.put)) in soc_tplg_kcontrol_bind_io()
547 if (k->get == NULL && ops[i].id == le32_to_cpu(hdr->ops.get)) in soc_tplg_kcontrol_bind_io()
549 if (k->info == NULL && ops[i].id == le32_to_cpu(hdr->ops.info)) in soc_tplg_kcontrol_bind_io()
612 p[2] = le32_to_cpu(scale->min); in soc_tplg_create_tlv_db_scale()
613 p[3] = (le32_to_cpu(scale->step) & TLV_DB_SCALE_MASK) in soc_tplg_create_tlv_db_scale()
614 | (le32_to_cpu(scale->mute) ? TLV_DB_SCALE_MUTE : 0); in soc_tplg_create_tlv_db_scale()
624 u32 access = le32_to_cpu(tc->access); in soc_tplg_create_tlv()
631 switch (le32_to_cpu(tplg_tlv->type)) { in soc_tplg_create_tlv()
671 le32_to_cpu(be->priv.size)); in soc_tplg_dbytes_create()
681 kc.access = le32_to_cpu(be->hdr.access); in soc_tplg_dbytes_create()
683 sbe->max = le32_to_cpu(be->max); in soc_tplg_dbytes_create()
735 le32_to_cpu(mc->priv.size)); in soc_tplg_dmixer_create()
745 kc.access = le32_to_cpu(mc->hdr.access); in soc_tplg_dmixer_create()
753 sm->max = le32_to_cpu(mc->max); in soc_tplg_dmixer_create()
754 sm->min = le32_to_cpu(mc->min); in soc_tplg_dmixer_create()
755 sm->invert = le32_to_cpu(mc->invert); in soc_tplg_dmixer_create()
756 sm->platform_max = le32_to_cpu(mc->platform_max); in soc_tplg_dmixer_create()
798 if (le32_to_cpu(ec->items) > ARRAY_SIZE(ec->texts)) in soc_tplg_denum_create_texts()
802 devm_kcalloc(tplg->dev, le32_to_cpu(ec->items), sizeof(char *), GFP_KERNEL); in soc_tplg_denum_create_texts()
806 for (i = 0; i < le32_to_cpu(ec->items); i++) { in soc_tplg_denum_create_texts()
821 se->items = le32_to_cpu(ec->items); in soc_tplg_denum_create_texts()
840 if (le32_to_cpu(ec->items) > SND_SOC_TPLG_NUM_TEXTS) in soc_tplg_denum_create_values()
843 se->dobj.control.dvalues = devm_kcalloc(tplg->dev, le32_to_cpu(ec->items), in soc_tplg_denum_create_values()
850 for (i = 0; i < le32_to_cpu(ec->items); i++) { in soc_tplg_denum_create_values()
851 se->dobj.control.dvalues[i] = le32_to_cpu(ec->values[i]); in soc_tplg_denum_create_values()
854 se->items = le32_to_cpu(ec->items); in soc_tplg_denum_create_values()
883 le32_to_cpu(ec->priv.size)); in soc_tplg_denum_create()
892 kc.access = le32_to_cpu(ec->hdr.access); in soc_tplg_denum_create()
900 se->mask = le32_to_cpu(ec->mask); in soc_tplg_denum_create()
907 switch (le32_to_cpu(ec->hdr.ops.info)) { in soc_tplg_denum_create()
969 for (i = 0; i < le32_to_cpu(hdr->count); i++) { in soc_tplg_kcontrol_elems_load()
972 if (le32_to_cpu(control_hdr->size) != sizeof(*control_hdr)) { in soc_tplg_kcontrol_elems_load()
977 switch (le32_to_cpu(control_hdr->ops.info)) { in soc_tplg_kcontrol_elems_load()
985 ret = soc_tplg_dmixer_create(tplg, le32_to_cpu(hdr->payload_size)); in soc_tplg_kcontrol_elems_load()
992 ret = soc_tplg_denum_create(tplg, le32_to_cpu(hdr->payload_size)); in soc_tplg_kcontrol_elems_load()
995 ret = soc_tplg_dbytes_create(tplg, le32_to_cpu(hdr->payload_size)); in soc_tplg_kcontrol_elems_load()
1032 count = le32_to_cpu(hdr->count); in soc_tplg_dapm_graph_elems_load()
1036 count, le32_to_cpu(hdr->payload_size), "graph")) in soc_tplg_dapm_graph_elems_load()
1110 le32_to_cpu(mc->priv.size); in soc_tplg_dapm_widget_dmixer_create()
1120 kc->access = le32_to_cpu(mc->hdr.access); in soc_tplg_dapm_widget_dmixer_create()
1132 sm->max = le32_to_cpu(mc->max); in soc_tplg_dapm_widget_dmixer_create()
1133 sm->min = le32_to_cpu(mc->min); in soc_tplg_dapm_widget_dmixer_create()
1134 sm->invert = le32_to_cpu(mc->invert); in soc_tplg_dapm_widget_dmixer_create()
1135 sm->platform_max = le32_to_cpu(mc->platform_max); in soc_tplg_dapm_widget_dmixer_create()
1179 le32_to_cpu(ec->priv.size)); in soc_tplg_dapm_widget_denum_create()
1189 kc->access = le32_to_cpu(ec->hdr.access); in soc_tplg_dapm_widget_denum_create()
1198 se->items = le32_to_cpu(ec->items); in soc_tplg_dapm_widget_denum_create()
1199 se->mask = le32_to_cpu(ec->mask); in soc_tplg_dapm_widget_denum_create()
1202 switch (le32_to_cpu(ec->hdr.ops.info)) { in soc_tplg_dapm_widget_denum_create()
1261 le32_to_cpu(be->priv.size)); in soc_tplg_dapm_widget_dbytes_create()
1272 kc->access = le32_to_cpu(be->hdr.access); in soc_tplg_dapm_widget_dbytes_create()
1274 sbe->max = le32_to_cpu(be->max); in soc_tplg_dapm_widget_dbytes_create()
1320 template.id = get_widget_id(le32_to_cpu(w->id)); in soc_tplg_dapm_widget_create()
1333 template.reg = le32_to_cpu(w->reg); in soc_tplg_dapm_widget_create()
1334 template.shift = le32_to_cpu(w->shift); in soc_tplg_dapm_widget_create()
1335 template.mask = le32_to_cpu(w->mask); in soc_tplg_dapm_widget_create()
1336 template.subseq = le32_to_cpu(w->subseq); in soc_tplg_dapm_widget_create()
1339 template.ignore_suspend = le32_to_cpu(w->ignore_suspend); in soc_tplg_dapm_widget_create()
1345 le32_to_cpu(w->priv.size)); in soc_tplg_dapm_widget_create()
1352 template.num_kcontrols = le32_to_cpu(w->num_kcontrols); in soc_tplg_dapm_widget_create()
1353 kc = devm_kcalloc(tplg->dev, le32_to_cpu(w->num_kcontrols), sizeof(*kc), GFP_KERNEL); in soc_tplg_dapm_widget_create()
1359 kcontrol_type = devm_kcalloc(tplg->dev, le32_to_cpu(w->num_kcontrols), sizeof(unsigned int), in soc_tplg_dapm_widget_create()
1366 for (i = 0; i < le32_to_cpu(w->num_kcontrols); i++) { in soc_tplg_dapm_widget_create()
1368 switch (le32_to_cpu(control_hdr->ops.info)) { in soc_tplg_dapm_widget_create()
1408 le32_to_cpu(control_hdr->ops.info)); in soc_tplg_dapm_widget_create()
1465 count = le32_to_cpu(hdr->count); in soc_tplg_dapm_widget_elems_load()
1484 if (le32_to_cpu(widget->size) != sizeof(*widget)) { in soc_tplg_dapm_widget_elems_load()
1490 if (soc_tplg_get_offset(tplg) + le32_to_cpu(widget->priv.size) >= tplg->fw->size) { in soc_tplg_dapm_widget_elems_load()
1533 stream->channels_min = le32_to_cpu(caps->channels_min); in set_stream_info()
1534 stream->channels_max = le32_to_cpu(caps->channels_max); in set_stream_info()
1535 stream->rates = le32_to_cpu(caps->rates); in set_stream_info()
1536 stream->rate_min = le32_to_cpu(caps->rate_min); in set_stream_info()
1537 stream->rate_max = le32_to_cpu(caps->rate_max); in set_stream_info()
1539 stream->sig_bits = le32_to_cpu(caps->sig_bits); in set_stream_info()
1588 dai_drv->id = le32_to_cpu(pcm->dai_id); in soc_tplg_dai_create()
1695 link->id = le32_to_cpu(pcm->pcm_id); in soc_tplg_fe_link_create()
1722 link->dpcm_playback = le32_to_cpu(pcm->playback); in soc_tplg_fe_link_create()
1723 link->dpcm_capture = le32_to_cpu(pcm->capture); in soc_tplg_fe_link_create()
1726 le32_to_cpu(pcm->flag_mask), in soc_tplg_fe_link_create()
1727 le32_to_cpu(pcm->flags)); in soc_tplg_fe_link_create()
1801 if (le32_to_cpu(src->size) != sizeof(*src_v4)) { in pcm_new_ver()
1821 for (i = 0; i < le32_to_cpu(dest->num_streams); i++) in pcm_new_ver()
1842 count = le32_to_cpu(hdr->count); in soc_tplg_pcm_elems_load()
1846 size = le32_to_cpu(pcm->size); in soc_tplg_pcm_elems_load()
1856 le32_to_cpu(hdr->payload_size), in soc_tplg_pcm_elems_load()
1862 size = le32_to_cpu(pcm->size); in soc_tplg_pcm_elems_load()
1888 tplg->pos += size + le32_to_cpu(_pcm->priv.size); in soc_tplg_pcm_elems_load()
1916 for (i = 0; i < le32_to_cpu(cfg->num_hw_configs); i++) { in set_link_hw_format()
1921 link->dai_fmt = le32_to_cpu(hw_config->fmt) & in set_link_hw_format()
1986 if (le32_to_cpu(src->size) != in link_new_ver()
2002 for (i = 0; i < le32_to_cpu(dest->num_streams); i++) in link_new_ver()
2075 link = snd_soc_find_dai_link(tplg->comp->card, le32_to_cpu(cfg->id), in soc_tplg_link_config()
2090 le32_to_cpu(cfg->flag_mask), in soc_tplg_link_config()
2091 le32_to_cpu(cfg->flags)); in soc_tplg_link_config()
2121 count = le32_to_cpu(hdr->count); in soc_tplg_link_elems_load()
2125 size = le32_to_cpu(link->size); in soc_tplg_link_elems_load()
2134 le32_to_cpu(hdr->payload_size), in soc_tplg_link_elems_load()
2141 size = le32_to_cpu(link->size); in soc_tplg_link_elems_load()
2162 tplg->pos += size + le32_to_cpu(_link->priv.size); in soc_tplg_link_elems_load()
2199 if (le32_to_cpu(d->dai_id) != dai->id) { in soc_tplg_dai_config()
2227 le32_to_cpu(d->flag_mask), in soc_tplg_dai_config()
2228 le32_to_cpu(d->flags)); in soc_tplg_dai_config()
2250 count = le32_to_cpu(hdr->count); in soc_tplg_dai_elems_load()
2257 if (le32_to_cpu(dai->size) != sizeof(*dai)) { in soc_tplg_dai_elems_load()
2268 tplg->pos += (sizeof(*dai) + le32_to_cpu(dai->priv.size)); in soc_tplg_dai_elems_load()
2294 size = le32_to_cpu(src->size); in manifest_new_ver()
2306 dest = kzalloc(sizeof(*dest) + le32_to_cpu(src_v4->priv.size), in manifest_new_ver()
2320 le32_to_cpu(src_v4->priv.size)); in manifest_new_ver()
2336 if (le32_to_cpu(manifest->size) == sizeof(*manifest)) { in soc_tplg_manifest_load()
2361 if (le32_to_cpu(hdr->size) != sizeof(*hdr)) { in soc_tplg_valid_header()
2364 le32_to_cpu(hdr->type), soc_tplg_get_hdr_offset(tplg), in soc_tplg_valid_header()
2369 if (soc_tplg_get_hdr_offset(tplg) + le32_to_cpu(hdr->payload_size) >= tplg->fw->size) { in soc_tplg_valid_header()
2372 le32_to_cpu(hdr->type), soc_tplg_get_hdr_offset(tplg), in soc_tplg_valid_header()
2378 if (le32_to_cpu(hdr->magic) == SOC_TPLG_MAGIC_BIG_ENDIAN) { in soc_tplg_valid_header()
2386 if (le32_to_cpu(hdr->magic) != SND_SOC_TPLG_MAGIC) { in soc_tplg_valid_header()
2395 if (le32_to_cpu(hdr->abi) > SND_SOC_TPLG_ABI_VERSION || in soc_tplg_valid_header()
2396 le32_to_cpu(hdr->abi) < SND_SOC_TPLG_ABI_VERSION_MIN) { in soc_tplg_valid_header()
2424 tplg->index = le32_to_cpu(hdr->index); in soc_tplg_load_header()
2426 switch (le32_to_cpu(hdr->type)) { in soc_tplg_load_header()
2508 tplg->hdr_pos += le32_to_cpu(hdr->payload_size) + in soc_tplg_process_headers()