Lines Matching refs:dax_device
19 * struct dax_device - anchor object for dax services
25 * @holder_data: holder of a dax_device: could be filesystem or mapped device
28 struct dax_device {
62 int dax_add_host(struct dax_device *dax_dev, struct gendisk *disk)
76 * @bdev: block device to find a dax_device for
77 * @start_off: returns the byte offset into the dax_device that @bdev starts
78 * @holder: filesystem or mapped device inside the dax_device
81 struct dax_device *fs_dax_get_by_bdev(struct block_device *bdev, u64 *start_off,
84 struct dax_device *dax_dev;
114 void fs_put_dax(struct dax_device *dax_dev, void *holder)
139 * @dax_dev: a dax_device instance representing the logical memory range
149 long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, long nr_pages,
171 size_t dax_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr,
187 size_t dax_copy_to_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr,
203 int dax_zero_page_range(struct dax_device *dax_dev, pgoff_t pgoff,
223 size_t dax_recovery_write(struct dax_device *dax_dev, pgoff_t pgoff,
232 int dax_holder_notify_failure(struct dax_device *dax_dev, u64 off,
257 void dax_flush(struct dax_device *dax_dev, void *addr, size_t size)
265 void dax_flush(struct dax_device *dax_dev, void *addr, size_t size)
271 void dax_write_cache(struct dax_device *dax_dev, bool wc)
280 bool dax_write_cache_enabled(struct dax_device *dax_dev)
286 bool dax_synchronous(struct dax_device *dax_dev)
292 void set_dax_synchronous(struct dax_device *dax_dev)
298 void set_dax_nocache(struct dax_device *dax_dev)
304 void set_dax_nomc(struct dax_device *dax_dev)
310 bool dax_alive(struct dax_device *dax_dev)
323 void kill_dax(struct dax_device *dax_dev)
340 void run_dax(struct dax_device *dax_dev)
348 struct dax_device *dax_dev;
360 static struct dax_device *to_dax_dev(struct inode *inode)
362 return container_of(inode, struct dax_device, inode);
367 struct dax_device *dax_dev = to_dax_dev(inode);
375 struct dax_device *dax_dev = to_dax_dev(inode);
418 static struct dax_device *dax_dev_get(dev_t devt)
420 struct dax_device *dax_dev;
442 struct dax_device *alloc_dax(void *private, const struct dax_operations *ops)
444 struct dax_device *dax_dev;
470 void put_dax(struct dax_device *dax_dev)
480 * @dax_dev: a dax_device instance
485 void *dax_holder(struct dax_device *dax_dev)
498 struct dax_device *inode_dax(struct inode *inode)
502 return container_of(cdev, struct dax_device, cdev);
506 struct inode *dax_inode(struct dax_device *dax_dev)
512 void *dax_get_private(struct dax_device *dax_dev)
522 struct dax_device *dax_dev = _dax_dev;
533 dax_cache = kmem_cache_create("dax_cache", sizeof(struct dax_device), 0,