/mm/ |
D | memblock.c | 162 bool __init_memblock memblock_overlaps_region(struct memblock_type *type, in memblock_overlaps_region() argument 169 for (i = 0; i < type->cnt; i++) in memblock_overlaps_region() 170 if (memblock_addrs_overlap(base, size, type->regions[i].base, in memblock_overlaps_region() 171 type->regions[i].size)) in memblock_overlaps_region() 173 return i < type->cnt; in memblock_overlaps_region() 321 static void __init_memblock memblock_remove_region(struct memblock_type *type, unsigned long r) in memblock_remove_region() argument 323 type->total_size -= type->regions[r].size; in memblock_remove_region() 324 memmove(&type->regions[r], &type->regions[r + 1], in memblock_remove_region() 325 (type->cnt - (r + 1)) * sizeof(type->regions[r])); in memblock_remove_region() 326 type->cnt--; in memblock_remove_region() [all …]
|
D | frontswap.c | 126 set_bit(si->type, a); in frontswap_register_ops() 148 set_bit(si->type, b); in frontswap_register_ops() 190 void __frontswap_init(unsigned type, unsigned long *map) in __frontswap_init() argument 192 struct swap_info_struct *sis = swap_info[type]; in __frontswap_init() 211 ops->init(type); in __frontswap_init() 249 int type = swp_type(entry); in __frontswap_store() local 250 struct swap_info_struct *sis = swap_info[type]; in __frontswap_store() 267 ops->invalidate_page(type, offset); in __frontswap_store() 272 ret = ops->store(type, offset, page); in __frontswap_store() 298 int type = swp_type(entry); in __frontswap_load() local [all …]
|
D | zpool.c | 77 static struct zpool_driver *zpool_get_driver(const char *type) in zpool_get_driver() argument 83 if (!strcmp(driver->type, type)) { in zpool_get_driver() 121 bool zpool_has_pool(char *type) in zpool_has_pool() argument 123 struct zpool_driver *driver = zpool_get_driver(type); in zpool_has_pool() 126 request_module("zpool-%s", type); in zpool_has_pool() 127 driver = zpool_get_driver(type); in zpool_has_pool() 155 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp, in zpool_create_pool() argument 161 pr_debug("creating pool type %s\n", type); in zpool_create_pool() 163 driver = zpool_get_driver(type); in zpool_create_pool() 166 request_module("zpool-%s", type); in zpool_create_pool() [all …]
|
D | swapfile.c | 102 static struct swap_info_struct *swap_type_to_swap_info(int type) in swap_type_to_swap_info() argument 104 if (type >= READ_ONCE(nr_swapfiles)) in swap_type_to_swap_info() 108 return READ_ONCE(swap_info[type]); in swap_type_to_swap_info() 130 swp_entry_t entry = swp_entry(si->type, offset); in __try_to_reclaim_swap() 739 frontswap_invalidate_page(si->type, offset); in swap_range_free() 866 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots() 973 *slot = swp_entry(si->type, offset); in swap_alloc_cluster() 1046 si->type); in get_swap_pages() 1049 si->type); in get_swap_pages() 1064 si->type); in get_swap_pages() [all …]
|
D | zswap.c | 484 static struct zswap_pool *zswap_pool_find_get(char *type, char *compressor) in zswap_pool_find_get() argument 493 if (strcmp(zpool_get_type(pool->zpool), type)) in zswap_pool_find_get() 504 static struct zswap_pool *zswap_pool_create(char *type, char *compressor) in zswap_pool_create() argument 516 if (!strcmp(type, ZSWAP_PARAM_UNSET)) in zswap_pool_create() 529 pool->zpool = zpool_create_pool(type, name, gfp, &zswap_zpool_ops); in zswap_pool_create() 531 pr_err("%s zpool not available\n", type); in zswap_pool_create() 667 char *type, char *compressor) in __zswap_param_set() argument 688 if (!type) { in __zswap_param_set() 693 type = s; in __zswap_param_set() 707 pool = zswap_pool_find_get(type, compressor); in __zswap_param_set() [all …]
|
D | swap_cgroup.c | 39 static int swap_cgroup_prepare(int type) in swap_cgroup_prepare() argument 45 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_prepare() 167 int swap_cgroup_swapon(int type, unsigned long max_pages) in swap_cgroup_swapon() argument 184 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_swapon() 189 if (swap_cgroup_prepare(type)) { in swap_cgroup_swapon() 206 void swap_cgroup_swapoff(int type) in swap_cgroup_swapoff() argument 216 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_swapoff()
|
D | swap_slots.c | 45 static void __drain_swap_slots_cache(unsigned int type); 170 static void drain_slots_cache_cpu(unsigned int cpu, unsigned int type, in drain_slots_cache_cpu() argument 177 if ((type & SLOTS_CACHE) && cache->slots) { in drain_slots_cache_cpu() 188 if ((type & SLOTS_CACHE_RET) && cache->slots_ret) { in drain_slots_cache_cpu() 202 static void __drain_swap_slots_cache(unsigned int type) in __drain_swap_slots_cache() argument 230 drain_slots_cache_cpu(cpu, type, false); in __drain_swap_slots_cache()
|
D | debug.c | 50 char *type = ""; in __dump_page() local 82 type = "ksm "; in __dump_page() 84 type = "anon "; in __dump_page() 95 pr_warn("%sflags: %#lx(%pGp)\n", type, page->flags, &page->flags); in __dump_page()
|
D | slab_common.c | 1262 new_kmalloc_cache(int idx, int type, slab_flags_t flags) in new_kmalloc_cache() argument 1266 if (type == KMALLOC_RECLAIM) { in new_kmalloc_cache() 1275 kmalloc_caches[type][idx] = create_kmalloc_cache(name, in new_kmalloc_cache() 1287 int i, type; in create_kmalloc_caches() local 1289 for (type = KMALLOC_NORMAL; type <= KMALLOC_RECLAIM; type++) { in create_kmalloc_caches() 1291 if (!kmalloc_caches[type][i]) in create_kmalloc_caches() 1292 new_kmalloc_cache(i, type, flags); in create_kmalloc_caches() 1300 !kmalloc_caches[type][1]) in create_kmalloc_caches() 1301 new_kmalloc_cache(1, type, flags); in create_kmalloc_caches() 1303 !kmalloc_caches[type][2]) in create_kmalloc_caches() [all …]
|
D | swap_state.c | 600 int init_swap_address_space(unsigned int type, unsigned long nr_pages) in init_swap_address_space() argument 617 nr_swapper_spaces[type] = nr; in init_swap_address_space() 618 swapper_spaces[type] = spaces; in init_swap_address_space() 623 void exit_swap_address_space(unsigned int type) in exit_swap_address_space() argument 625 kvfree(swapper_spaces[type]); in exit_swap_address_space() 626 nr_swapper_spaces[type] = 0; in exit_swap_address_space() 627 swapper_spaces[type] = NULL; in exit_swap_address_space()
|
D | vmalloc.c | 896 enum fit_type type; in classify_va_fit_type() local 906 type = FL_FIT_TYPE; in classify_va_fit_type() 908 type = LE_FIT_TYPE; in classify_va_fit_type() 910 type = RE_FIT_TYPE; in classify_va_fit_type() 912 type = NE_FIT_TYPE; in classify_va_fit_type() 915 return type; in classify_va_fit_type() 921 enum fit_type type) in adjust_va_to_fit_type() argument 925 if (type == FL_FIT_TYPE) { in adjust_va_to_fit_type() 935 } else if (type == LE_FIT_TYPE) { in adjust_va_to_fit_type() 944 } else if (type == RE_FIT_TYPE) { in adjust_va_to_fit_type() [all …]
|
D | memremap.c | 122 if (pgmap->type == MEMORY_DEVICE_PRIVATE) { in memunmap_pages() 171 switch (pgmap->type) { in memremap_pages() 194 WARN(1, "Invalid pgmap type %d\n", pgmap->type); in memremap_pages() 273 if (pgmap->type == MEMORY_DEVICE_PRIVATE) { in memremap_pages()
|
D | memory-failure.c | 838 enum mf_action_page_type type; member 888 static void action_result(unsigned long pfn, enum mf_action_page_type type, in action_result() argument 891 trace_memory_failure_event(pfn, type, result); in action_result() 894 pfn, action_page_types[type], action_name[result]); in action_result() 910 pfn, action_page_types[ps->type], count); in page_action() 913 action_result(pfn, ps->type, result); in page_action() 1184 if (pgmap->type == MEMORY_DEVICE_PRIVATE) { in memory_failure_dev_pagemap()
|
D | memory_hotplug.c | 139 unsigned long type) in get_page_bootmem() argument 141 page->freelist = (void *)type; in get_page_bootmem() 149 unsigned long type; in put_page_bootmem() local 151 type = (unsigned long) page->freelist; in put_page_bootmem() 152 BUG_ON(type < MEMORY_HOTPLUG_MIN_BOOTMEM_TYPE || in put_page_bootmem() 153 type > MEMORY_HOTPLUG_MAX_BOOTMEM_TYPE); in put_page_bootmem()
|
D | zsmalloc.c | 442 .type = "zsmalloc", 548 int type, unsigned long cnt) in zs_stat_inc() argument 550 class->stats.objs[type] += cnt; in zs_stat_inc() 555 int type, unsigned long cnt) in zs_stat_dec() argument 557 class->stats.objs[type] -= cnt; in zs_stat_dec() 562 int type) in zs_stat_get() argument 564 return class->stats.objs[type]; in zs_stat_get()
|
D | shmem.c | 1129 unsigned int type, bool frontswap) in shmem_find_swap_entries() argument 1148 if (swp_type(entry) != type) in shmem_find_swap_entries() 1151 !frontswap_test(swap_info[type], swp_offset(entry))) in shmem_find_swap_entries() 1205 static int shmem_unuse_inode(struct inode *inode, unsigned int type, in shmem_unuse_inode() argument 1224 type, frontswap); in shmem_unuse_inode() 1253 int shmem_unuse(unsigned int type, bool frontswap, in shmem_unuse() argument 1277 error = shmem_unuse_inode(&info->vfs_inode, type, frontswap, in shmem_unuse() 4077 int shmem_unuse(unsigned int type, bool frontswap, in shmem_unuse() argument
|
D | memcontrol.c | 4137 struct eventfd_ctx *eventfd, const char *args, enum res_type type) in __mem_cgroup_usage_register_event() argument 4151 if (type == _MEM) { in __mem_cgroup_usage_register_event() 4154 } else if (type == _MEMSWAP) { in __mem_cgroup_usage_register_event() 4162 __mem_cgroup_threshold(memcg, type == _MEMSWAP); in __mem_cgroup_usage_register_event() 4230 struct eventfd_ctx *eventfd, enum res_type type) in __mem_cgroup_usage_unregister_event() argument 4239 if (type == _MEM) { in __mem_cgroup_usage_unregister_event() 4242 } else if (type == _MEMSWAP) { in __mem_cgroup_usage_unregister_event() 4252 __mem_cgroup_threshold(memcg, type == _MEMSWAP); in __mem_cgroup_usage_unregister_event()
|
D | zbud.c | 205 .type = "zbud",
|
D | page_alloc.c | 5368 static void show_migration_types(unsigned char type) in show_migration_types() argument 5387 if (type & (1 << i)) in show_migration_types() 5572 int type; in show_free_areas() local 5578 for (type = 0; type < MIGRATE_TYPES; type++) { in show_free_areas() 5579 if (!free_area_empty(area, type)) in show_free_areas() 5580 types[order] |= 1 << type; in show_free_areas()
|
D | slub.c | 4773 int type = KMALLOC_NORMAL; in resiliency_test() local 4786 validate_slab_cache(kmalloc_caches[type][4]); in resiliency_test() 4795 validate_slab_cache(kmalloc_caches[type][5]); in resiliency_test() 4802 validate_slab_cache(kmalloc_caches[type][6]); in resiliency_test() 4809 validate_slab_cache(kmalloc_caches[type][7]); in resiliency_test() 4815 validate_slab_cache(kmalloc_caches[type][8]); in resiliency_test() 4821 validate_slab_cache(kmalloc_caches[type][9]); in resiliency_test()
|
D | vmscan.c | 1519 int type = page_is_file_cache(page); in shrink_page_list() local 1521 stat->nr_activate[type] += nr_pages; in shrink_page_list()
|
D | z3fold.c | 1547 .type = "z3fold",
|