Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 9 of 9) sorted by relevance

/mm/
Dcma_debug.c71 static void cma_add_to_cma_mem_list(struct cma *cma, struct cma_mem *mem) in cma_add_to_cma_mem_list() argument
74 hlist_add_head(&mem->node, &cma->mem_head); in cma_add_to_cma_mem_list()
80 struct cma_mem *mem = NULL; in cma_get_entry_from_list() local
84 mem = hlist_entry(cma->mem_head.first, struct cma_mem, node); in cma_get_entry_from_list()
85 hlist_del_init(&mem->node); in cma_get_entry_from_list()
89 return mem; in cma_get_entry_from_list()
94 struct cma_mem *mem = NULL; in cma_free_mem() local
97 mem = cma_get_entry_from_list(cma); in cma_free_mem()
98 if (mem == NULL) in cma_free_mem()
101 if (mem->n <= count) { in cma_free_mem()
[all …]
Dpage_poison.c48 static void check_poison_mem(unsigned char *mem, size_t bytes) in check_poison_mem() argument
54 start = memchr_inv(mem, PAGE_POISON, bytes); in check_poison_mem()
58 for (end = mem + bytes - 1; end > start; end--) { in check_poison_mem()
Dmemory_hotplug.c1008 static int online_memory_block(struct memory_block *mem, void *arg) in online_memory_block() argument
1010 mem->online_type = memhp_default_online_type; in online_memory_block()
1011 return device_online(&mem->dev); in online_memory_block()
1679 static int check_memblock_offlined_cb(struct memory_block *mem, void *arg) in check_memblock_offlined_cb() argument
1681 int ret = !is_memblock_offlined(mem); in check_memblock_offlined_cb()
1686 beginpa = PFN_PHYS(section_nr_to_pfn(mem->start_section_nr)); in check_memblock_offlined_cb()
1712 static int check_no_memblock_for_node_cb(struct memory_block *mem, void *arg) in check_no_memblock_for_node_cb() argument
1721 return mem->nid == nid ? -EEXIST : 0; in check_no_memblock_for_node_cb()
1868 static int try_offline_memory_block(struct memory_block *mem, void *arg) in try_offline_memory_block() argument
1880 page = pfn_to_online_page(section_nr_to_pfn(mem->start_section_nr)); in try_offline_memory_block()
[all …]
Dmempool.c511 struct kmem_cache *mem = pool_data; in mempool_alloc_slab() local
512 VM_BUG_ON(mem->ctor); in mempool_alloc_slab()
513 return kmem_cache_alloc(mem, gfp_mask); in mempool_alloc_slab()
519 struct kmem_cache *mem = pool_data; in mempool_free_slab() local
520 kmem_cache_free(mem, element); in mempool_free_slab()
Dvmalloc.c1807 void vm_unmap_ram(const void *mem, unsigned int count) in vm_unmap_ram() argument
1810 unsigned long addr = (unsigned long)mem; in vm_unmap_ram()
1819 kasan_poison_vmalloc(mem, size); in vm_unmap_ram()
1822 debug_check_no_locks_freed(mem, size); in vm_unmap_ram()
1853 void *mem; in vm_map_ram() local
1856 mem = vb_alloc(size, GFP_KERNEL); in vm_map_ram()
1857 if (IS_ERR(mem)) in vm_map_ram()
1859 addr = (unsigned long)mem; in vm_map_ram()
1868 mem = (void *)addr; in vm_map_ram()
1871 kasan_unpoison_vmalloc(mem, size); in vm_map_ram()
[all …]
Dslab_common.c1163 void *mem = (void *)p; in kfree_sensitive() local
1165 ks = ksize(mem); in kfree_sensitive()
1167 memzero_explicit(mem, ks); in kfree_sensitive()
1168 kfree(mem); in kfree_sensitive()
Dvmstat.c199 int mem; /* memory in 128 MB units */ in calculate_normal_threshold() local
231 mem = zone_managed_pages(zone) >> (27 - PAGE_SHIFT); in calculate_normal_threshold()
233 threshold = 2 * fls(num_online_cpus()) * (1 + fls(mem)); in calculate_normal_threshold()
Dfilemap.c1444 static inline bool clear_bit_unlock_is_negative_byte(long nr, volatile void *mem) in clear_bit_unlock_is_negative_byte() argument
1446 clear_bit_unlock(nr, mem); in clear_bit_unlock_is_negative_byte()
1448 return test_bit(PG_waiters, mem); in clear_bit_unlock_is_negative_byte()
Dnommu.c346 void vm_unmap_ram(const void *mem, unsigned int count) in vm_unmap_ram() argument