Lines Matching refs:ndd
268 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_namespace_blk_size() local
276 for_each_dpa_resource(ndd, res) in nd_namespace_blk_size()
286 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __nd_namespace_blk_validate() local
291 if (!nsblk->uuid || !nsblk->lbasize || !ndd) in __nd_namespace_blk_validate()
296 for_each_dpa_resource(ndd, res) { in __nd_namespace_blk_validate()
315 for_each_dpa_resource(ndd, res) in __nd_namespace_blk_validate()
421 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_free() local
429 for_each_dpa_resource(ndd, res) in scan_free()
438 nd_dbg_dpa(nd_region, ndd, res, "delete %d\n", rc); in scan_free()
439 nvdimm_free_dpa(ndd, res); in scan_free()
456 nd_dbg_dpa(nd_region, ndd, res, "shrink %d\n", rc); in scan_free()
496 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_dpa_allocation() local
508 res = nvdimm_allocate_dpa(ndd, label_id, first_dpa, n); in init_dpa_allocation()
512 nd_dbg_dpa(nd_region, ndd, res, "init %d\n", rc); in init_dpa_allocation()
542 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_allocate() local
549 for_each_dpa_resource(ndd, res) { in scan_allocate()
639 new_res = nvdimm_allocate_dpa(ndd, label_id, in scan_allocate()
654 nd_dbg_dpa(nd_region, ndd, new_res, "%s(%d) %d\n", in scan_allocate()
679 if ((is_pmem || !ndd->dpa.child) && n == to_allocate) in scan_allocate()
687 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in merge_dpa() local
693 for_each_dpa_resource(ndd, res) { in merge_dpa()
703 nvdimm_free_dpa(ndd, next); in merge_dpa()
705 nd_dbg_dpa(nd_region, ndd, res, "merge %d\n", rc); in merge_dpa()
755 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in release_free_pmem() local
758 for_each_dpa_resource_safe(ndd, res, _res) in release_free_pmem()
760 nvdimm_free_dpa(ndd, res); in release_free_pmem()
852 struct nvdimm_drvdata *ndd; in __size_store() local
889 ndd = to_ndd(nd_mapping); in __size_store()
895 if (!ndd) in __size_store()
898 allocated += nvdimm_allocated_dpa(ndd, &label_id); in __size_store()
1090 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in namespace_update_uuid() local
1093 for_each_dpa_resource(ndd, res) in namespace_update_uuid()
1239 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in dpa_extents_show() local
1242 for_each_dpa_resource(ndd, res) in dpa_extents_show()
1683 struct nvdimm_drvdata *ndd, struct nd_namespace_blk *nsblk, in nsblk_add_resource() argument
1696 for_each_dpa_resource(ndd, res) in nsblk_add_resource()
1763 struct nvdimm_drvdata *ndd; in create_namespace_blk() local
1770 ndd = to_ndd(nd_mapping); in create_namespace_blk()
1785 res = nsblk_add_resource(nd_region, ndd, nsblk, in create_namespace_blk()
1789 nd_dbg_dpa(nd_region, ndd, res, "%s assign\n", in create_namespace_blk()
1821 res = nsblk_add_resource(nd_region, ndd, nsblk, in create_namespace_blk()
1825 nd_dbg_dpa(nd_region, ndd, res, "%s assign\n", in create_namespace_blk()
1870 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_active_labels() local
1878 if (!ndd) { in init_active_labels()
1885 nd_mapping->ndd = ndd; in init_active_labels()
1887 get_ndd(ndd); in init_active_labels()
1889 count = nd_label_active_count(ndd); in init_active_labels()
1890 dev_dbg(ndd->dev, "%s: %d\n", __func__, count); in init_active_labels()
1900 label = nd_label_active(ndd, j); in init_active_labels()