Home
last modified time | relevance | path

Searched refs:dax_dev (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.3-rc2/drivers/dax/
A Dsuper.c100 if (!dax_dev || !dax_alive(dax_dev) || !igrab(&dax_dev->inode)) in fs_dax_get_by_bdev()
101 dax_dev = NULL; in fs_dax_get_by_bdev()
106 dax_dev = NULL; in fs_dax_get_by_bdev()
110 return dax_dev; in fs_dax_get_by_bdev()
154 if (!dax_dev) in dax_direct_access()
163 avail = dax_dev->ops->direct_access(dax_dev, pgoff, nr_pages, in dax_direct_access()
322 if (!dax_dev) in kill_dax()
349 if (!dax_dev) in dax_alloc_inode()
454 if (!dax_dev) in alloc_dax()
469 if (!dax_dev) in put_dax()
[all …]
A Ddevice.c23 if (!dax_alive(dev_dax->dax_dev)) in check_vma()
354 struct dax_device *dax_dev = inode_dax(inode); in dax_open() local
355 struct inode *__dax_inode = dax_inode(dax_dev); in dax_open()
356 struct dev_dax *dev_dax = dax_get_private(dax_dev); in dax_open()
401 struct dax_device *dax_dev = dev_dax->dax_dev; in dev_dax_probe() local
458 inode = dax_inode(dax_dev); in dev_dax_probe()
471 run_dax(dax_dev); in dev_dax_probe()
A Dbus.c397 struct dax_device *dax_dev = dev_dax->dax_dev; in kill_dev_dax() local
400 kill_dax(dax_dev); in kill_dev_dax()
1299 struct dax_device *dax_dev = dev_dax->dax_dev; in dev_dax_release() local
1301 put_dax(dax_dev); in dev_dax_release()
1317 struct dax_device *dax_dev; in devm_create_dev_dax() local
1374 if (IS_ERR(dax_dev)) { in devm_create_dev_dax()
1375 rc = PTR_ERR(dax_dev); in devm_create_dev_dax()
1379 set_dax_nocache(dax_dev); in devm_create_dev_dax()
1380 set_dax_nomc(dax_dev); in devm_create_dev_dax()
1383 kill_dax(dax_dev); in devm_create_dev_dax()
[all …]
A Ddax-private.h15 struct inode *dax_inode(struct dax_device *dax_dev);
64 struct dax_device *dax_dev; member
A Dbus.h57 void run_dax(struct dax_device *dax_dev);
/linux-6.3-rc2/include/linux/
A Ddax.h60 void *dax_holder(struct dax_device *dax_dev);
61 void put_dax(struct dax_device *dax_dev);
62 void kill_dax(struct dax_device *dax_dev);
65 bool dax_synchronous(struct dax_device *dax_dev);
73 struct dax_device *dax_dev) in daxdev_mapping_supported() argument
79 return dax_synchronous(dax_dev); in daxdev_mapping_supported()
116 struct dax_device *dax_dev) in daxdev_mapping_supported() argument
127 void set_dax_nocache(struct dax_device *dax_dev);
128 void set_dax_nomc(struct dax_device *dax_dev);
228 bool dax_alive(struct dax_device *dax_dev);
[all …]
A Diomap.h97 struct dax_device *dax_dev; /* dax_dev for dax operations */ member
/linux-6.3-rc2/drivers/nvdimm/
A Ddax_devs.c91 struct device *dax_dev; in nd_dax_probe() local
110 dax_dev = nd_pfn_devinit(nd_pfn, ndns); in nd_dax_probe()
112 if (!dax_dev) in nd_dax_probe()
117 dev_dbg(dev, "dax: %s\n", rc == 0 ? dev_name(dax_dev) : "<none>"); in nd_dax_probe()
119 nd_detach_ndns(dax_dev, &nd_pfn->ndns); in nd_dax_probe()
120 put_device(dax_dev); in nd_dax_probe()
122 nd_device_register(dax_dev); in nd_dax_probe()
A Dpmem.c426 kill_dax(pmem->dax_dev); in pmem_release_disk()
427 put_dax(pmem->dax_dev); in pmem_release_disk()
457 struct dax_device *dax_dev; in pmem_attach_disk() local
560 if (IS_ERR(dax_dev)) { in pmem_attach_disk()
561 rc = PTR_ERR(dax_dev); in pmem_attach_disk()
564 set_dax_nocache(dax_dev); in pmem_attach_disk()
565 set_dax_nomc(dax_dev); in pmem_attach_disk()
567 set_dax_synchronous(dax_dev); in pmem_attach_disk()
572 pmem->dax_dev = dax_dev; in pmem_attach_disk()
591 kill_dax(pmem->dax_dev); in pmem_attach_disk()
[all …]
A Dpmem.h27 struct dax_device *dax_dev; member
/linux-6.3-rc2/drivers/md/
A Ddm-linear.c165 return lc->dev->dax_dev; in linear_dax_pgoff()
172 struct dax_device *dax_dev = linear_dax_pgoff(ti, &pgoff); in linear_dax_direct_access() local
174 return dax_direct_access(dax_dev, pgoff, nr_pages, mode, kaddr, pfn); in linear_dax_direct_access()
180 struct dax_device *dax_dev = linear_dax_pgoff(ti, &pgoff); in linear_dax_zero_page_range() local
182 return dax_zero_page_range(dax_dev, pgoff, nr_pages); in linear_dax_zero_page_range()
188 struct dax_device *dax_dev = linear_dax_pgoff(ti, &pgoff); in linear_dax_recovery_write() local
190 return dax_recovery_write(dax_dev, pgoff, addr, bytes, i); in linear_dax_recovery_write()
A Ddm-stripe.c313 return sc->stripe[stripe].dev->dax_dev; in stripe_dax_pgoff()
320 struct dax_device *dax_dev = stripe_dax_pgoff(ti, &pgoff); in stripe_dax_direct_access() local
322 return dax_direct_access(dax_dev, pgoff, nr_pages, mode, kaddr, pfn); in stripe_dax_direct_access()
328 struct dax_device *dax_dev = stripe_dax_pgoff(ti, &pgoff); in stripe_dax_zero_page_range() local
330 return dax_zero_page_range(dax_dev, pgoff, nr_pages); in stripe_dax_zero_page_range()
336 struct dax_device *dax_dev = stripe_dax_pgoff(ti, &pgoff); in stripe_dax_recovery_write() local
338 return dax_recovery_write(dax_dev, pgoff, addr, bytes, i); in stripe_dax_recovery_write()
A Ddm-log-writes.c889 return lc->dev->dax_dev; in log_writes_dax_pgoff()
896 struct dax_device *dax_dev = log_writes_dax_pgoff(ti, &pgoff); in log_writes_dax_direct_access() local
898 return dax_direct_access(dax_dev, pgoff, nr_pages, mode, kaddr, pfn); in log_writes_dax_direct_access()
904 struct dax_device *dax_dev = log_writes_dax_pgoff(ti, &pgoff); in log_writes_dax_zero_page_range() local
906 return dax_zero_page_range(dax_dev, pgoff, nr_pages << PAGE_SHIFT); in log_writes_dax_zero_page_range()
912 struct dax_device *dax_dev = log_writes_dax_pgoff(ti, &pgoff); in log_writes_dax_recovery_write() local
914 return dax_recovery_write(dax_dev, pgoff, addr, bytes, i); in log_writes_dax_recovery_write()
A Ddm.c788 put_dax(td->dm_dev.dax_dev); in close_table_device()
1956 if (md->dax_dev) { in cleanup_mapped_device()
1958 kill_dax(md->dax_dev); in cleanup_mapped_device()
1959 put_dax(md->dax_dev); in cleanup_mapped_device()
1960 md->dax_dev = NULL; in cleanup_mapped_device()
2079 md->dax_dev = alloc_dax(md, &dm_dax_ops); in alloc_dev()
2080 if (IS_ERR(md->dax_dev)) { in alloc_dev()
2081 md->dax_dev = NULL; in alloc_dev()
2084 set_dax_nocache(md->dax_dev); in alloc_dev()
2085 set_dax_nomc(md->dax_dev); in alloc_dev()
[all …]
A Ddm-table.c812 if (dev->dax_dev) in device_not_dax_capable()
823 return !dev->dax_dev || !dax_synchronous(dev->dax_dev); in device_not_dax_synchronous_capable()
1805 struct dax_device *dax_dev = dev->dax_dev; in device_dax_write_cache_enabled() local
1807 if (!dax_dev) in device_dax_write_cache_enabled()
1810 if (dax_write_cache_enabled(dax_dev)) in device_dax_write_cache_enabled()
1970 set_dax_synchronous(t->md->dax_dev); in dm_table_set_restrictions()
1975 dax_write_cache(t->md->dax_dev, true); in dm_table_set_restrictions()
A Ddm-core.h77 struct dax_device *dax_dev; member
/linux-6.3-rc2/drivers/s390/block/
A Ddcssblk.c81 struct dax_device *dax_dev; member
414 kill_dax(dev_info->dax_dev); in dcssblk_shared_store()
415 put_dax(dev_info->dax_dev); in dcssblk_shared_store()
679 if (IS_ERR(dev_info->dax_dev)) { in dcssblk_add_store()
680 rc = PTR_ERR(dev_info->dax_dev); in dcssblk_add_store()
681 dev_info->dax_dev = NULL; in dcssblk_add_store()
684 set_dax_synchronous(dev_info->dax_dev); in dcssblk_add_store()
712 kill_dax(dev_info->dax_dev); in dcssblk_add_store()
713 put_dax(dev_info->dax_dev); in dcssblk_add_store()
791 kill_dax(dev_info->dax_dev); in dcssblk_remove_store()
[all …]
/linux-6.3-rc2/fs/xfs/
A Dxfs_notify_failure.c177 struct dax_device *dax_dev, in xfs_dax_notify_failure() argument
182 struct xfs_mount *mp = dax_holder(dax_dev); in xfs_dax_notify_failure()
191 if (mp->m_rtdev_targp && mp->m_rtdev_targp->bt_daxdev == dax_dev) { in xfs_dax_notify_failure()
197 if (mp->m_logdev_targp && mp->m_logdev_targp->bt_daxdev == dax_dev && in xfs_dax_notify_failure()
/linux-6.3-rc2/fs/fuse/
A Dvirtio_fs.c64 struct dax_device *dax_dev; member
757 struct virtio_fs *fs = dax_get_private(dax_dev); in virtio_fs_direct_access()
780 dax_flush(dax_dev, kaddr, nr_pages << PAGE_SHIFT); in virtio_fs_zero_page_range()
791 struct dax_device *dax_dev = data; in virtio_fs_cleanup_dax() local
793 kill_dax(dax_dev); in virtio_fs_cleanup_dax()
794 put_dax(dax_dev); in virtio_fs_cleanup_dax()
851 fs->dax_dev = alloc_dax(fs, &virtio_fs_dax_ops); in virtio_fs_setup_dax()
852 if (IS_ERR(fs->dax_dev)) in virtio_fs_setup_dax()
853 return PTR_ERR(fs->dax_dev); in virtio_fs_setup_dax()
856 fs->dax_dev); in virtio_fs_setup_dax()
[all …]
A Ddax.c579 iomap->dax_dev = fc->dax->dev; in fuse_iomap_begin()
1283 struct dax_device *dax_dev) in fuse_dax_conn_alloc() argument
1290 if (!dax_dev) in fuse_dax_conn_alloc()
1298 fcd->dev = dax_dev; in fuse_dax_conn_alloc()
A Dfuse_i.h521 struct dax_device *dax_dev; member
1303 struct dax_device *dax_dev);
/linux-6.3-rc2/fs/
A Ddax.c1013 struct dax_device *dax_dev, struct writeback_control *wbc) in dax_writeback_mapping_range() argument
1034 ret = dax_writeback_one(&xas, dax_dev, mapping, entry); in dax_writeback_mapping_range()
1162 dax_flush(srcmap->dax_dev, daddr, size); in dax_iomap_copy_around()
1319 dax_flush(iomap->dax_dev, kaddr + offset, size); in dax_memzero()
1353 rc = dax_zero_page_range(iomap->dax_dev, pgoff, 1); in dax_zero_iter()
1407 struct dax_device *dax_dev = iomap->dax_dev; in dax_iomap_iter() local
1457 map_len = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), in dax_iomap_iter()
1460 map_len = dax_direct_access(dax_dev, pgoff, in dax_iomap_iter()
1485 xfer = dax_recovery_write(dax_dev, pgoff, kaddr, in dax_iomap_iter()
1488 xfer = dax_copy_from_iter(dax_dev, pgoff, kaddr, in dax_iomap_iter()
[all …]
/linux-6.3-rc2/fs/erofs/
A Ddata.c202 map->m_daxdev = EROFS_SB(sb)->dax_dev; in erofs_map_dev()
214 map->m_daxdev = dif->dax_dev; in erofs_map_dev()
232 map->m_daxdev = dif->dax_dev; in erofs_map_dev()
267 iomap->dax_dev = mdev.m_daxdev; in erofs_iomap_begin()
A Dsuper.c257 dif->dax_dev = fs_dax_get_by_bdev(bdev, &dif->dax_part_off, in erofs_init_device()
753 sbi->dax_dev = fs_dax_get_by_bdev(sb->s_bdev, in erofs_fc_fill_super()
765 if (!sbi->dax_dev) { in erofs_fc_fill_super()
855 fs_put_dax(dif->dax_dev, NULL); in erofs_release_device_info()
948 fs_put_dax(sbi->dax_dev, NULL); in erofs_kill_sb()
A Dinternal.h53 struct dax_device *dax_dev; member
139 struct dax_device *dax_dev; member

Completed in 56 milliseconds

12