Home
last modified time | relevance | path

Searched refs:nodename (Results 1 – 25 of 28) sorted by relevance

12

/qemu/hw/riscv/
H A Dsifive_u.c103 char *nodename; in create_fdt() local
133 nodename = g_strdup_printf("/hfclk"); in create_fdt()
134 qemu_fdt_add_subnode(fdt, nodename); in create_fdt()
135 qemu_fdt_setprop_cell(fdt, nodename, "phandle", hfclk_phandle); in create_fdt()
136 qemu_fdt_setprop_string(fdt, nodename, "clock-output-names", "hfclk"); in create_fdt()
137 qemu_fdt_setprop_cell(fdt, nodename, "clock-frequency", in create_fdt()
139 qemu_fdt_setprop_string(fdt, nodename, "compatible", "fixed-clock"); in create_fdt()
140 qemu_fdt_setprop_cell(fdt, nodename, "#clock-cells", 0x0); in create_fdt()
141 g_free(nodename); in create_fdt()
144 nodename = g_strdup_printf("/rtcclk"); in create_fdt()
[all …]
H A Dvirt.c178 static void create_pcie_irq_map(RISCVVirtState *s, void *fdt, char *nodename, in create_pcie_irq_map() argument
224 qemu_fdt_setprop(fdt, nodename, "interrupt-map", full_irq_map, in create_pcie_irq_map()
228 qemu_fdt_setprop_cells(fdt, nodename, "interrupt-map-mask", in create_pcie_irq_map()
1028 g_autofree char *nodename = g_strdup_printf("/fw-cfg@%" PRIx64, base); in create_fdt_fw_cfg() local
1030 qemu_fdt_add_subnode(ms->fdt, nodename); in create_fdt_fw_cfg()
1031 qemu_fdt_setprop_string(ms->fdt, nodename, in create_fdt_fw_cfg()
1033 qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", in create_fdt_fw_cfg()
1035 qemu_fdt_setprop(ms->fdt, nodename, "dma-coherent", NULL, 0); in create_fdt_fw_cfg()
/qemu/hw/loongarch/
H A Dvirt-fdt-build.c51 char *nodename, *map_path; in fdt_add_cpu_nodes() local
65 nodename = g_strdup_printf("/cpus/cpu@%d", num); in fdt_add_cpu_nodes()
68 qemu_fdt_add_subnode(ms->fdt, nodename); in fdt_add_cpu_nodes()
69 qemu_fdt_setprop_string(ms->fdt, nodename, "device_type", "cpu"); in fdt_add_cpu_nodes()
70 qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", in fdt_add_cpu_nodes()
73 qemu_fdt_setprop_cell(ms->fdt, nodename, "numa-node-id", in fdt_add_cpu_nodes()
76 qemu_fdt_setprop_cell(ms->fdt, nodename, "reg", num); in fdt_add_cpu_nodes()
77 qemu_fdt_setprop_cell(ms->fdt, nodename, "phandle", in fdt_add_cpu_nodes()
79 g_free(nodename); in fdt_add_cpu_nodes()
90 nodename = g_strdup_printf("/cpus/cpu@%d", num); in fdt_add_cpu_nodes()
[all …]
/qemu/hw/openrisc/
H A Dvirt.c133 char *nodename; in openrisc_create_fdt() local
152 nodename = g_strdup_printf("/memory@%" HWADDR_PRIx, in openrisc_create_fdt()
154 qemu_fdt_add_subnode(fdt, nodename); in openrisc_create_fdt()
155 qemu_fdt_setprop_cells(fdt, nodename, "reg", in openrisc_create_fdt()
157 qemu_fdt_setprop_string(fdt, nodename, "device_type", "memory"); in openrisc_create_fdt()
158 g_free(nodename); in openrisc_create_fdt()
165 nodename = g_strdup_printf("/cpus/cpu@%d", cpu); in openrisc_create_fdt()
166 qemu_fdt_add_subnode(fdt, nodename); in openrisc_create_fdt()
167 qemu_fdt_setprop_string(fdt, nodename, "compatible", in openrisc_create_fdt()
169 qemu_fdt_setprop_cell(fdt, nodename, "reg", cpu); in openrisc_create_fdt()
[all …]
H A Dopenrisc_sim.c115 char *nodename; in openrisc_create_fdt() local
128 nodename = g_strdup_printf("/memory@%" HWADDR_PRIx, in openrisc_create_fdt()
130 qemu_fdt_add_subnode(fdt, nodename); in openrisc_create_fdt()
131 qemu_fdt_setprop_cells(fdt, nodename, "reg", in openrisc_create_fdt()
133 qemu_fdt_setprop_string(fdt, nodename, "device_type", "memory"); in openrisc_create_fdt()
134 g_free(nodename); in openrisc_create_fdt()
141 nodename = g_strdup_printf("/cpus/cpu@%d", cpu); in openrisc_create_fdt()
142 qemu_fdt_add_subnode(fdt, nodename); in openrisc_create_fdt()
143 qemu_fdt_setprop_string(fdt, nodename, "compatible", in openrisc_create_fdt()
145 qemu_fdt_setprop_cell(fdt, nodename, "reg", cpu); in openrisc_create_fdt()
[all …]
/qemu/hw/i386/
H A Dmicrovm-dt.c49 const char *nodename, uint32_t irq) in dt_add_microvm_irq() argument
58 qemu_fdt_setprop_cell(mms->fdt, nodename, "interrupt-parent", in dt_add_microvm_irq()
60 qemu_fdt_setprop_cells(mms->fdt, nodename, "interrupts", irq, 0); in dt_add_microvm_irq()
68 char *nodename; in dt_add_virtio() local
79 nodename = g_strdup_printf("/virtio_mmio@%" PRIx64, base); in dt_add_virtio()
80 qemu_fdt_add_subnode(mms->fdt, nodename); in dt_add_virtio()
81 qemu_fdt_setprop_string(mms->fdt, nodename, "compatible", "virtio,mmio"); in dt_add_virtio()
82 qemu_fdt_setprop_sized_cells(mms->fdt, nodename, "reg", 2, base, 2, size); in dt_add_virtio()
83 qemu_fdt_setprop(mms->fdt, nodename, "dma-coherent", NULL, 0); in dt_add_virtio()
84 dt_add_microvm_irq(mms, nodename, irq); in dt_add_virtio()
[all …]
/qemu/hw/core/
H A Dsysbus-fdt.c88 char *node_path, char *nodename) in copy_properties_from_host() argument
100 qemu_fdt_setprop(guest_fdt, nodename, in copy_properties_from_host()
143 char *nodename; in fdt_build_clock_node() local
172 nodename = strrchr(node_path, '/'); in fdt_build_clock_node()
173 qemu_fdt_add_subnode(guest_fdt, nodename); in fdt_build_clock_node()
178 node_path, nodename); in fdt_build_clock_node()
180 qemu_fdt_setprop_cell(guest_fdt, nodename, "phandle", guest_phandle); in fdt_build_clock_node()
222 char *nodename; in add_calxeda_midway_xgmac_fdt_node() local
229 nodename = g_strdup_printf("%s/%s@%" PRIx64, parent_node, in add_calxeda_midway_xgmac_fdt_node()
231 qemu_fdt_add_subnode(fdt, nodename); in add_calxeda_midway_xgmac_fdt_node()
[all …]
/qemu/hw/arm/
H A Dvirt.c454 char *nodename = g_strdup_printf("/cpus/cpu@%d", cpu); in fdt_add_cpu_nodes() local
458 qemu_fdt_add_subnode(ms->fdt, nodename); in fdt_add_cpu_nodes()
459 qemu_fdt_setprop_string(ms->fdt, nodename, "device_type", "cpu"); in fdt_add_cpu_nodes()
460 qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", in fdt_add_cpu_nodes()
464 qemu_fdt_setprop_string(ms->fdt, nodename, in fdt_add_cpu_nodes()
469 qemu_fdt_setprop_u64(ms->fdt, nodename, "reg", in fdt_add_cpu_nodes()
472 qemu_fdt_setprop_cell(ms->fdt, nodename, "reg", in fdt_add_cpu_nodes()
477 qemu_fdt_setprop_cell(ms->fdt, nodename, "numa-node-id", in fdt_add_cpu_nodes()
482 qemu_fdt_setprop_cell(ms->fdt, nodename, "phandle", in fdt_add_cpu_nodes()
486 g_free(nodename); in fdt_add_cpu_nodes()
[all …]
H A Draspi4b.c43 char *nodename = g_strdup_printf("/memory@%" PRIx64, mem_base); in raspi_add_memory_node() local
53 qemu_fdt_add_subnode(fdt, nodename); in raspi_add_memory_node()
54 qemu_fdt_setprop_string(fdt, nodename, "device_type", "memory"); in raspi_add_memory_node()
55 ret = qemu_fdt_setprop_sized_cells(fdt, nodename, "reg", in raspi_add_memory_node()
60 g_free(nodename); in raspi_add_memory_node()
H A Dvexpress.c447 char *nodename = g_strdup_printf("/virtio_mmio@%" PRIx64, addr); in add_virtio_mmio_node() local
449 rc = qemu_fdt_add_subnode(fdt, nodename); in add_virtio_mmio_node()
450 rc |= qemu_fdt_setprop_string(fdt, nodename, in add_virtio_mmio_node()
452 rc |= qemu_fdt_setprop_sized_cells(fdt, nodename, "reg", in add_virtio_mmio_node()
454 qemu_fdt_setprop_cells(fdt, nodename, "interrupt-parent", intc); in add_virtio_mmio_node()
455 qemu_fdt_setprop_cells(fdt, nodename, "interrupts", 0, irq, 1); in add_virtio_mmio_node()
456 qemu_fdt_setprop(fdt, nodename, "dma-coherent", NULL, 0); in add_virtio_mmio_node()
457 g_free(nodename); in add_virtio_mmio_node()
H A Dxlnx-versal-virt.c126 char *nodename; in fdt_add_gic_nodes() local
128 nodename = g_strdup_printf("/gic@%x", MM_GIC_APU_DIST_MAIN); in fdt_add_gic_nodes()
129 qemu_fdt_add_subnode(s->fdt, nodename); in fdt_add_gic_nodes()
130 qemu_fdt_setprop_cell(s->fdt, nodename, "phandle", s->phandle.gic); in fdt_add_gic_nodes()
131 qemu_fdt_setprop_cells(s->fdt, nodename, "interrupts", in fdt_add_gic_nodes()
134 qemu_fdt_setprop(s->fdt, nodename, "interrupt-controller", NULL, 0); in fdt_add_gic_nodes()
135 qemu_fdt_setprop_sized_cells(s->fdt, nodename, "reg", in fdt_add_gic_nodes()
140 qemu_fdt_setprop_cell(s->fdt, nodename, "#interrupt-cells", 3); in fdt_add_gic_nodes()
141 qemu_fdt_setprop_string(s->fdt, nodename, "compatible", "arm,gic-v3"); in fdt_add_gic_nodes()
142 g_free(nodename); in fdt_add_gic_nodes()
H A Dboot.c416 char *nodename; in fdt_add_memory_node() local
419 nodename = g_strdup_printf("/memory@%" PRIx64, mem_base); in fdt_add_memory_node()
420 qemu_fdt_add_subnode(fdt, nodename); in fdt_add_memory_node()
421 qemu_fdt_setprop_string(fdt, nodename, "device_type", "memory"); in fdt_add_memory_node()
422 ret = qemu_fdt_setprop_sized_cells(fdt, nodename, "reg", acells, mem_base, in fdt_add_memory_node()
430 ret = qemu_fdt_setprop_cell(fdt, nodename, in fdt_add_memory_node()
434 g_free(nodename); in fdt_add_memory_node()
H A Dsbsa-ref.c260 char *nodename = g_strdup_printf("/cpus/cpu@%d", cpu); in create_fdt() local
265 qemu_fdt_add_subnode(sms->fdt, nodename); in create_fdt()
266 qemu_fdt_setprop_u64(sms->fdt, nodename, "reg", mpidr); in create_fdt()
269 qemu_fdt_setprop_cell(sms->fdt, nodename, "numa-node-id", in create_fdt()
273 g_free(nodename); in create_fdt()
/qemu/tests/qemu-iotests/
H A D25642 nodename = "file_{}".format(basename)
51 node_name=nodename, filename=filepath))
55 'file': nodename,
61 file=nodename))
H A D085160 echo === Invalid command - missing device and nodename ===
/qemu/linux-user/
H A Duname.c94 COPY_UTSNAME_FIELD(buf->nodename, uts_buf.nodename); in sys_uname()
/qemu/hw/ppc/
H A Dspapr_irq.c461 const char *nodename = "interrupt-controller"; in spapr_irq_get_phandle() local
464 offset = fdt_subnode_offset(fdt, 0, nodename); in spapr_irq_get_phandle()
467 nodename, fdt_strerror(offset)); in spapr_irq_get_phandle()
473 error_setg(errp, "Can't get phandle of node \"%s\"", nodename); in spapr_irq_get_phandle()
H A Dvof.c456 uint32_t vof_client_open_store(void *fdt, Vof *vof, const char *nodename, in vof_client_open_store() argument
459 int offset, node = fdt_path_offset(fdt, nodename); in vof_client_open_store()
H A Dspapr.c832 g_autofree char *nodename = NULL; in spapr_dt_one_cpu() local
839 nodename = g_strdup_printf("%s@%x", dc->fw_name, index); in spapr_dt_one_cpu()
840 offset = fdt_add_subnode(fdt, cpus_offset, nodename); in spapr_dt_one_cpu()
3939 g_autofree char *nodename = NULL; in spapr_core_dt_populate() local
3942 nodename = g_strdup_printf("%s@%x", dc->fw_name, id); in spapr_core_dt_populate()
3943 offset = fdt_add_subnode(fdt, 0, nodename); in spapr_core_dt_populate()
3958 _FDT((fdt_setprop_string(fdt, offset, "name", nodename))); in spapr_core_dt_populate()
H A Dpnv.c158 char *nodename; in pnv_dt_core() local
166 nodename = g_strdup_printf("%s@%x", dc->fw_name, pir); in pnv_dt_core()
167 offset = fdt_add_subnode(fdt, cpus_offset, nodename); in pnv_dt_core()
169 g_free(nodename); in pnv_dt_core()
/qemu/include/hw/ppc/
H A Dvof.h30 uint32_t vof_client_open_store(void *fdt, Vof *vof, const char *nodename,
H A Dspapr_xive.h35 gchar *nodename; member
/qemu/include/system/
H A Ddump.h58 char nodename[65]; member
/qemu/hw/intc/
H A Dspapr_xive.c339 xive->nodename = g_strdup_printf("interrupt-controller@%" PRIx64, in spapr_xive_realize()
750 _FDT(node = fdt_add_subnode(fdt, 0, xive->nodename)); in spapr_xive_dt()
/qemu/target/riscv/
H A Dcpu.c2821 void riscv_isa_write_fdt(RISCVCPU *cpu, void *fdt, char *nodename) in riscv_isa_write_fdt() argument
2832 qemu_fdt_setprop_string(fdt, nodename, "riscv,isa", riscv_isa); in riscv_isa_write_fdt()
2835 qemu_fdt_setprop_string(fdt, nodename, "riscv,isa-base", isa_base); in riscv_isa_write_fdt()
2838 qemu_fdt_setprop_string_array(fdt, nodename, "riscv,isa-extensions", in riscv_isa_write_fdt()

12