Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/acpi/nfit/
Dcore.c186 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in xlat_nvdimm_status() local
194 if (nfit_mem->has_lsr) in xlat_nvdimm_status()
201 if (nfit_mem->has_lsr && status == ACPI_LABELS_LOCKED) in xlat_nvdimm_status()
205 if (nfit_mem->has_lsw && status == ACPI_LABELS_LOCKED) in xlat_nvdimm_status()
398 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in acpi_nfit_ctl() local
424 struct acpi_device *adev = nfit_mem->adev; in acpi_nfit_ctl()
428 if (call_pkg && nfit_mem->family != call_pkg->nd_family) in acpi_nfit_ctl()
434 dsm_mask = nfit_mem->dsm_mask; in acpi_nfit_ctl()
436 guid = to_nfit_uuid(nfit_mem->family); in acpi_nfit_ctl()
483 if (nvdimm && cmd == ND_CMD_GET_CONFIG_SIZE && nfit_mem->has_lsr) in acpi_nfit_ctl()
[all …]
Dnfit.h163 struct nfit_mem { struct
272 struct nfit_mem *nfit_mem) in __to_nfit_memdev() argument
274 if (nfit_mem->memdev_dcr) in __to_nfit_memdev()
275 return nfit_mem->memdev_dcr; in __to_nfit_memdev()
276 return nfit_mem->memdev_pmem; in __to_nfit_memdev()
/Linux-v4.19/tools/testing/nvdimm/test/
Dnfit.c934 static int get_dimm(struct nfit_mem *nfit_mem, unsigned int func) in get_dimm() argument
940 if (__to_nfit_memdev(nfit_mem)->device_handle == handle[i]) in get_dimm()
961 struct nfit_mem *nfit_mem = nvdimm_provider_data(nvdimm); in nfit_test_ctl() local
964 if (!nfit_mem) in nfit_test_ctl()
973 if (call_pkg->nd_family != nfit_mem->family) in nfit_test_ctl()
976 i = get_dimm(nfit_mem, func); in nfit_test_ctl()
1038 || !test_bit(func, &nfit_mem->dsm_mask)) in nfit_test_ctl()
1041 i = get_dimm(nfit_mem, func); in nfit_test_ctl()
2359 struct nfit_mem *nfit_mem; in nfit_ctl_test() local
2404 nfit_mem = devm_kzalloc(dev, sizeof(*nfit_mem), GFP_KERNEL); in nfit_ctl_test()
[all …]