/linux/drivers/nvdimm/ |
A D | core.c | 25 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_bus_lock() local 35 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_bus_unlock() local 45 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in is_nvdimm_bus_locked() local 54 struct nvdimm_bus *nvdimm_bus; member 69 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in find_nvdimm_map() local 89 nvdimm_map->nvdimm_bus = nvdimm_bus; in alloc_nvdimm_map() 124 struct nvdimm_bus *nvdimm_bus; in nvdimm_map_release() local 128 nvdimm_bus = nvdimm_map->nvdimm_bus; in nvdimm_map_release() 143 struct nvdimm_bus *nvdimm_bus = nvdimm_map->nvdimm_bus; in nvdimm_map_put() local 285 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in commands_show() local [all …]
|
A D | bus.c | 58 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in to_bus_provider() local 84 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_bus_probe() local 115 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_bus_remove() local 130 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_bus_shutdown() local 294 struct nvdimm_bus *nvdimm_bus; in nvdimm_bus_release() local 326 struct nvdimm_bus *nvdimm_bus; in to_nvdimm_bus() local 343 struct nvdimm_bus *nvdimm_bus; in nvdimm_bus_register() local 346 nvdimm_bus = kzalloc(sizeof(*nvdimm_bus), GFP_KERNEL); in nvdimm_bus_register() 424 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in nd_bus_remove() local 445 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in nd_bus_probe() local [all …]
|
A 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()
|
A 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()
|
A 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 …]
|
A 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 137 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(ndd->dev); in nvdimm_set_config_data() local 550 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(dev); in nvdimm_firmware_visible() local 594 struct nvdimm *__nvdimm_create(struct nvdimm_bus *nvdimm_bus, in __nvdimm_create() argument 624 dev->parent = &nvdimm_bus->dev; in __nvdimm_create() 820 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&nd_region->dev); in nd_blk_available_dpa() local 866 struct nvdimm_bus *nvdimm_bus; in nd_pmem_max_contiguous_dpa() local 879 nvdimm_bus = walk_to_nvdimm_bus(ndd->dev); in nd_pmem_max_contiguous_dpa() [all …]
|
A 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); 138 void release_free_pmem(struct nvdimm_bus *nvdimm_bus,
|
A 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()
|
A 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() 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() 1177 struct nd_region *nvdimm_volatile_region_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_volatile_region_create() argument [all …]
|
A 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()
|
A D | virtio_pmem.h | 39 struct nvdimm_bus *nvdimm_bus; member
|
A D | of_pmem.c | 14 struct nvdimm_bus *bus; 21 struct nvdimm_bus *bus; in of_pmem_region_probe()
|
A 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() 557 struct nvdimm_bus *nvdimm_bus; in space_valid() local 565 nvdimm_bus = walk_to_nvdimm_bus(&nd_region->dev); in space_valid() 812 void release_free_pmem(struct nvdimm_bus *nvdimm_bus, in release_free_pmem() argument 823 static int reserve_free_pmem(struct nvdimm_bus *nvdimm_bus, in reserve_free_pmem() argument 832 release_free_pmem(nvdimm_bus, nd_mapping); in reserve_free_pmem() 852 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&nd_region->dev); in grow_dpa_allocation() local [all …]
|
A D | nd.h | 441 int (*enable)(struct nvdimm_bus *nvdimm_bus, struct device *dev);
|
/linux/include/linux/ |
A 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, 254 void nvdimm_bus_unregister(struct nvdimm_bus *nvdimm_bus); 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, 273 static inline struct nvdimm *nvdimm_create(struct nvdimm_bus *nvdimm_bus, in nvdimm_create() argument 291 struct nd_region *nvdimm_pmem_region_create(struct nvdimm_bus *nvdimm_bus, 293 struct nd_region *nvdimm_blk_region_create(struct nvdimm_bus *nvdimm_bus, [all …]
|
/linux/drivers/cxl/ |
A D | pmem.c | 47 if (!cxl_nvb->nvdimm_bus) { in cxl_nvdimm_probe() 61 nvdimm = nvdimm_create(cxl_nvb->nvdimm_bus, cxl_nvd, NULL, flags, in cxl_nvdimm_probe() 201 if (cxl_nvb->nvdimm_bus) in online_nvdimm_bus() 203 cxl_nvb->nvdimm_bus = in online_nvdimm_bus() 205 return cxl_nvb->nvdimm_bus != NULL; in online_nvdimm_bus() 216 static void offline_nvdimm_bus(struct nvdimm_bus *nvdimm_bus) in offline_nvdimm_bus() argument 218 if (!nvdimm_bus) in offline_nvdimm_bus() 227 nvdimm_bus_unregister(nvdimm_bus); in offline_nvdimm_bus() 234 struct nvdimm_bus *victim_bus = NULL; in cxl_nvb_update_state() 249 victim_bus = cxl_nvb->nvdimm_bus; in cxl_nvb_update_state() [all …]
|
A D | cxl.h | 210 struct nvdimm_bus *nvdimm_bus; member
|
/linux/drivers/acpi/nfit/ |
A 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()
|
A D | core.c | 1258 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in bus_dsm_mask_show() local 1270 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in revision_show() local 1281 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in hw_error_scrub_show() local 1394 static bool ars_supported(struct nvdimm_bus *nvdimm_bus) in ars_supported() argument 1406 struct nvdimm_bus *nvdimm_bus = to_nvdimm_bus(dev); in nfit_visible() local 2598 static int acpi_nfit_blk_region_enable(struct nvdimm_bus *nvdimm_bus, in acpi_nfit_blk_region_enable() argument 2823 struct nvdimm_bus *nvdimm_bus = acpi_desc->nvdimm_bus; in ars_status_process_records() local 2981 struct nvdimm_bus *nvdimm_bus; in acpi_nfit_register_region() local 3059 nvdimm_bus = acpi_desc->nvdimm_bus; in acpi_nfit_register_region() 3452 if (!acpi_desc->nvdimm_bus) { in acpi_nfit_init() [all …]
|
A D | nfit.h | 252 struct nvdimm_bus *nvdimm_bus; member 378 bool intel_fwa_supported(struct nvdimm_bus *nvdimm_bus);
|
A D | mce.c | 65 nvdimm_bus_add_badrange(acpi_desc->nvdimm_bus, in nfit_handle_mce()
|
/linux/tools/testing/nvdimm/test/ |
A D | ndtest.h | 46 struct nvdimm_bus *bus;
|
A D | ndtest.c | 365 static int ndtest_blk_region_enable(struct nvdimm_bus *nvdimm_bus, in ndtest_blk_region_enable() argument
|
/linux/tools/testing/cxl/test/ |
A D | mock.c | 156 struct nvdimm_bus *
|
/linux/Documentation/driver-api/nvdimm/ |
A 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,
|