Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/nvdimm/
Dcore.c24 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_bus_lock() local
26 if (!nvdimm_bus) in nvdimm_bus_lock()
28 mutex_lock(&nvdimm_bus->reconfig_mutex); in nvdimm_bus_lock()
34 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_bus_unlock() local
36 if (!nvdimm_bus) in nvdimm_bus_unlock()
38 mutex_unlock(&nvdimm_bus->reconfig_mutex); in nvdimm_bus_unlock()
44 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in is_nvdimm_bus_locked() local
46 if (!nvdimm_bus) in is_nvdimm_bus_locked()
48 return mutex_is_locked(&nvdimm_bus->reconfig_mutex); in is_nvdimm_bus_locked()
53 struct nvdimm_bus *nvdimm_bus; member
[all …]
Dbus.c58 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in to_bus_provider() local
60 return nvdimm_bus->nd_desc->module; in to_bus_provider()
65 static void nvdimm_bus_probe_start(struct nvdimm_bus *nvdimm_bus) in nvdimm_bus_probe_start() argument
67 nvdimm_bus_lock(&nvdimm_bus->dev); in nvdimm_bus_probe_start()
68 nvdimm_bus->probe_active++; in nvdimm_bus_probe_start()
69 nvdimm_bus_unlock(&nvdimm_bus->dev); in nvdimm_bus_probe_start()
72 static void nvdimm_bus_probe_end(struct nvdimm_bus *nvdimm_bus) in nvdimm_bus_probe_end() argument
74 nvdimm_bus_lock(&nvdimm_bus->dev); in nvdimm_bus_probe_end()
75 if (--nvdimm_bus->probe_active == 0) in nvdimm_bus_probe_end()
76 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()
22 struct nvdimm_bus *nvdimm_bus = data; in e820_register_one() local
30 if (!nvdimm_pmem_region_create(nvdimm_bus, &ndr_desc)) in e820_register_one()
39 struct nvdimm_bus *nvdimm_bus; in e820_pmem_probe() local
44 nvdimm_bus = nvdimm_bus_register(dev, &nd_desc); in e820_pmem_probe()
45 if (!nvdimm_bus) in e820_pmem_probe()
47 platform_set_drvdata(pdev, nvdimm_bus); in e820_pmem_probe()
50 IORESOURCE_MEM, 0, -1, nvdimm_bus, e820_register_one); in e820_pmem_probe()
55 nvdimm_bus_unregister(nvdimm_bus); in e820_pmem_probe()
Dvirtio_pmem.c91 vpmem->nvdimm_bus = nvdimm_bus_register(&vdev->dev, in virtio_pmem_probe()
93 if (!vpmem->nvdimm_bus) { in virtio_pmem_probe()
99 dev_set_drvdata(&vdev->dev, vpmem->nvdimm_bus); in virtio_pmem_probe()
121 nd_region = nvdimm_pmem_region_create(vpmem->nvdimm_bus, &ndr_desc); in virtio_pmem_probe()
130 nvdimm_bus_unregister(vpmem->nvdimm_bus); in virtio_pmem_probe()
139 struct nvdimm_bus *nvdimm_bus = dev_get_drvdata(&vdev->dev); in virtio_pmem_remove() local
141 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);
121 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()
252 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in security_disable() local
258 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in security_disable()
301 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in security_update() local
307 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in security_update()
350 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in security_erase() local
356 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in security_erase()
393 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in security_overwrite() local
399 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in security_overwrite()
[all …]
Ddimm_devs.c63 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(ndd->dev); in nvdimm_init_nsarea() local
75 nd_desc = nvdimm_bus->nd_desc; in nvdimm_init_nsarea()
86 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(ndd->dev); in nvdimm_get_config_data() local
87 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_get_config_data()
135 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(ndd->dev); in nvdimm_set_config_data() local
136 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_set_config_data()
538 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_firmware_visible() local
539 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_firmware_visible()
584 struct nvdimm *__nvdimm_create(struct nvdimm_bus *nvdimm_bus, in __nvdimm_create() argument
612 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.c1000 static struct nd_region *nd_region_create(struct nvdimm_bus *nvdimm_bus, in nd_region_create() argument
1014 dev_err(&nvdimm_bus->dev, in nd_region_create()
1079 dev->parent = &nvdimm_bus->dev; in nd_region_create()
1105 struct nd_region *nvdimm_pmem_region_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_pmem_region_create() argument
1109 return nd_region_create(nvdimm_bus, ndr_desc, &nd_pmem_device_type, in nvdimm_pmem_region_create()
1114 struct nd_region *nvdimm_volatile_region_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_volatile_region_create() argument
1118 return nd_region_create(nvdimm_bus, ndr_desc, &nd_volatile_device_type, in nvdimm_volatile_region_create()
1263 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&nd_region->dev); in nd_region_conflict() local
1270 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.c79 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nd_is_uuid_unique() local
81 if (!nvdimm_bus) in nd_is_uuid_unique()
83 WARN_ON_ONCE(!is_nvdimm_bus_locked(&nvdimm_bus->dev)); in nd_is_uuid_unique()
84 if (device_for_each_child(&nvdimm_bus->dev, uuid, in nd_is_uuid_unique()
646 void release_free_pmem(struct nvdimm_bus *nvdimm_bus, in release_free_pmem() argument
/linux-6.12.1/include/linux/
Dlibnvdimm.h150 struct nvdimm_bus;
245 int nvdimm_bus_add_badrange(struct nvdimm_bus *nvdimm_bus, u64 addr,
247 struct nvdimm_bus *nvdimm_bus_register(struct device *parent,
249 void nvdimm_bus_unregister(struct nvdimm_bus *nvdimm_bus);
250 struct nvdimm_bus *to_nvdimm_bus(struct device *dev);
251 struct nvdimm_bus *nvdimm_to_bus(struct nvdimm *nvdimm);
255 struct nvdimm_bus_descriptor *to_nd_desc(struct nvdimm_bus *nvdimm_bus);
256 struct device *to_nvdimm_bus_dev(struct nvdimm_bus *nvdimm_bus);
261 struct nvdimm *__nvdimm_create(struct nvdimm_bus *nvdimm_bus,
267 static inline struct nvdimm *nvdimm_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_create() argument
[all …]
/linux-6.12.1/drivers/cxl/
Dpmem.c81 nvdimm = __nvdimm_create(cxl_nvb->nvdimm_bus, cxl_nvd, in cxl_nvdimm_probe()
255 struct nvdimm_bus *nvdimm_bus = cxl_nvb->nvdimm_bus; in unregister_nvdimm_bus() local
259 cxl_nvb->nvdimm_bus = NULL; in unregister_nvdimm_bus()
260 nvdimm_bus_unregister(nvdimm_bus); in unregister_nvdimm_bus()
273 cxl_nvb->nvdimm_bus = in cxl_nvdimm_bridge_probe()
276 if (!cxl_nvb->nvdimm_bus) in cxl_nvdimm_bridge_probe()
400 nvdimm_pmem_region_create(cxl_nvb->nvdimm_bus, &ndr_desc); in cxl_pmem_region_probe()
Dcxl.h546 struct nvdimm_bus *nvdimm_bus; member
/linux-6.12.1/drivers/acpi/nfit/
Dintel.c14 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in firmware_activate_noidle_show() local
15 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in firmware_activate_noidle_show()
24 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in firmware_activate_noidle_store() local
25 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in firmware_activate_noidle_store()
40 bool intel_fwa_supported(struct nvdimm_bus *nvdimm_bus) in intel_fwa_supported() argument
42 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.12.1/tools/testing/nvdimm/test/
Dndtest.h15 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.12.1/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.12.1/tools/testing/cxl/test/
Dmock.c119 struct nvdimm_bus *
/linux-6.12.1/arch/powerpc/platforms/pseries/
Dpapr_scm.c64 struct nvdimm_bus *bus;
1298 struct nvdimm_bus *bus, u64 phys_addr) in papr_scm_add_badblock()