Lines Matching refs:ndns
372 struct nd_namespace_common *ndns) in pmem_attach_disk() argument
374 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in pmem_attach_disk()
394 rc = devm_namespace_enable(dev, ndns, nd_info_block_reserve()); in pmem_attach_disk()
407 devm_namespace_disable(dev, ndns); in pmem_attach_disk()
419 dev_name(&ndns->dev))) { in pmem_attach_disk()
466 blk_queue_logical_block_size(q, pmem_sector_size(ndns)); in pmem_attach_disk()
481 nvdimm_namespace_disk_name(ndns, disk->disk_name); in pmem_attach_disk()
518 struct nd_namespace_common *ndns; in nd_pmem_probe() local
520 ndns = nvdimm_namespace_common_probe(dev); in nd_pmem_probe()
521 if (IS_ERR(ndns)) in nd_pmem_probe()
522 return PTR_ERR(ndns); in nd_pmem_probe()
525 return nvdimm_namespace_attach_btt(ndns); in nd_pmem_probe()
528 return pmem_attach_disk(dev, ndns); in nd_pmem_probe()
530 ret = devm_namespace_enable(dev, ndns, nd_info_block_reserve()); in nd_pmem_probe()
534 ret = nd_btt_probe(dev, ndns); in nd_pmem_probe()
549 ret = nd_pfn_probe(dev, ndns); in nd_pmem_probe()
555 ret = nd_dax_probe(dev, ndns); in nd_pmem_probe()
562 devm_namespace_disable(dev, ndns); in nd_pmem_probe()
564 return pmem_attach_disk(dev, ndns); in nd_pmem_probe()
595 struct nd_namespace_common *ndns; in nd_pmem_notify() local
607 ndns = nd_btt->ndns; in nd_pmem_notify()
608 nd_region = to_nd_region(ndns->dev.parent); in nd_pmem_notify()
609 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_notify()
623 ndns = nd_pfn->ndns; in nd_pmem_notify()
628 ndns = to_ndns(dev); in nd_pmem_notify()
631 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_notify()