Lines Matching defs:ndd

45 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()
315 static bool preamble_index(struct nvdimm_drvdata *ndd, int idx, in preamble_index()
341 static bool preamble_current(struct nvdimm_drvdata *ndd, in preamble_current()
349 static bool preamble_next(struct nvdimm_drvdata *ndd, in preamble_next()
357 static bool nsl_validate_checksum(struct nvdimm_drvdata *ndd, in nsl_validate_checksum()
372 static void nsl_calculate_checksum(struct nvdimm_drvdata *ndd, in nsl_calculate_checksum()
384 static bool slot_valid(struct nvdimm_drvdata *ndd, in slot_valid()
398 int nd_label_reserve_dpa(struct nvdimm_drvdata *ndd) in nd_label_reserve_dpa()
434 int nd_label_data_init(struct nvdimm_drvdata *ndd) in nd_label_data_init()
556 int nd_label_active_count(struct nvdimm_drvdata *ndd) in nd_label_active_count()
586 struct nd_namespace_label *nd_label_active(struct nvdimm_drvdata *ndd, int n) in nd_label_active()
609 u32 nd_label_alloc_slot(struct nvdimm_drvdata *ndd) in nd_label_alloc_slot()
629 bool nd_label_free_slot(struct nvdimm_drvdata *ndd, u32 slot) in nd_label_free_slot()
645 u32 nd_label_nfree(struct nvdimm_drvdata *ndd) in nd_label_nfree()
659 static int nd_label_write_index(struct nvdimm_drvdata *ndd, int index, u32 seq, in nd_label_write_index()
725 static unsigned long nd_label_offset(struct nvdimm_drvdata *ndd, in nd_label_offset()
811 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in reap_victim() local
819 static void nsl_set_type_guid(struct nvdimm_drvdata *ndd, in nsl_set_type_guid()
826 bool nsl_validate_type_guid(struct nvdimm_drvdata *ndd, in nsl_validate_type_guid()
839 static void nsl_set_claim_class(struct nvdimm_drvdata *ndd, in nsl_set_claim_class()
859 enum nvdimm_claim_class nsl_get_claim_class(struct nvdimm_drvdata *ndd, in nsl_get_claim_class()
879 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __pmem_label_update() local
972 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_labels() local
1013 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in del_labels() local
1063 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_namespace_label_update() local