Home
last modified time | relevance | path

Searched refs:length (Results 1 – 12 of 12) sorted by relevance

/mm/
Dpage_cgroup.c330 unsigned long length; member
366 for (idx = 0; idx < ctrl->length; idx++) { in swap_cgroup_prepare()
470 unsigned long length; in swap_cgroup_swapon() local
476 length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); in swap_cgroup_swapon()
477 array_size = length * sizeof(void *); in swap_cgroup_swapon()
485 ctrl->length = length; in swap_cgroup_swapon()
491 ctrl->length = 0; in swap_cgroup_swapon()
509 unsigned long i, length; in swap_cgroup_swapoff() local
518 length = ctrl->length; in swap_cgroup_swapoff()
520 ctrl->length = 0; in swap_cgroup_swapoff()
[all …]
Dutil.c120 long length; in strndup_user() local
122 length = strnlen_user(s, n); in strndup_user()
124 if (!length) in strndup_user()
127 if (length > n) in strndup_user()
130 p = memdup_user(s, length); in strndup_user()
135 p[length - 1] = '\0'; in strndup_user()
Dmmap.c1751 unsigned long length, low_limit, high_limit, gap_start, gap_end; in unmapped_area() local
1754 length = info->length + info->align_mask; in unmapped_area()
1755 if (length < info->length) in unmapped_area()
1759 if (info->high_limit < length) in unmapped_area()
1761 high_limit = info->high_limit - length; in unmapped_area()
1765 low_limit = info->low_limit + length; in unmapped_area()
1771 if (vma->rb_subtree_gap < length) in unmapped_area()
1781 if (left->rb_subtree_gap >= length) { in unmapped_area()
1793 gap_end > gap_start && gap_end - gap_start >= length) in unmapped_area()
1801 if (right->rb_subtree_gap >= length) { in unmapped_area()
[all …]
Dfilemap_xip.c455 unsigned length; in xip_truncate_page() local
463 length = offset & (blocksize - 1); in xip_truncate_page()
466 if (!length) in xip_truncate_page()
469 length = blocksize - length; in xip_truncate_page()
480 memset(xip_mem + offset, 0, length); in xip_truncate_page()
Dvmalloc.c1882 unsigned long offset, length; in aligned_vread() local
1885 length = PAGE_SIZE - offset; in aligned_vread()
1886 if (length > count) in aligned_vread()
1887 length = count; in aligned_vread()
1902 memcpy(buf, map + offset, length); in aligned_vread()
1905 memset(buf, 0, length); in aligned_vread()
1907 addr += length; in aligned_vread()
1908 buf += length; in aligned_vread()
1909 copied += length; in aligned_vread()
1910 count -= length; in aligned_vread()
[all …]
Dslub.c501 static void print_section(char *text, u8 *addr, unsigned int length) in print_section() argument
504 length, 1); in print_section()
793 int length; in slab_pad_check() local
800 length = (PAGE_SIZE << compound_order(page)) - s->reserved; in slab_pad_check()
801 end = start + length; in slab_pad_check()
802 remainder = length % s->size; in slab_pad_check()
4401 const char *buf, size_t length) in order_store() argument
4414 return length; in order_store()
4429 size_t length) in min_partial_store() argument
4439 return length; in min_partial_store()
[all …]
Dzswap.c184 unsigned int length; member
585 entry->length, dst, &dlen); in zswap_writeback_entry()
707 entry->length = dlen; in zswap_frontswap_store()
763 ret = zswap_comp_op(ZSWAP_COMPOP_DECOMPRESS, src, entry->length, in zswap_frontswap_load()
Dhugetlb.c2290 void __user *buffer, size_t *length, loff_t *ppos) in hugetlb_sysctl_handler_common() argument
2301 ret = proc_doulongvec_minmax(table, write, buffer, length, ppos); in hugetlb_sysctl_handler_common()
2307 NUMA_NO_NODE, tmp, *length); in hugetlb_sysctl_handler_common()
2313 void __user *buffer, size_t *length, loff_t *ppos) in hugetlb_sysctl_handler() argument
2317 buffer, length, ppos); in hugetlb_sysctl_handler()
2322 void __user *buffer, size_t *length, loff_t *ppos) in hugetlb_mempolicy_sysctl_handler() argument
2325 buffer, length, ppos); in hugetlb_mempolicy_sysctl_handler()
2331 size_t *length, loff_t *ppos) in hugetlb_overcommit_handler() argument
2347 ret = proc_doulongvec_minmax(table, write, buffer, length, ppos); in hugetlb_overcommit_handler()
Dtruncate.c82 unsigned int length) in do_invalidatepage() argument
92 (*invalidatepage)(page, offset, length); in do_invalidatepage()
Dcompaction.c1506 void __user *buffer, size_t *length, loff_t *ppos) in sysctl_compaction_handler() argument
1515 void __user *buffer, size_t *length, loff_t *ppos) in sysctl_extfrag_handler() argument
1517 proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_extfrag_handler()
Dpage_alloc.c3486 void __user *buffer, size_t *length, in numa_zonelist_order_handler() argument
3501 ret = proc_dostring(table, write, buffer, length, ppos); in numa_zonelist_order_handler()
5875 void __user *buffer, size_t *length, loff_t *ppos) in module_init()
5879 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in module_init()
5892 void __user *buffer, size_t *length, loff_t *ppos) in sysctl_min_unmapped_ratio_sysctl_handler() argument
5897 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_min_unmapped_ratio_sysctl_handler()
5908 void __user *buffer, size_t *length, loff_t *ppos) in sysctl_min_slab_ratio_sysctl_handler() argument
5913 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_min_slab_ratio_sysctl_handler()
5934 void __user *buffer, size_t *length, loff_t *ppos) in lowmem_reserve_ratio_sysctl_handler() argument
5936 proc_dointvec_minmax(table, write, buffer, length, ppos); in lowmem_reserve_ratio_sysctl_handler()
[all …]
Dpage-writeback.c1658 void __user *buffer, size_t *length, loff_t *ppos) in dirty_writeback_centisecs_handler() argument
1660 proc_dointvec(table, write, buffer, length, ppos); in dirty_writeback_centisecs_handler()