Lines Matching defs:ndd
37 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()
321 int nd_label_active_count(struct nvdimm_drvdata *ndd) in nd_label_active_count()
351 struct nd_namespace_label *nd_label_active(struct nvdimm_drvdata *ndd, int n) in nd_label_active()
374 u32 nd_label_alloc_slot(struct nvdimm_drvdata *ndd) in nd_label_alloc_slot()
394 bool nd_label_free_slot(struct nvdimm_drvdata *ndd, u32 slot) in nd_label_free_slot()
410 u32 nd_label_nfree(struct nvdimm_drvdata *ndd) in nd_label_nfree()
424 static int nd_label_write_index(struct nvdimm_drvdata *ndd, int index, u32 seq, in nd_label_write_index()
486 static unsigned long nd_label_offset(struct nvdimm_drvdata *ndd, in nd_label_offset()
498 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __pmem_label_update() local
601 static struct resource *to_resource(struct nvdimm_drvdata *ndd, in to_resource()
627 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __blk_label_update() local
836 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_labels() local
877 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in del_labels() local
929 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_namespace_label_update() local