Lines Matching refs:li
495 struct link_info *li, in __graph_parse_node() argument
499 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in __graph_parse_node()
500 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in __graph_parse_node()
605 struct link_info *li, int is_cpu) in graph_parse_node() argument
621 li, is_cpu, idx); in graph_parse_node()
629 ret = __graph_parse_node(priv, gtype, ep, li, is_cpu, 0); in graph_parse_node()
688 struct link_info *li, in graph_link_init() argument
691 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_link_init()
742 struct link_info *li) in audio_graph2_link_normal() argument
754 ret = graph_parse_node(priv, GRAPH_NORMAL, codec_port, li, 0); in audio_graph2_link_normal()
761 ret = graph_parse_node(priv, GRAPH_NORMAL, cpu_port, li, 1); in audio_graph2_link_normal()
765 graph_link_init(priv, cpu_port, li, 1); in audio_graph2_link_normal()
776 struct link_info *li) in audio_graph2_link_dpcm() argument
781 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in audio_graph2_link_dpcm()
782 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in audio_graph2_link_dpcm()
814 ret = graph_parse_node(priv, GRAPH_DPCM, rport, li, 1); in audio_graph2_link_dpcm()
847 ret = graph_parse_node(priv, GRAPH_DPCM, rport, li, 0); in audio_graph2_link_dpcm()
856 graph_link_init(priv, rport, li, is_cpu); in audio_graph2_link_dpcm()
868 struct link_info *li) in audio_graph2_link_c2c() argument
870 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in audio_graph2_link_c2c()
937 ret = graph_parse_node(priv, GRAPH_C2C, codec1_port, li, 0); in audio_graph2_link_c2c()
944 ret = graph_parse_node(priv, GRAPH_C2C, codec0_port, li, 1); in audio_graph2_link_c2c()
948 graph_link_init(priv, codec0_port, li, 1); in audio_graph2_link_c2c()
967 struct link_info *li) in graph_link() argument
1001 ret = func(priv, lnk, li); in graph_link()
1005 li->link++; in graph_link()
1037 struct link_info *li) in graph_count_normal() argument
1048 li->num[li->link].cpus = in graph_count_normal()
1049 li->num[li->link].platforms = graph_counter(cpu_port); in graph_count_normal()
1050 li->num[li->link].codecs = graph_counter(codec_port); in graph_count_normal()
1060 struct link_info *li) in graph_count_dpcm() argument
1081 li->num[li->link].cpus = graph_counter(rport); /* FE */ in graph_count_dpcm()
1082 li->num[li->link].platforms = graph_counter(rport); in graph_count_dpcm()
1084 li->num[li->link].codecs = graph_counter(rport); /* BE */ in graph_count_dpcm()
1095 struct link_info *li) in graph_count_c2c() argument
1115 li->num[li->link].cpus = in graph_count_c2c()
1116 li->num[li->link].platforms = graph_counter(codec0); in graph_count_c2c()
1117 li->num[li->link].codecs = graph_counter(codec1); in graph_count_c2c()
1133 struct link_info *li) in graph_count() argument
1139 if (li->link >= SNDRV_MAX_LINKS) { in graph_count()
1163 ret = func(priv, lnk, li); in graph_count()
1167 li->link++; in graph_count()
1174 struct link_info *li, in graph_for_each_link() argument
1179 struct link_info *li)) in graph_for_each_link()
1194 ret = func(priv, hooks, gtype, lnk, li); in graph_for_each_link()
1206 struct link_info *li; in audio_graph2_parse_of() local
1209 li = devm_kzalloc(dev, sizeof(*li), GFP_KERNEL); in audio_graph2_parse_of()
1210 if (!li) in audio_graph2_parse_of()
1223 ret = graph_for_each_link(priv, hooks, li, graph_count); in audio_graph2_parse_of()
1224 if (!li->link) in audio_graph2_parse_of()
1229 ret = asoc_simple_init_priv(priv, li); in audio_graph2_parse_of()
1248 memset(li, 0, sizeof(*li)); in audio_graph2_parse_of()
1249 ret = graph_for_each_link(priv, hooks, li, graph_link); in audio_graph2_parse_of()
1269 devm_kfree(dev, li); in audio_graph2_parse_of()