Lines Matching refs:fdt
29 void *fdt; in fdt_osc_read_freq() local
31 if (fdt_get_address(&fdt) == 0) { in fdt_osc_read_freq()
35 node = fdt_path_offset(fdt, "/clocks"); in fdt_osc_read_freq()
40 fdt_for_each_subnode(subnode, fdt, node) { in fdt_osc_read_freq()
44 cchar = fdt_get_name(fdt, subnode, &ret); in fdt_osc_read_freq()
53 cuint = fdt_getprop(fdt, subnode, "clock-frequency", in fdt_osc_read_freq()
79 void *fdt; in fdt_clk_read_bool() local
81 if (fdt_get_address(&fdt) == 0) { in fdt_clk_read_bool()
85 node = fdt_path_offset(fdt, "/clocks"); in fdt_clk_read_bool()
90 fdt_for_each_subnode(subnode, fdt, node) { in fdt_clk_read_bool()
94 cchar = fdt_get_name(fdt, subnode, &ret); in fdt_clk_read_bool()
103 if (fdt_getprop(fdt, subnode, prop_name, NULL) != NULL) { in fdt_clk_read_bool()
122 void *fdt; in fdt_clk_read_uint32_default() local
124 if (fdt_get_address(&fdt) == 0) { in fdt_clk_read_uint32_default()
128 node = fdt_path_offset(fdt, "/clocks"); in fdt_clk_read_uint32_default()
133 fdt_for_each_subnode(subnode, fdt, node) { in fdt_clk_read_uint32_default()
137 cchar = fdt_get_name(fdt, subnode, &ret); in fdt_clk_read_uint32_default()
146 return fdt_read_uint32_default(fdt, subnode, prop_name, in fdt_clk_read_uint32_default()
158 static int fdt_get_rcc_node(void *fdt) in fdt_get_rcc_node() argument
163 node = fdt_node_offset_by_compatible(fdt, -1, DT_RCC_CLK_COMPAT); in fdt_get_rcc_node()
180 void *fdt; in fdt_rcc_read_uint32_array() local
182 if (fdt_get_address(&fdt) == 0) { in fdt_rcc_read_uint32_array()
186 node = fdt_get_rcc_node(fdt); in fdt_rcc_read_uint32_array()
191 return fdt_read_uint32_array(fdt, node, prop_name, count, array); in fdt_rcc_read_uint32_array()
202 void *fdt; in fdt_rcc_subnode_offset() local
204 if (fdt_get_address(&fdt) == 0) { in fdt_rcc_subnode_offset()
208 node = fdt_get_rcc_node(fdt); in fdt_rcc_subnode_offset()
213 subnode = fdt_subnode_offset(fdt, node, name); in fdt_rcc_subnode_offset()
231 void *fdt; in fdt_rcc_read_prop() local
233 if (fdt_get_address(&fdt) == 0) { in fdt_rcc_read_prop()
237 node = fdt_get_rcc_node(fdt); in fdt_rcc_read_prop()
242 cuint = fdt_getprop(fdt, node, prop_name, &len); in fdt_rcc_read_prop()
258 void *fdt; in fdt_get_rcc_secure_state() local
260 if (fdt_get_address(&fdt) == 0) { in fdt_get_rcc_secure_state()
264 if (fdt_node_offset_by_compatible(fdt, -1, DT_RCC_SEC_CLK_COMPAT) < 0) { in fdt_get_rcc_secure_state()
280 void *fdt; in fdt_get_clock_id() local
282 if (fdt_get_address(&fdt) == 0) { in fdt_get_clock_id()
286 cuint = fdt_getprop(fdt, node, "clocks", NULL); in fdt_get_clock_id()
302 void *fdt; in fdt_get_uart_clock_freq() local
306 if (fdt_get_address(&fdt) == 0) { in fdt_get_uart_clock_freq()