Lines Matching refs:li
108 struct link_info *li, in graph_parse_node() argument
113 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_parse_node()
114 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in graph_parse_node()
147 struct link_info *li, in graph_link_init() argument
151 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_link_init()
170 struct link_info *li) in graph_dai_link_of_dpcm() argument
173 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_dai_link_of_dpcm()
174 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in graph_dai_link_of_dpcm()
176 struct device_node *ep = li->cpu ? cpu_ep : codec_ep; in graph_dai_link_of_dpcm()
182 if (li->cpu) { in graph_dai_link_of_dpcm()
194 ret = graph_parse_node(priv, cpu_ep, li, &is_single_links); in graph_dai_link_of_dpcm()
229 ret = graph_parse_node(priv, codec_ep, li, NULL); in graph_dai_link_of_dpcm()
254 ret = graph_link_init(priv, cpu_ep, codec_ep, li, dai_name); in graph_dai_link_of_dpcm()
256 li->link++; in graph_dai_link_of_dpcm()
264 struct link_info *li) in graph_dai_link_of() argument
267 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_dai_link_of()
276 ret = graph_parse_node(priv, cpu_ep, li, &is_single_links); in graph_dai_link_of()
280 ret = graph_parse_node(priv, codec_ep, li, NULL); in graph_dai_link_of()
290 ret = graph_link_init(priv, cpu_ep, codec_ep, li, dai_name); in graph_dai_link_of()
294 li->link++; in graph_dai_link_of()
322 struct link_info *li, in __graph_for_each_link() argument
326 struct link_info *li), in __graph_for_each_link() argument
330 struct link_info *li)) in __graph_for_each_link()
371 if (li->cpu || in __graph_for_each_link()
373 ret = func_dpcm(priv, cpu_ep, codec_ep, li); in __graph_for_each_link()
376 if (li->cpu) in __graph_for_each_link()
377 ret = func_noml(priv, cpu_ep, codec_ep, li); in __graph_for_each_link()
396 struct link_info *li, in graph_for_each_link() argument
400 struct link_info *li), in graph_for_each_link() argument
404 struct link_info *li)) in graph_for_each_link()
419 for (li->cpu = 1; li->cpu >= 0; li->cpu--) { in graph_for_each_link()
420 ret = __graph_for_each_link(priv, li, func_noml, func_dpcm); in graph_for_each_link()
431 struct link_info *li) in graph_count_noml() argument
435 if (li->link >= SNDRV_MAX_LINKS) { in graph_count_noml()
445 li->num[li->link].cpus = 1; in graph_count_noml()
446 li->num[li->link].platforms = 1; in graph_count_noml()
448 li->num[li->link].codecs = 1; in graph_count_noml()
450 li->link += 1; /* 1xCPU-Codec */ in graph_count_noml()
460 struct link_info *li) in graph_count_dpcm() argument
464 if (li->link >= SNDRV_MAX_LINKS) { in graph_count_dpcm()
469 if (li->cpu) { in graph_count_dpcm()
475 li->num[li->link].cpus = 1; in graph_count_dpcm()
476 li->num[li->link].platforms = 1; in graph_count_dpcm()
478 li->link++; /* 1xCPU-dummy */ in graph_count_dpcm()
480 li->num[li->link].codecs = 1; in graph_count_dpcm()
482 li->link++; /* 1xdummy-Codec */ in graph_count_dpcm()
491 struct link_info *li) in graph_get_dais_count() argument
539 return graph_for_each_link(priv, li, in graph_get_dais_count()
547 struct link_info *li; in audio_graph_parse_of() local
550 li = devm_kzalloc(dev, sizeof(*li), GFP_KERNEL); in audio_graph_parse_of()
551 if (!li) in audio_graph_parse_of()
557 ret = graph_get_dais_count(priv, li); in audio_graph_parse_of()
561 if (!li->link) in audio_graph_parse_of()
564 ret = asoc_simple_init_priv(priv, li); in audio_graph_parse_of()
583 memset(li, 0, sizeof(*li)); in audio_graph_parse_of()
584 ret = graph_for_each_link(priv, li, in audio_graph_parse_of()
602 devm_kfree(dev, li); in audio_graph_parse_of()