Lines Matching refs:dax_dev
764 td->dm_dev.dax_dev = fs_dax_get_by_bdev(bdev, &part_off, in open_table_device()
791 put_dax(td->dm_dev.dax_dev); in close_table_device()
1212 static long dm_dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, in dm_dax_direct_access() argument
1216 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_direct_access()
1240 static int dm_dax_zero_page_range(struct dax_device *dax_dev, pgoff_t pgoff, in dm_dax_zero_page_range() argument
1243 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_zero_page_range()
1267 static size_t dm_dax_recovery_write(struct dax_device *dax_dev, pgoff_t pgoff, in dm_dax_recovery_write() argument
1270 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_recovery_write()
2210 if (md->dax_dev) { in cleanup_mapped_device()
2212 kill_dax(md->dax_dev); in cleanup_mapped_device()
2213 put_dax(md->dax_dev); in cleanup_mapped_device()
2214 md->dax_dev = NULL; in cleanup_mapped_device()
2263 struct dax_device *dax_dev; in alloc_dev() local
2334 dax_dev = alloc_dax(md, &dm_dax_ops); in alloc_dev()
2335 if (IS_ERR(dax_dev)) { in alloc_dev()
2336 if (PTR_ERR(dax_dev) != -EOPNOTSUPP) in alloc_dev()
2339 set_dax_nocache(dax_dev); in alloc_dev()
2340 set_dax_nomc(dax_dev); in alloc_dev()
2341 md->dax_dev = dax_dev; in alloc_dev()
2342 if (dax_add_host(dax_dev, md->disk)) in alloc_dev()