Lines Matching refs:dax_device
28 struct dax_device { struct
70 static struct dax_device *dax_get_by_host(const char *host) in dax_get_by_host()
72 struct dax_device *dax_dev, *found = NULL; in dax_get_by_host()
115 struct dax_device *fs_dax_get_by_bdev(struct block_device *bdev) in fs_dax_get_by_bdev()
123 bool generic_fsdax_supported(struct dax_device *dax_dev, in generic_fsdax_supported()
205 bool dax_supported(struct dax_device *dax_dev, struct block_device *bdev, in dax_supported()
237 struct dax_device *dax_dev = dax_get_by_host(dev_name(dev)); in write_cache_show()
254 struct dax_device *dax_dev = dax_get_by_host(dev_name(dev)); in write_cache_store()
273 struct dax_device *dax_dev = dax_get_by_host(dev_name(dev)); in dax_visible()
309 long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, long nr_pages, in dax_direct_access()
331 size_t dax_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr, in dax_copy_from_iter()
341 size_t dax_copy_to_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr, in dax_copy_to_iter()
351 int dax_zero_page_range(struct dax_device *dax_dev, pgoff_t pgoff, in dax_zero_page_range()
370 void dax_flush(struct dax_device *dax_dev, void *addr, size_t size) in dax_flush()
378 void dax_flush(struct dax_device *dax_dev, void *addr, size_t size) in dax_flush()
384 void dax_write_cache(struct dax_device *dax_dev, bool wc) in dax_write_cache()
393 bool dax_write_cache_enabled(struct dax_device *dax_dev) in dax_write_cache_enabled()
399 bool __dax_synchronous(struct dax_device *dax_dev) in __dax_synchronous()
405 void __set_dax_synchronous(struct dax_device *dax_dev) in __set_dax_synchronous()
411 bool dax_alive(struct dax_device *dax_dev) in dax_alive()
424 void kill_dax(struct dax_device *dax_dev) in kill_dax()
439 void run_dax(struct dax_device *dax_dev) in run_dax()
447 struct dax_device *dax_dev; in dax_alloc_inode()
459 static struct dax_device *to_dax_dev(struct inode *inode) in to_dax_dev()
461 return container_of(inode, struct dax_device, inode); in to_dax_dev()
466 struct dax_device *dax_dev = to_dax_dev(inode); in dax_free_inode()
476 struct dax_device *dax_dev = to_dax_dev(inode); in dax_destroy_inode()
519 static struct dax_device *dax_dev_get(dev_t devt) in dax_dev_get()
521 struct dax_device *dax_dev; in dax_dev_get()
543 static void dax_add_host(struct dax_device *dax_dev, const char *host) in dax_add_host()
562 struct dax_device *alloc_dax(void *private, const char *__host, in alloc_dax()
565 struct dax_device *dax_dev; in alloc_dax()
606 void put_dax(struct dax_device *dax_dev) in put_dax()
621 struct dax_device *inode_dax(struct inode *inode) in inode_dax()
625 return container_of(cdev, struct dax_device, cdev); in inode_dax()
629 struct inode *dax_inode(struct dax_device *dax_dev) in dax_inode()
635 void *dax_get_private(struct dax_device *dax_dev) in dax_get_private()
645 struct dax_device *dax_dev = _dax_dev; in init_once()
656 dax_cache = kmem_cache_create("dax_cache", sizeof(struct dax_device), 0, in dax_fs_init()