Home
last modified time | relevance | path

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

/drivers/nvdimm/
Dlabel.h124 struct nvdimm_drvdata;
125 int nd_label_validate(struct nvdimm_drvdata *ndd);
126 void nd_label_copy(struct nvdimm_drvdata *ndd, struct nd_namespace_index *dst,
128 size_t sizeof_namespace_index(struct nvdimm_drvdata *ndd);
129 int nd_label_active_count(struct nvdimm_drvdata *ndd);
130 struct nd_namespace_label *nd_label_active(struct nvdimm_drvdata *ndd, int n);
131 u32 nd_label_alloc_slot(struct nvdimm_drvdata *ndd);
132 bool nd_label_free_slot(struct nvdimm_drvdata *ndd, u32 slot);
133 u32 nd_label_nfree(struct nvdimm_drvdata *ndd);
Dnd.h42 struct nvdimm_drvdata { struct
78 struct nvdimm_drvdata *ndd, int i) in to_namespace_index()
87 struct nvdimm_drvdata *ndd) in to_current_namespace_index()
93 struct nvdimm_drvdata *ndd) in to_next_namespace_index()
138 struct nvdimm_drvdata *ndd;
233 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping);
235 int nvdimm_init_nsarea(struct nvdimm_drvdata *ndd);
236 int nvdimm_init_config_data(struct nvdimm_drvdata *ndd);
237 int nvdimm_set_config_data(struct nvdimm_drvdata *ndd, size_t offset,
336 void put_ndd(struct nvdimm_drvdata *ndd);
[all …]
Dlabel.c37 size_t sizeof_namespace_index(struct nvdimm_drvdata *ndd) in sizeof_namespace_index()
59 int nvdimm_num_label_slots(struct nvdimm_drvdata *ndd) in nvdimm_num_label_slots()
64 int nd_label_validate(struct nvdimm_drvdata *ndd) in nd_label_validate()
192 void nd_label_copy(struct nvdimm_drvdata *ndd, struct nd_namespace_index *dst, in nd_label_copy()
203 static struct nd_namespace_label *nd_label_base(struct nvdimm_drvdata *ndd) in nd_label_base()
210 static int to_slot(struct nvdimm_drvdata *ndd, in to_slot()
229 static bool preamble_index(struct nvdimm_drvdata *ndd, int idx, in preamble_index()
255 static bool preamble_current(struct nvdimm_drvdata *ndd, in preamble_current()
263 static bool preamble_next(struct nvdimm_drvdata *ndd, in preamble_next()
285 int nd_label_reserve_dpa(struct nvdimm_drvdata *ndd) in nd_label_reserve_dpa()
[all …]
Ddimm_devs.c46 static int validate_dimm(struct nvdimm_drvdata *ndd) in validate_dimm()
64 int nvdimm_init_nsarea(struct nvdimm_drvdata *ndd) in nvdimm_init_nsarea()
83 int nvdimm_init_config_data(struct nvdimm_drvdata *ndd) in nvdimm_init_config_data()
138 int nvdimm_set_config_data(struct nvdimm_drvdata *ndd, size_t offset, in nvdimm_set_config_data()
223 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd()
235 struct nvdimm_drvdata *ndd = container_of(kref, typeof(*ndd), kref); in nvdimm_drvdata_release()
251 void get_ndd(struct nvdimm_drvdata *ndd) in get_ndd()
256 void put_ndd(struct nvdimm_drvdata *ndd) in put_ndd()
323 struct nvdimm_drvdata *ndd = dev_get_drvdata(dev); in available_slots_show()
395 struct nvdimm_drvdata *ndd; in alias_dpa_busy()
[all …]
Dnd-core.h91 struct nvdimm_drvdata;
98 resource_size_t nvdimm_allocated_dpa(struct nvdimm_drvdata *ndd,
102 struct nvdimm_drvdata *ndd, struct nd_namespace_blk *nsblk,
104 int nvdimm_num_label_slots(struct nvdimm_drvdata *ndd);
105 void get_ndd(struct nvdimm_drvdata *ndd);
Ddimm.c26 struct nvdimm_drvdata *ndd; in nvdimm_probe()
81 struct nvdimm_drvdata *ndd = dev_get_drvdata(dev); in nvdimm_remove()
Dnamespace_devs.c284 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_namespace_blk_size()
302 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __nd_namespace_blk_validate()
437 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_free()
512 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_dpa_allocation()
549 static void space_valid(struct nd_region *nd_region, struct nvdimm_drvdata *ndd, in space_valid()
606 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_allocate()
755 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in merge_dpa()
823 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in release_free_pmem()
919 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_namespace_pmem_set_resource()
962 struct nvdimm_drvdata *ndd; in __size_store()
[all …]
Dregion_devs.c303 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_region_available_dpa()
545 struct nvdimm_drvdata *ndd = nd_mapping->ndd; in nd_region_notify_driver_action()