Home
last modified time | relevance | path

Searched refs:nrpages (Results 1 – 25 of 54) sorted by relevance

123

/kernel/linux/linux-5.10/arch/sh/mm/
Dioremap_fixed.c52 unsigned int nrpages; in ioremap_fixed() local
79 nrpages = size >> PAGE_SHIFT; in ioremap_fixed()
80 if (nrpages > FIX_N_IOREMAPS) in ioremap_fixed()
88 while (nrpages > 0) { in ioremap_fixed()
93 --nrpages; in ioremap_fixed()
104 unsigned int nrpages; in iounmap_fixed() local
122 nrpages = map->size >> PAGE_SHIFT; in iounmap_fixed()
124 idx = FIX_IOREMAP_BEGIN + slot + nrpages - 1; in iounmap_fixed()
125 while (nrpages > 0) { in iounmap_fixed()
128 --nrpages; in iounmap_fixed()
/kernel/linux/linux-5.10/mm/
Dearly_ioremap.c110 unsigned int nrpages; in __early_ioremap() local
144 nrpages = size >> PAGE_SHIFT; in __early_ioremap()
145 if (WARN_ON(nrpages > NR_FIX_BTMAPS)) in __early_ioremap()
152 while (nrpages > 0) { in __early_ioremap()
159 --nrpages; in __early_ioremap()
172 unsigned int nrpages; in early_iounmap() local
201 nrpages = PAGE_ALIGN(offset + size) >> PAGE_SHIFT; in early_iounmap()
204 while (nrpages > 0) { in early_iounmap()
210 --nrpages; in early_iounmap()
Dfadvise.c40 unsigned long nrpages; in generic_fadvise() local
103 nrpages = end_index - start_index + 1; in generic_fadvise()
104 if (!nrpages) in generic_fadvise()
105 nrpages = ~0UL; in generic_fadvise()
107 force_page_cache_readahead(mapping, file, start_index, nrpages); in generic_fadvise()
Dmprotect.c414 long nrpages = (end - start) >> PAGE_SHIFT; in mprotect_fixup() local
449 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup()
450 may_expand_vm(mm, oldflags, nrpages)) in mprotect_fixup()
454 charged = nrpages; in mprotect_fixup()
509 vm_stat_account(mm, oldflags, -nrpages); in mprotect_fixup()
510 vm_stat_account(mm, newflags, nrpages); in mprotect_fixup()
Dtruncate.c300 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in truncate_inode_pages_range()
489 unsigned long nrpages; in truncate_inode_pages_final() local
505 nrpages = mapping->nrpages; in truncate_inode_pages_final()
509 if (nrpages || nrexceptional) { in truncate_inode_pages_final()
714 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in invalidate_inode_pages2_range()
Dswap_state.c91 ret += spaces[j].nrpages; in total_swapcache_pages()
164 address_space->nrpages += nr; in add_to_swap_cache()
204 address_space->nrpages -= nr; in __delete_from_swap_cache()
Dfilemap.c154 mapping->nrpages -= nr; in page_cache_delete()
340 mapping->nrpages -= total_pages; in page_cache_delete_batch()
633 return mapping->nrpages; in mapping_needs_writeback()
890 mapping->nrpages++; in __add_to_page_cache_locked()
3251 if (written > 0 && mapping->nrpages && in generic_file_direct_write()
/kernel/linux/linux-5.10/arch/x86/mm/
Dioremap.c46 unsigned long nrpages = size >> PAGE_SHIFT; in ioremap_change_attr() local
52 err = _set_memory_uc(vaddr, nrpages); in ioremap_change_attr()
55 err = _set_memory_wc(vaddr, nrpages); in ioremap_change_attr()
58 err = _set_memory_wt(vaddr, nrpages); in ioremap_change_attr()
61 err = _set_memory_wb(vaddr, nrpages); in ioremap_change_attr()
/kernel/linux/linux-5.10/fs/
Ddrop_caches.c30 (inode->i_mapping->nrpages == 0 && !need_resched())) { in drop_pagecache_sb()
Dblock_dev.c82 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in kill_bdev()
94 if (mapping->nrpages) { in invalidate_bdev()
967 ret += inode->i_mapping->nrpages; in nr_blockdev_pages()
2144 mapping->nrpages == 0) { in iterate_bdevs()
Ddirect-io.c291 dio->inode->i_mapping->nrpages) { in dio_complete()
358 dio->inode->i_mapping->nrpages); in dio_bio_end_aio()
/kernel/linux/linux-5.10/fs/gfs2/
Dglops.c547 unsigned long nrpages; in inode_go_dump() local
553 nrpages = inode->i_data.nrpages; in inode_go_dump()
562 (unsigned long long)i_size_read(inode), nrpages); in inode_go_dump()
Dglock.c276 GLOCK_BUG_ON(gl, mapping->nrpages || in __gfs2_glock_put()
2174 unsigned long nrpages = 0; in gfs2_dump_glock() local
2179 nrpages = mapping->nrpages; in gfs2_dump_glock()
2198 (int)gl->gl_lockref.count, gl->gl_hold_time, nrpages); in gfs2_dump_glock()
Dlog.c637 if (ip->i_inode.i_mapping->nrpages == 0) { in gfs2_ordered_write()
658 if (ip->i_inode.i_mapping->nrpages == 0) in gfs2_ordered_wait()
/kernel/linux/linux-5.10/fs/nilfs2/
Dpage.c327 smap->nrpages--; in nilfs_copy_back_pages()
338 dmap->nrpages++; in nilfs_copy_back_pages()
508 if (inode->i_mapping->nrpages == 0) in nilfs_find_uncommitted_extent()
/kernel/linux/linux-5.10/drivers/iommu/intel/
Diommu.c3523 unsigned long nrpages, uint64_t dma_mask) in intel_alloc_iova() argument
3543 nrpages = __roundup_pow_of_two(nrpages); in intel_alloc_iova()
3551 iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, in intel_alloc_iova()
3556 iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, in intel_alloc_iova()
3560 nrpages); in intel_alloc_iova()
3649 unsigned long nrpages; in intel_unmap() local
3662 nrpages = aligned_nrpages(dev_addr, size); in intel_unmap()
3664 last_pfn = start_pfn + nrpages - 1; in intel_unmap()
3673 nrpages, !freelist, 0); in intel_unmap()
3675 free_iova_fast(&domain->iovad, iova_pfn, dma_to_mm_pfn(nrpages)); in intel_unmap()
[all …]
/kernel/linux/linux-5.10/fs/f2fs/
Ddebug.c145 si->node_pages = NODE_MAPPING(sbi)->nrpages; in update_general_status()
147 si->meta_pages = META_MAPPING(sbi)->nrpages; in update_general_status()
295 unsigned npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info()
299 unsigned npages = META_MAPPING(sbi)->nrpages; in update_mem_info()
Dnode.c2749 int i, idx, last_offset, nrpages; in f2fs_restore_node_summary() local
2756 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { in f2fs_restore_node_summary()
2757 nrpages = min(last_offset - i, BIO_MAX_PAGES); in f2fs_restore_node_summary()
2760 f2fs_ra_meta_pages(sbi, addr, nrpages, META_POR, true); in f2fs_restore_node_summary()
2762 for (idx = addr; idx < addr + nrpages; idx++) { in f2fs_restore_node_summary()
2777 addr + nrpages); in f2fs_restore_node_summary()
/kernel/liteos_a/fs/proc/os_adapt/
Dfs_cache_proc.c107 if (mapping->nrpages == 0) { in PageCacheEntryProcess()
/kernel/liteos_a/kernel/base/vm/
Dlos_vm_filemap.c86 mapping->nrpages++; in OsPageCacheAdd()
99 fpage->mapping->nrpages--; in OsPageCacheDel()
/kernel/linux/linux-5.10/fs/nfs/
Dinode.c153 if (mapping->nrpages != 0) { in nfs_sync_mapping()
227 if (inode->i_mapping->nrpages == 0) in nfs_set_cache_invalid()
273 if (mapping->nrpages != 0) { in nfs_zap_mapping()
973 if (inode->i_mapping->nrpages == 0) in nfs_close_context()
1258 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
/kernel/linux/linux-5.10/fs/jffs2/
Ddir.c188 inode->i_mapping->nrpages = 0; in jffs2_create()
210 f->inocache->pino_nlink, inode->i_mapping->nrpages); in jffs2_create()
/kernel/linux/linux-5.10/drivers/block/
Dloop.c1379 if (size_changed && lo->lo_device->bd_inode->i_mapping->nrpages) { in loop_set_status()
1384 lo->lo_device->bd_inode->i_mapping->nrpages); in loop_set_status()
1625 if (lo->lo_device->bd_inode->i_mapping->nrpages) { in loop_set_block_size()
1629 lo->lo_device->bd_inode->i_mapping->nrpages); in loop_set_block_size()
/kernel/linux/linux-5.10/fs/orangefs/
Dfile.c504 #define mapping_nrpages(idata) ((idata)->nrpages)
/kernel/linux/linux-5.10/ipc/
Dshm.c937 *rss_add += pages_per_huge_page(h) * mapping->nrpages; in shm_add_rss_swap()
943 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap()
947 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap()

123