/mm/ |
D | swap_cgroup.c | 11 unsigned long length; member 47 for (idx = 0; idx < ctrl->length; idx++) { in swap_cgroup_prepare() 171 unsigned long length; in swap_cgroup_swapon() local 174 length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); in swap_cgroup_swapon() 175 array_size = length * sizeof(void *); in swap_cgroup_swapon() 183 ctrl->length = length; in swap_cgroup_swapon() 189 ctrl->length = 0; in swap_cgroup_swapon() 206 unsigned long i, length; in swap_cgroup_swapoff() local 212 length = ctrl->length; in swap_cgroup_swapoff() 214 ctrl->length = 0; in swap_cgroup_swapoff() [all …]
|
D | vmalloc.c | 863 unsigned long length; in find_vmap_lowest_match() local 869 length = size + align - 1; in find_vmap_lowest_match() 874 if (get_subtree_max_size(node->rb_left) >= length && in find_vmap_lowest_match() 886 if (get_subtree_max_size(node->rb_right) >= length) { in find_vmap_lowest_match() 901 if (get_subtree_max_size(node->rb_right) >= length && in find_vmap_lowest_match() 2788 unsigned long offset, length; in aligned_vread() local 2791 length = PAGE_SIZE - offset; in aligned_vread() 2792 if (length > count) in aligned_vread() 2793 length = count; in aligned_vread() 2808 memcpy(buf, map + offset, length); in aligned_vread() [all …]
|
D | mmap.c | 2009 unsigned long length, low_limit, high_limit, gap_start, gap_end; in unmapped_area() local 2012 length = info->length + info->align_mask; in unmapped_area() 2013 if (length < info->length) in unmapped_area() 2017 if (info->high_limit < length) in unmapped_area() 2019 high_limit = info->high_limit - length; in unmapped_area() 2023 low_limit = info->low_limit + length; in unmapped_area() 2029 if (vma->rb_subtree_gap < length) in unmapped_area() 2039 if (left->rb_subtree_gap >= length) { in unmapped_area() 2051 gap_end > gap_start && gap_end - gap_start >= length) in unmapped_area() 2059 if (right->rb_subtree_gap >= length) { in unmapped_area() [all …]
|
D | mmu_notifier.c | 961 unsigned long length, const struct mmu_interval_notifier_ops *ops) in __mmu_interval_notifier_insert() argument 971 if (length == 0 || in __mmu_interval_notifier_insert() 972 check_add_overflow(start, length - 1, in __mmu_interval_notifier_insert() 1042 unsigned long length, in mmu_interval_notifier_insert() argument 1058 start, length, ops); in mmu_interval_notifier_insert() 1064 unsigned long start, unsigned long length, in mmu_interval_notifier_insert_locked() argument 1080 start, length, ops); in mmu_interval_notifier_insert_locked()
|
D | util.c | 226 long length; in strndup_user() local 228 length = strnlen_user(s, n); in strndup_user() 230 if (!length) in strndup_user() 233 if (length > n) in strndup_user() 236 p = memdup_user(s, length); in strndup_user() 241 p[length - 1] = '\0'; in strndup_user()
|
D | zswap.c | 165 unsigned int length; member 342 if (!entry->length) in zswap_free_entry() 923 ret = crypto_comp_decompress(tfm, src, entry->length, in zswap_writeback_entry() 1061 entry->length = 0; in zswap_frontswap_store() 1111 entry->length = dlen; in zswap_frontswap_store() 1166 if (!entry->length) { in zswap_frontswap_load() 1180 ret = crypto_comp_decompress(tfm, src, entry->length, dst, &dlen); in zswap_frontswap_load()
|
D | slub.c | 541 unsigned int length) in print_section() argument 545 16, 1, kasan_reset_tag((void *)addr), length, 1); in print_section() 903 int length; in slab_pad_check() local 910 length = page_size(page); in slab_pad_check() 911 end = start + length; in slab_pad_check() 912 remainder = length % s->size; in slab_pad_check() 5066 size_t length) in min_partial_store() argument 5076 return length; in min_partial_store() 5086 size_t length) in cpu_partial_store() argument 5099 return length; in cpu_partial_store() [all …]
|
D | hugetlb.c | 3440 void *buffer, size_t *length, in proc_hugetlb_doulongvec_minmax() argument 3452 return proc_doulongvec_minmax(&dup_table, write, buffer, length, ppos); in proc_hugetlb_doulongvec_minmax() 3457 void *buffer, size_t *length, loff_t *ppos) in hugetlb_sysctl_handler_common() argument 3466 ret = proc_hugetlb_doulongvec_minmax(table, write, buffer, length, ppos, in hugetlb_sysctl_handler_common() 3473 NUMA_NO_NODE, tmp, *length); in hugetlb_sysctl_handler_common() 3479 void *buffer, size_t *length, loff_t *ppos) in hugetlb_sysctl_handler() argument 3483 buffer, length, ppos); in hugetlb_sysctl_handler() 3488 void *buffer, size_t *length, loff_t *ppos) in hugetlb_mempolicy_sysctl_handler() argument 3491 buffer, length, ppos); in hugetlb_mempolicy_sysctl_handler() 3496 void *buffer, size_t *length, loff_t *ppos) in hugetlb_overcommit_handler() argument [all …]
|
D | truncate.c | 153 unsigned int length) in do_invalidatepage() argument 163 (*invalidatepage)(page, offset, length); in do_invalidatepage()
|
D | page_alloc.c | 5952 void *buffer, size_t *length, loff_t *ppos) in numa_zonelist_order_handler() argument 5956 return proc_dostring(table, write, buffer, length, ppos); in numa_zonelist_order_handler() 8275 void *buffer, size_t *length, loff_t *ppos) in postcore_initcall() 8279 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in postcore_initcall() 8291 void *buffer, size_t *length, loff_t *ppos) in watermark_scale_factor_sysctl_handler() argument 8295 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in watermark_scale_factor_sysctl_handler() 8321 void *buffer, size_t *length, loff_t *ppos) in sysctl_min_unmapped_ratio_sysctl_handler() argument 8325 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_min_unmapped_ratio_sysctl_handler() 8348 void *buffer, size_t *length, loff_t *ppos) in sysctl_min_slab_ratio_sysctl_handler() argument 8352 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_min_slab_ratio_sysctl_handler() [all …]
|
D | page_reporting.c | 80 unsigned int order = get_order(sg->length); in page_reporting_drain()
|
D | compaction.c | 2663 void *buffer, size_t *length, loff_t *ppos) in compaction_proactiveness_sysctl_handler() argument 2667 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in compaction_proactiveness_sysctl_handler() 2691 void *buffer, size_t *length, loff_t *ppos) in sysctl_compaction_handler() argument
|
D | vmstat.c | 79 void *buffer, size_t *length, loff_t *ppos) in sysctl_vm_numa_stat_handler() argument 86 ret = proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_vm_numa_stat_handler()
|
D | page-writeback.c | 1993 void *buffer, size_t *length, loff_t *ppos) in dirty_writeback_centisecs_handler() argument 1998 ret = proc_dointvec(table, write, buffer, length, ppos); in dirty_writeback_centisecs_handler()
|