Lines Matching refs:method
935 Aml *method, *ifctx, *function, *handle, *uuid, *dsm_mem, *elsectx2; in nvdimm_build_common_dsm() local
942 method = aml_method(NVDIMM_COMMON_DSM, 5, AML_SERIALIZED); in nvdimm_build_common_dsm()
949 aml_append(method, aml_store(aml_name(NVDIMM_ACPI_MEM_ADDR), dsm_mem)); in nvdimm_build_common_dsm()
958 aml_append(method, aml_operation_region(NVDIMM_DSM_IOPORT, rs, in nvdimm_build_common_dsm()
961 aml_append(method, aml_operation_region(NVDIMM_DSM_MEMORY, in nvdimm_build_common_dsm()
976 aml_append(method, field); in nvdimm_build_common_dsm()
1000 aml_append(method, field); in nvdimm_build_common_dsm()
1017 aml_append(method, field); in nvdimm_build_common_dsm()
1031 aml_append(method, ifctx); in nvdimm_build_common_dsm()
1041 aml_append(method, elsectx); in nvdimm_build_common_dsm()
1059 aml_append(method, unsupport); in nvdimm_build_common_dsm()
1066 aml_append(method, aml_store(handle, aml_name(NVDIMM_DSM_HANDLE))); in nvdimm_build_common_dsm()
1067 aml_append(method, aml_store(aml_arg(1), aml_name(NVDIMM_DSM_REVISION))); in nvdimm_build_common_dsm()
1068 aml_append(method, aml_store(function, aml_name(NVDIMM_DSM_FUNCTION))); in nvdimm_build_common_dsm()
1086 aml_append(method, ifctx); in nvdimm_build_common_dsm()
1092 aml_append(method, aml_store(dsm_mem, aml_name(NVDIMM_DSM_NOTIFY))); in nvdimm_build_common_dsm()
1096 aml_append(method, aml_subtract(aml_name(NVDIMM_DSM_OUT_BUF_SIZE), in nvdimm_build_common_dsm()
1129 aml_append(method, ifctx); in nvdimm_build_common_dsm()
1132 aml_append(method, aml_store(aml_shiftleft(dsm_out_buf_size, aml_int(3)), in nvdimm_build_common_dsm()
1134 aml_append(method, aml_create_field(aml_name(NVDIMM_DSM_OUT_BUF), in nvdimm_build_common_dsm()
1136 aml_append(method, aml_return(aml_name("OBUF"))); in nvdimm_build_common_dsm()
1138 aml_append(dev, method); in nvdimm_build_common_dsm()
1143 Aml *method; in nvdimm_build_device_dsm() local
1145 method = aml_method("_DSM", 4, AML_NOTSERIALIZED); in nvdimm_build_device_dsm()
1146 aml_append(method, aml_return(aml_call5(NVDIMM_COMMON_DSM, aml_arg(0), in nvdimm_build_device_dsm()
1149 aml_append(dev, method); in nvdimm_build_device_dsm()
1154 Aml *method, *pkg, *buf, *buf_size, *offset, *call_result; in nvdimm_build_fit() local
1164 method = aml_method("RFIT", 1, AML_SERIALIZED); in nvdimm_build_fit()
1165 aml_append(method, aml_name_decl("OFST", aml_int(0))); in nvdimm_build_fit()
1169 aml_append(method, aml_store(aml_arg(0), aml_name("OFST"))); in nvdimm_build_fit()
1178 aml_append(method, aml_store(call_result, buf)); in nvdimm_build_fit()
1181 aml_append(method, aml_create_dword_field(buf, in nvdimm_build_fit()
1184 aml_append(method, aml_store(aml_name("STAU"), in nvdimm_build_fit()
1192 aml_append(method, ifctx); in nvdimm_build_fit()
1194 aml_append(method, aml_store(aml_sizeof(buf), buf_size)); in nvdimm_build_fit()
1195 aml_append(method, aml_subtract(buf_size, in nvdimm_build_fit()
1202 aml_append(method, ifctx); in nvdimm_build_fit()
1204 aml_append(method, aml_create_field(buf, in nvdimm_build_fit()
1207 aml_append(method, aml_return(aml_name("BUFF"))); in nvdimm_build_fit()
1208 aml_append(dev, method); in nvdimm_build_fit()
1211 method = aml_method("_FIT", 0, AML_SERIALIZED); in nvdimm_build_fit()
1214 aml_append(method, aml_store(aml_buffer(0, NULL), fit)); in nvdimm_build_fit()
1215 aml_append(method, aml_store(aml_int(0), offset)); in nvdimm_build_fit()
1243 aml_append(method, whilectx); in nvdimm_build_fit()
1245 aml_append(dev, method); in nvdimm_build_fit()
1251 Aml *method, *pkg, *field, *com_call; in nvdimm_build_nvdimm_devices() local
1273 method = aml_method("_LSI", 0, AML_SERIALIZED); in nvdimm_build_nvdimm_devices()
1278 aml_append(method, aml_store(com_call, aml_local(0))); in nvdimm_build_nvdimm_devices()
1280 aml_append(method, aml_create_dword_field(aml_local(0), in nvdimm_build_nvdimm_devices()
1282 aml_append(method, aml_create_dword_field(aml_local(0), aml_int(4), in nvdimm_build_nvdimm_devices()
1284 aml_append(method, aml_create_dword_field(aml_local(0), aml_int(8), in nvdimm_build_nvdimm_devices()
1291 aml_append(method, aml_store(pkg, aml_local(1))); in nvdimm_build_nvdimm_devices()
1292 aml_append(method, aml_return(aml_local(1))); in nvdimm_build_nvdimm_devices()
1294 aml_append(nvdimm_dev, method); in nvdimm_build_nvdimm_devices()
1297 method = aml_method("_LSR", 2, AML_SERIALIZED); in nvdimm_build_nvdimm_devices()
1298 aml_append(method, aml_name_decl("INPT", aml_buffer(8, NULL))); in nvdimm_build_nvdimm_devices()
1300 aml_append(method, aml_create_dword_field(aml_name("INPT"), in nvdimm_build_nvdimm_devices()
1302 aml_append(method, aml_create_dword_field(aml_name("INPT"), in nvdimm_build_nvdimm_devices()
1304 aml_append(method, aml_store(aml_arg(0), aml_name("OFST"))); in nvdimm_build_nvdimm_devices()
1305 aml_append(method, aml_store(aml_arg(1), aml_name("LEN"))); in nvdimm_build_nvdimm_devices()
1309 aml_append(method, aml_store(pkg, aml_local(0))); in nvdimm_build_nvdimm_devices()
1315 aml_append(method, aml_store(com_call, aml_local(3))); in nvdimm_build_nvdimm_devices()
1317 aml_append(method, field); in nvdimm_build_nvdimm_devices()
1321 aml_append(method, field); in nvdimm_build_nvdimm_devices()
1322 aml_append(method, aml_name_decl("LSA", aml_buffer(0, NULL))); in nvdimm_build_nvdimm_devices()
1323 aml_append(method, aml_to_buffer(aml_name("LDAT"), aml_name("LSA"))); in nvdimm_build_nvdimm_devices()
1329 aml_append(method, aml_store(pkg, aml_local(1))); in nvdimm_build_nvdimm_devices()
1330 aml_append(method, aml_return(aml_local(1))); in nvdimm_build_nvdimm_devices()
1332 aml_append(nvdimm_dev, method); in nvdimm_build_nvdimm_devices()
1335 method = aml_method("_LSW", 3, AML_SERIALIZED); in nvdimm_build_nvdimm_devices()
1336 aml_append(method, aml_store(aml_arg(2), aml_local(2))); in nvdimm_build_nvdimm_devices()
1337 aml_append(method, aml_name_decl("INPT", aml_buffer(8, NULL))); in nvdimm_build_nvdimm_devices()
1340 aml_append(method, field); in nvdimm_build_nvdimm_devices()
1343 aml_append(method, field); in nvdimm_build_nvdimm_devices()
1344 aml_append(method, aml_store(aml_arg(0), aml_name("OFST"))); in nvdimm_build_nvdimm_devices()
1345 aml_append(method, aml_store(aml_arg(1), aml_name("TLEN"))); in nvdimm_build_nvdimm_devices()
1347 aml_append(method, aml_concatenate(aml_name("INPT"), aml_local(2), in nvdimm_build_nvdimm_devices()
1351 aml_append(method, aml_store(pkg, aml_local(0))); in nvdimm_build_nvdimm_devices()
1356 aml_append(method, aml_store(com_call, aml_local(3))); in nvdimm_build_nvdimm_devices()
1358 aml_append(method, field); in nvdimm_build_nvdimm_devices()
1359 aml_append(method, aml_return(aml_name("STTS"))); in nvdimm_build_nvdimm_devices()
1361 aml_append(nvdimm_dev, method); in nvdimm_build_nvdimm_devices()