| /Linux-v5.15/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 | 14 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()
|
| 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() 550 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_firmware_visible() local 551 struct nvdimm_bus_descriptor *nd_desc = nvdimm_bus->nd_desc; in nvdimm_firmware_visible() 594 struct nvdimm *__nvdimm_create(struct nvdimm_bus *nvdimm_bus, in __nvdimm_create() argument 624 dev->parent = &nvdimm_bus->dev; in __nvdimm_create() [all …]
|
| D | nd-core.h | 19 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,
|
| 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, range); in nvdimm_badblocks_populate() 283 nvdimm_bus_unlock(&nvdimm_bus->dev); in nvdimm_badblocks_populate()
|
| D | claim.c | 17 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()
|
| D | region_devs.c | 935 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nd_blk_region_init() local 945 return to_nd_blk_region(dev)->enable(nvdimm_bus, dev); in nd_blk_region_init() 1036 static struct nd_region *nd_region_create(struct nvdimm_bus *nvdimm_bus, in nd_region_create() argument 1051 dev_err(&nvdimm_bus->dev, in nd_region_create() 1062 dev_err(&nvdimm_bus->dev, "%s: %s mapping%d is not BLK capable\n", in nd_region_create() 1134 dev->parent = &nvdimm_bus->dev; in nd_region_create() 1157 struct nd_region *nvdimm_pmem_region_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_pmem_region_create() argument 1161 return nd_region_create(nvdimm_bus, ndr_desc, &nd_pmem_device_type, in nvdimm_pmem_region_create() 1166 struct nd_region *nvdimm_blk_region_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_blk_region_create() argument 1172 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 | 14 struct nvdimm_bus *bus; 21 struct nvdimm_bus *bus; in of_pmem_region_probe()
|
| D | namespace_devs.c | 94 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 …]
|
| D | nd.h | 314 int (*enable)(struct nvdimm_bus *nvdimm_bus, struct device *dev);
|
| /Linux-v5.15/include/linux/ |
| D | libnvdimm.h | 142 struct nvdimm_bus; 146 int (*enable)(struct nvdimm_bus *nvdimm_bus, struct device *dev); 250 int nvdimm_bus_add_badrange(struct nvdimm_bus *nvdimm_bus, u64 addr, 252 struct nvdimm_bus *nvdimm_bus_register(struct device *parent, 254 void nvdimm_bus_unregister(struct nvdimm_bus *nvdimm_bus); 255 struct nvdimm_bus *to_nvdimm_bus(struct device *dev); 256 struct nvdimm_bus *nvdimm_to_bus(struct nvdimm *nvdimm); 261 struct nvdimm_bus_descriptor *to_nd_desc(struct nvdimm_bus *nvdimm_bus); 262 struct device *to_nvdimm_bus_dev(struct nvdimm_bus *nvdimm_bus); 267 struct nvdimm *__nvdimm_create(struct nvdimm_bus *nvdimm_bus, [all …]
|
| /Linux-v5.15/drivers/cxl/ |
| D | pmem.c | 52 if (!cxl_nvb->nvdimm_bus) in cxl_nvdimm_probe() 56 nvdimm = nvdimm_create(cxl_nvb->nvdimm_bus, cxl_nvd, NULL, flags, 0, 0, in cxl_nvdimm_probe() 84 if (cxl_nvb->nvdimm_bus) in online_nvdimm_bus() 86 cxl_nvb->nvdimm_bus = in online_nvdimm_bus() 88 return cxl_nvb->nvdimm_bus != NULL; in online_nvdimm_bus() 99 static void offline_nvdimm_bus(struct nvdimm_bus *nvdimm_bus) in offline_nvdimm_bus() argument 101 if (!nvdimm_bus) in offline_nvdimm_bus() 110 nvdimm_bus_unregister(nvdimm_bus); in offline_nvdimm_bus() 117 struct nvdimm_bus *victim_bus = NULL; in cxl_nvb_update_state() 132 victim_bus = cxl_nvb->nvdimm_bus; in cxl_nvb_update_state() [all …]
|
| D | cxl.h | 216 struct nvdimm_bus *nvdimm_bus; member
|
| /Linux-v5.15/drivers/acpi/nfit/ |
| D | intel.c | 13 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()
|
| D | nfit.h | 252 struct nvdimm_bus *nvdimm_bus; member 378 bool intel_fwa_supported(struct nvdimm_bus *nvdimm_bus);
|
| D | core.c | 1258 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in bus_dsm_mask_show() local 1259 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in bus_dsm_mask_show() 1270 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in revision_show() local 1271 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in revision_show() 1281 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in hw_error_scrub_show() local 1282 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in hw_error_scrub_show() 1394 static bool ars_supported(struct nvdimm_bus *nvdimm_bus) in ars_supported() argument 1396 struct nvdimm_bus_descriptor *nd_desc = to_nd_desc(nvdimm_bus); in ars_supported() 1406 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in nfit_visible() local 1409 return ars_supported(nvdimm_bus) ? a->mode : 0; in nfit_visible() [all …]
|
| D | mce.c | 65 nvdimm_bus_add_badrange(acpi_desc->nvdimm_bus, in nfit_handle_mce()
|
| /Linux-v5.15/tools/testing/nvdimm/test/ |
| D | ndtest.h | 46 struct nvdimm_bus *bus;
|
| D | ndtest.c | 365 static int ndtest_blk_region_enable(struct nvdimm_bus *nvdimm_bus, in ndtest_blk_region_enable() argument
|
| /Linux-v5.15/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.15/arch/powerpc/platforms/pseries/ |
| D | papr_scm.c | 102 struct nvdimm_bus *bus; 1068 struct nvdimm_bus *bus, u64 phys_addr) in papr_scm_add_badblock()
|