/mm/ |
D | memblock.c | 167 static inline phys_addr_t memblock_cap_size(phys_addr_t base, phys_addr_t *size) in memblock_cap_size() argument 169 return *size = min(*size, PHYS_ADDR_MAX - base); in memblock_cap_size() 182 phys_addr_t base, phys_addr_t size) in memblock_overlaps_region() argument 186 memblock_cap_size(base, &size); in memblock_overlaps_region() 189 if (memblock_addrs_overlap(base, size, type->regions[i].base, in memblock_overlaps_region() 351 type->regions[0].base = 0; in memblock_remove_region() 512 if (this->base + this->size != next->base || in memblock_merge_regions() 516 BUG_ON(this->base + this->size > next->base); in memblock_merge_regions() 541 int idx, phys_addr_t base, in memblock_insert_region() argument 550 rgn->base = base; in memblock_insert_region() [all …]
|
D | page_ext.c | 119 static inline struct page_ext *get_entry(void *base, unsigned long index) in get_entry() argument 121 return base + page_ext_size * index; in get_entry() 179 struct page_ext *base; in lookup_page_ext() local 182 base = NODE_DATA(page_to_nid(page))->node_page_ext; in lookup_page_ext() 189 if (unlikely(!base)) in lookup_page_ext() 193 return get_entry(base, index); in lookup_page_ext() 199 struct page_ext *base; in alloc_node_page_ext() local 218 base = memblock_alloc_try_nid( in alloc_node_page_ext() 221 if (!base) in alloc_node_page_ext() 223 NODE_DATA(nid)->node_page_ext = base; in alloc_node_page_ext() [all …]
|
D | cma.c | 176 int __init cma_init_reserved_mem(phys_addr_t base, phys_addr_t size, in cma_init_reserved_mem() argument 190 if (!size || !memblock_is_region_reserved(base, size)) in cma_init_reserved_mem() 201 if (ALIGN(base, alignment) != base || ALIGN(size, alignment) != size) in cma_init_reserved_mem() 215 cma->base_pfn = PFN_DOWN(base); in cma_init_reserved_mem() 245 int __init cma_declare_contiguous_nid(phys_addr_t base, in cma_declare_contiguous_nid() argument 263 __func__, &size, &base, &limit, &alignment); in cma_declare_contiguous_nid() 284 if (fixed && base & (alignment - 1)) { in cma_declare_contiguous_nid() 287 &base, &alignment); in cma_declare_contiguous_nid() 290 base = ALIGN(base, alignment); in cma_declare_contiguous_nid() 294 if (!base) in cma_declare_contiguous_nid() [all …]
|
D | mapping_dirty_helpers.c | 64 struct wp_walk base; member 71 #define to_clean_walk(_wpwalk) container_of(_wpwalk, struct clean_walk, base) 332 .base = { .total = 0 }, in clean_record_shared_mapping_range() 341 &cwalk.base)); in clean_record_shared_mapping_range() 347 return cwalk.base.total; in clean_record_shared_mapping_range()
|
D | internal.h | 483 static inline struct page *mem_map_offset(struct page *base, int offset) in mem_map_offset() argument 486 return nth_page(base, offset); in mem_map_offset() 487 return base + offset; in mem_map_offset() 495 struct page *base, int offset) in mem_map_next() argument 498 unsigned long pfn = page_to_pfn(base) + offset; in mem_map_next()
|
D | slob.c | 148 slob_t *base = (slob_t *)((unsigned long)s & PAGE_MASK); in set_slob() local 149 slobidx_t offset = next - base; in set_slob() 173 slob_t *base = (slob_t *)((unsigned long)s & PAGE_MASK); in slob_next() local 180 return base+next; in slob_next()
|
D | percpu.c | 2131 void __percpu *base = __addr_to_pcpu_ptr(pcpu_base_addr); in __is_kernel_percpu_address() local 2135 void *start = per_cpu_ptr(base, cpu); in __is_kernel_percpu_address() 2142 per_cpu_ptr(base, get_boot_cpu_id()); in __is_kernel_percpu_address() 2193 void __percpu *base = __addr_to_pcpu_ptr(pcpu_base_addr); in per_cpu_ptr_to_phys() local 2215 void *start = per_cpu_ptr(base, cpu); in per_cpu_ptr_to_phys() 2841 void *base = (void *)ULONG_MAX; in pcpu_embed_first_chunk() local 2883 base = min(ptr, base); in pcpu_embed_first_chunk() 2887 max_distance = areas[highest_group] - base; in pcpu_embed_first_chunk() 2924 ai->groups[group].base_offset = areas[group] - base; in pcpu_embed_first_chunk() 2931 pcpu_setup_first_chunk(ai, base); in pcpu_embed_first_chunk()
|
D | nommu.c | 981 void *base; in do_mmap_private() local 1017 base = alloc_pages_exact(total << PAGE_SHIFT, GFP_KERNEL); in do_mmap_private() 1018 if (!base) in do_mmap_private() 1024 region->vm_start = (unsigned long) base; in do_mmap_private() 1038 ret = kernel_read(vma->vm_file, base, len, &fpos); in do_mmap_private() 1044 memset(base + ret, 0, len - ret); in do_mmap_private()
|
D | vmalloc.c | 3207 unsigned long base, start, size, end, last_end, orig_start, orig_end; in pcpu_get_vm_areas() local 3259 base = pvm_determine_end_from_reverse(&va, align) - end; in pcpu_get_vm_areas() 3266 if (base + last_end < vmalloc_start + last_end) in pcpu_get_vm_areas() 3279 if (base + end > va->va_end) { in pcpu_get_vm_areas() 3280 base = pvm_determine_end_from_reverse(&va, align) - end; in pcpu_get_vm_areas() 3288 if (base + start < va->va_start) { in pcpu_get_vm_areas() 3290 base = pvm_determine_end_from_reverse(&va, align) - end; in pcpu_get_vm_areas() 3305 va = pvm_find_va_enclose_addr(base + end); in pcpu_get_vm_areas() 3312 start = base + offsets[area]; in pcpu_get_vm_areas()
|
D | memory.c | 5774 int i, n, base, l; in process_huge_page() local 5783 base = 0; in process_huge_page() 5792 base = pages_per_huge_page - 2 * (pages_per_huge_page - n); in process_huge_page() 5795 for (i = 0; i < base; i++) { in process_huge_page() 5805 int left_idx = base + i; in process_huge_page() 5806 int right_idx = base + 2 * l - 1 - i; in process_huge_page()
|
D | slub.c | 524 void *base; in check_valid_pointer() local 529 base = page_address(page); in check_valid_pointer() 532 if (object < base || object >= base + page->objects * s->size || in check_valid_pointer() 533 (object - base) % s->size) { in check_valid_pointer()
|
D | hugetlb.c | 5382 unsigned long base = addr & PUD_MASK; in vma_shareable() local 5383 unsigned long end = base + PUD_SIZE; in vma_shareable() 5388 if (vma->vm_flags & VM_MAYSHARE && range_in_vma(vma, base, end)) in vma_shareable()
|
D | page_alloc.c | 7504 usable_startpfn = PFN_DOWN(r->base); in find_zone_movable_pfns_for_nodes()
|
/mm/kasan/ |
D | common.c | 70 void *base = task_stack_page(task); in kasan_unpoison_task_stack() local 72 kasan_unpoison(base, THREAD_SIZE, false); in kasan_unpoison_task_stack() 83 void *base = (void *)((unsigned long)watermark & ~(THREAD_SIZE - 1)); in kasan_unpoison_task_stack_below() local 85 kasan_unpoison(base, watermark - base, false); in kasan_unpoison_task_stack_below()
|