Lines Matching refs:fdt
26 void *fdt; in fdt_osc_read_freq() local
28 if (fdt_get_address(&fdt) == 0) { in fdt_osc_read_freq()
32 node = fdt_path_offset(fdt, "/clocks"); in fdt_osc_read_freq()
37 fdt_for_each_subnode(subnode, fdt, node) { in fdt_osc_read_freq()
41 cchar = fdt_get_name(fdt, subnode, &ret); in fdt_osc_read_freq()
49 cuint = fdt_getprop(fdt, subnode, "clock-frequency", in fdt_osc_read_freq()
75 void *fdt; in fdt_osc_read_bool() local
77 if (fdt_get_address(&fdt) == 0) { in fdt_osc_read_bool()
85 node = fdt_path_offset(fdt, "/clocks"); in fdt_osc_read_bool()
90 fdt_for_each_subnode(subnode, fdt, node) { in fdt_osc_read_bool()
94 cchar = fdt_get_name(fdt, subnode, &ret); in fdt_osc_read_bool()
104 if (fdt_getprop(fdt, subnode, prop_name, NULL) != NULL) { in fdt_osc_read_bool()
123 void *fdt; in fdt_osc_read_uint32_default() local
125 if (fdt_get_address(&fdt) == 0) { in fdt_osc_read_uint32_default()
133 node = fdt_path_offset(fdt, "/clocks"); in fdt_osc_read_uint32_default()
138 fdt_for_each_subnode(subnode, fdt, node) { in fdt_osc_read_uint32_default()
142 cchar = fdt_get_name(fdt, subnode, &ret); in fdt_osc_read_uint32_default()
152 return fdt_read_uint32_default(fdt, subnode, prop_name, in fdt_osc_read_uint32_default()
164 int fdt_get_rcc_node(void *fdt) in fdt_get_rcc_node() argument
166 return 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_status() local
260 if (fdt_get_address(&fdt) == 0) { in fdt_get_rcc_secure_status()
264 node = fdt_get_rcc_node(fdt); in fdt_get_rcc_secure_status()
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()