Home
last modified time | relevance | path

Searched refs:nvdimm_drvdata (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/drivers/nvdimm/
Dnd.h28 struct nvdimm_drvdata { struct
39 static inline const u8 *nsl_ref_name(struct nvdimm_drvdata *ndd, in nsl_ref_name() argument
47 static inline u8 *nsl_get_name(struct nvdimm_drvdata *ndd, in nsl_get_name()
55 static inline u8 *nsl_set_name(struct nvdimm_drvdata *ndd, in nsl_set_name()
65 static inline u32 nsl_get_slot(struct nvdimm_drvdata *ndd, in nsl_get_slot()
73 static inline void nsl_set_slot(struct nvdimm_drvdata *ndd, in nsl_set_slot()
82 static inline u64 nsl_get_checksum(struct nvdimm_drvdata *ndd, in nsl_get_checksum()
90 static inline void nsl_set_checksum(struct nvdimm_drvdata *ndd, in nsl_set_checksum()
100 static inline u32 nsl_get_flags(struct nvdimm_drvdata *ndd, in nsl_get_flags()
108 static inline void nsl_set_flags(struct nvdimm_drvdata *ndd, in nsl_set_flags()
[all …]
Dlabel.h214 struct nvdimm_drvdata;
215 int nd_label_data_init(struct nvdimm_drvdata *ndd);
216 size_t sizeof_namespace_index(struct nvdimm_drvdata *ndd);
217 int nd_label_active_count(struct nvdimm_drvdata *ndd);
218 struct nd_namespace_label *nd_label_active(struct nvdimm_drvdata *ndd, int n);
219 u32 nd_label_alloc_slot(struct nvdimm_drvdata *ndd);
220 bool nd_label_free_slot(struct nvdimm_drvdata *ndd, u32 slot);
221 u32 nd_label_nfree(struct nvdimm_drvdata *ndd);
Dlabel.c45 unsigned sizeof_namespace_label(struct nvdimm_drvdata *ndd) in sizeof_namespace_label()
56 static int __nvdimm_num_label_slots(struct nvdimm_drvdata *ndd, in __nvdimm_num_label_slots()
63 int nvdimm_num_label_slots(struct nvdimm_drvdata *ndd) in nvdimm_num_label_slots()
73 size_t sizeof_namespace_index(struct nvdimm_drvdata *ndd) in sizeof_namespace_index()
94 static int __nd_label_validate(struct nvdimm_drvdata *ndd) in __nd_label_validate()
240 static int nd_label_validate(struct nvdimm_drvdata *ndd) in nd_label_validate()
263 static void nd_label_copy(struct nvdimm_drvdata *ndd, in nd_label_copy()
274 static struct nd_namespace_label *nd_label_base(struct nvdimm_drvdata *ndd) in nd_label_base()
281 static int to_slot(struct nvdimm_drvdata *ndd, in to_slot()
292 static struct nd_namespace_label *to_label(struct nvdimm_drvdata *ndd, int slot) in to_label()
[all …]
Ddimm_devs.c40 static int validate_dimm(struct nvdimm_drvdata *ndd) in validate_dimm()
60 int nvdimm_init_nsarea(struct nvdimm_drvdata *ndd) in nvdimm_init_nsarea()
83 int nvdimm_get_config_data(struct nvdimm_drvdata *ndd, void *buf, in nvdimm_get_config_data()
129 int nvdimm_set_config_data(struct nvdimm_drvdata *ndd, size_t offset, in nvdimm_set_config_data()
212 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd()
224 struct nvdimm_drvdata *ndd = container_of(kref, typeof(*ndd), kref); in nvdimm_drvdata_release()
239 void get_ndd(struct nvdimm_drvdata *ndd) in get_ndd()
244 void put_ndd(struct nvdimm_drvdata *ndd) in put_ndd()
319 static ssize_t __available_slots_show(struct nvdimm_drvdata *ndd, char *buf) in __available_slots_show()
734 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_max_contiguous_dpa()
[all …]
Dnd-core.h116 struct nvdimm_drvdata;
132 resource_size_t nvdimm_allocated_dpa(struct nvdimm_drvdata *ndd,
134 int nvdimm_num_label_slots(struct nvdimm_drvdata *ndd);
135 void get_ndd(struct nvdimm_drvdata *ndd);
Ddimm.c18 struct nvdimm_drvdata *ndd; in nvdimm_probe()
118 struct nvdimm_drvdata *ndd = dev_get_drvdata(dev); in nvdimm_remove()
Dnamespace_devs.c300 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_free()
366 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_dpa_allocation()
396 static void space_valid(struct nd_region *nd_region, struct nvdimm_drvdata *ndd, in space_valid()
441 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_allocate()
581 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in merge_dpa()
649 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in release_free_pmem()
711 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_namespace_pmem_set_resource()
755 struct nvdimm_drvdata *ndd; in __size_store()
1001 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in namespace_update_uuid()
1162 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in dpa_extents_show()
[all …]
Dregion_devs.c335 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in set_cookie_show()
365 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_region_available_dpa()