Lines Matching refs:ndd
57 struct nvdimm_drvdata *ndd, int i) in to_namespace_index() argument
62 return ndd->data + sizeof_namespace_index(ndd) * i; in to_namespace_index()
66 struct nvdimm_drvdata *ndd) in to_current_namespace_index() argument
68 return to_namespace_index(ndd, ndd->ns_current); in to_current_namespace_index()
72 struct nvdimm_drvdata *ndd) in to_next_namespace_index() argument
74 return to_namespace_index(ndd, ndd->ns_next); in to_next_namespace_index()
86 #define for_each_dpa_resource(ndd, res) \ argument
87 for (res = (ndd)->dpa.child; res; res = res->sibling)
89 #define for_each_dpa_resource_safe(ndd, res, next) \ argument
90 for (res = (ndd)->dpa.child, next = res ? res->sibling : NULL; \
183 int nvdimm_init_nsarea(struct nvdimm_drvdata *ndd);
184 int nvdimm_init_config_data(struct nvdimm_drvdata *ndd);
185 int nvdimm_set_config_data(struct nvdimm_drvdata *ndd, size_t offset,
253 void put_ndd(struct nvdimm_drvdata *ndd);
254 int nd_label_reserve_dpa(struct nvdimm_drvdata *ndd);
255 void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res);
256 struct resource *nvdimm_allocate_dpa(struct nvdimm_drvdata *ndd,