Lines Matching refs:ndd
64 struct nvdimm_drvdata *ndd, int i) in to_namespace_index() argument
69 return ndd->data + sizeof_namespace_index(ndd) * i; in to_namespace_index()
73 struct nvdimm_drvdata *ndd) in to_current_namespace_index() argument
75 return to_namespace_index(ndd, ndd->ns_current); in to_current_namespace_index()
79 struct nvdimm_drvdata *ndd) in to_next_namespace_index() argument
81 return to_namespace_index(ndd, ndd->ns_next); in to_next_namespace_index()
84 unsigned sizeof_namespace_label(struct nvdimm_drvdata *ndd);
86 #define namespace_label_has(ndd, field) \ argument
88 < sizeof_namespace_label(ndd))
96 #define for_each_dpa_resource(ndd, res) \ argument
97 for (res = (ndd)->dpa.child; res; res = res->sibling)
99 #define for_each_dpa_resource_safe(ndd, res, next) \ argument
100 for (res = (ndd)->dpa.child, next = res ? res->sibling : NULL; \
135 struct nvdimm_drvdata *ndd; member
248 int nvdimm_init_nsarea(struct nvdimm_drvdata *ndd);
249 int nvdimm_init_config_data(struct nvdimm_drvdata *ndd);
250 int nvdimm_get_config_data(struct nvdimm_drvdata *ndd, void *buf,
252 int nvdimm_set_config_data(struct nvdimm_drvdata *ndd, size_t offset,
366 void put_ndd(struct nvdimm_drvdata *ndd);
367 int nd_label_reserve_dpa(struct nvdimm_drvdata *ndd);
368 void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res);
369 struct resource *nvdimm_allocate_dpa(struct nvdimm_drvdata *ndd,