Home
last modified time | relevance | path

Searched refs:Aml (Results 1 – 25 of 57) sorted by relevance

123

/qemu/include/hw/acpi/
H A Daml-build.h303 Aml *aml_and(Aml *arg1, Aml *arg2, Aml *dst);
304 Aml *aml_or(Aml *arg1, Aml *arg2, Aml *dst);
305 Aml *aml_land(Aml *arg1, Aml *arg2);
306 Aml *aml_lor(Aml *arg1, Aml *arg2);
308 Aml *aml_shiftright(Aml *arg1, Aml *count, Aml *dst);
310 Aml *aml_add(Aml *arg1, Aml *arg2, Aml *dst);
311 Aml *aml_subtract(Aml *arg1, Aml *arg2, Aml *dst);
314 Aml *aml_index(Aml *arg1, Aml *idx);
321 Aml *aml_call4(const char *method, Aml *arg1, Aml *arg2, Aml *arg3, Aml *arg4);
322 Aml *aml_call5(const char *method, Aml *arg1, Aml *arg2, Aml *arg3, Aml *arg4,
[all …]
H A Dpci.h39 Aml *aml_pci_device_dsm(void);
41 void build_append_pci_bus_devices(Aml *parent_scope, PCIBus *bus);
42 void build_pci_bridge_aml(AcpiDevAmlIf *adev, Aml *scope);
H A Dacpi_aml_interface.h15 typedef void (*dev_aml_fn)(AcpiDevAmlIf *adev, Aml *scope);
42 static inline void call_dev_aml_func(DeviceState *dev, Aml *scope) in call_dev_aml_func()
50 void qbus_build_aml(BusState *bus, Aml *scope);
H A Dcxl.h27 void build_cxl_osc_method(Aml *dev);
28 void build_cxl_dsm_method(Aml *dev);
H A Dgeneric_event_device.h115 void build_ged_aml(Aml *table, const char* name, HotplugHandler *hotplug_dev,
117 void acpi_dsdt_add_power_button(Aml *scope);
/qemu/hw/acpi/
H A Daml-build.c700 Aml *aml_and(Aml *arg1, Aml *arg2, Aml *dst) in aml_and()
706 Aml *aml_or(Aml *arg1, Aml *arg2, Aml *dst) in aml_or()
712 Aml *aml_land(Aml *arg1, Aml *arg2) in aml_land()
721 Aml *aml_lor(Aml *arg1, Aml *arg2) in aml_lor()
736 Aml *aml_shiftright(Aml *arg1, Aml *count, Aml *dst) in aml_shiftright()
751 Aml *aml_add(Aml *arg1, Aml *arg2, Aml *dst) in aml_add()
757 Aml *aml_subtract(Aml *arg1, Aml *arg2, Aml *dst) in aml_subtract()
779 Aml *aml_index(Aml *arg1, Aml *idx) in aml_index()
839 Aml *aml_call4(const char *method, Aml *arg1, Aml *arg2, Aml *arg3, Aml *arg4) in aml_call4()
851 Aml *aml_call5(const char *method, Aml *arg1, Aml *arg2, Aml *arg3, Aml *arg4, in aml_call5()
[all …]
H A Daml-build-stub.c25 void aml_append(Aml *parent_ctx, Aml *child) in aml_append()
29 Aml *aml_return(Aml *val) in aml_return()
39 Aml *aml_resource_template(void) in aml_resource_template()
44 Aml *aml_device(const char *name_format, ...) in aml_device()
49 Aml *aml_eisaid(const char *str) in aml_eisaid()
54 Aml *aml_name_decl(const char *name, Aml *val) in aml_name_decl()
65 Aml *aml_irq_no_flags(uint8_t irq) in aml_irq_no_flags()
78 Aml *aml_memory32_fixed(uint32_t addr, uint32_t size, in aml_memory32_fixed()
84 Aml *aml_int(const uint64_t val) in aml_int()
89 Aml *aml_package(uint8_t num_elements) in aml_package()
[all …]
H A Dcpu.c346 Aml *ifctx; in build_cpus_aml()
347 Aml *field; in build_cpus_aml()
348 Aml *method; in build_cpus_aml()
349 Aml *cpu_ctrl_dev; in build_cpus_aml()
350 Aml *cpus_dev; in build_cpus_aml()
351 Aml *zero = aml_int(0); in build_cpus_aml()
352 Aml *one = aml_int(1); in build_cpus_aml()
360 Aml *crs; in build_cpus_aml()
434 Aml *uid = aml_arg(0); in build_cpus_aml()
483 Aml *else_ctx; in build_cpus_aml()
[all …]
H A Dcpu_hotplug.c124 Aml *dev; in build_legacy_cpu_hotplug_aml()
125 Aml *crs; in build_legacy_cpu_hotplug_aml()
126 Aml *pkg; in build_legacy_cpu_hotplug_aml()
127 Aml *field; in build_legacy_cpu_hotplug_aml()
128 Aml *method; in build_legacy_cpu_hotplug_aml()
129 Aml *if_ctx; in build_legacy_cpu_hotplug_aml()
130 Aml *else_ctx; in build_legacy_cpu_hotplug_aml()
134 Aml *cpu_id = aml_arg(1); in build_legacy_cpu_hotplug_aml()
137 Aml *madt = aml_local(1); in build_legacy_cpu_hotplug_aml()
139 Aml *zero = aml_int(0); in build_legacy_cpu_hotplug_aml()
[all …]
H A Dmemory_hotplug.c347 Aml *ifctx; in build_memory_hotplug_aml()
348 Aml *method; in build_memory_hotplug_aml()
349 Aml *dev_container; in build_memory_hotplug_aml()
350 Aml *mem_ctrl_dev; in build_memory_hotplug_aml()
356 Aml *crs; in build_memory_hotplug_aml()
384 Aml *field; in build_memory_hotplug_aml()
385 Aml *one = aml_int(1); in build_memory_hotplug_aml()
386 Aml *zero = aml_int(0); in build_memory_hotplug_aml()
459 Aml *else_ctx; in build_memory_hotplug_aml()
460 Aml *while_ctx; in build_memory_hotplug_aml()
[all …]
H A Dcxl.c33 void build_cxl_dsm_method(Aml *dev) in build_cxl_dsm_method()
35 Aml *method, *ifctx, *ifctx2; in build_cxl_dsm_method()
39 Aml *function, *uuid; in build_cxl_dsm_method()
67 Aml *pak, *pak1; in build_cxl_dsm_method()
192 Aml *cedt = opaque; in cxl_foreach_pxb_hb()
205 Aml *cedt; in cxl_build_cedt()
225 static Aml *__build_cxl_osc_method(void) in __build_cxl_osc_method()
227 Aml *method, *if_uuid, *else_uuid, *if_arg1_not_1, *if_cxl, *if_caps_masked; in __build_cxl_osc_method()
228 Aml *a_ctrl = aml_local(0); in __build_cxl_osc_method()
229 Aml *a_cdw1 = aml_name("CDW1"); in __build_cxl_osc_method()
[all …]
H A Dgeneric_event_device.c40 void build_ged_aml(Aml *table, const char *name, HotplugHandler *hotplug_dev, in build_ged_aml()
44 Aml *crs = aml_resource_template(); in build_ged_aml()
45 Aml *evt, *field; in build_ged_aml()
46 Aml *dev = aml_device("%s", name); in build_ged_aml()
47 Aml *evt_sel = aml_local(0); in build_ged_aml()
48 Aml *esel = aml_name(AML_GED_EVT_SEL); in build_ged_aml()
89 Aml *if_ctx; in build_ged_aml()
144 void acpi_dsdt_add_power_button(Aml *scope) in acpi_dsdt_add_power_button()
146 Aml *dev = aml_device(ACPI_POWER_BUTTON_DEVICE); in acpi_dsdt_add_power_button()
H A Dipmi.c16 static Aml *aml_ipmi_crs(IPMIFwInfo *info) in aml_ipmi_crs()
18 Aml *crs = aml_resource_template(); in aml_ipmi_crs()
65 void build_ipmi_dev_aml(AcpiDevAmlIf *adev, Aml *scope) in build_ipmi_dev_aml()
67 Aml *dev; in build_ipmi_dev_aml()
/qemu/hw/i386/
H A Dacpi-build.c565 Aml *dev; in build_append_pci_bus_devices()
848 Aml *crs; in build_hpet_aml()
900 Aml *dev; in build_vmbus_device_aml()
902 Aml *crs; in build_vmbus_device_aml()
970 Aml *dev; in build_link_dev()
971 Aml *crs; in build_link_dev()
1006 Aml *dev; in build_gsi_link_dev()
1007 Aml *crs; in build_gsi_link_dev()
1080 Aml *dev; in build_piix4_pci0_int()
1081 Aml *crs; in build_piix4_pci0_int()
[all …]
H A Dacpi-microvm.c49 static void acpi_dsdt_add_virtio(Aml *scope, in acpi_dsdt_add_virtio()
86 static void acpi_dsdt_add_xhci(Aml *scope, MicrovmMachineState *mms) in acpi_dsdt_add_xhci()
93 static void acpi_dsdt_add_pci(Aml *scope, MicrovmMachineState *mms) in acpi_dsdt_add_pci()
107 Aml *dsdt, *sb_scope, *scope, *pkg; in build_dsdt_microvm()
/qemu/hw/pci-host/
H A Dgpex-acpi.c10 static void acpi_dsdt_add_pci_route_table(Aml *dev, uint32_t irq) in acpi_dsdt_add_pci_route_table()
12 Aml *method, *crs; in acpi_dsdt_add_pci_route_table()
16 Aml *rt_pkg = aml_varpackage(PCI_SLOT_MAX * PCI_NUM_PINS); in acpi_dsdt_add_pci_route_table()
20 Aml *pkg = aml_package(4); in acpi_dsdt_add_pci_route_table()
33 Aml *dev_gsi = aml_device("GSI%d", i); in acpi_dsdt_add_pci_route_table()
52 static void acpi_dsdt_add_pci_osc(Aml *dev) in acpi_dsdt_add_pci_osc()
54 Aml *method, *UUID, *ifctx, *ifctx1, *elsectx, *buf; in acpi_dsdt_add_pci_osc()
131 Aml *method, *crs, *dev, *rbuf; in acpi_dsdt_add_gpex()
160 struct Aml *pkg = aml_package(2); in acpi_dsdt_add_gpex()
268 Aml *dev_res0 = aml_device("%s", "RES0"); in acpi_dsdt_add_gpex()
[all …]
/qemu/hw/nvram/
H A Dfw_cfg-acpi.c11 void fw_cfg_acpi_dsdt_add(Aml *scope, const MemMapEntry *fw_cfg_memmap) in fw_cfg_acpi_dsdt_add()
13 Aml *dev = aml_device("FWCF"); in fw_cfg_acpi_dsdt_add()
19 Aml *crs = aml_resource_template(); in fw_cfg_acpi_dsdt_add()
/qemu/hw/loongarch/
H A Dacpi-build.c245 static void build_uart_device_aml(Aml *table) in build_uart_device_aml()
247 Aml *dev; in build_uart_device_aml()
248 Aml *crs; in build_uart_device_aml()
249 Aml *pkg0, *pkg1, *pkg2; in build_uart_device_aml()
252 Aml *scope = aml_scope("_SB"); in build_uart_device_aml()
280 build_la_ged_aml(Aml *dsdt, MachineState *machine) in build_la_ged_aml()
315 static void build_flash_aml(Aml *scope, LoongArchVirtMachineState *lvms) in build_flash_aml()
317 Aml *dev, *crs; in build_flash_aml()
375 Aml *dev = aml_device("TPM0"); in acpi_dsdt_add_tpm()
380 Aml *crs = aml_resource_template(); in acpi_dsdt_add_tpm()
[all …]
/qemu/hw/virtio/
H A Dvirtio-acpi.c11 void virtio_acpi_dsdt_add(Aml *scope, const hwaddr base, const hwaddr size, in virtio_acpi_dsdt_add()
19 Aml *dev = aml_device("VR%02u", (unsigned)i); in virtio_acpi_dsdt_add()
24 Aml *crs = aml_resource_template(); in virtio_acpi_dsdt_add()
/qemu/hw/arm/
H A Dvirt-acpi-build.c74 Aml *dev = aml_device("C%.03X", i); in acpi_dsdt_add_cpus()
84 Aml *dev = aml_device("COM0"); in acpi_dsdt_add_uart()
88 Aml *crs = aml_resource_template(); in acpi_dsdt_add_uart()
101 Aml *dev, *crs; in acpi_dsdt_add_flash()
145 Aml *dev = aml_device("GPO0"); in acpi_dsdt_add_gpio()
149 Aml *crs = aml_resource_template(); in acpi_dsdt_add_gpio()
156 Aml *aei = aml_resource_template(); in acpi_dsdt_add_gpio()
165 Aml *method = aml_method("_E03", 0, AML_NOTSERIALIZED); in acpi_dsdt_add_gpio()
192 Aml *dev = aml_device("TPM0"); in acpi_dsdt_add_tpm()
197 Aml *crs = aml_resource_template(); in acpi_dsdt_add_tpm()
[all …]
/qemu/hw/display/
H A Dacpi-vga.c6 void build_vga_aml(AcpiDevAmlIf *adev, Aml *scope) in build_vga_aml()
9 Aml *method; in build_vga_aml()
/qemu/hw/misc/
H A Dpvpanic-isa.c67 static void build_pvpanic_isa_aml(AcpiDevAmlIf *adev, Aml *scope) in build_pvpanic_isa_aml()
69 Aml *crs, *field, *method; in build_pvpanic_isa_aml()
71 Aml *dev = aml_device("PEVT"); in build_pvpanic_isa_aml()
/qemu/hw/block/
H A Dfdc-isa.c153 static Aml *build_fdinfo_aml(int idx, FloppyDriveType type) in build_fdinfo_aml()
155 Aml *dev, *fdi; in build_fdinfo_aml()
234 static void build_fdc_aml(AcpiDevAmlIf *adev, Aml *scope) in build_fdc_aml()
237 Aml *dev; in build_fdc_aml()
238 Aml *crs; in build_fdc_aml()
/qemu/hw/usb/
H A Dhcd-xhci-sysbus.c71 void xhci_sysbus_build_aml(Aml *scope, uint32_t mmio, unsigned int irq) in xhci_sysbus_build_aml()
73 Aml *dev = aml_device("XHCI"); in xhci_sysbus_build_aml()
74 Aml *crs = aml_resource_template(); in xhci_sysbus_build_aml()
/qemu/hw/riscv/
H A Dvirt-acpi-build.c118 static void acpi_dsdt_add_cpus(Aml *scope, RISCVVirtState *s) in acpi_dsdt_add_cpus()
125 Aml *dev; in acpi_dsdt_add_cpus()
145 acpi_dsdt_add_uart(Aml *scope, const MemMapEntry *uart_memmap, in acpi_dsdt_add_uart()
148 Aml *dev = aml_device("COM0"); in acpi_dsdt_add_uart()
152 Aml *crs = aml_resource_template(); in acpi_dsdt_add_uart()
160 Aml *pkg = aml_package(2); in acpi_dsdt_add_uart()
164 Aml *UUID = aml_touuid("DAFFD814-6EBA-4D8C-8A91-BC9BBF4AA301"); in acpi_dsdt_add_uart()
166 Aml *pkg1 = aml_package(1); in acpi_dsdt_add_uart()
169 Aml *package = aml_package(2); in acpi_dsdt_add_uart()
390 Aml *scope, *dsdt; in build_dsdt()

123