Lines Matching refs:dax_dev
492 static int copy_user_dax(struct block_device *bdev, struct dax_device *dax_dev, in copy_user_dax() argument
507 rc = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), &kaddr, &pfn); in copy_user_dax()
657 struct dax_device *dax_dev, struct address_space *mapping, in dax_writeback_one() argument
727 ret = dax_direct_access(dax_dev, pgoff, size / PAGE_SIZE, &kaddr, &pfn); in dax_writeback_one()
737 dax_flush(dax_dev, kaddr, size); in dax_writeback_one()
770 struct dax_device *dax_dev; in dax_writeback_mapping_range() local
781 dax_dev = dax_get_by_host(bdev->bd_disk->disk_name); in dax_writeback_mapping_range()
782 if (!dax_dev) in dax_writeback_mapping_range()
807 ret = dax_writeback_one(bdev, dax_dev, mapping, in dax_writeback_mapping_range()
817 put_dax(dax_dev); in dax_writeback_mapping_range()
824 struct block_device *bdev, struct dax_device *dax_dev, in dax_insert_mapping() argument
839 rc = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), &kaddr, &pfn); in dax_insert_mapping()
906 struct dax_device *dax_dev, sector_t sector, in __dax_zero_page_range() argument
925 rc = dax_direct_access(dax_dev, pgoff, 1, &kaddr, in __dax_zero_page_range()
932 dax_flush(dax_dev, kaddr + offset, size); in __dax_zero_page_range()
949 struct dax_device *dax_dev = iomap->dax_dev; in dax_iomap_actor() local
997 map_len = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), in dax_iomap_actor()
1016 map_len = dax_copy_from_iter(dax_dev, pgoff, kaddr, in dax_iomap_actor()
1155 error = copy_user_dax(iomap.bdev, iomap.dax_dev, in dax_iomap_pte_fault()
1181 error = dax_insert_mapping(mapping, iomap.bdev, iomap.dax_dev, in dax_iomap_pte_fault()
1229 struct dax_device *dax_dev = iomap->dax_dev; in dax_pmd_insert_mapping() local
1243 length = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), &kaddr, &pfn); in dax_pmd_insert_mapping()