Home
last modified time | relevance | path

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

/mm/
Dmemblock.c63 memblock_type_name(struct memblock_type *type) in memblock_type_name() argument
65 if (type == &memblock.memory) in memblock_type_name()
67 else if (type == &memblock.reserved) in memblock_type_name()
88 static long __init_memblock memblock_overlaps_region(struct memblock_type *type, in memblock_overlaps_region() argument
93 for (i = 0; i < type->cnt; i++) { in memblock_overlaps_region()
94 phys_addr_t rgnbase = type->regions[i].base; in memblock_overlaps_region()
95 phys_addr_t rgnsize = type->regions[i].size; in memblock_overlaps_region()
100 return (i < type->cnt) ? i : -1; in memblock_overlaps_region()
259 static void __init_memblock memblock_remove_region(struct memblock_type *type, unsigned long r) in memblock_remove_region() argument
261 type->total_size -= type->regions[r].size; in memblock_remove_region()
[all …]
Dfrontswap.c164 void __frontswap_init(unsigned type, unsigned long *map) in __frontswap_init() argument
166 struct swap_info_struct *sis = swap_info[type]; in __frontswap_init()
183 frontswap_ops->init(type); in __frontswap_init()
185 BUG_ON(type > MAX_SWAPFILES); in __frontswap_init()
186 set_bit(type, need_init); in __frontswap_init()
220 int type = swp_type(entry); in __frontswap_store() local
221 struct swap_info_struct *sis = swap_info[type]; in __frontswap_store()
235 ret = frontswap_ops->store(type, offset, page); in __frontswap_store()
249 frontswap_ops->invalidate_page(type, offset); in __frontswap_store()
268 int type = swp_type(entry); in __frontswap_load() local
[all …]
Dzpool.c21 char *type; member
103 static struct zpool_driver *zpool_get_driver(char *type) in zpool_get_driver() argument
109 if (!strcmp(driver->type, type)) { in zpool_get_driver()
144 struct zpool *zpool_create_pool(char *type, char *name, gfp_t gfp, in zpool_create_pool() argument
150 pr_info("creating pool type %s\n", type); in zpool_create_pool()
152 driver = zpool_get_driver(type); in zpool_create_pool()
155 request_module("zpool-%s", type); in zpool_create_pool()
156 driver = zpool_get_driver(type); in zpool_create_pool()
160 pr_err("no driver for type %s\n", type); in zpool_create_pool()
171 zpool->type = driver->type; in zpool_create_pool()
[all …]
Dswapfile.c98 swp_entry_t entry = swp_entry(si->type, offset); in __try_to_reclaim_swap()
664 si->type); in get_swap_page()
667 si->type); in get_swap_page()
677 return swp_entry(si->type, offset); in get_swap_page()
679 si->type); in get_swap_page()
704 swp_entry_t get_swap_page_of_type(int type) in get_swap_page_of_type() argument
709 si = swap_info[type]; in get_swap_page_of_type()
717 return swp_entry(type, offset); in get_swap_page_of_type()
728 unsigned long offset, type; in swap_info_get() local
732 type = swp_type(entry); in swap_info_get()
[all …]
Dzswap.c640 static int zswap_frontswap_store(unsigned type, pgoff_t offset, in zswap_frontswap_store() argument
643 struct zswap_tree *tree = zswap_trees[type]; in zswap_frontswap_store()
698 zhdr->swpentry = swp_entry(type, offset); in zswap_frontswap_store()
739 static int zswap_frontswap_load(unsigned type, pgoff_t offset, in zswap_frontswap_load() argument
742 struct zswap_tree *tree = zswap_trees[type]; in zswap_frontswap_load()
777 static void zswap_frontswap_invalidate_page(unsigned type, pgoff_t offset) in zswap_frontswap_invalidate_page() argument
779 struct zswap_tree *tree = zswap_trees[type]; in zswap_frontswap_invalidate_page()
801 static void zswap_frontswap_invalidate_area(unsigned type) in zswap_frontswap_invalidate_area() argument
803 struct zswap_tree *tree = zswap_trees[type]; in zswap_frontswap_invalidate_area()
816 zswap_trees[type] = NULL; in zswap_frontswap_invalidate_area()
[all …]
Dpage_cgroup.c358 static int swap_cgroup_prepare(int type) in swap_cgroup_prepare() argument
364 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_prepare()
466 int swap_cgroup_swapon(int type, unsigned long max_pages) in swap_cgroup_swapon() argument
483 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_swapon()
488 if (swap_cgroup_prepare(type)) { in swap_cgroup_swapon()
506 void swap_cgroup_swapoff(int type) in swap_cgroup_swapoff() argument
516 ctrl = &swap_cgroup_ctrl[type]; in swap_cgroup_swapoff()
Diov_iter.c398 if (!(i->type & ITER_BVEC)) { in iov_iter_fault_in_readable()
438 i->type = direction; in iov_iter_init()
468 res = get_user_pages_fast(addr, n, (i->type & WRITE) != WRITE, pages); in get_pages_iovec()
502 res = get_user_pages_fast(addr, n, (i->type & WRITE) != WRITE, p); in get_pages_alloc_iovec()
842 if (i->type & ITER_BVEC) in copy_page_to_iter()
852 if (i->type & ITER_BVEC) in copy_page_from_iter()
861 if (i->type & ITER_BVEC) in copy_to_iter()
870 if (i->type & ITER_BVEC) in copy_from_iter()
879 if (i->type & ITER_BVEC) { in iov_iter_zero()
890 if (i->type & ITER_BVEC) in iov_iter_copy_from_user_atomic()
[all …]
Dzsmalloc.c374 .type = "zsmalloc",
450 enum zs_stat_type type, unsigned long cnt) in zs_stat_inc() argument
452 class->stats.objs[type] += cnt; in zs_stat_inc()
456 enum zs_stat_type type, unsigned long cnt) in zs_stat_dec() argument
458 class->stats.objs[type] -= cnt; in zs_stat_dec()
462 enum zs_stat_type type) in zs_stat_get() argument
464 return class->stats.objs[type]; in zs_stat_get()
584 enum zs_stat_type type, unsigned long cnt) in zs_stat_inc() argument
589 enum zs_stat_type type, unsigned long cnt) in zs_stat_dec() argument
594 enum zs_stat_type type) in zs_stat_get() argument
Dmemcontrol.c4048 enum res_type type = MEMFILE_TYPE(cft->private); in mem_cgroup_read_u64() local
4051 switch (type) { in mem_cgroup_read_u64()
4190 enum res_type type; in mem_cgroup_write() local
4196 type = MEMFILE_TYPE(of_cft(of)->private); in mem_cgroup_write()
4209 if (type == _MEM) in mem_cgroup_write()
4211 else if (type == _MEMSWAP) in mem_cgroup_write()
4213 else if (type == _KMEM) in mem_cgroup_write()
4227 if (type == _MEM) in mem_cgroup_write()
4268 enum res_type type; in mem_cgroup_reset() local
4270 type = MEMFILE_TYPE(of_cft(of)->private); in mem_cgroup_reset()
[all …]
Dusercopy.c66 bool to_user, const char *type) in report_usercopy() argument
70 to_user ? "from" : "to", ptr, type ? : "unknown", len); in report_usercopy()
Dzbud.c189 .type = "zbud",
451 #define list_tail_entry(ptr, type, member) \ argument
452 list_entry((ptr)->prev, type, member)
Dmemory_hotplug.c159 unsigned long type) in get_page_bootmem() argument
161 page->lru.next = (struct list_head *) type; in get_page_bootmem()
169 unsigned long type; in put_page_bootmem() local
171 type = (unsigned long) page->lru.next; in put_page_bootmem()
172 BUG_ON(type < MEMORY_HOTPLUG_MIN_BOOTMEM_TYPE || in put_page_bootmem()
173 type > MEMORY_HOTPLUG_MAX_BOOTMEM_TYPE); in put_page_bootmem()
Dpage_alloc.c3189 static void show_migration_types(unsigned char type) in show_migration_types() argument
3208 if (type & (1 << i)) in show_migration_types()
3357 int type; in show_free_areas() local
3363 for (type = 0; type < MIGRATE_TYPES; type++) { in show_free_areas()
3364 if (!list_empty(&area->free_list[type])) in show_free_areas()
3365 types[order] |= 1 << type; in show_free_areas()
Dpage_io.c273 .type = ITER_BVEC | WRITE, in __swap_writepage()