Lines Matching refs:Aml

342 Aml *aml_pci_device_dsm(void)  in aml_pci_device_dsm()
344 Aml *method; in aml_pci_device_dsm()
348 Aml *params = aml_local(0); in aml_pci_device_dsm()
349 Aml *pkg = aml_package(2); in aml_pci_device_dsm()
365 static void build_append_pci_dsm_func0_common(Aml *ctx, Aml *retvar) in build_append_pci_dsm_func0_common()
367 Aml *UUID, *ifctx1; in build_append_pci_dsm_func0_common()
391 static Aml *aml_pci_edsm(void) in aml_pci_edsm()
393 Aml *method, *ifctx; in aml_pci_edsm()
394 Aml *zero = aml_int(0); in aml_pci_edsm()
395 Aml *func = aml_arg(2); in aml_pci_edsm()
396 Aml *ret = aml_local(0); in aml_pci_edsm()
397 Aml *aidx = aml_local(1); in aml_pci_edsm()
398 Aml *params = aml_arg(4); in aml_pci_edsm()
422 Aml *pkg = aml_package(2); in aml_pci_edsm()
444 static Aml *aml_pci_static_endpoint_dsm(PCIDevice *pdev) in aml_pci_static_endpoint_dsm()
446 Aml *method; in aml_pci_static_endpoint_dsm()
451 Aml *params = aml_local(0); in aml_pci_static_endpoint_dsm()
452 Aml *pkg = aml_package(1); in aml_pci_static_endpoint_dsm()
463 static void build_append_pcihp_notify_entry(Aml *method, int slot) in build_append_pcihp_notify_entry()
465 Aml *if_ctx; in build_append_pcihp_notify_entry()
512 void build_append_pcihp_slots(Aml *parent_scope, PCIBus *bus) in build_append_pcihp_slots()
515 Aml *dev, *notify_method = NULL, *method; in build_append_pcihp_slots()
562 void build_append_pci_bus_devices(Aml *parent_scope, PCIBus *bus) in build_append_pci_bus_devices()
565 Aml *dev; in build_append_pci_bus_devices()
593 static bool build_append_notfication_callback(Aml *parent_scope, in build_append_notfication_callback()
596 Aml *method; in build_append_notfication_callback()
603 Aml *br_scope = aml_scope("S%.02X", sec->parent_dev->devfn); in build_append_notfication_callback()
651 static Aml *aml_pci_pdsm(void) in aml_pci_pdsm()
653 Aml *method, *ifctx, *ifctx1; in aml_pci_pdsm()
654 Aml *ret = aml_local(0); in aml_pci_pdsm()
655 Aml *caps = aml_local(1); in aml_pci_pdsm()
656 Aml *acpi_index = aml_local(2); in aml_pci_pdsm()
657 Aml *zero = aml_int(0); in aml_pci_pdsm()
658 Aml *one = aml_int(1); in aml_pci_pdsm()
659 Aml *func = aml_arg(2); in aml_pci_pdsm()
660 Aml *params = aml_arg(4); in aml_pci_pdsm()
661 Aml *bnum = aml_derefof(aml_index(params, aml_int(0))); in aml_pci_pdsm()
662 Aml *sunum = aml_derefof(aml_index(params, aml_int(1))); in aml_pci_pdsm()
707 Aml *pkg = aml_package(2); in aml_pci_pdsm()
734 static Aml *build_prt_entry(const char *link_name) in build_prt_entry()
736 Aml *a_zero = aml_int(0); in build_prt_entry()
737 Aml *pkg = aml_package(4); in build_prt_entry()
751 static Aml *initialize_route(Aml *route, const char *link_name, in initialize_route()
752 Aml *lnk_idx, int idx) in initialize_route()
754 Aml *if_ctx = aml_if(aml_equal(lnk_idx, aml_int(idx))); in initialize_route()
755 Aml *pkg = build_prt_entry(link_name); in initialize_route()
772 static Aml *build_prt(bool is_pci0_prt) in build_prt()
774 Aml *method, *while_ctx, *pin, *res; in build_prt()
785 Aml *slot = aml_local(2); in build_prt()
786 Aml *lnk_idx = aml_local(3); in build_prt()
787 Aml *route = aml_local(4); in build_prt()
800 Aml *if_device_1, *if_pin_4, *else_pin_4; in build_prt()
846 static void build_hpet_aml(Aml *table) in build_hpet_aml()
848 Aml *crs; in build_hpet_aml()
849 Aml *field; in build_hpet_aml()
850 Aml *method; in build_hpet_aml()
851 Aml *if_ctx; in build_hpet_aml()
852 Aml *scope = aml_scope("_SB"); in build_hpet_aml()
853 Aml *dev = aml_device("HPET"); in build_hpet_aml()
854 Aml *zero = aml_int(0); in build_hpet_aml()
855 Aml *id = aml_local(0); in build_hpet_aml()
856 Aml *period = aml_local(1); in build_hpet_aml()
898 static Aml *build_vmbus_device_aml(VMBusBridge *vmbus_bridge) in build_vmbus_device_aml()
900 Aml *dev; in build_vmbus_device_aml()
901 Aml *method; in build_vmbus_device_aml()
902 Aml *crs; in build_vmbus_device_aml()
933 static void build_dbg_aml(Aml *table) in build_dbg_aml()
935 Aml *field; in build_dbg_aml()
936 Aml *method; in build_dbg_aml()
937 Aml *while_ctx; in build_dbg_aml()
938 Aml *scope = aml_scope("\\"); in build_dbg_aml()
939 Aml *buf = aml_local(0); in build_dbg_aml()
940 Aml *len = aml_local(1); in build_dbg_aml()
941 Aml *idx = aml_local(2); in build_dbg_aml()
968 static Aml *build_link_dev(const char *name, uint8_t uid, Aml *reg) in build_link_dev()
970 Aml *dev; in build_link_dev()
971 Aml *crs; in build_link_dev()
972 Aml *method; in build_link_dev()
1004 static Aml *build_gsi_link_dev(const char *name, uint8_t uid, uint8_t gsi) in build_gsi_link_dev()
1006 Aml *dev; in build_gsi_link_dev()
1007 Aml *crs; in build_gsi_link_dev()
1008 Aml *method; in build_gsi_link_dev()
1036 static Aml *build_iqcr_method(bool is_piix4) in build_iqcr_method()
1038 Aml *if_ctx; in build_iqcr_method()
1040 Aml *method = aml_method("IQCR", 1, AML_SERIALIZED); in build_iqcr_method()
1041 Aml *crs = aml_resource_template(); in build_iqcr_method()
1066 static Aml *build_irq_status_method(void) in build_irq_status_method()
1068 Aml *if_ctx; in build_irq_status_method()
1069 Aml *method = aml_method("IQST", 1, AML_NOTSERIALIZED); in build_irq_status_method()
1078 static void build_piix4_pci0_int(Aml *table) in build_piix4_pci0_int()
1080 Aml *dev; in build_piix4_pci0_int()
1081 Aml *crs; in build_piix4_pci0_int()
1082 Aml *method; in build_piix4_pci0_int()
1084 Aml *sb_scope = aml_scope("_SB"); in build_piix4_pci0_int()
1085 Aml *pci0_scope = aml_scope("PCI0"); in build_piix4_pci0_int()
1133 static void append_q35_prt_entry(Aml *ctx, uint32_t nr, const char *name) in append_q35_prt_entry()
1137 Aml *pkg; in append_q35_prt_entry()
1140 Aml *a_nr = aml_int((nr << 16) | 0xffff); in append_q35_prt_entry()
1160 static Aml *build_q35_routing_table(const char *str) in build_q35_routing_table()
1163 Aml *pkg; in build_q35_routing_table()
1191 static void build_q35_pci0_int(Aml *table) in build_q35_pci0_int()
1193 Aml *method; in build_q35_pci0_int()
1194 Aml *sb_scope = aml_scope("_SB"); in build_q35_pci0_int()
1195 Aml *pci0_scope = aml_scope("PCI0"); in build_q35_pci0_int()
1212 Aml *if_ctx; in build_q35_pci0_int()
1213 Aml *else_ctx; in build_q35_pci0_int()
1253 static Aml *build_q35_dram_controller(const AcpiMcfgInfo *mcfg) in build_q35_dram_controller()
1255 Aml *dev; in build_q35_dram_controller()
1256 Aml *resource_template; in build_q35_dram_controller()
1293 static void build_x86_acpi_pci_hotplug(Aml *table, uint64_t pcihp_addr) in build_x86_acpi_pci_hotplug()
1295 Aml *scope; in build_x86_acpi_pci_hotplug()
1296 Aml *field; in build_x86_acpi_pci_hotplug()
1297 Aml *method; in build_x86_acpi_pci_hotplug()
1349 static Aml *build_q35_osc_method(bool enable_native_pcie_hotplug) in build_q35_osc_method()
1351 Aml *if_ctx; in build_q35_osc_method()
1352 Aml *if_ctx2; in build_q35_osc_method()
1353 Aml *else_ctx; in build_q35_osc_method()
1354 Aml *method; in build_q35_osc_method()
1355 Aml *a_cwd1 = aml_name("CDW1"); in build_q35_osc_method()
1356 Aml *a_ctrl = aml_local(0); in build_q35_osc_method()
1399 static void build_acpi0017(Aml *table) in build_acpi0017()
1401 Aml *dev, *scope, *method; in build_acpi0017()
1425 Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs; in build_dsdt()
1575 struct Aml *aml_pkg = aml_package(2); in build_dsdt()
1774 Aml *ascope = aml_scope("PCI0"); in build_dsdt()