Lines Matching refs:li
402 struct link_info *li, in __graph_parse_node() argument
406 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in __graph_parse_node()
407 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in __graph_parse_node()
512 struct link_info *li, int is_cpu) in graph_parse_node() argument
528 li, is_cpu, idx); in graph_parse_node()
536 ret = __graph_parse_node(priv, gtype, ep, li, is_cpu, 0); in graph_parse_node()
595 struct link_info *li, in graph_link_init() argument
598 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_link_init()
649 struct link_info *li) in audio_graph2_link_normal() argument
661 ret = graph_parse_node(priv, GRAPH_NORMAL, codec_port, li, 0); in audio_graph2_link_normal()
668 ret = graph_parse_node(priv, GRAPH_NORMAL, cpu_port, li, 1); in audio_graph2_link_normal()
672 graph_link_init(priv, cpu_port, li, 1); in audio_graph2_link_normal()
683 struct link_info *li) in audio_graph2_link_dpcm() argument
688 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in audio_graph2_link_dpcm()
689 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in audio_graph2_link_dpcm()
721 ret = graph_parse_node(priv, GRAPH_DPCM, rport, li, 1); in audio_graph2_link_dpcm()
754 ret = graph_parse_node(priv, GRAPH_DPCM, rport, li, 0); in audio_graph2_link_dpcm()
764 graph_link_init(priv, rport, li, is_cpu); in audio_graph2_link_dpcm()
776 struct link_info *li) in audio_graph2_link_c2c() argument
778 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in audio_graph2_link_c2c()
845 ret = graph_parse_node(priv, GRAPH_C2C, codec1_port, li, 0); in audio_graph2_link_c2c()
852 ret = graph_parse_node(priv, GRAPH_C2C, codec0_port, li, 1); in audio_graph2_link_c2c()
856 graph_link_init(priv, codec0_port, li, 1); in audio_graph2_link_c2c()
875 struct link_info *li) in graph_link() argument
909 ret = func(priv, lnk, li); in graph_link()
913 li->link++; in graph_link()
945 struct link_info *li) in graph_count_normal() argument
961 li->num[li->link].cpus = in graph_count_normal()
962 li->num[li->link].platforms = graph_counter(cpu_port); in graph_count_normal()
964 li->num[li->link].codecs = graph_counter(codec_port); in graph_count_normal()
974 struct link_info *li) in graph_count_dpcm() argument
1000 li->num[li->link].cpus = graph_counter(rport); /* FE */ in graph_count_dpcm()
1001 li->num[li->link].platforms = graph_counter(rport); in graph_count_dpcm()
1003 li->num[li->link].codecs = graph_counter(rport); /* BE */ in graph_count_dpcm()
1014 struct link_info *li) in graph_count_c2c() argument
1039 li->num[li->link].cpus = in graph_count_c2c()
1040 li->num[li->link].platforms = graph_counter(codec0); in graph_count_c2c()
1042 li->num[li->link].codecs = graph_counter(codec1); in graph_count_c2c()
1058 struct link_info *li) in graph_count() argument
1064 if (li->link >= SNDRV_MAX_LINKS) { in graph_count()
1088 ret = func(priv, lnk, li); in graph_count()
1092 li->link++; in graph_count()
1099 struct link_info *li, in graph_for_each_link() argument
1104 struct link_info *li)) in graph_for_each_link()
1119 ret = func(priv, hooks, gtype, lnk, li); in graph_for_each_link()
1131 struct link_info *li; in audio_graph2_parse_of() local
1134 li = devm_kzalloc(dev, sizeof(*li), GFP_KERNEL); in audio_graph2_parse_of()
1135 if (!li) in audio_graph2_parse_of()
1148 ret = graph_for_each_link(priv, hooks, li, graph_count); in audio_graph2_parse_of()
1149 if (!li->link) in audio_graph2_parse_of()
1154 ret = asoc_simple_init_priv(priv, li); in audio_graph2_parse_of()
1173 memset(li, 0, sizeof(*li)); in audio_graph2_parse_of()
1174 ret = graph_for_each_link(priv, hooks, li, graph_link); in audio_graph2_parse_of()
1194 devm_kfree(dev, li); in audio_graph2_parse_of()