Lines Matching defs:ndd

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()
307 static bool preamble_index(struct nvdimm_drvdata *ndd, int idx, in preamble_index()
333 static bool preamble_current(struct nvdimm_drvdata *ndd, in preamble_current()
341 static bool preamble_next(struct nvdimm_drvdata *ndd, in preamble_next()
349 static bool slot_valid(struct nvdimm_drvdata *ndd, in slot_valid()
374 int nd_label_reserve_dpa(struct nvdimm_drvdata *ndd) in nd_label_reserve_dpa()
413 int nd_label_data_init(struct nvdimm_drvdata *ndd) in nd_label_data_init()
535 int nd_label_active_count(struct nvdimm_drvdata *ndd) in nd_label_active_count()
565 struct nd_namespace_label *nd_label_active(struct nvdimm_drvdata *ndd, int n) in nd_label_active()
588 u32 nd_label_alloc_slot(struct nvdimm_drvdata *ndd) in nd_label_alloc_slot()
608 bool nd_label_free_slot(struct nvdimm_drvdata *ndd, u32 slot) in nd_label_free_slot()
624 u32 nd_label_nfree(struct nvdimm_drvdata *ndd) in nd_label_nfree()
638 static int nd_label_write_index(struct nvdimm_drvdata *ndd, int index, u32 seq, in nd_label_write_index()
704 static unsigned long nd_label_offset(struct nvdimm_drvdata *ndd, in nd_label_offset()
751 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in reap_victim() local
765 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __pmem_label_update() local
876 static struct resource *to_resource(struct nvdimm_drvdata *ndd, in to_resource()
904 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __blk_label_update() local
1158 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_labels() local
1199 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in del_labels() local
1251 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_namespace_label_update() local