Lines Matching refs:dax_device

60 struct dax_device *fs_dax_get_by_bdev(struct block_device *bdev)  in fs_dax_get_by_bdev()
69 bool __generic_fsdax_supported(struct dax_device *dax_dev, in __generic_fsdax_supported()
162 struct dax_device *dax_dev; in __bdev_dax_supported()
211 struct dax_device { struct
224 struct dax_device *dax_dev = dax_get_by_host(dev_name(dev)); in write_cache_show() argument
241 struct dax_device *dax_dev = dax_get_by_host(dev_name(dev)); in write_cache_store()
260 struct dax_device *dax_dev = dax_get_by_host(dev_name(dev)); in dax_visible()
296 long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, long nr_pages, in dax_direct_access()
318 bool dax_supported(struct dax_device *dax_dev, struct block_device *bdev, in dax_supported()
327 size_t dax_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr, in dax_copy_from_iter()
337 size_t dax_copy_to_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr, in dax_copy_to_iter()
349 void dax_flush(struct dax_device *dax_dev, void *addr, size_t size) in dax_flush()
357 void dax_flush(struct dax_device *dax_dev, void *addr, size_t size) in dax_flush()
363 void dax_write_cache(struct dax_device *dax_dev, bool wc) in dax_write_cache()
372 bool dax_write_cache_enabled(struct dax_device *dax_dev) in dax_write_cache_enabled()
378 bool __dax_synchronous(struct dax_device *dax_dev) in __dax_synchronous()
384 void __set_dax_synchronous(struct dax_device *dax_dev) in __set_dax_synchronous()
390 bool dax_alive(struct dax_device *dax_dev) in dax_alive()
408 void kill_dax(struct dax_device *dax_dev) in kill_dax()
423 void run_dax(struct dax_device *dax_dev) in run_dax()
431 struct dax_device *dax_dev; in dax_alloc_inode()
443 static struct dax_device *to_dax_dev(struct inode *inode) in to_dax_dev()
445 return container_of(inode, struct dax_device, inode); in to_dax_dev()
450 struct dax_device *dax_dev = to_dax_dev(inode); in dax_free_inode()
460 struct dax_device *dax_dev = to_dax_dev(inode); in dax_destroy_inode()
503 static struct dax_device *dax_dev_get(dev_t devt) in dax_dev_get()
505 struct dax_device *dax_dev; in dax_dev_get()
527 static void dax_add_host(struct dax_device *dax_dev, const char *host) in dax_add_host()
546 struct dax_device *alloc_dax(void *private, const char *__host, in alloc_dax()
549 struct dax_device *dax_dev; in alloc_dax()
583 void put_dax(struct dax_device *dax_dev) in put_dax()
595 struct dax_device *dax_get_by_host(const char *host) in dax_get_by_host()
597 struct dax_device *dax_dev, *found = NULL; in dax_get_by_host()
630 struct dax_device *inode_dax(struct inode *inode) in inode_dax()
634 return container_of(cdev, struct dax_device, cdev); in inode_dax()
638 struct inode *dax_inode(struct dax_device *dax_dev) in dax_inode()
644 void *dax_get_private(struct dax_device *dax_dev) in dax_get_private()
654 struct dax_device *dax_dev = _dax_dev; in init_once()
665 dax_cache = kmem_cache_create("dax_cache", sizeof(struct dax_device), 0, in dax_fs_init()