Home
last modified time | relevance | path

Searched refs:off (Results 1 – 14 of 14) sorted by relevance

/mm/
Dpercpu.c290 static unsigned long pcpu_off_to_block_index(int off) in pcpu_off_to_block_index() argument
292 return off / PCPU_BITMAP_BLOCK_BITS; in pcpu_off_to_block_index()
295 static unsigned long pcpu_off_to_block_off(int off) in pcpu_off_to_block_off() argument
297 return off & (PCPU_BITMAP_BLOCK_BITS - 1); in pcpu_off_to_block_off()
300 static unsigned long pcpu_block_off_to_off(int index, int off) in pcpu_block_off_to_off() argument
302 return index * PCPU_BITMAP_BLOCK_BITS + off; in pcpu_block_off_to_off()
1227 static int pcpu_free_area(struct pcpu_chunk *chunk, int off) in pcpu_free_area() argument
1237 bit_off = off / PCPU_MIN_ALLOC_SIZE; in pcpu_free_area()
1604 struct pcpu_chunk *chunk, int off, in pcpu_memcg_post_alloc_hook() argument
1611 chunk->obj_cgroups[off >> PCPU_MIN_ALLOC_SHIFT] = objcg; in pcpu_memcg_post_alloc_hook()
[all …]
Dzsmalloc.c982 unsigned long off = 0; in init_zspage() local
990 set_first_obj_offset(page, off); in init_zspage()
993 link = (struct link_free *)vaddr + off / sizeof(*link); in init_zspage()
995 while ((off += class->size) < PAGE_SIZE) { in init_zspage()
1017 off %= PAGE_SIZE; in init_zspage()
1133 struct page *pages[2], int off, int size) in __zs_map_object() argument
1146 sizes[0] = PAGE_SIZE - off; in __zs_map_object()
1151 memcpy(buf, addr + off, sizes[0]); in __zs_map_object()
1161 struct page *pages[2], int off, int size) in __zs_unmap_object() argument
1174 off += ZS_HANDLE_SIZE; in __zs_unmap_object()
[all …]
Dslab.h366 unsigned long off; in memcg_slab_post_alloc_hook() local
382 off = obj_to_index(s, page, p[i]); in memcg_slab_post_alloc_hook()
384 page_obj_cgroups(page)[off] = objcg; in memcg_slab_post_alloc_hook()
400 unsigned int off; in memcg_slab_free_hook() local
419 off = obj_to_index(s, page, p[i]); in memcg_slab_free_hook()
420 objcg = page_obj_cgroups(page)[off]; in memcg_slab_free_hook()
424 page_obj_cgroups(page)[off] = NULL; in memcg_slab_free_hook()
Dhugetlb_cgroup.c499 char *buf, size_t nbytes, loff_t off, in hugetlb_cgroup_write() argument
537 char *buf, size_t nbytes, loff_t off) in hugetlb_cgroup_write_legacy() argument
539 return hugetlb_cgroup_write(of, buf, nbytes, off, "-1"); in hugetlb_cgroup_write_legacy()
543 char *buf, size_t nbytes, loff_t off) in hugetlb_cgroup_write_dfl() argument
545 return hugetlb_cgroup_write(of, buf, nbytes, off, "max"); in hugetlb_cgroup_write_dfl()
549 char *buf, size_t nbytes, loff_t off) in hugetlb_cgroup_reset() argument
Dhuge_memory.c530 loff_t off, unsigned long flags, unsigned long size) in __thp_get_unmapped_area() argument
532 loff_t off_end = off + len; in __thp_get_unmapped_area()
533 loff_t off_align = round_up(off, size); in __thp_get_unmapped_area()
540 if (len_pad < len || (off + len_pad) < off) in __thp_get_unmapped_area()
544 off >> PAGE_SHIFT, flags); in __thp_get_unmapped_area()
560 ret += (off - ret) & (size - 1); in __thp_get_unmapped_area()
568 loff_t off = (loff_t)pgoff << PAGE_SHIFT; in thp_get_unmapped_area() local
573 ret = __thp_get_unmapped_area(filp, addr, len, off, flags, PMD_SIZE); in thp_get_unmapped_area()
Dslub.c729 unsigned int off; /* Offset of last byte */ in print_trailer() local
751 off = get_info_end(s); in print_trailer()
754 off += 2 * sizeof(struct track); in print_trailer()
756 off += kasan_metadata_size(s); in print_trailer()
758 if (off != size_from_object(s)) in print_trailer()
760 print_section(KERN_ERR, "Padding ", p + off, in print_trailer()
761 size_from_object(s) - off); in print_trailer()
881 unsigned long off = get_info_end(s); /* The end of info */ in check_pad_bytes() local
885 off += 2 * sizeof(struct track); in check_pad_bytes()
887 off += kasan_metadata_size(s); in check_pad_bytes()
[all …]
Dmemcontrol.c2988 unsigned int off; in mem_cgroup_from_obj() local
2990 off = obj_to_index(page->slab_cache, page, p); in mem_cgroup_from_obj()
2991 objcg = page_obj_cgroups(page)[off]; in mem_cgroup_from_obj()
3562 loff_t off) in mem_cgroup_force_empty_write() argument
3878 char *buf, size_t nbytes, loff_t off) in mem_cgroup_write() argument
3922 size_t nbytes, loff_t off) in mem_cgroup_reset() argument
4901 char *buf, size_t nbytes, loff_t off) in memcg_write_event_control() argument
6320 char *buf, size_t nbytes, loff_t off) in memory_min_write() argument
6343 char *buf, size_t nbytes, loff_t off) in memory_low_write() argument
6366 char *buf, size_t nbytes, loff_t off) in memory_high_write() argument
[all …]
Dmemory.c672 unsigned long off; in _vm_normal_page() local
673 off = (addr - vma->vm_start) >> PAGE_SHIFT; in _vm_normal_page()
674 if (pfn == vma->vm_pgoff + off) in _vm_normal_page()
715 unsigned long off; in vm_normal_page_pmd() local
716 off = (addr - vma->vm_start) >> PAGE_SHIFT; in vm_normal_page_pmd()
717 if (pfn == vma->vm_pgoff + off) in vm_normal_page_pmd()
4346 int off; in do_fault_around() local
4352 off = ((vmf->address - address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); in do_fault_around()
4353 start_pgoff -= off; in do_fault_around()
Dvmstat.c1778 unsigned long off = l - (unsigned long *)m->private; in vmstat_show() local
1780 seq_puts(m, vmstat_text[off]); in vmstat_show()
1784 if (off == NR_VMSTAT_ITEMS - 1) { in vmstat_show()
Dmempolicy.c1996 unsigned long off; in interleave_nid() local
2006 off = vma->vm_pgoff >> (shift - PAGE_SHIFT); in interleave_nid()
2007 off += (addr - vma->vm_start) >> shift; in interleave_nid()
2008 return offset_il_node(pol, off); in interleave_nid()
Dshmem.c1899 pgoff_t off; in shmem_getpage_gfp() local
1901 off = round_up(index, HPAGE_PMD_NR); in shmem_getpage_gfp()
1904 i_size >> PAGE_SHIFT >= off) in shmem_getpage_gfp()
4078 pgoff_t off; in shmem_huge_enabled() local
4092 off = round_up(vma->vm_pgoff, HPAGE_PMD_NR); in shmem_huge_enabled()
4095 i_size >> PAGE_SHIFT >= off) in shmem_huge_enabled()
Dvmalloc.c3033 unsigned long off; in remap_vmalloc_range_partial() local
3036 if (check_shl_overflow(pgoff, PAGE_SHIFT, &off)) in remap_vmalloc_range_partial()
3051 if (check_add_overflow(size, off, &end_index) || in remap_vmalloc_range_partial()
3054 kaddr += off; in remap_vmalloc_range_partial()
DKconfig.debug46 can be overridden by debug_pagealloc=off|on.
DKconfig368 more than it requires. To deal with this, mmap() is able to trim off
371 If trimming is enabled, the excess is trimmed off and returned to the