Lines Matching refs:li

153 			     struct link_info *li,  in simple_parse_node()  argument
159 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_parse_node()
160 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in simple_parse_node()
193 struct link_info *li, in simple_link_init() argument
197 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_link_init()
214 struct link_info *li, in simple_dai_link_of_dpcm() argument
218 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_dai_link_of_dpcm()
219 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in simple_dai_link_of_dpcm()
232 if (li->cpu) { in simple_dai_link_of_dpcm()
243 ret = simple_parse_node(priv, np, li, prefix, &is_single_links); in simple_dai_link_of_dpcm()
263 ret = simple_parse_node(priv, np, li, prefix, NULL); in simple_dai_link_of_dpcm()
282 ret = simple_link_init(priv, node, codec, li, prefix, dai_name); in simple_dai_link_of_dpcm()
285 li->link++; in simple_dai_link_of_dpcm()
294 struct link_info *li, in simple_dai_link_of() argument
298 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_dai_link_of()
322 ret = simple_parse_node(priv, cpu, li, prefix, &single_cpu); in simple_dai_link_of()
326 ret = simple_parse_node(priv, codec, li, prefix, NULL); in simple_dai_link_of()
340 ret = simple_link_init(priv, node, codec, li, prefix, dai_name); in simple_dai_link_of()
346 li->link++; in simple_dai_link_of()
352 struct link_info *li, in __simple_for_each_link() argument
356 struct link_info *li, bool is_top), in __simple_for_each_link()
360 struct link_info *li, bool is_top)) in __simple_for_each_link()
429 if (li->cpu != (np == codec)) in __simple_for_each_link()
430 ret = func_dpcm(priv, np, codec, li, is_top); in __simple_for_each_link()
439 if (li->cpu && (np != codec)) in __simple_for_each_link()
440 ret = func_noml(priv, np, codec, li, is_top); in __simple_for_each_link()
463 struct link_info *li, in simple_for_each_link() argument
467 struct link_info *li, bool is_top), in simple_for_each_link()
471 struct link_info *li, bool is_top)) in simple_for_each_link()
486 for (li->cpu = 1; li->cpu >= 0; li->cpu--) { in simple_for_each_link()
487 ret = __simple_for_each_link(priv, li, func_noml, func_dpcm); in simple_for_each_link()
520 static int simple_parse_of(struct asoc_simple_priv *priv, struct link_info *li) in simple_parse_of() argument
538 memset(li, 0, sizeof(*li)); in simple_parse_of()
539 ret = simple_for_each_link(priv, li, in simple_parse_of()
561 struct link_info *li, bool is_top) in simple_count_noml() argument
563 if (li->link >= SNDRV_MAX_LINKS) { in simple_count_noml()
584 li->num[li->link].cpus = 1; in simple_count_noml()
585 li->num[li->link].platforms = 1; in simple_count_noml()
587 li->num[li->link].codecs = 1; in simple_count_noml()
589 li->link += 1; in simple_count_noml()
597 struct link_info *li, bool is_top) in simple_count_dpcm() argument
599 if (li->link >= SNDRV_MAX_LINKS) { in simple_count_dpcm()
606 if (li->cpu) { in simple_count_dpcm()
612 li->num[li->link].cpus = 1; in simple_count_dpcm()
613 li->num[li->link].platforms = 1; in simple_count_dpcm()
615 li->link++; /* CPU-dummy */ in simple_count_dpcm()
617 li->num[li->link].codecs = 1; in simple_count_dpcm()
619 li->link++; /* dummy-Codec */ in simple_count_dpcm()
626 struct link_info *li) in simple_get_dais_count() argument
678 li->num[0].cpus = 1; in simple_get_dais_count()
679 li->num[0].codecs = 1; in simple_get_dais_count()
680 li->num[0].platforms = 1; in simple_get_dais_count()
682 li->link = 1; in simple_get_dais_count()
686 return simple_for_each_link(priv, li, in simple_get_dais_count()
717 struct link_info *li; in asoc_simple_probe() local
731 li = devm_kzalloc(dev, sizeof(*li), GFP_KERNEL); in asoc_simple_probe()
732 if (!li) in asoc_simple_probe()
735 ret = simple_get_dais_count(priv, li); in asoc_simple_probe()
739 if (!li->link) in asoc_simple_probe()
742 ret = asoc_simple_init_priv(priv, li); in asoc_simple_probe()
748 ret = simple_parse_of(priv, li); in asoc_simple_probe()
808 devm_kfree(dev, li); in asoc_simple_probe()