Lines Matching defs:node
28 int node, subnode;
35 node = fdt_path_offset(fdt, "/clocks");
36 if (node < 0) {
40 fdt_for_each_subnode(subnode, fdt, node) {
72 * @param node_label: clock node name
78 int node, subnode;
85 node = fdt_path_offset(fdt, "/clocks");
86 if (node < 0) {
90 fdt_for_each_subnode(subnode, fdt, node) {
121 int node, subnode;
128 node = fdt_path_offset(fdt, "/clocks");
129 if (node < 0) {
133 fdt_for_each_subnode(subnode, fdt, node) {
154 * Get the RCC node offset from the device tree
160 static int node;
162 if (node <= 0) {
163 node = fdt_node_offset_by_compatible(fdt, -1, DT_RCC_CLK_COMPAT);
166 return node;
179 int node;
186 node = fdt_get_rcc_node(fdt);
187 if (node < 0) {
191 return fdt_read_uint32_array(fdt, node, prop_name, count, array);
201 int node, subnode;
208 node = fdt_get_rcc_node(fdt);
209 if (node < 0) {
213 subnode = fdt_subnode_offset(fdt, node, name);
230 int node, len;
237 node = fdt_get_rcc_node(fdt);
238 if (node < 0) {
242 cuint = fdt_getprop(fdt, node, prop_name, &len);
253 * Get the secure state for rcc node in device tree.
273 * Get the clock ID of the given node in device tree.
274 * @param node: node offset
277 int fdt_get_clock_id(int node)
286 cuint = fdt_getprop(fdt, node, "clocks", NULL);
303 int node;
311 node = dt_match_instance_by_compatible(DT_UART_COMPAT, instance);
312 if (node < 0) {
316 clk_id = fdt_get_clock_id(node);