Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/nvdimm/
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 …]
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 …]
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()
86 nd_region = nvdimm_pmem_region_create(vpmem->nvdimm_bus, &ndr_desc); in virtio_pmem_probe()
95 nvdimm_bus_unregister(vpmem->nvdimm_bus); in virtio_pmem_probe()
104 struct nvdimm_bus *nvdimm_bus = dev_get_drvdata(&vdev->dev); in virtio_pmem_remove() local
106 nvdimm_bus_unregister(nvdimm_bus); in virtio_pmem_remove()
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.c65 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(ndd->dev); in nvdimm_init_nsarea() local
77 nd_desc = nvdimm_bus->nd_desc; in nvdimm_init_nsarea()
88 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(ndd->dev); in nvdimm_get_config_data() local
89 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_get_config_data()
137 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(ndd->dev); in nvdimm_set_config_data() local
138 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()
582 struct nvdimm *__nvdimm_create(struct nvdimm_bus *nvdimm_bus, in __nvdimm_create() argument
612 dev->parent = &nvdimm_bus->dev; in __nvdimm_create()
[all …]
Dnd-core.h19 struct nvdimm_bus { struct
114 struct nvdimm_bus *walk_to_nvdimm_bus(struct device *nd_dev);
124 int nvdimm_bus_create_ndctl(struct nvdimm_bus *nvdimm_bus);
125 void nvdimm_bus_destroy_ndctl(struct nvdimm_bus *nvdimm_bus);
137 void release_free_pmem(struct nvdimm_bus *nvdimm_bus,
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.c16 struct nvdimm_bus *nvdimm_bus; in __nd_detach_ndns() local
21 nvdimm_bus = walk_to_nvdimm_bus(&ndns->dev); in __nd_detach_ndns()
22 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in __nd_detach_ndns()
46 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&attach->dev); in __nd_attach_ndns() local
50 lockdep_assert_held(&nvdimm_bus->reconfig_mutex); in __nd_attach_ndns()
Dregion_devs.c928 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nd_blk_region_init() local
938 return to_nd_blk_region(dev)->enable(nvdimm_bus, dev); in nd_blk_region_init()
1029 static struct nd_region *nd_region_create(struct nvdimm_bus *nvdimm_bus, in nd_region_create() argument
1044 dev_err(&nvdimm_bus->dev, in nd_region_create()
1055 dev_err(&nvdimm_bus->dev, "%s: %s mapping%d is not BLK capable\n", in nd_region_create()
1127 dev->parent = &nvdimm_bus->dev; in nd_region_create()
1150 struct nd_region *nvdimm_pmem_region_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_pmem_region_create() argument
1154 return nd_region_create(nvdimm_bus, ndr_desc, &nd_pmem_device_type, in nvdimm_pmem_region_create()
1159 struct nd_region *nvdimm_blk_region_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_blk_region_create() argument
1165 return nd_region_create(nvdimm_bus, ndr_desc, &nd_blk_device_type, in nvdimm_blk_region_create()
[all …]
Dvirtio_pmem.h39 struct nvdimm_bus *nvdimm_bus; member
Dof_pmem.c14 struct nvdimm_bus *bus;
21 struct nvdimm_bus *bus; in of_pmem_region_probe()
Dnamespace_devs.c94 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nd_is_uuid_unique() local
96 if (!nvdimm_bus) in nd_is_uuid_unique()
98 WARN_ON_ONCE(!is_nvdimm_bus_locked(&nvdimm_bus->dev)); in nd_is_uuid_unique()
99 if (device_for_each_child(&nvdimm_bus->dev, uuid, in nd_is_uuid_unique()
559 struct nvdimm_bus *nvdimm_bus; in space_valid() local
567 nvdimm_bus = walk_to_nvdimm_bus(&nd_region->dev); in space_valid()
568 device_for_each_child(&nvdimm_bus->dev, &info, alias_dpa_busy); in space_valid()
814 void release_free_pmem(struct nvdimm_bus *nvdimm_bus, in release_free_pmem() argument
825 static int reserve_free_pmem(struct nvdimm_bus *nvdimm_bus, in reserve_free_pmem() argument
831 rc = device_for_each_child(&nvdimm_bus->dev, nvdimm, in reserve_free_pmem()
[all …]
Dnd.h164 int (*enable)(struct nvdimm_bus *nvdimm_bus, struct device *dev);
/Linux-v5.10/include/linux/
Dlibnvdimm.h142 struct nvdimm_bus;
147 int (*enable)(struct nvdimm_bus *nvdimm_bus, struct device *dev);
251 int nvdimm_bus_add_badrange(struct nvdimm_bus *nvdimm_bus, u64 addr,
253 struct nvdimm_bus *nvdimm_bus_register(struct device *parent,
255 void nvdimm_bus_unregister(struct nvdimm_bus *nvdimm_bus);
256 struct nvdimm_bus *to_nvdimm_bus(struct device *dev);
257 struct nvdimm_bus *nvdimm_to_bus(struct nvdimm *nvdimm);
262 struct nvdimm_bus_descriptor *to_nd_desc(struct nvdimm_bus *nvdimm_bus);
263 struct device *to_nvdimm_bus_dev(struct nvdimm_bus *nvdimm_bus);
268 struct nvdimm *__nvdimm_create(struct nvdimm_bus *nvdimm_bus,
[all …]
/Linux-v5.10/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.h252 struct nvdimm_bus *nvdimm_bus; member
378 bool intel_fwa_supported(struct nvdimm_bus *nvdimm_bus);
Dcore.c1245 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in bus_dsm_mask_show() local
1246 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in bus_dsm_mask_show()
1257 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in revision_show() local
1258 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in revision_show()
1268 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in hw_error_scrub_show() local
1269 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in hw_error_scrub_show()
1381 static bool ars_supported(struct nvdimm_bus *nvdimm_bus) in ars_supported() argument
1383 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in ars_supported()
1393 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in nfit_visible() local
1396 return ars_supported(nvdimm_bus) ? a->mode : 0; in nfit_visible()
[all …]
Dmce.c65 nvdimm_bus_add_badrange(acpi_desc->nvdimm_bus, in nfit_handle_mce()
/Linux-v5.10/Documentation/driver-api/nvdimm/
Dnvdimm.rst344 struct nvdimm_bus *nvdimm_bus_register(struct device *parent,
406 struct nvdimm *nvdimm_create(struct nvdimm_bus *nvdimm_bus, void *provider_data,
494 struct nd_region *nvdimm_pmem_region_create(struct nvdimm_bus *nvdimm_bus,
496 struct nd_region *nvdimm_blk_region_create(struct nvdimm_bus *nvdimm_bus,
/Linux-v5.10/arch/powerpc/platforms/pseries/
Dpapr_scm.c100 struct nvdimm_bus *bus;
983 struct nvdimm_bus *bus, u64 phys_addr) in papr_scm_add_badblock()
/Linux-v5.10/tools/testing/nvdimm/test/
Dnfit.c665 static int nfit_test_search_spa(struct nvdimm_bus *bus, in nfit_test_search_spa()
701 static int nfit_test_cmd_translate_spa(struct nvdimm_bus *bus, in nfit_test_cmd_translate_spa()
1533 acpi_desc->nvdimm_bus, buf, buf_len); in nfit_test_ctl()