Lines Matching refs:dax_dev
760 td->dm_dev.dax_dev = fs_dax_get_by_bdev(bdev, &part_off, in open_table_device()
787 put_dax(td->dm_dev.dax_dev); in close_table_device()
1210 static long dm_dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, in dm_dax_direct_access() argument
1214 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_direct_access()
1238 static int dm_dax_zero_page_range(struct dax_device *dax_dev, pgoff_t pgoff, in dm_dax_zero_page_range() argument
1241 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_zero_page_range()
1265 static size_t dm_dax_recovery_write(struct dax_device *dax_dev, pgoff_t pgoff, in dm_dax_recovery_write() argument
1268 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_recovery_write()
2231 if (md->dax_dev) { in cleanup_mapped_device()
2233 kill_dax(md->dax_dev); in cleanup_mapped_device()
2234 put_dax(md->dax_dev); in cleanup_mapped_device()
2235 md->dax_dev = NULL; in cleanup_mapped_device()
2284 struct dax_device *dax_dev; in alloc_dev() local
2355 dax_dev = alloc_dax(md, &dm_dax_ops); in alloc_dev()
2356 if (IS_ERR(dax_dev)) { in alloc_dev()
2357 if (PTR_ERR(dax_dev) != -EOPNOTSUPP) in alloc_dev()
2360 set_dax_nocache(dax_dev); in alloc_dev()
2361 set_dax_nomc(dax_dev); in alloc_dev()
2362 md->dax_dev = dax_dev; in alloc_dev()
2363 if (dax_add_host(dax_dev, md->disk)) in alloc_dev()