| /Linux-v5.4/drivers/nvdimm/ |
| D | bus.c | 58 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 …]
|
| D | core.c | 24 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 …]
|
| D | e820.c | 24 struct nvdimm_bus *nvdimm_bus = platform_get_drvdata(pdev); in e820_pmem_remove() local 26 nvdimm_bus_unregister(nvdimm_bus); in e820_pmem_remove() 45 struct nvdimm_bus *nvdimm_bus = data; in e820_register_one() local 53 if (!nvdimm_pmem_region_create(nvdimm_bus, &ndr_desc)) in e820_register_one() 62 struct nvdimm_bus *nvdimm_bus; in e820_pmem_probe() local 68 nvdimm_bus = nvdimm_bus_register(dev, &nd_desc); in e820_pmem_probe() 69 if (!nvdimm_bus) in e820_pmem_probe() 71 platform_set_drvdata(pdev, nvdimm_bus); in e820_pmem_probe() 74 IORESOURCE_MEM, 0, -1, nvdimm_bus, e820_register_one); in e820_pmem_probe() 79 nvdimm_bus_unregister(nvdimm_bus); in e820_pmem_probe()
|
| D | nd-core.h | 19 struct nvdimm_bus { struct 113 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); 127 int nvdimm_bus_register_dimms(struct nvdimm_bus *nvdimm_bus); 128 int nvdimm_bus_register_regions(struct nvdimm_bus *nvdimm_bus); 129 int nvdimm_bus_init_interleave_sets(struct nvdimm_bus *nvdimm_bus); 141 void release_free_pmem(struct nvdimm_bus *nvdimm_bus,
|
| D | virtio_pmem.c | 71 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()
|
| D | security.c | 168 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 …]
|
| D | dimm_devs.c | 65 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() 459 struct nvdimm *__nvdimm_create(struct nvdimm_bus *nvdimm_bus, in __nvdimm_create() argument 488 dev->parent = &nvdimm_bus->dev; in __nvdimm_create() 641 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&nd_region->dev); in nd_blk_available_dpa() local 654 device_for_each_child(&nvdimm_bus->dev, &info, alias_dpa_busy); in nd_blk_available_dpa() [all …]
|
| D | badrange.c | 272 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, res); in nvdimm_badblocks_populate() 283 nvdimm_bus_unlock(&nvdimm_bus->dev); in nvdimm_badblocks_populate()
|
| D | claim.c | 16 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()
|
| D | region_devs.c | 867 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nd_blk_region_init() local 877 return to_nd_blk_region(dev)->enable(nvdimm_bus, dev); in nd_blk_region_init() 933 static struct nd_region *nd_region_create(struct nvdimm_bus *nvdimm_bus, in nd_region_create() argument 948 dev_err(&nvdimm_bus->dev, in nd_region_create() 959 dev_err(&nvdimm_bus->dev, "%s: %s mapping%d is not BLK capable\n", in nd_region_create() 1031 dev->parent = &nvdimm_bus->dev; in nd_region_create() 1053 struct nd_region *nvdimm_pmem_region_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_pmem_region_create() argument 1057 return nd_region_create(nvdimm_bus, ndr_desc, &nd_pmem_device_type, in nvdimm_pmem_region_create() 1062 struct nd_region *nvdimm_blk_region_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_blk_region_create() argument 1068 return nd_region_create(nvdimm_bus, ndr_desc, &nd_blk_device_type, in nvdimm_blk_region_create() [all …]
|
| D | virtio_pmem.h | 39 struct nvdimm_bus *nvdimm_bus; member
|
| D | of_pmem.c | 25 struct nvdimm_bus *bus; 32 struct nvdimm_bus *bus; in of_pmem_region_probe()
|
| D | namespace_devs.c | 119 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nd_is_uuid_unique() local 121 if (!nvdimm_bus) in nd_is_uuid_unique() 123 WARN_ON_ONCE(!is_nvdimm_bus_locked(&nvdimm_bus->dev)); in nd_is_uuid_unique() 124 if (device_for_each_child(&nvdimm_bus->dev, uuid, in nd_is_uuid_unique() 579 struct nvdimm_bus *nvdimm_bus; in space_valid() local 587 nvdimm_bus = walk_to_nvdimm_bus(&nd_region->dev); in space_valid() 588 device_for_each_child(&nvdimm_bus->dev, &info, alias_dpa_busy); in space_valid() 834 void release_free_pmem(struct nvdimm_bus *nvdimm_bus, in release_free_pmem() argument 845 static int reserve_free_pmem(struct nvdimm_bus *nvdimm_bus, in reserve_free_pmem() argument 851 rc = device_for_each_child(&nvdimm_bus->dev, nvdimm, in reserve_free_pmem() [all …]
|
| D | nd.h | 163 int (*enable)(struct nvdimm_bus *nvdimm_bus, struct device *dev);
|
| /Linux-v5.4/include/linux/ |
| D | libnvdimm.h | 145 struct nvdimm_bus; 150 int (*enable)(struct nvdimm_bus *nvdimm_bus, struct device *dev); 211 int nvdimm_bus_add_badrange(struct nvdimm_bus *nvdimm_bus, u64 addr, 213 struct nvdimm_bus *nvdimm_bus_register(struct device *parent, 215 void nvdimm_bus_unregister(struct nvdimm_bus *nvdimm_bus); 216 struct nvdimm_bus *to_nvdimm_bus(struct device *dev); 217 struct nvdimm_bus *nvdimm_to_bus(struct nvdimm *nvdimm); 222 struct nvdimm_bus_descriptor *to_nd_desc(struct nvdimm_bus *nvdimm_bus); 223 struct device *to_nvdimm_bus_dev(struct nvdimm_bus *nvdimm_bus); 228 struct nvdimm *__nvdimm_create(struct nvdimm_bus *nvdimm_bus, [all …]
|
| /Linux-v5.4/drivers/acpi/nfit/ |
| D | core.c | 1238 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in bus_dsm_mask_show() local 1239 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in bus_dsm_mask_show() 1249 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in revision_show() local 1250 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in revision_show() 1260 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in hw_error_scrub_show() local 1261 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in hw_error_scrub_show() 1373 static bool ars_supported(struct nvdimm_bus *nvdimm_bus) in ars_supported() argument 1375 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in ars_supported() 1385 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in nfit_visible() local 1387 if (a == &dev_attr_scrub.attr && !ars_supported(nvdimm_bus)) in nfit_visible() [all …]
|
| D | nfit.h | 227 struct nvdimm_bus *nvdimm_bus; member
|
| D | mce.c | 65 nvdimm_bus_add_badrange(acpi_desc->nvdimm_bus, in nfit_handle_mce()
|
| /Linux-v5.4/Documentation/driver-api/nvdimm/ |
| D | nvdimm.rst | 344 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.4/arch/powerpc/platforms/pseries/ |
| D | papr_scm.c | 37 struct nvdimm_bus *bus;
|
| /Linux-v5.4/tools/testing/nvdimm/test/ |
| D | nfit.c | 660 static int nfit_test_search_spa(struct nvdimm_bus *bus, in nfit_test_search_spa() 696 static int nfit_test_cmd_translate_spa(struct nvdimm_bus *bus, in nfit_test_cmd_translate_spa() 1365 acpi_desc->nvdimm_bus, buf, buf_len); in nfit_test_ctl()
|