/mm/ |
D | memblock.c | 69 memblock_type_name(struct memblock_type *type) in memblock_type_name() argument 71 if (type == &memblock.memory) in memblock_type_name() 73 else if (type == &memblock.reserved) in memblock_type_name() 94 bool __init_memblock memblock_overlaps_region(struct memblock_type *type, in memblock_overlaps_region() argument 99 for (i = 0; i < type->cnt; i++) in memblock_overlaps_region() 100 if (memblock_addrs_overlap(base, size, type->regions[i].base, in memblock_overlaps_region() 101 type->regions[i].size)) in memblock_overlaps_region() 103 return i < type->cnt; in memblock_overlaps_region() 281 static void __init_memblock memblock_remove_region(struct memblock_type *type, unsigned long r) in memblock_remove_region() argument 283 type->total_size -= type->regions[r].size; in memblock_remove_region() [all …]
|
D | frontswap.c | 127 set_bit(si->type, a); in frontswap_register_ops() 149 set_bit(si->type, b); in frontswap_register_ops() 191 void __frontswap_init(unsigned type, unsigned long *map) in __frontswap_init() argument 193 struct swap_info_struct *sis = swap_info[type]; in __frontswap_init() 212 ops->init(type); in __frontswap_init() 250 int type = swp_type(entry); in __frontswap_store() local 251 struct swap_info_struct *sis = swap_info[type]; in __frontswap_store() 268 ops->invalidate_page(type, offset); in __frontswap_store() 273 ret = ops->store(type, offset, page); in __frontswap_store() 299 int type = swp_type(entry); in __frontswap_load() local [all …]
|
D | zpool.c | 75 static struct zpool_driver *zpool_get_driver(const char *type) in zpool_get_driver() argument 81 if (!strcmp(driver->type, type)) { in zpool_get_driver() 119 bool zpool_has_pool(char *type) in zpool_has_pool() argument 121 struct zpool_driver *driver = zpool_get_driver(type); in zpool_has_pool() 124 request_module("zpool-%s", type); in zpool_has_pool() 125 driver = zpool_get_driver(type); in zpool_has_pool() 153 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp, in zpool_create_pool() argument 159 pr_debug("creating pool type %s\n", type); in zpool_create_pool() 161 driver = zpool_get_driver(type); in zpool_create_pool() 164 request_module("zpool-%s", type); in zpool_create_pool() [all …]
|
D | swapfile.c | 104 swp_entry_t entry = swp_entry(si->type, offset); in __try_to_reclaim_swap() 673 si->type); in get_swap_page() 676 si->type); in get_swap_page() 686 return swp_entry(si->type, offset); in get_swap_page() 688 si->type); in get_swap_page() 713 swp_entry_t get_swap_page_of_type(int type) in get_swap_page_of_type() argument 718 si = swap_info[type]; in get_swap_page_of_type() 726 return swp_entry(type, offset); in get_swap_page_of_type() 737 unsigned long offset, type; in swap_info_get() local 741 type = swp_type(entry); in swap_info_get() [all …]
|
D | zswap.c | 556 static struct zswap_pool *zswap_pool_find_get(char *type, char *compressor) in zswap_pool_find_get() argument 565 if (strcmp(zpool_get_type(pool->zpool), type)) in zswap_pool_find_get() 576 static struct zswap_pool *zswap_pool_create(char *type, char *compressor) in zswap_pool_create() argument 591 pool->zpool = zpool_create_pool(type, name, gfp, &zswap_zpool_ops); in zswap_pool_create() 593 pr_err("%s zpool not available\n", type); in zswap_pool_create() 712 char *type, char *compressor) in __zswap_param_set() argument 733 if (!type) { in __zswap_param_set() 738 type = s; in __zswap_param_set() 752 pool = zswap_pool_find_get(type, compressor); in __zswap_param_set() 762 pool = zswap_pool_create(type, compressor); in __zswap_param_set() [all …]
|
D | swap_cgroup.c | 38 static int swap_cgroup_prepare(int type) in swap_cgroup_prepare() argument 44 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_prepare() 146 int swap_cgroup_swapon(int type, unsigned long max_pages) in swap_cgroup_swapon() argument 163 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_swapon() 168 if (swap_cgroup_prepare(type)) { in swap_cgroup_swapon() 185 void swap_cgroup_swapoff(int type) in swap_cgroup_swapoff() argument 195 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_swapoff()
|
D | usercopy.c | 65 bool to_user, const char *type) in report_usercopy() argument 69 to_user ? "from" : "to", ptr, type ? : "unknown", len); in report_usercopy()
|
D | memory-failure.c | 787 enum mf_action_page_type type; member 838 static void action_result(unsigned long pfn, enum mf_action_page_type type, in action_result() argument 841 trace_memory_failure_event(pfn, type, result); in action_result() 844 pfn, action_page_types[type], action_name[result]); in action_result() 860 pfn, action_page_types[ps->type], count); in page_action() 863 action_result(pfn, ps->type, result); in page_action()
|
D | memory_hotplug.c | 180 unsigned long type) in get_page_bootmem() argument 182 page->freelist = (void *)type; in get_page_bootmem() 190 unsigned long type; in put_page_bootmem() local 192 type = (unsigned long) page->freelist; in put_page_bootmem() 193 BUG_ON(type < MEMORY_HOTPLUG_MIN_BOOTMEM_TYPE || in put_page_bootmem() 194 type > MEMORY_HOTPLUG_MAX_BOOTMEM_TYPE); in put_page_bootmem()
|
D | zsmalloc.c | 453 .type = "zsmalloc", 562 enum zs_stat_type type, unsigned long cnt) in zs_stat_inc() argument 564 class->stats.objs[type] += cnt; in zs_stat_inc() 568 enum zs_stat_type type, unsigned long cnt) in zs_stat_dec() argument 570 class->stats.objs[type] -= cnt; in zs_stat_dec() 574 enum zs_stat_type type) in zs_stat_get() argument 576 return class->stats.objs[type]; in zs_stat_get()
|
D | memcontrol.c | 3356 struct eventfd_ctx *eventfd, const char *args, enum res_type type) in __mem_cgroup_usage_register_event() argument 3370 if (type == _MEM) { in __mem_cgroup_usage_register_event() 3373 } else if (type == _MEMSWAP) { in __mem_cgroup_usage_register_event() 3381 __mem_cgroup_threshold(memcg, type == _MEMSWAP); in __mem_cgroup_usage_register_event() 3450 struct eventfd_ctx *eventfd, enum res_type type) in __mem_cgroup_usage_unregister_event() argument 3459 if (type == _MEM) { in __mem_cgroup_usage_unregister_event() 3462 } else if (type == _MEMSWAP) { in __mem_cgroup_usage_unregister_event() 3472 __mem_cgroup_threshold(memcg, type == _MEMSWAP); in __mem_cgroup_usage_unregister_event()
|
D | zbud.c | 204 .type = "zbud",
|
D | page_alloc.c | 4261 static void show_migration_types(unsigned char type) in show_migration_types() argument 4280 if (type & (1 << i)) in show_migration_types() 4462 int type; in show_free_areas() local 4468 for (type = 0; type < MIGRATE_TYPES; type++) { in show_free_areas() 4469 if (!list_empty(&area->free_list[type])) in show_free_areas() 4470 types[order] |= 1 << type; in show_free_areas()
|
D | z3fold.c | 763 .type = "z3fold",
|
D | filemap.c | 1743 if (unlikely(iter->type & ITER_PIPE)) in do_generic_file_read()
|