Lines Matching refs:Aml

340 Aml *aml_pci_device_dsm(void)  in aml_pci_device_dsm()
342 Aml *method; in aml_pci_device_dsm()
346 Aml *params = aml_local(0); in aml_pci_device_dsm()
347 Aml *pkg = aml_package(2); in aml_pci_device_dsm()
363 static void build_append_pci_dsm_func0_common(Aml *ctx, Aml *retvar) in build_append_pci_dsm_func0_common()
365 Aml *UUID, *ifctx1; in build_append_pci_dsm_func0_common()
389 static Aml *aml_pci_edsm(void) in aml_pci_edsm()
391 Aml *method, *ifctx; in aml_pci_edsm()
392 Aml *zero = aml_int(0); in aml_pci_edsm()
393 Aml *func = aml_arg(2); in aml_pci_edsm()
394 Aml *ret = aml_local(0); in aml_pci_edsm()
395 Aml *aidx = aml_local(1); in aml_pci_edsm()
396 Aml *params = aml_arg(4); in aml_pci_edsm()
420 Aml *pkg = aml_package(2); in aml_pci_edsm()
442 static Aml *aml_pci_static_endpoint_dsm(PCIDevice *pdev) in aml_pci_static_endpoint_dsm()
444 Aml *method; in aml_pci_static_endpoint_dsm()
449 Aml *params = aml_local(0); in aml_pci_static_endpoint_dsm()
450 Aml *pkg = aml_package(1); in aml_pci_static_endpoint_dsm()
461 static void build_append_pcihp_notify_entry(Aml *method, int slot) in build_append_pcihp_notify_entry()
463 Aml *if_ctx; in build_append_pcihp_notify_entry()
510 void build_append_pcihp_slots(Aml *parent_scope, PCIBus *bus) in build_append_pcihp_slots()
513 Aml *dev, *notify_method = NULL, *method; in build_append_pcihp_slots()
560 void build_append_pci_bus_devices(Aml *parent_scope, PCIBus *bus) in build_append_pci_bus_devices()
563 Aml *dev; in build_append_pci_bus_devices()
591 static bool build_append_notfication_callback(Aml *parent_scope, in build_append_notfication_callback()
594 Aml *method; in build_append_notfication_callback()
601 Aml *br_scope = aml_scope("S%.02X", sec->parent_dev->devfn); in build_append_notfication_callback()
649 static Aml *aml_pci_pdsm(void) in aml_pci_pdsm()
651 Aml *method, *ifctx, *ifctx1; in aml_pci_pdsm()
652 Aml *ret = aml_local(0); in aml_pci_pdsm()
653 Aml *caps = aml_local(1); in aml_pci_pdsm()
654 Aml *acpi_index = aml_local(2); in aml_pci_pdsm()
655 Aml *zero = aml_int(0); in aml_pci_pdsm()
656 Aml *one = aml_int(1); in aml_pci_pdsm()
657 Aml *not_supp = aml_int(0xFFFFFFFF); in aml_pci_pdsm()
658 Aml *func = aml_arg(2); in aml_pci_pdsm()
659 Aml *params = aml_arg(4); in aml_pci_pdsm()
660 Aml *bnum = aml_derefof(aml_index(params, aml_int(0))); in aml_pci_pdsm()
661 Aml *sunum = aml_derefof(aml_index(params, aml_int(1))); in aml_pci_pdsm()
706 Aml *pkg = aml_package(2); in aml_pci_pdsm()
749 static Aml *build_prt(bool is_pci0_prt) in build_prt()
752 Aml *rt_pkg, *method; in build_prt()
760 Aml *pkg = aml_package(4); in build_prt()
782 static void build_hpet_aml(Aml *table) in build_hpet_aml()
784 Aml *crs; in build_hpet_aml()
785 Aml *field; in build_hpet_aml()
786 Aml *method; in build_hpet_aml()
787 Aml *if_ctx; in build_hpet_aml()
788 Aml *scope = aml_scope("_SB"); in build_hpet_aml()
789 Aml *dev = aml_device("HPET"); in build_hpet_aml()
790 Aml *zero = aml_int(0); in build_hpet_aml()
791 Aml *id = aml_local(0); in build_hpet_aml()
792 Aml *period = aml_local(1); in build_hpet_aml()
834 static Aml *build_vmbus_device_aml(VMBusBridge *vmbus_bridge) in build_vmbus_device_aml()
836 Aml *dev; in build_vmbus_device_aml()
837 Aml *method; in build_vmbus_device_aml()
838 Aml *crs; in build_vmbus_device_aml()
869 static void build_dbg_aml(Aml *table) in build_dbg_aml()
871 Aml *field; in build_dbg_aml()
872 Aml *method; in build_dbg_aml()
873 Aml *while_ctx; in build_dbg_aml()
874 Aml *scope = aml_scope("\\"); in build_dbg_aml()
875 Aml *buf = aml_local(0); in build_dbg_aml()
876 Aml *len = aml_local(1); in build_dbg_aml()
877 Aml *idx = aml_local(2); in build_dbg_aml()
904 static Aml *build_link_dev(const char *name, uint8_t uid, Aml *reg) in build_link_dev()
906 Aml *dev; in build_link_dev()
907 Aml *crs; in build_link_dev()
908 Aml *method; in build_link_dev()
940 static Aml *build_gsi_link_dev(const char *name, uint8_t uid, uint8_t gsi) in build_gsi_link_dev()
942 Aml *dev; in build_gsi_link_dev()
943 Aml *crs; in build_gsi_link_dev()
944 Aml *method; in build_gsi_link_dev()
972 static Aml *build_iqcr_method(bool is_piix4) in build_iqcr_method()
974 Aml *if_ctx; in build_iqcr_method()
976 Aml *method = aml_method("IQCR", 1, AML_SERIALIZED); in build_iqcr_method()
977 Aml *crs = aml_resource_template(); in build_iqcr_method()
1002 static Aml *build_irq_status_method(void) in build_irq_status_method()
1004 Aml *if_ctx; in build_irq_status_method()
1005 Aml *method = aml_method("IQST", 1, AML_NOTSERIALIZED); in build_irq_status_method()
1014 static void build_piix4_pci0_int(Aml *table) in build_piix4_pci0_int()
1016 Aml *dev; in build_piix4_pci0_int()
1017 Aml *crs; in build_piix4_pci0_int()
1018 Aml *method; in build_piix4_pci0_int()
1020 Aml *sb_scope = aml_scope("_SB"); in build_piix4_pci0_int()
1021 Aml *pci0_scope = aml_scope("PCI0"); in build_piix4_pci0_int()
1069 static void append_q35_prt_entry(Aml *ctx, uint32_t nr, const char *name) in append_q35_prt_entry()
1073 Aml *pkg; in append_q35_prt_entry()
1076 Aml *a_nr = aml_int((nr << 16) | 0xffff); in append_q35_prt_entry()
1096 static Aml *build_q35_routing_table(const char *str) in build_q35_routing_table()
1099 Aml *pkg; in build_q35_routing_table()
1127 static void build_q35_pci0_int(Aml *table) in build_q35_pci0_int()
1129 Aml *method; in build_q35_pci0_int()
1130 Aml *sb_scope = aml_scope("_SB"); in build_q35_pci0_int()
1131 Aml *pci0_scope = aml_scope("PCI0"); in build_q35_pci0_int()
1148 Aml *if_ctx; in build_q35_pci0_int()
1149 Aml *else_ctx; in build_q35_pci0_int()
1189 static Aml *build_q35_dram_controller(const AcpiMcfgInfo *mcfg) in build_q35_dram_controller()
1191 Aml *dev; in build_q35_dram_controller()
1192 Aml *resource_template; in build_q35_dram_controller()
1229 static void build_x86_acpi_pci_hotplug(Aml *table, uint64_t pcihp_addr) in build_x86_acpi_pci_hotplug()
1231 Aml *scope; in build_x86_acpi_pci_hotplug()
1232 Aml *field; in build_x86_acpi_pci_hotplug()
1233 Aml *method; in build_x86_acpi_pci_hotplug()
1285 static Aml *build_q35_osc_method(bool enable_native_pcie_hotplug) in build_q35_osc_method()
1287 Aml *if_ctx; in build_q35_osc_method()
1288 Aml *if_ctx2; in build_q35_osc_method()
1289 Aml *else_ctx; in build_q35_osc_method()
1290 Aml *method; in build_q35_osc_method()
1291 Aml *a_cwd1 = aml_name("CDW1"); in build_q35_osc_method()
1292 Aml *a_ctrl = aml_local(0); in build_q35_osc_method()
1335 static void build_acpi0017(Aml *table) in build_acpi0017()
1337 Aml *dev, *scope, *method; in build_acpi0017()
1361 Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs; in build_dsdt()
1515 struct Aml *aml_pkg = aml_package(2); in build_dsdt()
1714 Aml *ascope = aml_scope("PCI0"); in build_dsdt()