| /linux/include/linux/ |
| H A D | pagemap.h | 22 pgoff_t start, pgoff_t end); 32 pgoff_t start, pgoff_t end); 497 static inline pgoff_t mapping_align_index(const struct address_space *mapping, in mapping_align_index() 498 pgoff_t index) in mapping_align_index() 677 pgoff_t page_cache_next_miss(struct address_space *mapping, 678 pgoff_t index, unsigned long max_scan); 679 pgoff_t page_cache_prev_miss(struct address_space *mapping, 680 pgoff_t index, unsigned long max_scan); 752 void *filemap_get_entry(struct address_space *mapping, pgoff_t index); 754 pgoff_t index, fgf_t fgf_flags, gfp_t gfp, struct mempolicy *policy); [all …]
|
| H A D | swapops.h | 85 static inline swp_entry_t swp_entry(unsigned long type, pgoff_t offset) in swp_entry() 106 static inline pgoff_t swp_offset(swp_entry_t entry) in swp_offset() 137 static inline swp_entry_t make_readable_device_private_entry(pgoff_t offset) in make_readable_device_private_entry() 142 static inline swp_entry_t make_writable_device_private_entry(pgoff_t offset) in make_writable_device_private_entry() 147 static inline swp_entry_t make_device_exclusive_entry(pgoff_t offset) in make_device_exclusive_entry() 153 static inline swp_entry_t make_readable_device_private_entry(pgoff_t offset) in make_readable_device_private_entry() 158 static inline swp_entry_t make_writable_device_private_entry(pgoff_t offset) in make_writable_device_private_entry() 163 static inline swp_entry_t make_device_exclusive_entry(pgoff_t offset) in make_device_exclusive_entry() 172 static inline swp_entry_t make_readable_migration_entry(pgoff_t offset) in make_readable_migration_entry() 177 static inline swp_entry_t make_readable_exclusive_migration_entry(pgoff_t offset) in make_readable_exclusive_migration_entry() [all …]
|
| H A D | shmem_fs.h | 50 pgoff_t fallocend; /* highest fallocate endindex */ 123 pgoff_t index, gfp_t gfp_mask); 130 struct vm_area_struct *vma, pgoff_t index, 135 struct vm_area_struct *vma, pgoff_t index, in shmem_allowable_huge_orders() 161 pgoff_t start, pgoff_t end); 172 int shmem_get_folio(struct inode *inode, pgoff_t index, loff_t write_end, 175 pgoff_t index, gfp_t gfp); 178 pgoff_t index) in shmem_read_folio() 184 struct address_space *mapping, pgoff_t index) in shmem_read_mapping_page() 215 static inline pgoff_t shmem_fallocend(struct inode *inode, pgoff_t eof) in shmem_fallocend()
|
| H A D | mempolicy.h | 119 pgoff_t start, end; 129 pgoff_t idx); 133 unsigned long addr, pgoff_t *ilx); 135 unsigned long addr, int order, pgoff_t *ilx); 224 mpol_shared_policy_lookup(struct shared_policy *sp, pgoff_t idx) in mpol_shared_policy_lookup() 230 unsigned long addr, int order, pgoff_t *ilx) in get_vma_policy()
|
| H A D | mm.h | 757 pgoff_t pgoff; /* Logical page offset based on vma */ 833 int (*mapped)(unsigned long start, unsigned long end, pgoff_t pgoff, 848 pgoff_t start_pgoff, pgoff_t end_pgoff); 891 unsigned long addr, pgoff_t *ilx); 3289 pgoff_t start, pgoff_t nr, bool even_cows); 3309 pgoff_t start, pgoff_t nr, bool even_cows) { } in unmap_mapping_pages() 3382 pgoff_t *offset); 4186 pgoff_t pgoff_start, pgoff_t pgoff_last); 4189 pgoff_t pgoff_start, pgoff_t pgoff_last); 4203 pgoff_t pgoff_start, pgoff_t pgoff_last); [all …]
|
| /linux/mm/ |
| H A D | interval_tree.c | 17 pgoff_t, shared.rb_subtree_last, 34 const pgoff_t pgoff_last = vma_last_pgoff(vma); in mapping_rmap_tree_insert_after() 69 pgoff_t pgoff_start, pgoff_t pgoff_last) in mapping_rmap_tree_iter_first() 77 pgoff_t pgoff_start, pgoff_t pgoff_last) in mapping_rmap_tree_iter_next() 84 static pgoff_t avc_start_pgoff(struct anon_vma_chain *avc) in avc_start_pgoff() 89 static pgoff_t avc_last_pgoff(struct anon_vma_chain *avc) in avc_last_pgoff() 94 INTERVAL_TREE_DEFINE(struct anon_vma_chain, rb, pgoff_t, rb_subtree_last, in INTERVAL_TREE_DEFINE() argument 116 pgoff_t pgoff_start, pgoff_t pgoff_last) in anon_rmap_tree_iter_first() 124 pgoff_t pgoff_start, pgoff_t pgoff_last) in anon_rmap_tree_iter_next()
|
| H A D | vma.h | 106 pgoff_t pgoff; 107 pgoff_t anon_pgoff; 241 static inline pgoff_t vmg_pages(const struct vma_merge_struct *vmg) in vmg_pages() 248 static inline pgoff_t vmg_start_pgoff(const struct vma_merge_struct *vmg) in vmg_start_pgoff() 253 static inline pgoff_t vmg_end_pgoff(const struct vma_merge_struct *vmg) in vmg_end_pgoff() 258 static inline void assert_sane_pgoff(struct vm_area_struct *vma, pgoff_t pgoff) in assert_sane_pgoff() 280 static inline void vma_set_pgoff(struct vm_area_struct *vma, pgoff_t pgoff) in vma_set_pgoff() 287 static inline pgoff_t vmg_start_anon_pgoff(const struct vma_merge_struct *vmg) in vmg_start_anon_pgoff() 292 static inline pgoff_t vmg_end_anon_pgoff(const struct vma_merge_struct *vmg) in vmg_end_anon_pgoff() 297 static inline void __vma_set_anon_pgoff(struct vm_area_struct *vma, pgoff_t pgof [all...] |
| H A D | filemap.c | 484 pgoff_t max = end_byte >> PAGE_SHIFT; in filemap_range_has_page() 513 pgoff_t index = start_byte >> PAGE_SHIFT; in __filemap_fdatawait_range() 514 pgoff_t end = end_byte >> PAGE_SHIFT; in __filemap_fdatawait_range() 641 pgoff_t max = end_byte >> PAGE_SHIFT; in filemap_range_has_writeback() 815 pgoff_t offset = old->index; in replace_page_cache_folio() 849 struct folio *folio, pgoff_t index, gfp_t gfp, void **shadowp) in __filemap_add_folio() 956 pgoff_t index, gfp_t gfp) in filemap_add_folio() 1812 pgoff_t page_cache_next_miss(struct address_space *mapping, in page_cache_next_miss() 1813 pgoff_t index, unsigned long max_scan) in page_cache_next_miss() 1849 pgoff_t page_cache_prev_miss(struct address_space *mapping, in page_cache_prev_miss() [all …]
|
| H A D | readahead.c | 332 pgoff_t end_index; /* The last page we want to read */ in do_page_cache_ra() 459 static inline int ra_alloc_folio(struct readahead_control *ractl, pgoff_t index, in ra_alloc_folio() 460 pgoff_t mark, unsigned int order, gfp_t gfp) in ra_alloc_folio() 485 pgoff_t start = readahead_index(ractl); in page_cache_ra_order() 486 pgoff_t index = start; in page_cache_ra_order() 488 pgoff_t limit = (i_size_read(mapping->host) - 1) >> PAGE_SHIFT; in page_cache_ra_order() 489 pgoff_t mark; in page_cache_ra_order() 580 pgoff_t index = readahead_index(ractl); in page_cache_sync_ra() 584 pgoff_t prev_index, miss; in page_cache_sync_ra() 658 pgoff_t index = readahead_index(ractl); in page_cache_async_ra() [all …]
|
| H A D | shmem.c | 108 pgoff_t start; /* start of range currently being fallocated */ 109 pgoff_t next; /* the next page offset to be fallocated */ 110 pgoff_t nr_falloced; /* how many new pages have been fallocated */ 111 pgoff_t nr_unswapped; /* how often writeout refused to swap out */ 161 static int shmem_swapin_folio(struct inode *inode, pgoff_t index, 499 pgoff_t index, void *expected, void *replacement) in shmem_replace_entry() 521 static int shmem_confirm_swap(struct address_space *mapping, pgoff_t index, in shmem_confirm_swap() 606 unsigned long within_size_orders, pgoff_t index, in shmem_get_orders_within_size() 609 pgoff_t aligned_index; in shmem_get_orders_within_size() 627 static unsigned int shmem_huge_global_enabled(struct inode *inode, pgoff_t inde [all...] |
| H A D | internal.h | 616 struct file *file, pgoff_t index, unsigned long nr_to_read) in force_page_cache_readahead() 622 unsigned find_lock_entries(struct address_space *mapping, pgoff_t *start, 623 pgoff_t end, struct folio_batch *fbatch, pgoff_t *indices); 624 unsigned find_get_entries(struct address_space *mapping, pgoff_t *start, 625 pgoff_t end, struct folio_batch *fbatch, pgoff_t *indices); 631 pgoff_t start, pgoff_t end, unsigned long *nr_failed); 937 pgoff_t pgoff_folio, pgoff_vma_start; in folio_within_range() 1019 pgoff_t pgoff, pgoff_t pgoff_start, unsigned long nr_pages) in __vma_address() 1049 pgoff_t pgoff, unsigned long nr_pages) in vma_filebacked_address() 1069 pgoff_t pgoff_anon, unsigned long nr_pages) in vma_anon_address() [all …]
|
| H A D | swap.h | 123 struct swap_info_struct *si, pgoff_t offset) in __swap_offset_to_cluster() 317 struct mempolicy *mpol, pgoff_t ilx); 331 struct mempolicy *mpol, pgoff_t ilx); 335 struct vm_fault *vmf, struct mempolicy *mpol, pgoff_t ilx); 403 gfp_t gfp_mask, struct mempolicy *mpol, pgoff_t ilx) in swap_cluster_readahead() 416 struct vm_fault *vmf, struct mempolicy *mpol, pgoff_t ilx) in swapin_sync()
|
| H A D | swap_state.c | 412 struct mempolicy *mpol, pgoff_t ilx) in __swap_cache_alloc() 516 struct mempolicy *mpol, pgoff_t ilx) in swap_cache_alloc_folio() 644 pgoff_t ilx, bool readahead) in swap_cache_read_folio() 684 struct vm_fault *vmf, struct mempolicy *mpol, pgoff_t ilx) in swapin_sync() 715 pgoff_t ilx; in read_swap_cache_async() 731 struct mempolicy *mpol, pgoff_t ilx) in swap_cache_read_folio_sync() 821 struct mempolicy *mpol, pgoff_t ilx) in swap_cluster_readahead() 916 struct mempolicy *mpol, pgoff_t targ_ilx, struct vm_fault *vmf) in swap_vma_readahead() 924 pgoff_t ilx = targ_ilx; in swap_vma_readahead() 991 pgoff_t ilx; in swapin_readahead()
|
| H A D | folio-compat.c | 71 pgoff_t index, gfp_t gfp) in add_to_page_cache_lru() 78 struct page *pagecache_get_page(struct address_space *mapping, pgoff_t index, in pagecache_get_page()
|
| /linux/drivers/gpu/drm/ttm/ |
| H A D | ttm_backup.c | 17 static unsigned long ttm_backup_shmem_idx_to_handle(pgoff_t idx) in ttm_backup_shmem_idx_to_handle() 22 static pgoff_t ttm_backup_handle_to_shmem_idx(pgoff_t handle) in ttm_backup_handle_to_shmem_idx() 32 void ttm_backup_drop(struct file *backup, pgoff_t handle) in ttm_backup_drop() 54 pgoff_t handle, bool intr, gfp_t additional_gfp) in ttm_backup_copy_page() 58 pgoff_t idx = ttm_backup_handle_to_shmem_idx(handle); in ttm_backup_copy_page() 104 unsigned int order, bool writeback, pgoff_t idx, in ttm_backup_backup_folio() 106 pgoff_t *nr_pages_backed) in ttm_backup_backup_folio()
|
| /linux/include/drm/ttm/ |
| H A D | ttm_backup.h | 55 void ttm_backup_drop(struct file *backup, pgoff_t handle); 58 pgoff_t handle, bool intr, gfp_t additional_gfp); 62 unsigned int order, bool writeback, pgoff_t idx, 64 pgoff_t *nr_pages_backed);
|
| /linux/virt/kvm/ |
| H A D | guest_memfd.c | 54 static inline kvm_pfn_t folio_file_pfn(struct folio *folio, pgoff_t index) in folio_file_pfn() 59 static pgoff_t kvm_gmem_get_index(struct kvm_memory_slot *slot, gfn_t gfn) in kvm_gmem_get_index() 64 static bool kvm_gmem_is_private_mem(struct inode *inode, pgoff_t index) in __kvm_gmem_prepare_folio() 69 static bool kvm_gmem_is_shared_mem(struct inode *inode, pgoff_t index) in __kvm_gmem_prepare_folio() 83 static struct folio *kvm_gmem_get_folio(struct inode *inode, pgoff_t index) 123 static void __kvm_gmem_invalidate_start(struct gmem_file *f, pgoff_t start, in kvm_gmem_get_folio() 124 pgoff_t end, in kvm_gmem_get_folio() 133 pgoff_t pgoff = slot->gmem.pgoff; in kvm_gmem_get_folio() 164 static void kvm_gmem_invalidate_start(struct inode *inode, pgoff_t start, in __kvm_gmem_invalidate_begin() 165 pgoff_t en in __kvm_gmem_invalidate_begin() [all...] |
| /linux/drivers/dma-buf/ |
| H A D | udmabuf.c | 28 pgoff_t pagecount; 39 pgoff_t nr_pinned; 51 pgoff_t pgoff = vmf->pgoff; in udmabuf_vm_fault() 183 pgoff_t i; in unpin_all_folios() 191 static __always_inline int init_udmabuf(struct udmabuf *ubuf, pgoff_t pgcnt) in init_udmabuf() 307 pgoff_t nr_pinned = ubuf->nr_pinned; in udmabuf_pin_folios() 308 pgoff_t upgcnt = ubuf->pagecount; in udmabuf_pin_folios() 310 pgoff_t pgoff, pgcnt; in udmabuf_pin_folios() 322 pgoff_t subpgoff = pgoff; in udmabuf_pin_folios() 356 pgoff_t pgcnt = 0, pglimit; in udmabuf_create() [all …]
|
| /linux/tools/testing/vma/include/ |
| H A D | dup.h | 484 pgoff_t pgoff; 526 pgoff_t pgoff; 667 int (*mapped)(unsigned long start, unsigned long end, pgoff_t pgoff, 682 pgoff_t start_pgoff, pgoff_t end_pgoff); 725 unsigned long addr, pgoff_t *ilx); 1328 static inline pgoff_t vma_start_pgoff(const struct vm_area_struct *vma) in vma_start_pgoff() 1333 static inline pgoff_t vma_end_pgoff(const struct vm_area_struct *vma) in vma_end_pgoff() 1338 static inline pgoff_t vma_start_anon_pgoff(const struct vm_area_struct *vma) in vma_start_anon_pgoff() 1340 pgoff_t pgoff = 0; in vma_start_anon_pgoff() 1350 static inline pgoff_t vma_end_anon_pgoff(const struct vm_area_struct *vma) in vma_end_anon_pgoff() [all …]
|
| /linux/tools/testing/vma/ |
| H A D | shared.h | 111 pgoff_t pgoff, vma_flags_t vma_flags); 119 pgoff_t pgoff, vma_flags_t vma_flags);
|
| /linux/drivers/md/ |
| H A D | dm-linear.c | 162 static struct dax_device *linear_dax_pgoff(struct dm_target *ti, pgoff_t *pgoff) in linear_dax_pgoff() 171 static long linear_dax_direct_access(struct dm_target *ti, pgoff_t pgoff, in linear_dax_direct_access() 180 static int linear_dax_zero_page_range(struct dm_target *ti, pgoff_t pgoff, in linear_dax_zero_page_range() 188 static size_t linear_dax_recovery_write(struct dm_target *ti, pgoff_t pgoff, in linear_dax_recovery_write()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_pt_walk.c | 36 static bool xe_pt_next(pgoff_t *offset, u64 *addr, u64 next, u64 end, in xe_pt_next() 39 pgoff_t step = 1; in xe_pt_next() 76 pgoff_t offset = xe_pt_offset(addr, level, walk); in xe_pt_walk_range()
|
| /linux/fs/ |
| H A D | dax.c | 128 pgoff_t entry_start; 607 dax_entry_t dax_lock_mapping_entry(struct address_space *mapping, pgoff_t index, in dax_lock_mapping_entry() 650 void dax_unlock_mapping_entry(struct address_space *mapping, pgoff_t index, in dax_unlock_mapping_entry() 800 pgoff_t start_idx = start >> PAGE_SHIFT; in dax_layout_busy_page_range() 801 pgoff_t end_idx; in dax_layout_busy_page_range() 856 pgoff_t index, bool trunc) in __dax_invalidate_entry() 881 pgoff_t start, pgoff_t end) in __dax_clear_dirty_range() 913 int dax_delete_mapping_entry(struct address_space *mapping, pgoff_t index) in dax_delete_mapping_entry() 932 pgoff_t start_idx = start >> PAGE_SHIFT; in dax_delete_mapping_range() 933 pgoff_t end_idx; in dax_delete_mapping_range() [all …]
|
| /linux/fs/f2fs/ |
| H A D | file.c | 39 static int fill_zero(struct inode *inode, pgoff_t index, 46 pgoff_t index; in do_zero_post_eof_page() 480 struct dnode_of_data *dn, pgoff_t index, int whence) in __found_offset() 518 pgoff_t pgofs, end_offset; in f2fs_seek_block() 540 pgofs = (pgoff_t)(offset >> PAGE_SHIFT); in f2fs_seek_block() 778 pgoff_t fofs; in f2fs_truncate_data_blocks_range() 800 pgoff_t index = from >> PAGE_SHIFT; in truncate_partial_data_page() 837 pgoff_t free_from; in f2fs_do_truncate_blocks() 849 free_from = (pgoff_t)F2FS_BLK_ALIGN(from); in f2fs_do_truncate_blocks() 1288 static int fill_zero(struct inode *inode, pgoff_t index, in fill_zero() [all …]
|
| H A D | f2fs.h | 846 pgoff_t *m_next_pgofs; /* point next possible non-hole pgofs */ 847 pgoff_t *m_next_extent; /* point to next possible extent */ 988 pgoff_t donate_start, donate_end; /* inclusive */ 1675 pgoff_t cluster_idx; /* cluster index number */ 1706 pgoff_t cluster_idx; /* cluster index number */ 1815 pgoff_t page_eio_ofs[NR_PAGE_TYPE]; /* EIO page offset */ 2259 pgoff_t index) in F2FS_SUPER_BLOCK() 2261 pgoff_t idx_in_folio = index % folio_nr_pages(folio); in F2FS_SUPER_BLOCK() 3097 pgoff_t index, bool for_write) in f2fs_grab_cache_folio() 3129 struct address_space *mapping, pgoff_t index, in f2fs_filemap_get_folio() [all …]
|