Lines Matching refs:nd_region
43 static struct nd_region *to_region(struct pmem_device *pmem) in to_region()
202 struct nd_region *nd_region = to_region(pmem); in pmem_submit_bio() local
205 ret = nvdimm_flush(nd_region, bio); in pmem_submit_bio()
226 ret = nvdimm_flush(nd_region, bio); in pmem_submit_bio()
351 struct nd_region *nd_region = to_nd_region(dev->parent); in pmem_attach_disk() local
387 fua = nvdimm_has_flush(nd_region); in pmem_attach_disk()
453 nvdimm_badblocks_populate(nd_region, &pmem->bb, &bb_range); in pmem_attach_disk()
456 if (is_nvdimm_sync(nd_region)) in pmem_attach_disk()
463 dax_write_cache(dax_dev, nvdimm_has_cache(nd_region)); in pmem_attach_disk()
558 struct nd_region *nd_region; in pmem_revalidate_poison() local
570 nd_region = to_nd_region(ndns->dev.parent); in pmem_revalidate_poison()
577 nd_region = to_region(pmem); in pmem_revalidate_poison()
598 nvdimm_badblocks_populate(nd_region, bb, &range); in pmem_revalidate_poison()