Lines Matching refs:dax_dev
755 td->dm_dev.dax_dev = fs_dax_get_by_bdev(bdev, &part_off, NULL, NULL); in open_table_device()
769 put_dax(td->dm_dev.dax_dev); in close_table_device()
771 td->dm_dev.dax_dev = NULL; in close_table_device()
1226 static long dm_dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, in dm_dax_direct_access() argument
1230 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_direct_access()
1254 static int dm_dax_zero_page_range(struct dax_device *dax_dev, pgoff_t pgoff, in dm_dax_zero_page_range() argument
1257 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_zero_page_range()
1281 static size_t dm_dax_recovery_write(struct dax_device *dax_dev, pgoff_t pgoff, in dm_dax_recovery_write() argument
1284 struct mapped_device *md = dax_get_private(dax_dev); in dm_dax_recovery_write()
1962 if (md->dax_dev) { in cleanup_mapped_device()
1964 kill_dax(md->dax_dev); in cleanup_mapped_device()
1965 put_dax(md->dax_dev); in cleanup_mapped_device()
1966 md->dax_dev = NULL; in cleanup_mapped_device()
2072 md->dax_dev = alloc_dax(md, &dm_dax_ops); in alloc_dev()
2073 if (IS_ERR(md->dax_dev)) { in alloc_dev()
2074 md->dax_dev = NULL; in alloc_dev()
2077 set_dax_nocache(md->dax_dev); in alloc_dev()
2078 set_dax_nomc(md->dax_dev); in alloc_dev()
2079 if (dax_add_host(md->dax_dev, md->disk)) in alloc_dev()