| /mm/ |
| A D | cma.c | 92 cma->available_count += count; in cma_clear_bitmap() 297 cma->ranges[0].count = cma->count; in cma_init_reserved_mem() 775 cma->count); in cma_debug_show_areas() 841 count, align); in cma_range_alloc() 858 if (!cma || !cma->count) in __cma_alloc() 864 if (!count) in __cma_alloc() 937 unsigned long count) in cma_pages_valid() argument 944 if (!cma || !pages || count > cma->count) in cma_pages_valid() 977 unsigned long count) in cma_release() argument 989 end_pfn = pfn + count; in cma_release() [all …]
|
| A D | maccess.c | 90 if (unlikely(count <= 0)) in strncpy_from_kernel_nofault() 92 if (!copy_from_kernel_nofault_allowed(unsafe_addr, count)) in strncpy_from_kernel_nofault() 100 } while (dst[-1] && src - unsafe_addr < count); in strncpy_from_kernel_nofault() 184 long count) in strncpy_from_user_nofault() argument 188 if (unlikely(count <= 0)) in strncpy_from_user_nofault() 192 ret = strncpy_from_user(dst, unsafe_addr, count); in strncpy_from_user_nofault() 195 if (ret >= count) { in strncpy_from_user_nofault() 196 ret = count; in strncpy_from_user_nofault() 226 ret = strnlen_user(unsafe_addr, count); in strnlen_user_nofault() 232 void __copy_overflow(int size, unsigned long count) in __copy_overflow() argument [all …]
|
| A D | page_owner.c | 475 count[MIGRATE_MOVABLE]++; in pagetypeinfo_showmixedcount_print() 477 count[pageblock_mt]++; in pagetypeinfo_showmixedcount_print() 492 seq_printf(m, "%12lu ", count[i]); in pagetypeinfo_showmixedcount_print() 543 count = min_t(size_t, count, PAGE_SIZE); in print_page_owner() 544 kbuf = kmalloc(count, GFP_KERNEL); in print_page_owner() 548 ret = scnprintf(kbuf, count, in print_page_owner() 567 if (ret >= count) in print_page_owner() 579 if (ret >= count) in print_page_owner() 764 unsigned long count = 0; in init_pages_in_zone() local 819 count++; in init_pages_in_zone() [all …]
|
| A D | cma_debug.c | 39 *val = cma->count - cma->available_count; in cma_used_get() 90 static int cma_free_mem(struct cma *cma, int count) in cma_free_mem() argument 94 while (count) { in cma_free_mem() 99 if (mem->n <= count) { in cma_free_mem() 101 count -= mem->n; in cma_free_mem() 104 cma_release(cma, mem->p, count); in cma_free_mem() 105 mem->p += count; in cma_free_mem() 106 mem->n -= count; in cma_free_mem() 107 count = 0; in cma_free_mem() 138 p = cma_alloc(cma, count, 0, false); in cma_alloc_mem() [all …]
|
| A D | swapfile.c | 195 if (swap_count(count) != 1 && swap_count(count) != SWAP_MAP_SHMEM) in swap_is_last_map() 625 VM_BUG_ON(!ci->count || ci->count == SWAPFILE_CLUSTER); in partial_free_cluster() 673 ci->count++; in inc_cluster_info_page() 1379 count = 0; in swap_entry_put_locked() 1387 count--; in swap_entry_put_locked() 1493 if (count != 1 && count != SWAP_MAP_SHMEM) in swap_entries_put_map() 1552 return (count == SWAP_HAS_CACHE) || (count == 1) || in swap_is_last_ref() 1642 int count; in swap_entry_swapped() local 1693 return count; in swp_swapcount() 2278 if (count && swap_count(count) != SWAP_MAP_BAD) in find_next_to_unuse() [all …]
|
| A D | page_idle.c | 121 loff_t pos, size_t count) in page_idle_bitmap_read() argument 128 if (pos % BITMAP_CHUNK_SIZE || count % BITMAP_CHUNK_SIZE) in page_idle_bitmap_read() 135 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_read() 166 loff_t pos, size_t count) in page_idle_bitmap_write() argument 173 if (pos % BITMAP_CHUNK_SIZE || count % BITMAP_CHUNK_SIZE) in page_idle_bitmap_write() 180 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_write()
|
| A D | backing-dev.c | 262 const char *buf, size_t count) in read_ahead_kb_store() argument 274 return count; in read_ahead_kb_store() 290 struct device_attribute *attr, const char *buf, size_t count) in min_ratio_store() argument 302 ret = count; in min_ratio_store() 309 struct device_attribute *attr, const char *buf, size_t count) in min_ratio_fine_store() argument 321 ret = count; in min_ratio_fine_store() 340 ret = count; in max_ratio_store() 359 ret = count; in max_ratio_fine_store() 387 ret = count; in min_bytes_store() 415 ret = count; in max_bytes_store() [all …]
|
| A D | filemap.c | 2868 if (!count) in generic_file_read_iter() 2884 count -= retval; in generic_file_read_iter() 3669 count++; in filemap_map_folio_range() 3672 if (count) { in filemap_map_folio_range() 3674 *rss += count; in filemap_map_folio_range() 3680 count++; in filemap_map_folio_range() 3681 page += count; in filemap_map_folio_range() 3682 vmf->pte += count; in filemap_map_folio_range() 3684 count = 0; in filemap_map_folio_range() 3687 if (count) { in filemap_map_folio_range() [all …]
|
| A D | numa_memblks.c | 511 int count = 0; in numa_fill_memblks() local 524 blk[count] = &mi->blk[i]; in numa_fill_memblks() 525 count++; in numa_fill_memblks() 528 if (!count) in numa_fill_memblks() 532 sort(&blk[0], count, sizeof(blk[0]), cmp_memblk, NULL); in numa_fill_memblks() 536 blk[count - 1]->end = max(blk[count - 1]->end, end); in numa_fill_memblks() 543 for (int i = 1; i < count; i++) { in numa_fill_memblks()
|
| A D | ksm.c | 3341 return count; in sleep_millisecs_store() 3367 return count; in pages_to_scan_store() 3415 return count; in run_store() 3495 return count; in use_zero_pages_store() 3647 return count; in stable_node_chains_prune_millisecs_store() 3676 return count; in smart_scan_store() 3710 return count; in advisor_mode_store() 3732 return count; in advisor_max_cpu_store() 3754 return count; in advisor_min_pages_to_scan_store() 3776 return count; in advisor_max_pages_to_scan_store() [all …]
|
| A D | slab_common.c | 1031 unsigned int count) in freelist_randomize() argument 1036 for (i = 0; i < count; i++) in freelist_randomize() 1040 for (i = count - 1; i > 0; i--) { in freelist_randomize() 2093 unsigned long count = 0; in kfree_rcu_shrink_count() local 2099 count += krc_count(krcp); in kfree_rcu_shrink_count() 2104 return count == 0 ? SHRINK_EMPTY : count; in kfree_rcu_shrink_count() 2113 int count; in kfree_rcu_shrink_scan() local 2116 count = krc_count(krcp); in kfree_rcu_shrink_scan() 2117 count += drain_page_cache(krcp); in kfree_rcu_shrink_scan() 2120 sc->nr_to_scan -= count; in kfree_rcu_shrink_scan() [all …]
|
| A D | cma.h | 28 unsigned long count; member 40 unsigned long count; member 80 return cmr->count >> cma->order_per_bit; in cma_bitmap_maxno()
|
| A D | hugetlb_cma.c | 94 int nid, count = 0; in cmdline_parse_hugetlb_cma() local 99 if (sscanf(s, "%lu%n", &tmp, &count) != 1) in cmdline_parse_hugetlb_cma() 102 if (s[count] == ':') { in cmdline_parse_hugetlb_cma() 107 s += count + 1; in cmdline_parse_hugetlb_cma()
|
| A D | vmalloc.c | 3523 area->nr_pages = count; in vmap() 4234 size_t remains = count; in zero_iter() 4247 return count - remains; in zero_iter() 4259 size_t remains = count; in aligned_vread_iter() 4292 return count - remains; in aligned_vread_iter() 4318 remains = count; in vmap_ram_vread_iter() 4377 return count - remains; in vmap_ram_vread_iter() 4416 if ((unsigned long) addr + count < count) in vread_iter() 4419 remains = count; in vread_iter() 4502 return count - remains; in vread_iter() [all …]
|
| A D | early_ioremap.c | 83 int count = 0; in check_early_ioremap_leak() local 88 count++; in check_early_ioremap_leak() 90 if (WARN(count, KERN_WARNING in check_early_ioremap_leak() 93 count)) in check_early_ioremap_leak()
|
| A D | mlock.c | 310 unsigned int count = (end - addr) >> PAGE_SHIFT; in folio_mlock_step() local 316 return folio_pte_batch(folio, pte, ptent, count); in folio_mlock_step() 575 unsigned long count = 0; in count_mm_mlocked_page_nr() local 588 count -= (start - vma->vm_start); in count_mm_mlocked_page_nr() 590 count += end - vma->vm_start; in count_mm_mlocked_page_nr() 593 count += vma->vm_end - vma->vm_start; in count_mm_mlocked_page_nr() 597 return count >> PAGE_SHIFT; in count_mm_mlocked_page_nr()
|
| A D | page_alloc.c | 1455 count = min(pcp->count, count); in free_pcppages_bulk() 1462 while (count > 0) { in free_pcppages_bulk() 1485 count -= nr_pages; in free_pcppages_bulk() 2620 int count; in drain_pages_zone() local 2624 count = pcp->count; in drain_pages_zone() 2625 if (count) { in drain_pages_zone() 2630 count -= to_drain; in drain_pages_zone() 2633 } while (count); in drain_pages_zone() 2711 if (pcp->count) in __drain_all_pages() 2716 if (pcp->count) { in __drain_all_pages() [all …]
|
| A D | readahead.c | 693 ssize_t ksys_readahead(int fd, loff_t offset, size_t count) in ksys_readahead() argument 722 return vfs_fadvise(fd_file(f), offset, count, POSIX_FADV_WILLNEED); in ksys_readahead() 725 SYSCALL_DEFINE3(readahead, int, fd, loff_t, offset, size_t, count) in SYSCALL_DEFINE3() argument 727 return ksys_readahead(fd, offset, count); in SYSCALL_DEFINE3() 731 COMPAT_SYSCALL_DEFINE4(readahead, int, fd, compat_arg_u64_dual(offset), size_t, count) in COMPAT_SYSCALL_DEFINE4() argument 733 return ksys_readahead(fd, compat_arg_u64_glue(offset), count); in COMPAT_SYSCALL_DEFINE4()
|
| A D | memory-failure.c | 1032 int count = page_count(p) - 1; in has_extra_refcount() local 1035 count -= folio_nr_pages(page_folio(p)); in has_extra_refcount() 1037 if (count > 0) { in has_extra_refcount() 1834 unsigned long count, int mf_flags) in mf_dax_kill_procs() argument 1839 size_t end = index + count; in mf_dax_kill_procs() 1925 unsigned long count = 0; in __folio_free_raw_hwp() local 1934 count++; in __folio_free_raw_hwp() 1936 return count; in __folio_free_raw_hwp() 2559 unsigned long count; in unpoison_memory() local 2619 if (count == 0) in unpoison_memory() [all …]
|
| A D | hugetlb.c | 140 if (spool->count) in subpool_is_free() 176 spool->count = 1; in hugepage_new_subpool() 195 BUG_ON(!spool->count); in hugepage_put_subpool() 196 spool->count--; in hugepage_put_subpool() 4276 return count; in nr_overcommit_hugepages_store() 4417 return count; in demote_size_store() 4821 int count; in hugepages_setup() local 4848 count = 0; in hugepages_setup() 4860 p += count + 1; in hugepages_setup() 4871 p += count + 1; in hugepages_setup() [all …]
|
| A D | list_lru.c | 256 long count; in list_lru_count_one() local 260 count = l ? READ_ONCE(l->nr_items) : 0; in list_lru_count_one() 263 if (unlikely(count < 0)) in list_lru_count_one() 264 count = 0; in list_lru_count_one() 266 return count; in list_lru_count_one()
|
| A D | khugepaged.c | 143 const char *buf, size_t count) in scan_sleep_millisecs_store() argument 156 return count; in scan_sleep_millisecs_store() 170 const char *buf, size_t count) in alloc_sleep_millisecs_store() argument 183 return count; in alloc_sleep_millisecs_store() 196 const char *buf, size_t count) in pages_to_scan_store() argument 207 return count; in pages_to_scan_store() 238 const char *buf, size_t count) in defrag_store() argument 262 const char *buf, size_t count) in max_ptes_none_store() argument 273 return count; in max_ptes_none_store() 298 return count; in max_ptes_swap_store() [all …]
|
| /mm/damon/ |
| A D | sysfs-schemes.c | 437 ret = count; in type_store() 465 return count; in matching_store() 489 return count; in allow_store() 516 return count; in memcg_path_store() 773 return count; in nr_filters_store() 1259 return count; in nr_goals_store() 1473 return count; in ms_store() 1494 return count; in bytes_store() 1515 return count; in reset_interval_ms_store() 1833 return count; in nr_dests_store() [all …]
|
| A D | sysfs.c | 184 return count; in nr_regions_store() 263 return count; in pid_target_store() 388 return count; in nr_targets_store() 462 return count; in access_bp_store() 486 return count; in aggrs_store() 510 return count; in min_sample_us_store() 534 return count; in max_sample_us_store() 645 return count; in sample_us_store() 669 return count; in aggr_us_store() 693 return count; in update_us_store() [all …]
|
| A D | sysfs-common.c | 44 const char *buf, size_t count) in min_store() argument 56 return count; in min_store() 69 const char *buf, size_t count) in max_store() argument 81 return count; in max_store()
|