Lines Matching refs:lnk

242 static enum graph_type __graph_get_type(struct device_node *lnk)
250 * => lnk: port@0 { ... };
255 np = of_get_parent(lnk);
286 struct device_node *lnk)
288 enum graph_type type = __graph_get_type(lnk);
301 if (asoc_graph_is_ports0(lnk))
313 dev_dbg(dev, "%pOF (%s)", lnk, str);
319 static int graph_lnk_is_multi(struct device_node *lnk)
321 return __graph_get_type(lnk) == GRAPH_MULTI;
333 * => lnk: port@0 { ... };
648 struct device_node *lnk,
651 struct device_node *cpu_port = lnk;
682 struct device_node *lnk,
685 struct device_node *ep = port_to_endpoint(lnk);
690 int is_cpu = asoc_graph_is_ports0(lnk);
698 * => lnk: port@0 { ep: { ... = rep }; };
733 * => lnk: port@0 { ep: { ... = rep; }; };
775 struct device_node *lnk,
789 * => lnk: port@0 { c2c0_ep: { ... = codec0_ep; }; };
801 of_node_get(lnk);
802 port0 = lnk;
804 port1 = of_get_next_child(ports, lnk);
874 struct device_node *lnk,
909 ret = func(priv, lnk, li);
918 static int graph_counter(struct device_node *lnk)
925 * => lnk: port@0 { ... };
932 * ignore first lnk part
934 if (graph_lnk_is_multi(lnk))
935 return of_graph_get_endpoint_count(of_get_parent(lnk)) - 1;
944 struct device_node *lnk,
947 struct device_node *cpu_port = lnk;
953 * => lnk: port { endpoint { .. }; };
973 struct device_node *lnk,
976 struct device_node *ep = port_to_endpoint(lnk);
983 * => lnk: port@0 { endpoint { ... }; };
988 * => lnk: port@0 { endpoint { ... }; };
994 if (asoc_graph_is_ports0(lnk)) {
1013 struct device_node *lnk,
1016 struct device_node *ports = of_get_parent(lnk);
1017 struct device_node *port0 = lnk;
1018 struct device_node *port1 = of_get_next_child(ports, lnk);
1024 of_node_get(lnk);
1029 * => lnk: port@0 { endpoint { ... }; };
1057 struct device_node *lnk,
1088 ret = func(priv, lnk, li);
1103 struct device_node *lnk,
1109 struct device_node *lnk;
1115 lnk = it.node;
1117 gtype = graph_get_type(priv, lnk);
1119 ret = func(priv, hooks, gtype, lnk, li);