Home
last modified time | relevance | path

Searched refs:node_path (Results 1 – 6 of 6) sorted by relevance

/qemu/include/system/
H A Ddevice_tree.h65 int qemu_fdt_setprop(void *fdt, const char *node_path,
67 int qemu_fdt_setprop_cell(void *fdt, const char *node_path,
69 int qemu_fdt_setprop_u64(void *fdt, const char *node_path,
71 int qemu_fdt_setprop_string(void *fdt, const char *node_path,
87 int qemu_fdt_setprop_string_array(void *fdt, const char *node_path,
90 int qemu_fdt_setprop_phandle(void *fdt, const char *node_path,
103 const void *qemu_fdt_getprop(void *fdt, const char *node_path,
117 uint32_t qemu_fdt_getprop_cell(void *fdt, const char *node_path,
122 int qemu_fdt_nop_node(void *fdt, const char *node_path);
126 #define qemu_fdt_setprop_cells(fdt, node_path, property, ...) \ argument
[all …]
/qemu/system/
H A Ddevice_tree.c231 static int findnode_nofail(void *fdt, const char *node_path) in findnode_nofail() argument
235 offset = fdt_path_offset(fdt, node_path); in findnode_nofail()
237 error_report("%s Couldn't find node %s: %s", __func__, node_path, in findnode_nofail()
354 int qemu_fdt_setprop(void *fdt, const char *node_path, in qemu_fdt_setprop() argument
359 r = fdt_setprop(fdt, findnode_nofail(fdt, node_path), property, val, size); in qemu_fdt_setprop()
361 error_report("%s: Couldn't set %s/%s: %s", __func__, node_path, in qemu_fdt_setprop()
369 int qemu_fdt_setprop_cell(void *fdt, const char *node_path, in qemu_fdt_setprop_cell() argument
374 r = fdt_setprop_cell(fdt, findnode_nofail(fdt, node_path), property, val); in qemu_fdt_setprop_cell()
377 node_path, property, val, fdt_strerror(r)); in qemu_fdt_setprop_cell()
384 int qemu_fdt_setprop_u64(void *fdt, const char *node_path, in qemu_fdt_setprop_u64() argument
[all …]
/qemu/hw/core/
H A Dsysbus-fdt.c88 char *node_path, char *nodename) in copy_properties_from_host() argument
95 r = qemu_fdt_getprop(host_fdt, node_path, in copy_properties_from_host()
142 char *node_path = NULL; in fdt_build_clock_node() local
153 node_path = g_malloc(path_len); in fdt_build_clock_node()
154 while ((ret = fdt_get_path(host_fdt, node_offset, node_path, path_len)) in fdt_build_clock_node()
157 node_path = g_realloc(node_path, path_len); in fdt_build_clock_node()
165 r = qemu_fdt_getprop(host_fdt, node_path, "compatible", &prop_len, in fdt_build_clock_node()
172 nodename = strrchr(node_path, '/'); in fdt_build_clock_node()
178 node_path, nodename); in fdt_build_clock_node()
182 g_free(node_path); in fdt_build_clock_node()
[all …]
/qemu/hw/arm/
H A Dxlnx-zcu102.c79 char **node_path; in zcu102_modify_dtb() local
86 node_path = qemu_fdt_node_path(fdt, NULL, "xlnx,zynqmp-firmware", in zcu102_modify_dtb()
89 for (i = 0; node_path && node_path[i]; i++) { in zcu102_modify_dtb()
90 r = qemu_fdt_getprop(fdt, node_path[i], "method", &prop_len, NULL); in zcu102_modify_dtb()
97 qemu_fdt_setprop_string(fdt, node_path[i], "status", "disabled"); in zcu102_modify_dtb()
99 g_strfreev(node_path); in zcu102_modify_dtb()
H A Dxlnx-versal-virt.c456 char **node_path; in fdt_nop_memory_nodes() local
459 node_path = qemu_fdt_node_unit_path(fdt, "memory", &err); in fdt_nop_memory_nodes()
464 while (node_path[n]) { in fdt_nop_memory_nodes()
465 if (g_str_has_prefix(node_path[n], "/memory")) { in fdt_nop_memory_nodes()
466 qemu_fdt_nop_node(fdt, node_path[n]); in fdt_nop_memory_nodes()
470 g_strfreev(node_path); in fdt_nop_memory_nodes()
H A Dboot.c525 char **node_path; in arm_load_dtb() local
579 node_path = qemu_fdt_node_unit_path(fdt, "memory", &err); in arm_load_dtb()
584 while (node_path[n]) { in arm_load_dtb()
585 if (g_str_has_prefix(node_path[n], "/memory")) { in arm_load_dtb()
586 qemu_fdt_nop_node(fdt, node_path[n]); in arm_load_dtb()
590 g_strfreev(node_path); in arm_load_dtb()