Lines Matching full:lnk

242 static enum graph_type __graph_get_type(struct device_node *lnk)  in __graph_get_type()  argument
250 * => lnk: port@0 { ... }; in __graph_get_type()
255 np = of_get_parent(lnk); in __graph_get_type()
289 struct device_node *lnk) in graph_get_type() argument
291 enum graph_type type = __graph_get_type(lnk); in graph_get_type()
304 if (asoc_graph_is_ports0(lnk)) in graph_get_type()
316 dev_dbg(dev, "%pOF (%s)", lnk, str); in graph_get_type()
322 static int graph_lnk_is_multi(struct device_node *lnk) in graph_lnk_is_multi() argument
324 return __graph_get_type(lnk) == GRAPH_MULTI; in graph_lnk_is_multi()
336 * => lnk: port@0 { ... }; in graph_get_next_multi_ep()
651 struct device_node *lnk, in audio_graph2_link_normal() argument
654 struct device_node *cpu_port = lnk; in audio_graph2_link_normal()
685 struct device_node *lnk, in audio_graph2_link_dpcm() argument
688 struct device_node *ep = port_to_endpoint(lnk); in audio_graph2_link_dpcm()
693 int is_cpu = asoc_graph_is_ports0(lnk); in audio_graph2_link_dpcm()
701 * => lnk: port@0 { ep: { ... = rep }; }; in audio_graph2_link_dpcm()
736 * => lnk: port@0 { ep: { ... = rep; }; }; in audio_graph2_link_dpcm()
778 struct device_node *lnk, in audio_graph2_link_c2c() argument
792 * => lnk: port@0 { c2c0_ep: { ... = codec0_ep; }; }; in audio_graph2_link_c2c()
804 of_node_get(lnk); in audio_graph2_link_c2c()
805 port0 = lnk; in audio_graph2_link_c2c()
807 port1 = of_get_next_child(ports, lnk); in audio_graph2_link_c2c()
877 struct device_node *lnk, in graph_link() argument
912 ret = func(priv, lnk, li); in graph_link()
921 static int graph_counter(struct device_node *lnk) in graph_counter() argument
928 * => lnk: port@0 { ... }; in graph_counter()
935 * ignore first lnk part in graph_counter()
937 if (graph_lnk_is_multi(lnk)) in graph_counter()
938 return of_graph_get_endpoint_count(of_get_parent(lnk)) - 1; in graph_counter()
947 struct device_node *lnk, in graph_count_normal() argument
950 struct device_node *cpu_port = lnk; in graph_count_normal()
956 * => lnk: port { endpoint { .. }; }; in graph_count_normal()
976 struct device_node *lnk, in graph_count_dpcm() argument
979 struct device_node *ep = port_to_endpoint(lnk); in graph_count_dpcm()
986 * => lnk: port@0 { endpoint { ... }; }; in graph_count_dpcm()
991 * => lnk: port@0 { endpoint { ... }; }; in graph_count_dpcm()
997 if (asoc_graph_is_ports0(lnk)) { in graph_count_dpcm()
1016 struct device_node *lnk, in graph_count_c2c() argument
1019 struct device_node *ports = of_get_parent(lnk); in graph_count_c2c()
1020 struct device_node *port0 = lnk; in graph_count_c2c()
1021 struct device_node *port1 = of_get_next_child(ports, lnk); in graph_count_c2c()
1027 of_node_get(lnk); in graph_count_c2c()
1032 * => lnk: port@0 { endpoint { ... }; }; in graph_count_c2c()
1060 struct device_node *lnk, in graph_count() argument
1091 ret = func(priv, lnk, li); in graph_count()
1106 struct device_node *lnk, in graph_for_each_link() argument
1112 struct device_node *lnk; in graph_for_each_link() local
1118 lnk = it.node; in graph_for_each_link()
1120 gtype = graph_get_type(priv, lnk); in graph_for_each_link()
1122 ret = func(priv, hooks, gtype, lnk, li); in graph_for_each_link()