Lines Matching refs:dax_device
28 struct dax_device { struct
62 int dax_add_host(struct dax_device *dax_dev, struct gendisk *disk) in dax_add_host()
81 struct dax_device *fs_dax_get_by_bdev(struct block_device *bdev, u64 *start_off, in fs_dax_get_by_bdev()
84 struct dax_device *dax_dev; in fs_dax_get_by_bdev()
114 void fs_put_dax(struct dax_device *dax_dev, void *holder) in fs_put_dax()
149 long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, long nr_pages, in dax_direct_access()
171 size_t dax_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr, in dax_copy_from_iter()
187 size_t dax_copy_to_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr, in dax_copy_to_iter()
203 int dax_zero_page_range(struct dax_device *dax_dev, pgoff_t pgoff, in dax_zero_page_range()
220 size_t dax_recovery_write(struct dax_device *dax_dev, pgoff_t pgoff, in dax_recovery_write()
229 int dax_holder_notify_failure(struct dax_device *dax_dev, u64 off, in dax_holder_notify_failure()
254 void dax_flush(struct dax_device *dax_dev, void *addr, size_t size) in dax_flush()
262 void dax_flush(struct dax_device *dax_dev, void *addr, size_t size) in dax_flush()
268 void dax_write_cache(struct dax_device *dax_dev, bool wc) in dax_write_cache()
277 bool dax_write_cache_enabled(struct dax_device *dax_dev) in dax_write_cache_enabled()
283 bool dax_synchronous(struct dax_device *dax_dev) in dax_synchronous()
289 void set_dax_synchronous(struct dax_device *dax_dev) in set_dax_synchronous()
295 void set_dax_nocache(struct dax_device *dax_dev) in set_dax_nocache()
301 void set_dax_nomc(struct dax_device *dax_dev) in set_dax_nomc()
307 bool dax_alive(struct dax_device *dax_dev) in dax_alive()
320 void kill_dax(struct dax_device *dax_dev) in kill_dax()
337 void run_dax(struct dax_device *dax_dev) in run_dax()
345 struct dax_device *dax_dev; in dax_alloc_inode()
357 static struct dax_device *to_dax_dev(struct inode *inode) in to_dax_dev()
359 return container_of(inode, struct dax_device, inode); in to_dax_dev()
364 struct dax_device *dax_dev = to_dax_dev(inode); in dax_free_inode()
372 struct dax_device *dax_dev = to_dax_dev(inode); in dax_destroy_inode()
415 static struct dax_device *dax_dev_get(dev_t devt) in dax_dev_get()
417 struct dax_device *dax_dev; in dax_dev_get()
439 struct dax_device *alloc_dax(void *private, const struct dax_operations *ops) in alloc_dax()
441 struct dax_device *dax_dev; in alloc_dax()
467 void put_dax(struct dax_device *dax_dev) in put_dax()
482 void *dax_holder(struct dax_device *dax_dev) in dax_holder()
495 struct dax_device *inode_dax(struct inode *inode) in inode_dax()
499 return container_of(cdev, struct dax_device, cdev); in inode_dax()
503 struct inode *dax_inode(struct dax_device *dax_dev) in dax_inode()
509 void *dax_get_private(struct dax_device *dax_dev) in dax_get_private()
519 struct dax_device *dax_dev = _dax_dev; in init_once()
530 dax_cache = kmem_cache_create("dax_cache", sizeof(struct dax_device), 0, in dax_fs_init()