Searched refs:nvdimm_drvdata (Results 1 – 8 of 8) sorted by relevance
/drivers/nvdimm/ |
D | nd.h | 28 struct nvdimm_drvdata { struct 38 static inline const u8 *nsl_ref_name(struct nvdimm_drvdata *ndd, in nsl_ref_name() argument 44 static inline u8 *nsl_get_name(struct nvdimm_drvdata *ndd, in nsl_get_name() 50 static inline u8 *nsl_set_name(struct nvdimm_drvdata *ndd, in nsl_set_name() 58 static inline u32 nsl_get_slot(struct nvdimm_drvdata *ndd, in nsl_get_slot() 64 static inline void nsl_set_slot(struct nvdimm_drvdata *ndd, in nsl_set_slot() 70 static inline u64 nsl_get_checksum(struct nvdimm_drvdata *ndd, in nsl_get_checksum() 76 static inline void nsl_set_checksum(struct nvdimm_drvdata *ndd, in nsl_set_checksum() 83 static inline u32 nsl_get_flags(struct nvdimm_drvdata *ndd, in nsl_get_flags() 89 static inline void nsl_set_flags(struct nvdimm_drvdata *ndd, in nsl_set_flags() [all …]
|
D | label.h | 130 struct nvdimm_drvdata; 131 int nd_label_data_init(struct nvdimm_drvdata *ndd); 132 size_t sizeof_namespace_index(struct nvdimm_drvdata *ndd); 133 int nd_label_active_count(struct nvdimm_drvdata *ndd); 134 struct nd_namespace_label *nd_label_active(struct nvdimm_drvdata *ndd, int n); 135 u32 nd_label_alloc_slot(struct nvdimm_drvdata *ndd); 136 bool nd_label_free_slot(struct nvdimm_drvdata *ndd, u32 slot); 137 u32 nd_label_nfree(struct nvdimm_drvdata *ndd);
|
D | label.c | 37 unsigned sizeof_namespace_label(struct nvdimm_drvdata *ndd) in sizeof_namespace_label() 48 static int __nvdimm_num_label_slots(struct nvdimm_drvdata *ndd, in __nvdimm_num_label_slots() 55 int nvdimm_num_label_slots(struct nvdimm_drvdata *ndd) in nvdimm_num_label_slots() 65 size_t sizeof_namespace_index(struct nvdimm_drvdata *ndd) in sizeof_namespace_index() 86 static int __nd_label_validate(struct nvdimm_drvdata *ndd) in __nd_label_validate() 232 static int nd_label_validate(struct nvdimm_drvdata *ndd) in nd_label_validate() 255 static void nd_label_copy(struct nvdimm_drvdata *ndd, in nd_label_copy() 266 static struct nd_namespace_label *nd_label_base(struct nvdimm_drvdata *ndd) in nd_label_base() 273 static int to_slot(struct nvdimm_drvdata *ndd, in to_slot() 284 static struct nd_namespace_label *to_label(struct nvdimm_drvdata *ndd, int slot) in to_label() [all …]
|
D | dimm_devs.c | 44 static int validate_dimm(struct nvdimm_drvdata *ndd) in validate_dimm() 62 int nvdimm_init_nsarea(struct nvdimm_drvdata *ndd) in nvdimm_init_nsarea() 85 int nvdimm_get_config_data(struct nvdimm_drvdata *ndd, void *buf, in nvdimm_get_config_data() 131 int nvdimm_set_config_data(struct nvdimm_drvdata *ndd, size_t offset, in nvdimm_set_config_data() 230 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd() 242 struct nvdimm_drvdata *ndd = container_of(kref, typeof(*ndd), kref); in nvdimm_drvdata_release() 257 void get_ndd(struct nvdimm_drvdata *ndd) in get_ndd() 262 void put_ndd(struct nvdimm_drvdata *ndd) in put_ndd() 338 static ssize_t __available_slots_show(struct nvdimm_drvdata *ndd, char *buf) in __available_slots_show() 735 struct nvdimm_drvdata *ndd; in alias_dpa_busy() [all …]
|
D | nd-core.h | 132 struct nvdimm_drvdata; 149 resource_size_t nvdimm_allocated_dpa(struct nvdimm_drvdata *ndd, 153 struct nvdimm_drvdata *ndd, struct nd_namespace_blk *nsblk, 155 int nvdimm_num_label_slots(struct nvdimm_drvdata *ndd); 156 void get_ndd(struct nvdimm_drvdata *ndd);
|
D | namespace_devs.c | 273 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_namespace_blk_size() 291 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __nd_namespace_blk_validate() 426 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_free() 501 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_dpa_allocation() 538 static void space_valid(struct nd_region *nd_region, struct nvdimm_drvdata *ndd, in space_valid() 600 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_allocate() 749 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in merge_dpa() 817 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in release_free_pmem() 913 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_namespace_pmem_set_resource() 956 struct nvdimm_drvdata *ndd; in __size_store() [all …]
|
D | dimm.c | 18 struct nvdimm_drvdata *ndd; in nvdimm_probe() 118 struct nvdimm_drvdata *ndd = dev_get_drvdata(dev); in nvdimm_remove()
|
D | region_devs.c | 313 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in set_cookie_show() 345 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_region_available_dpa()
|