Lines Matching refs:method

343     Aml *method;  in aml_pci_device_dsm()  local
345 method = aml_method("_DSM", 4, AML_SERIALIZED); in aml_pci_device_dsm()
351 aml_append(method, aml_store(pkg, params)); in aml_pci_device_dsm()
352 aml_append(method, in aml_pci_device_dsm()
354 aml_append(method, in aml_pci_device_dsm()
356 aml_append(method, in aml_pci_device_dsm()
361 return method; in aml_pci_device_dsm()
392 Aml *method, *ifctx; in aml_pci_edsm() local
399 method = aml_method("EDSM", 5, AML_SERIALIZED); in aml_pci_edsm()
411 aml_append(method, ifctx); in aml_pci_edsm()
438 aml_append(method, ifctx); in aml_pci_edsm()
440 return method; in aml_pci_edsm()
445 Aml *method; in aml_pci_static_endpoint_dsm() local
448 method = aml_method("_DSM", 4, AML_SERIALIZED); in aml_pci_static_endpoint_dsm()
453 aml_append(method, aml_store(pkg, params)); in aml_pci_static_endpoint_dsm()
454 aml_append(method, in aml_pci_static_endpoint_dsm()
459 return method; in aml_pci_static_endpoint_dsm()
462 static void build_append_pcihp_notify_entry(Aml *method, int slot) in build_append_pcihp_notify_entry() argument
469 aml_append(method, if_ctx); in build_append_pcihp_notify_entry()
514 Aml *dev, *notify_method = NULL, *method; in build_append_pcihp_slots() local
547 method = aml_method("_EJ0", 1, AML_NOTSERIALIZED); in build_append_pcihp_slots()
548 aml_append(method, in build_append_pcihp_slots()
551 aml_append(dev, method); in build_append_pcihp_slots()
595 Aml *method; in build_append_notfication_callback() local
624 method = aml_method("PCNT", 0, AML_NOTSERIALIZED); in build_append_notfication_callback()
631 aml_append(method, aml_store(aml_int(bsel_val), aml_name("BNUM"))); in build_append_notfication_callback()
632 aml_append(method, aml_call2("DVNT", aml_name("PCIU"), in build_append_notfication_callback()
634 aml_append(method, aml_call2("DVNT", aml_name("PCID"), in build_append_notfication_callback()
641 aml_append(method, aml_name("^S%.02X.PCNT", sec->parent_dev->devfn)); in build_append_notfication_callback()
644 aml_append(parent_scope, method); in build_append_notfication_callback()
652 Aml *method, *ifctx, *ifctx1; in aml_pci_pdsm() local
663 method = aml_method("PDSM", 5, AML_SERIALIZED); in aml_pci_pdsm()
696 aml_append(method, ifctx); in aml_pci_pdsm()
723 aml_append(method, ifctx); in aml_pci_pdsm()
724 return method; in aml_pci_pdsm()
773 Aml *method, *while_ctx, *pin, *res; in build_prt() local
775 method = aml_method("_PRT", 0, AML_NOTSERIALIZED); in build_prt()
778 aml_append(method, aml_store(aml_package(128), res)); in build_prt()
779 aml_append(method, aml_store(aml_int(0), pin)); in build_prt()
838 aml_append(method, while_ctx); in build_prt()
840 aml_append(method, aml_return(res)); in build_prt()
842 return method; in build_prt()
849 Aml *method; in build_hpet_aml() local
868 method = aml_method("_STA", 0, AML_NOTSERIALIZED); in build_hpet_aml()
869 aml_append(method, aml_store(aml_name("VEND"), id)); in build_hpet_aml()
870 aml_append(method, aml_store(aml_name("PRD"), period)); in build_hpet_aml()
871 aml_append(method, aml_shiftright(id, aml_int(16), id)); in build_hpet_aml()
877 aml_append(method, if_ctx); in build_hpet_aml()
884 aml_append(method, if_ctx); in build_hpet_aml()
886 aml_append(method, aml_return(aml_int(0x0F))); in build_hpet_aml()
887 aml_append(dev, method); in build_hpet_aml()
900 Aml *method; in build_vmbus_device_aml() local
909 method = aml_method("_DIS", 0, AML_NOTSERIALIZED); in build_vmbus_device_aml()
910 aml_append(method, aml_store(aml_and(aml_name("STA"), aml_int(0xD), NULL), in build_vmbus_device_aml()
912 aml_append(dev, method); in build_vmbus_device_aml()
914 method = aml_method("_PS0", 0, AML_NOTSERIALIZED); in build_vmbus_device_aml()
915 aml_append(method, aml_store(aml_or(aml_name("STA"), aml_int(0xF), NULL), in build_vmbus_device_aml()
917 aml_append(dev, method); in build_vmbus_device_aml()
919 method = aml_method("_STA", 0, AML_NOTSERIALIZED); in build_vmbus_device_aml()
920 aml_append(method, aml_return(aml_name("STA"))); in build_vmbus_device_aml()
921 aml_append(dev, method); in build_vmbus_device_aml()
935 Aml *method; in build_dbg_aml() local
948 method = aml_method("DBUG", 1, AML_NOTSERIALIZED); in build_dbg_aml()
950 aml_append(method, aml_to_hexstring(aml_arg(0), buf)); in build_dbg_aml()
951 aml_append(method, aml_to_buffer(buf, buf)); in build_dbg_aml()
952 aml_append(method, aml_subtract(aml_sizeof(buf), aml_int(1), len)); in build_dbg_aml()
953 aml_append(method, aml_store(aml_int(0), idx)); in build_dbg_aml()
959 aml_append(method, while_ctx); in build_dbg_aml()
961 aml_append(method, aml_store(aml_int(0x0A), aml_name("DBGB"))); in build_dbg_aml()
962 aml_append(scope, method); in build_dbg_aml()
971 Aml *method; in build_link_dev() local
983 method = aml_method("_STA", 0, AML_NOTSERIALIZED); in build_link_dev()
984 aml_append(method, aml_return(aml_call1("IQST", reg))); in build_link_dev()
985 aml_append(dev, method); in build_link_dev()
987 method = aml_method("_DIS", 0, AML_NOTSERIALIZED); in build_link_dev()
988 aml_append(method, aml_or(reg, aml_int(0x80), reg)); in build_link_dev()
989 aml_append(dev, method); in build_link_dev()
991 method = aml_method("_CRS", 0, AML_NOTSERIALIZED); in build_link_dev()
992 aml_append(method, aml_return(aml_call1("IQCR", reg))); in build_link_dev()
993 aml_append(dev, method); in build_link_dev()
995 method = aml_method("_SRS", 1, AML_NOTSERIALIZED); in build_link_dev()
996 aml_append(method, aml_create_dword_field(aml_arg(0), aml_int(5), "PRRI")); in build_link_dev()
997 aml_append(method, aml_store(aml_name("PRRI"), reg)); in build_link_dev()
998 aml_append(dev, method); in build_link_dev()
1007 Aml *method; in build_gsi_link_dev() local
1025 method = aml_method("_DIS", 0, AML_NOTSERIALIZED); in build_gsi_link_dev()
1026 aml_append(dev, method); in build_gsi_link_dev()
1028 method = aml_method("_SRS", 1, AML_NOTSERIALIZED); in build_gsi_link_dev()
1029 aml_append(dev, method); in build_gsi_link_dev()
1039 Aml *method = aml_method("IQCR", 1, AML_SERIALIZED); in build_iqcr_method() local
1045 aml_append(method, aml_name_decl("PRR0", crs)); in build_iqcr_method()
1047 aml_append(method, in build_iqcr_method()
1053 aml_append(method, if_ctx); in build_iqcr_method()
1055 aml_append(method, in build_iqcr_method()
1060 aml_append(method, aml_return(aml_name("PRR0"))); in build_iqcr_method()
1061 return method; in build_iqcr_method()
1068 Aml *method = aml_method("IQST", 1, AML_NOTSERIALIZED); in build_irq_status_method() local
1072 aml_append(method, if_ctx); in build_irq_status_method()
1073 aml_append(method, aml_return(aml_int(0x0B))); in build_irq_status_method()
1074 return method; in build_irq_status_method()
1081 Aml *method; in build_piix4_pci0_int() local
1113 method = aml_method("_STA", 0, AML_NOTSERIALIZED); in build_piix4_pci0_int()
1114 aml_append(method, aml_return(aml_int(0x0b))); in build_piix4_pci0_int()
1115 aml_append(dev, method); in build_piix4_pci0_int()
1117 method = aml_method("_DIS", 0, AML_NOTSERIALIZED); in build_piix4_pci0_int()
1118 aml_append(dev, method); in build_piix4_pci0_int()
1120 method = aml_method("_CRS", 0, AML_NOTSERIALIZED); in build_piix4_pci0_int()
1121 aml_append(method, aml_return(aml_name("_PRS"))); in build_piix4_pci0_int()
1122 aml_append(dev, method); in build_piix4_pci0_int()
1124 method = aml_method("_SRS", 1, AML_NOTSERIALIZED); in build_piix4_pci0_int()
1125 aml_append(dev, method); in build_piix4_pci0_int()
1192 Aml *method; in build_q35_pci0_int() local
1198 method = aml_method("_PIC", 1, AML_NOTSERIALIZED); in build_q35_pci0_int()
1200 aml_append(method, aml_store(aml_arg(0), aml_name("PICF"))); in build_q35_pci0_int()
1202 aml_append(table, method); in build_q35_pci0_int()
1209 method = aml_method("_PRT", 0, AML_NOTSERIALIZED); in build_q35_pci0_int()
1220 aml_append(method, if_ctx); in build_q35_pci0_int()
1223 aml_append(method, else_ctx); in build_q35_pci0_int()
1225 aml_append(pci0_scope, method); in build_q35_pci0_int()
1296 Aml *method; in build_x86_acpi_pci_hotplug() local
1324 method = aml_method("PCEJ", 2, AML_NOTSERIALIZED); in build_x86_acpi_pci_hotplug()
1325 aml_append(method, aml_acquire(aml_name("BLCK"), 0xFFFF)); in build_x86_acpi_pci_hotplug()
1326 aml_append(method, aml_store(aml_arg(0), aml_name("BNUM"))); in build_x86_acpi_pci_hotplug()
1327 aml_append(method, in build_x86_acpi_pci_hotplug()
1329 aml_append(method, aml_release(aml_name("BLCK"))); in build_x86_acpi_pci_hotplug()
1330 aml_append(method, aml_return(aml_int(0))); in build_x86_acpi_pci_hotplug()
1331 aml_append(scope, method); in build_x86_acpi_pci_hotplug()
1333 method = aml_method("AIDX", 2, AML_NOTSERIALIZED); in build_x86_acpi_pci_hotplug()
1334 aml_append(method, aml_acquire(aml_name("BLCK"), 0xFFFF)); in build_x86_acpi_pci_hotplug()
1335 aml_append(method, aml_store(aml_arg(0), aml_name("BNUM"))); in build_x86_acpi_pci_hotplug()
1336 aml_append(method, in build_x86_acpi_pci_hotplug()
1338 aml_append(method, aml_store(aml_name("PIDX"), aml_local(0))); in build_x86_acpi_pci_hotplug()
1339 aml_append(method, aml_release(aml_name("BLCK"))); in build_x86_acpi_pci_hotplug()
1340 aml_append(method, aml_return(aml_local(0))); in build_x86_acpi_pci_hotplug()
1341 aml_append(scope, method); in build_x86_acpi_pci_hotplug()
1353 Aml *method; in build_q35_osc_method() local
1357 method = aml_method("_OSC", 4, AML_NOTSERIALIZED); in build_q35_osc_method()
1358 aml_append(method, aml_create_dword_field(aml_arg(3), aml_int(0), "CDW1")); in build_q35_osc_method()
1387 aml_append(method, if_ctx); in build_q35_osc_method()
1392 aml_append(method, else_ctx); in build_q35_osc_method()
1394 aml_append(method, aml_return(aml_arg(3))); in build_q35_osc_method()
1395 return method; in build_q35_osc_method()
1400 Aml *dev, *scope, *method; in build_acpi0017() local
1406 method = aml_method("_STA", 0, AML_NOTSERIALIZED); in build_acpi0017()
1407 aml_append(method, aml_return(aml_int(0x0B))); in build_acpi0017()
1408 aml_append(dev, method); in build_acpi0017()
1424 Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs; in build_dsdt() local
1522 method = aml_method("_E04", 0, AML_NOTSERIALIZED); in build_dsdt()
1523 aml_append(method, aml_notify(aml_name("\\_SB.NVDR"), in build_dsdt()
1525 aml_append(scope, method); in build_dsdt()
1820 method = aml_method("_STA", 0, AML_NOTSERIALIZED); in build_dsdt()
1821 aml_append(method, aml_return(aml_int(0x0f))); in build_dsdt()
1822 aml_append(dev, method); in build_dsdt()
1842 method = aml_method("_E01", 0, AML_NOTSERIALIZED); in build_dsdt()
1844 aml_append(method, in build_dsdt()
1846 aml_append(method, aml_call0("\\_SB.PCI0.PCNT")); in build_dsdt()
1847 aml_append(method, aml_release(aml_name("\\_SB.PCI0.BLCK"))); in build_dsdt()
1849 aml_append(scope, method); in build_dsdt()