Lines Matching refs:ndns
353 struct nd_namespace_common *ndns) in pmem_attach_disk() argument
355 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in pmem_attach_disk()
396 dev_name(&ndns->dev))) { in pmem_attach_disk()
441 blk_queue_logical_block_size(q, pmem_sector_size(ndns)); in pmem_attach_disk()
457 nvdimm_namespace_disk_name(ndns, disk->disk_name); in pmem_attach_disk()
494 struct nd_namespace_common *ndns; in nd_pmem_probe() local
496 ndns = nvdimm_namespace_common_probe(dev); in nd_pmem_probe()
497 if (IS_ERR(ndns)) in nd_pmem_probe()
498 return PTR_ERR(ndns); in nd_pmem_probe()
500 if (devm_nsio_enable(dev, to_nd_namespace_io(&ndns->dev))) in nd_pmem_probe()
504 return nvdimm_namespace_attach_btt(ndns); in nd_pmem_probe()
507 return pmem_attach_disk(dev, ndns); in nd_pmem_probe()
509 ret = nd_btt_probe(dev, ndns); in nd_pmem_probe()
524 ret = nd_pfn_probe(dev, ndns); in nd_pmem_probe()
530 ret = nd_dax_probe(dev, ndns); in nd_pmem_probe()
535 return pmem_attach_disk(dev, ndns); in nd_pmem_probe()
566 struct nd_namespace_common *ndns; in nd_pmem_notify() local
578 ndns = nd_btt->ndns; in nd_pmem_notify()
579 nd_region = to_nd_region(ndns->dev.parent); in nd_pmem_notify()
580 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_notify()
594 ndns = nd_pfn->ndns; in nd_pmem_notify()
599 ndns = to_ndns(dev); in nd_pmem_notify()
602 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_notify()