Home
last modified time | relevance | path

Searched refs:nvdimm_bus (Results 1 – 25 of 25) sorted by relevance

/linux-6.1.9/drivers/nvdimm/
Dcore.c25 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_bus_lock() local
27 if (!nvdimm_bus) in nvdimm_bus_lock()
29 mutex_lock(&nvdimm_bus->reconfig_mutex); in nvdimm_bus_lock()
35 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_bus_unlock() local
37 if (!nvdimm_bus) in nvdimm_bus_unlock()
39 mutex_unlock(&nvdimm_bus->reconfig_mutex); in nvdimm_bus_unlock()
45 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in is_nvdimm_bus_locked() local
47 if (!nvdimm_bus) in is_nvdimm_bus_locked()
49 return mutex_is_locked(&nvdimm_bus->reconfig_mutex); in is_nvdimm_bus_locked()
54 struct nvdimm_bus *nvdimm_bus; member
[all …]
Dbus.c55 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in to_bus_provider() local
57 return nvdimm_bus->nd_desc->module; in to_bus_provider()
62 static void nvdimm_bus_probe_start(struct nvdimm_bus *nvdimm_bus) in nvdimm_bus_probe_start() argument
64 nvdimm_bus_lock(&nvdimm_bus->dev); in nvdimm_bus_probe_start()
65 nvdimm_bus->probe_active++; in nvdimm_bus_probe_start()
66 nvdimm_bus_unlock(&nvdimm_bus->dev); in nvdimm_bus_probe_start()
69 static void nvdimm_bus_probe_end(struct nvdimm_bus *nvdimm_bus) in nvdimm_bus_probe_end() argument
71 nvdimm_bus_lock(&nvdimm_bus->dev); in nvdimm_bus_probe_end()
72 if (--nvdimm_bus->probe_active == 0) in nvdimm_bus_probe_end()
73 wake_up(&nvdimm_bus->wait); in nvdimm_bus_probe_end()
[all …]
De820.c14 struct nvdimm_bus *nvdimm_bus = platform_get_drvdata(pdev); in e820_pmem_remove() local
16 nvdimm_bus_unregister(nvdimm_bus); in e820_pmem_remove()
23 struct nvdimm_bus *nvdimm_bus = data; in e820_register_one() local
31 if (!nvdimm_pmem_region_create(nvdimm_bus, &ndr_desc)) in e820_register_one()
40 struct nvdimm_bus *nvdimm_bus; in e820_pmem_probe() local
45 nvdimm_bus = nvdimm_bus_register(dev, &nd_desc); in e820_pmem_probe()
46 if (!nvdimm_bus) in e820_pmem_probe()
48 platform_set_drvdata(pdev, nvdimm_bus); in e820_pmem_probe()
51 IORESOURCE_MEM, 0, -1, nvdimm_bus, e820_register_one); in e820_pmem_probe()
56 nvdimm_bus_unregister(nvdimm_bus); in e820_pmem_probe()
Dvirtio_pmem.c71 vpmem->nvdimm_bus = nvdimm_bus_register(&vdev->dev, in virtio_pmem_probe()
73 if (!vpmem->nvdimm_bus) { in virtio_pmem_probe()
79 dev_set_drvdata(&vdev->dev, vpmem->nvdimm_bus); in virtio_pmem_probe()
93 nd_region = nvdimm_pmem_region_create(vpmem->nvdimm_bus, &ndr_desc); in virtio_pmem_probe()
102 nvdimm_bus_unregister(vpmem->nvdimm_bus); in virtio_pmem_probe()
111 struct nvdimm_bus *nvdimm_bus = dev_get_drvdata(&vdev->dev); in virtio_pmem_remove() local
113 nvdimm_bus_unregister(nvdimm_bus); in virtio_pmem_remove()
Dnd-core.h19 struct nvdimm_bus { struct
96 struct nvdimm_bus *walk_to_nvdimm_bus(struct device *nd_dev);
106 int nvdimm_bus_create_ndctl(struct nvdimm_bus *nvdimm_bus);
107 void nvdimm_bus_destroy_ndctl(struct nvdimm_bus *nvdimm_bus);
120 void release_free_pmem(struct nvdimm_bus *nvdimm_bus,
Dsecurity.c168 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in __nvdimm_security_unlock() local
174 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in __nvdimm_security_unlock()
245 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in security_disable() local
251 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in security_disable()
280 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in security_update() local
286 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in security_update()
329 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in security_erase() local
335 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in security_erase()
370 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in security_overwrite() local
376 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in security_overwrite()
[all …]
Ddimm_devs.c61 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(ndd->dev); in nvdimm_init_nsarea() local
73 nd_desc = nvdimm_bus->nd_desc; in nvdimm_init_nsarea()
84 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(ndd->dev); in nvdimm_get_config_data() local
85 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_get_config_data()
133 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(ndd->dev); in nvdimm_set_config_data() local
134 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_set_config_data()
529 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_firmware_visible() local
530 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_firmware_visible()
575 struct nvdimm *__nvdimm_create(struct nvdimm_bus *nvdimm_bus, in __nvdimm_create() argument
603 dev->parent = &nvdimm_bus->dev; in __nvdimm_create()
[all …]
Dbadrange.c272 struct nvdimm_bus *nvdimm_bus; in nvdimm_badblocks_populate() local
279 nvdimm_bus = walk_to_nvdimm_bus(&nd_region->dev); in nvdimm_badblocks_populate()
281 nvdimm_bus_lock(&nvdimm_bus->dev); in nvdimm_badblocks_populate()
282 badblocks_populate(&nvdimm_bus->badrange, bb, range); in nvdimm_badblocks_populate()
283 nvdimm_bus_unlock(&nvdimm_bus->dev); in nvdimm_badblocks_populate()
Dclaim.c17 struct nvdimm_bus *nvdimm_bus; in __nd_detach_ndns() local
22 nvdimm_bus = walk_to_nvdimm_bus(&ndns->dev); in __nd_detach_ndns()
23 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in __nd_detach_ndns()
47 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&attach->dev); in __nd_attach_ndns() local
51 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in __nd_attach_ndns()
Dvirtio_pmem.h39 struct nvdimm_bus *nvdimm_bus; member
Dregion_devs.c953 static struct nd_region *nd_region_create(struct nvdimm_bus *nvdimm_bus, in nd_region_create() argument
967 dev_err(&nvdimm_bus->dev, in nd_region_create()
1032 dev->parent = &nvdimm_bus->dev; in nd_region_create()
1058 struct nd_region *nvdimm_pmem_region_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_pmem_region_create() argument
1062 return nd_region_create(nvdimm_bus, ndr_desc, &nd_pmem_device_type, in nvdimm_pmem_region_create()
1067 struct nd_region *nvdimm_volatile_region_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_volatile_region_create() argument
1071 return nd_region_create(nvdimm_bus, ndr_desc, &nd_volatile_device_type, in nvdimm_volatile_region_create()
1216 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&nd_region->dev); in nd_region_conflict() local
1223 return device_for_each_child(&nvdimm_bus->dev, &ctx, region_conflict); in nd_region_conflict()
Dof_pmem.c14 struct nvdimm_bus *bus;
21 struct nvdimm_bus *bus; in of_pmem_region_probe()
Dnamespace_devs.c76 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nd_is_uuid_unique() local
78 if (!nvdimm_bus) in nd_is_uuid_unique()
80 WARN_ON_ONCE(!is_nvdimm_bus_locked(&nvdimm_bus->dev)); in nd_is_uuid_unique()
81 if (device_for_each_child(&nvdimm_bus->dev, uuid, in nd_is_uuid_unique()
641 void release_free_pmem(struct nvdimm_bus *nvdimm_bus, in release_free_pmem() argument
/linux-6.1.9/include/linux/
Dlibnvdimm.h142 struct nvdimm_bus;
235 int nvdimm_bus_add_badrange(struct nvdimm_bus *nvdimm_bus, u64 addr,
237 struct nvdimm_bus *nvdimm_bus_register(struct device *parent,
239 void nvdimm_bus_unregister(struct nvdimm_bus *nvdimm_bus);
240 struct nvdimm_bus *to_nvdimm_bus(struct device *dev);
241 struct nvdimm_bus *nvdimm_to_bus(struct nvdimm *nvdimm);
245 struct nvdimm_bus_descriptor *to_nd_desc(struct nvdimm_bus *nvdimm_bus);
246 struct device *to_nvdimm_bus_dev(struct nvdimm_bus *nvdimm_bus);
251 struct nvdimm *__nvdimm_create(struct nvdimm_bus *nvdimm_bus,
257 static inline struct nvdimm *nvdimm_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_create() argument
[all …]
/linux-6.1.9/drivers/cxl/
Dpmem.c67 if (!cxl_nvb->nvdimm_bus) { in cxl_nvdimm_probe()
81 nvdimm = nvdimm_create(cxl_nvb->nvdimm_bus, cxl_nvd, NULL, flags, in cxl_nvdimm_probe()
221 if (cxl_nvb->nvdimm_bus) in online_nvdimm_bus()
223 cxl_nvb->nvdimm_bus = in online_nvdimm_bus()
225 return cxl_nvb->nvdimm_bus != NULL; in online_nvdimm_bus()
259 struct nvdimm_bus *nvdimm_bus) in offline_nvdimm_bus() argument
261 if (!nvdimm_bus) in offline_nvdimm_bus()
273 nvdimm_bus_unregister(nvdimm_bus); in offline_nvdimm_bus()
280 struct nvdimm_bus *victim_bus = NULL; in cxl_nvb_update_state()
295 victim_bus = cxl_nvb->nvdimm_bus; in cxl_nvb_update_state()
[all …]
Dcxl.h416 struct nvdimm_bus *nvdimm_bus; member
/linux-6.1.9/drivers/acpi/nfit/
Dintel.c13 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in firmware_activate_noidle_show() local
14 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in firmware_activate_noidle_show()
23 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in firmware_activate_noidle_store() local
24 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in firmware_activate_noidle_store()
39 bool intel_fwa_supported(struct nvdimm_bus *nvdimm_bus) in intel_fwa_supported() argument
41 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in intel_fwa_supported()
Dnfit.h248 struct nvdimm_bus *nvdimm_bus; member
348 bool intel_fwa_supported(struct nvdimm_bus *nvdimm_bus);
Dcore.c1185 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in bus_dsm_mask_show() local
1186 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in bus_dsm_mask_show()
1197 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in revision_show() local
1198 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in revision_show()
1208 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in hw_error_scrub_show() local
1209 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in hw_error_scrub_show()
1321 static bool ars_supported(struct nvdimm_bus *nvdimm_bus) in ars_supported() argument
1323 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in ars_supported()
1333 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in nfit_visible() local
1336 return ars_supported(nvdimm_bus) ? a->mode : 0; in nfit_visible()
[all …]
Dmce.c66 nvdimm_bus_add_badrange(acpi_desc->nvdimm_bus, in nfit_handle_mce()
/linux-6.1.9/tools/testing/nvdimm/test/
Dndtest.h46 struct nvdimm_bus *bus;
Dnfit.c662 static int nfit_test_search_spa(struct nvdimm_bus *bus, in nfit_test_search_spa()
698 static int nfit_test_cmd_translate_spa(struct nvdimm_bus *bus, in nfit_test_cmd_translate_spa()
1530 acpi_desc->nvdimm_bus, buf, buf_len); in nfit_test_ctl()
/linux-6.1.9/Documentation/driver-api/nvdimm/
Dnvdimm.rst255 struct nvdimm_bus *nvdimm_bus_register(struct device *parent,
317 struct nvdimm *nvdimm_create(struct nvdimm_bus *nvdimm_bus, void *provider_data,
402 struct nd_region *nvdimm_pmem_region_create(struct nvdimm_bus *nvdimm_bus,
/linux-6.1.9/tools/testing/cxl/test/
Dmock.c119 struct nvdimm_bus *
/linux-6.1.9/arch/powerpc/platforms/pseries/
Dpapr_scm.c103 struct nvdimm_bus *bus;
1337 struct nvdimm_bus *bus, u64 phys_addr) in papr_scm_add_badblock()