Home
last modified time | relevance | path

Searched refs:nfit_mem (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/acpi/nfit/
H A Dintel.c56 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_flags() local
73 if (!test_bit(NVDIMM_INTEL_GET_SECURITY_STATE, &nfit_mem->dsm_mask)) in intel_security_flags()
122 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_freeze() local
136 if (!test_bit(NVDIMM_INTEL_FREEZE_LOCK, &nfit_mem->dsm_mask)) in intel_security_freeze()
152 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_change_key() local
170 if (!test_bit(cmd, &nfit_mem->dsm_mask)) in intel_security_change_key()
197 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_unlock() local
212 if (!test_bit(NVDIMM_INTEL_UNLOCK_UNIT, &nfit_mem->dsm_mask)) in intel_security_unlock()
236 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in intel_security_disable() local
250 if (!test_bit(NVDIMM_INTEL_DISABLE_PASSPHRASE, &nfit_mem->dsm_mask)) in intel_security_disable()
[all …]
H A Dcore.c190 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in xlat_nvdimm_status() local
198 if (test_bit(NFIT_MEM_LSR, &nfit_mem->flags)) in xlat_nvdimm_status()
205 if (test_bit(NFIT_MEM_LSR, &nfit_mem->flags) in xlat_nvdimm_status()
210 if (test_bit(NFIT_MEM_LSW, &nfit_mem->flags) in xlat_nvdimm_status()
397 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in payload_dumpable() local
399 if (nfit_mem && nfit_mem->family == NVDIMM_FAMILY_INTEL in payload_dumpable()
406 static int cmd_to_func(struct nfit_mem *nfit_mem, unsigned int cmd, in cmd_to_func() argument
412 if (nfit_mem && nfit_mem->family != call_pkg->nd_family) in cmd_to_func()
423 if (!nfit_mem) in cmd_to_func()
427 if (nfit_mem->family == NVDIMM_FAMILY_INTEL) in cmd_to_func()
[all …]
H A Dnfit.h207 struct nfit_mem { struct
327 struct nfit_mem *nfit_mem) in __to_nfit_memdev() argument
329 if (nfit_mem->memdev_dcr) in __to_nfit_memdev()
330 return nfit_mem->memdev_dcr; in __to_nfit_memdev()
331 return nfit_mem->memdev_pmem; in __to_nfit_memdev()
350 void nfit_intel_shutdown_status(struct nfit_mem *nfit_mem);
/linux/tools/testing/nvdimm/
H A Dacpi_nfit_test.c12 void nfit_intel_shutdown_status(struct nfit_mem *nfit_mem) in nfit_intel_shutdown_status() argument
14 set_bit(NFIT_MEM_DIRTY_COUNT, &nfit_mem->flags); in nfit_intel_shutdown_status()
15 nfit_mem->dirty_shutdown = 42; in nfit_intel_shutdown_status()
/linux/tools/testing/nvdimm/test/
H A Dnfit.c1312 static int get_dimm(struct nfit_mem *nfit_mem, unsigned int func) in get_dimm() argument
1318 if (__to_nfit_memdev(nfit_mem)->device_handle == handle[i]) in get_dimm()
1364 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in nfit_test_ctl() local
1367 if (!nfit_mem) in nfit_test_ctl()
1376 if (call_pkg->nd_family != nfit_mem->family) in nfit_test_ctl()
1379 i = get_dimm(nfit_mem, func); in nfit_test_ctl()
1491 || !test_bit(func, &nfit_mem->dsm_mask)) in nfit_test_ctl()
1494 i = get_dimm(nfit_mem, func); in nfit_test_ctl()
2876 struct nfit_mem *nfit_mem; in nfit_ctl_test() local
2929 nfit_mem = devm_kzalloc(dev, sizeof(*nfit_mem), GFP_KERNEL); in nfit_ctl_test()
[all …]