Lines Matching refs:node
82 int node; in emc_get_controller() local
84 node = fdtdec_next_compatible(blob, 0, COMPAT_NVIDIA_TEGRA20_EMC); in emc_get_controller()
85 if (node > 0) { in emc_get_controller()
86 addr = fdtdec_get_addr(blob, node, "reg"); in emc_get_controller()
118 static int find_emc_tables(const void *blob, int node, int ram_code) in find_emc_tables() argument
125 need_ram_code = fdtdec_get_bool(blob, node, "nvidia,use-ram-code"); in find_emc_tables()
127 return node; in find_emc_tables()
133 offset = node; in find_emc_tables()
180 int node; in decode_emc() local
190 node = fdtdec_next_compatible(blob, 0, COMPAT_NVIDIA_TEGRA20_EMC); in decode_emc()
191 if (node < 0) { in decode_emc()
195 *emcp = (struct emc_ctlr *)fdtdec_get_addr(blob, node, "reg"); in decode_emc()
202 node = find_emc_tables(blob, node, ram_code & 3); in decode_emc()
203 if (node < 0) in decode_emc()
204 return node; in decode_emc()
210 node = fdtdec_next_compatible_subnode(blob, node, in decode_emc()
212 if (node < 0) in decode_emc()
214 node_rate = fdtdec_get_int(blob, node, "clock-frequency", -1); in decode_emc()
223 if (node < 0) { in decode_emc()
229 *tablep = fdtdec_locate_array(blob, node, "nvidia,emc-registers", in decode_emc()
233 fdt_get_name(blob, node, NULL)); in decode_emc()