Lines Matching refs:le32_to_cpu

195 		if (le32_to_cpu(chan[i].id) == map)  in tplc_chan_get_reg()
196 return le32_to_cpu(chan[i].reg); in tplc_chan_get_reg()
208 if (le32_to_cpu(chan[i].id) == map) in tplc_chan_get_shift()
209 return le32_to_cpu(chan[i].shift); in tplc_chan_get_shift()
513 if (le32_to_cpu(hdr->ops.info) == SND_SOC_TPLG_CTL_BYTES in soc_tplg_kcontrol_bind_io()
544 ext_ops[i].id == le32_to_cpu(be->ext_ops.put)) in soc_tplg_kcontrol_bind_io()
547 ext_ops[i].id == le32_to_cpu(be->ext_ops.get)) in soc_tplg_kcontrol_bind_io()
563 if (k->put == NULL && ops[i].id == le32_to_cpu(hdr->ops.put)) in soc_tplg_kcontrol_bind_io()
565 if (k->get == NULL && ops[i].id == le32_to_cpu(hdr->ops.get)) in soc_tplg_kcontrol_bind_io()
567 if (k->info == NULL && ops[i].id == le32_to_cpu(hdr->ops.info)) in soc_tplg_kcontrol_bind_io()
580 if (k->put == NULL && ops[i].id == le32_to_cpu(hdr->ops.put)) in soc_tplg_kcontrol_bind_io()
582 if (k->get == NULL && ops[i].id == le32_to_cpu(hdr->ops.get)) in soc_tplg_kcontrol_bind_io()
584 if (k->info == NULL && ops[i].id == le32_to_cpu(hdr->ops.info)) in soc_tplg_kcontrol_bind_io()
643 p[2] = le32_to_cpu(scale->min); in soc_tplg_create_tlv_db_scale()
644 p[3] = (le32_to_cpu(scale->step) & TLV_DB_SCALE_MASK) in soc_tplg_create_tlv_db_scale()
645 | (le32_to_cpu(scale->mute) ? TLV_DB_SCALE_MUTE : 0); in soc_tplg_create_tlv_db_scale()
655 u32 access = le32_to_cpu(tc->access); in soc_tplg_create_tlv()
662 switch (le32_to_cpu(tplg_tlv->type)) { in soc_tplg_create_tlv()
708 le32_to_cpu(be->priv.size)); in soc_tplg_dbytes_create()
718 kc.access = le32_to_cpu(be->hdr.access); in soc_tplg_dbytes_create()
720 sbe->max = le32_to_cpu(be->max); in soc_tplg_dbytes_create()
786 le32_to_cpu(mc->priv.size)); in soc_tplg_dmixer_create()
796 kc.access = le32_to_cpu(mc->hdr.access); in soc_tplg_dmixer_create()
808 sm->max = le32_to_cpu(mc->max); in soc_tplg_dmixer_create()
809 sm->min = le32_to_cpu(mc->min); in soc_tplg_dmixer_create()
810 sm->invert = le32_to_cpu(mc->invert); in soc_tplg_dmixer_create()
811 sm->platform_max = le32_to_cpu(mc->platform_max); in soc_tplg_dmixer_create()
861 if (le32_to_cpu(ec->items) > ARRAY_SIZE(ec->texts)) in soc_tplg_denum_create_texts()
865 devm_kcalloc(tplg->dev, le32_to_cpu(ec->items), sizeof(char *), GFP_KERNEL); in soc_tplg_denum_create_texts()
869 for (i = 0; i < le32_to_cpu(ec->items); i++) { in soc_tplg_denum_create_texts()
884 se->items = le32_to_cpu(ec->items); in soc_tplg_denum_create_texts()
903 if (le32_to_cpu(ec->items) > SND_SOC_TPLG_NUM_TEXTS) in soc_tplg_denum_create_values()
906 se->dobj.control.dvalues = devm_kcalloc(tplg->dev, le32_to_cpu(ec->items), in soc_tplg_denum_create_values()
913 for (i = 0; i < le32_to_cpu(ec->items); i++) { in soc_tplg_denum_create_values()
914 se->dobj.control.dvalues[i] = le32_to_cpu(ec->values[i]); in soc_tplg_denum_create_values()
951 le32_to_cpu(ec->priv.size)); in soc_tplg_denum_create()
960 kc.access = le32_to_cpu(ec->hdr.access); in soc_tplg_denum_create()
968 se->mask = le32_to_cpu(ec->mask); in soc_tplg_denum_create()
974 switch (le32_to_cpu(ec->hdr.ops.info)) { in soc_tplg_denum_create()
1046 for (i = 0; i < le32_to_cpu(hdr->count); i++) { in soc_tplg_kcontrol_elems_load()
1049 if (le32_to_cpu(control_hdr->size) != sizeof(*control_hdr)) { in soc_tplg_kcontrol_elems_load()
1054 switch (le32_to_cpu(control_hdr->ops.info)) { in soc_tplg_kcontrol_elems_load()
1063 le32_to_cpu(hdr->payload_size)); in soc_tplg_kcontrol_elems_load()
1071 le32_to_cpu(hdr->payload_size)); in soc_tplg_kcontrol_elems_load()
1075 le32_to_cpu(hdr->payload_size)); in soc_tplg_kcontrol_elems_load()
1111 count = le32_to_cpu(hdr->count); in soc_tplg_dapm_graph_elems_load()
1115 count, le32_to_cpu(hdr->payload_size), "graph")) { in soc_tplg_dapm_graph_elems_load()
1224 le32_to_cpu(mc->priv.size); in soc_tplg_dapm_widget_dmixer_create()
1234 kc->access = le32_to_cpu(mc->hdr.access); in soc_tplg_dapm_widget_dmixer_create()
1246 sm->max = le32_to_cpu(mc->max); in soc_tplg_dapm_widget_dmixer_create()
1247 sm->min = le32_to_cpu(mc->min); in soc_tplg_dapm_widget_dmixer_create()
1248 sm->invert = le32_to_cpu(mc->invert); in soc_tplg_dapm_widget_dmixer_create()
1249 sm->platform_max = le32_to_cpu(mc->platform_max); in soc_tplg_dapm_widget_dmixer_create()
1297 le32_to_cpu(ec->priv.size)); in soc_tplg_dapm_widget_denum_create()
1307 kc->access = le32_to_cpu(ec->hdr.access); in soc_tplg_dapm_widget_denum_create()
1316 se->items = le32_to_cpu(ec->items); in soc_tplg_dapm_widget_denum_create()
1317 se->mask = le32_to_cpu(ec->mask); in soc_tplg_dapm_widget_denum_create()
1320 switch (le32_to_cpu(ec->hdr.ops.info)) { in soc_tplg_dapm_widget_denum_create()
1383 le32_to_cpu(be->priv.size)); in soc_tplg_dapm_widget_dbytes_create()
1394 kc->access = le32_to_cpu(be->hdr.access); in soc_tplg_dapm_widget_dbytes_create()
1396 sbe->max = le32_to_cpu(be->max); in soc_tplg_dapm_widget_dbytes_create()
1446 template.id = get_widget_id(le32_to_cpu(w->id)); in soc_tplg_dapm_widget_create()
1459 template.reg = le32_to_cpu(w->reg); in soc_tplg_dapm_widget_create()
1460 template.shift = le32_to_cpu(w->shift); in soc_tplg_dapm_widget_create()
1461 template.mask = le32_to_cpu(w->mask); in soc_tplg_dapm_widget_create()
1462 template.subseq = le32_to_cpu(w->subseq); in soc_tplg_dapm_widget_create()
1465 template.ignore_suspend = le32_to_cpu(w->ignore_suspend); in soc_tplg_dapm_widget_create()
1471 le32_to_cpu(w->priv.size)); in soc_tplg_dapm_widget_create()
1478 template.num_kcontrols = le32_to_cpu(w->num_kcontrols); in soc_tplg_dapm_widget_create()
1479 kc = devm_kcalloc(tplg->dev, le32_to_cpu(w->num_kcontrols), sizeof(*kc), GFP_KERNEL); in soc_tplg_dapm_widget_create()
1483 kcontrol_type = devm_kcalloc(tplg->dev, le32_to_cpu(w->num_kcontrols), sizeof(unsigned int), in soc_tplg_dapm_widget_create()
1488 for (i = 0; i < le32_to_cpu(w->num_kcontrols); i++) { in soc_tplg_dapm_widget_create()
1490 switch (le32_to_cpu(control_hdr->ops.info)) { in soc_tplg_dapm_widget_create()
1530 le32_to_cpu(control_hdr->ops.info)); in soc_tplg_dapm_widget_create()
1586 count = le32_to_cpu(hdr->count); in soc_tplg_dapm_widget_elems_load()
1605 if (le32_to_cpu(widget->size) != sizeof(*widget)) { in soc_tplg_dapm_widget_elems_load()
1611 if (soc_tplg_get_offset(tplg) + le32_to_cpu(widget->priv.size) >= tplg->fw->size) { in soc_tplg_dapm_widget_elems_load()
1656 stream->channels_min = le32_to_cpu(caps->channels_min); in set_stream_info()
1657 stream->channels_max = le32_to_cpu(caps->channels_max); in set_stream_info()
1658 stream->rates = le32_to_cpu(caps->rates); in set_stream_info()
1659 stream->rate_min = le32_to_cpu(caps->rate_min); in set_stream_info()
1660 stream->rate_max = le32_to_cpu(caps->rate_max); in set_stream_info()
1662 stream->sig_bits = le32_to_cpu(caps->sig_bits); in set_stream_info()
1707 dai_drv->id = le32_to_cpu(pcm->dai_id); in soc_tplg_dai_create()
1817 link->id = le32_to_cpu(pcm->pcm_id); in soc_tplg_fe_link_create()
1834 link->dpcm_playback = le32_to_cpu(pcm->playback); in soc_tplg_fe_link_create()
1835 link->dpcm_capture = le32_to_cpu(pcm->capture); in soc_tplg_fe_link_create()
1838 le32_to_cpu(pcm->flag_mask), in soc_tplg_fe_link_create()
1839 le32_to_cpu(pcm->flags)); in soc_tplg_fe_link_create()
1912 if (le32_to_cpu(src->size) != sizeof(*src_v4)) { in pcm_new_ver()
1932 for (i = 0; i < le32_to_cpu(dest->num_streams); i++) in pcm_new_ver()
1953 count = le32_to_cpu(hdr->count); in soc_tplg_pcm_elems_load()
1957 size = le32_to_cpu(pcm->size); in soc_tplg_pcm_elems_load()
1967 le32_to_cpu(hdr->payload_size), in soc_tplg_pcm_elems_load()
1976 size = le32_to_cpu(pcm->size); in soc_tplg_pcm_elems_load()
2002 tplg->pos += size + le32_to_cpu(_pcm->priv.size); in soc_tplg_pcm_elems_load()
2030 for (i = 0; i < le32_to_cpu(cfg->num_hw_configs); i++) { in set_link_hw_format()
2035 link->dai_fmt = le32_to_cpu(hw_config->fmt) & in set_link_hw_format()
2100 if (le32_to_cpu(src->size) != in link_new_ver()
2116 for (i = 0; i < le32_to_cpu(dest->num_streams); i++) in link_new_ver()
2189 link = snd_soc_find_dai_link(tplg->comp->card, le32_to_cpu(cfg->id), in soc_tplg_link_config()
2204 le32_to_cpu(cfg->flag_mask), in soc_tplg_link_config()
2205 le32_to_cpu(cfg->flags)); in soc_tplg_link_config()
2234 count = le32_to_cpu(hdr->count); in soc_tplg_link_elems_load()
2238 size = le32_to_cpu(link->size); in soc_tplg_link_elems_load()
2248 le32_to_cpu(hdr->payload_size), in soc_tplg_link_elems_load()
2258 size = le32_to_cpu(link->size); in soc_tplg_link_elems_load()
2279 tplg->pos += size + le32_to_cpu(_link->priv.size); in soc_tplg_link_elems_load()
2316 if (le32_to_cpu(d->dai_id) != dai->id) { in soc_tplg_dai_config()
2344 le32_to_cpu(d->flag_mask), in soc_tplg_dai_config()
2345 le32_to_cpu(d->flags)); in soc_tplg_dai_config()
2367 count = le32_to_cpu(hdr->count); in soc_tplg_dai_elems_load()
2374 if (le32_to_cpu(dai->size) != sizeof(*dai)) { in soc_tplg_dai_elems_load()
2385 tplg->pos += (sizeof(*dai) + le32_to_cpu(dai->priv.size)); in soc_tplg_dai_elems_load()
2411 size = le32_to_cpu(src->size); in manifest_new_ver()
2423 dest = kzalloc(sizeof(*dest) + le32_to_cpu(src_v4->priv.size), in manifest_new_ver()
2437 le32_to_cpu(src_v4->priv.size)); in manifest_new_ver()
2453 if (le32_to_cpu(manifest->size) == sizeof(*manifest)) { in soc_tplg_manifest_load()
2481 if (le32_to_cpu(hdr->size) != sizeof(*hdr)) { in soc_valid_header()
2484 le32_to_cpu(hdr->type), soc_tplg_get_hdr_offset(tplg), in soc_valid_header()
2492 le32_to_cpu(hdr->type), soc_tplg_get_hdr_offset(tplg), in soc_valid_header()
2498 if (le32_to_cpu(hdr->magic) == SOC_TPLG_MAGIC_BIG_ENDIAN) { in soc_valid_header()
2506 if (le32_to_cpu(hdr->magic) != SND_SOC_TPLG_MAGIC) { in soc_valid_header()
2515 if (le32_to_cpu(hdr->abi) > SND_SOC_TPLG_ABI_VERSION || in soc_valid_header()
2516 le32_to_cpu(hdr->abi) < SND_SOC_TPLG_ABI_VERSION_MIN) { in soc_valid_header()
2544 tplg->index = le32_to_cpu(hdr->index); in soc_tplg_load_header()
2546 switch (le32_to_cpu(hdr->type)) { in soc_tplg_load_header()
2632 tplg->hdr_pos += le32_to_cpu(hdr->payload_size) + in soc_tplg_process_headers()