Lines Matching refs:ndd
64 struct nvdimm_drvdata *ndd, int i)
69 return ndd->data + sizeof_namespace_index(ndd) * i;
73 struct nvdimm_drvdata *ndd)
75 return to_namespace_index(ndd, ndd->ns_current);
79 struct nvdimm_drvdata *ndd)
81 return to_namespace_index(ndd, ndd->ns_next);
84 unsigned sizeof_namespace_label(struct nvdimm_drvdata *ndd);
86 #define namespace_label_has(ndd, field) \
88 < sizeof_namespace_label(ndd))
96 #define for_each_dpa_resource(ndd, res) \
97 for (res = (ndd)->dpa.child; res; res = res->sibling)
99 #define for_each_dpa_resource_safe(ndd, res, next) \
100 for (res = (ndd)->dpa.child, next = res ? res->sibling : NULL; \
130 * @ndd is for private use at region enable / disable time for
131 * get_ndd() + put_ndd(), all other nd_mapping to ndd
135 struct nvdimm_drvdata *ndd;
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,