Home
last modified time | relevance | path

Searched refs:res (Results 1 – 11 of 11) sorted by relevance

/mm/
Dmemory_hotplug.c104 struct resource *res; in register_memory_resource() local
124 res = __request_region(&iomem_resource, start, size, in register_memory_resource()
127 if (!res) { in register_memory_resource()
132 return res; in register_memory_resource()
135 static void release_memory_resource(struct resource *res) in release_memory_resource() argument
137 if (!res) in release_memory_resource()
139 release_resource(res); in release_memory_resource()
140 kfree(res); in release_memory_resource()
1020 int __ref add_memory_resource(int nid, struct resource *res, mhp_t mhp_flags) in add_memory_resource() argument
1027 start = res->start; in add_memory_resource()
[all …]
Dutil.c1029 int res = 0; in get_cmdline() local
1050 res = access_process_vm(task, arg_start, buffer, len, FOLL_FORCE); in get_cmdline()
1056 if (res > 0 && buffer[res-1] != '\0' && len < buflen) { in get_cmdline()
1057 len = strnlen(buffer, res); in get_cmdline()
1058 if (len < res) { in get_cmdline()
1059 res = len; in get_cmdline()
1062 if (len > buflen - res) in get_cmdline()
1063 len = buflen - res; in get_cmdline()
1064 res += access_process_vm(task, env_start, in get_cmdline()
1065 buffer+res, len, in get_cmdline()
[all …]
Dmemory-failure.c812 int res = 0; in me_huge_page() local
821 res = truncate_error_page(hpage, pfn, mapping); in me_huge_page()
832 res = MF_RECOVERED; in me_huge_page()
836 return res; in me_huge_page()
863 unsigned long res; member
1119 if ((p->flags & ps->mask) == ps->res) in identify_page_state()
1126 if ((page_flags & ps->mask) == ps->res) in identify_page_state()
1154 int res; in memory_failure_hugetlb() local
1206 res = -EBUSY; in memory_failure_hugetlb()
1212 res = -EBUSY; in memory_failure_hugetlb()
[all …]
Ddmapool.c472 static void dmam_pool_release(struct device *dev, void *res) in dmam_pool_release() argument
474 struct dma_pool *pool = *(struct dma_pool **)res; in dmam_pool_release()
479 static int dmam_pool_match(struct device *dev, void *res, void *match_data) in dmam_pool_match() argument
481 return *(struct dma_pool **)res == match_data; in dmam_pool_match()
Dmmu_notifier.c105 struct mmu_interval_notifier *res = NULL; in mn_itree_inv_start_range() local
113 res = container_of(node, struct mmu_interval_notifier, in mn_itree_inv_start_range()
119 return res; in mn_itree_inv_start_range()
Dslab.c4114 int limit, batchcount, shared, res; in slabinfo_write() local
4133 res = -EINVAL; in slabinfo_write()
4138 res = 0; in slabinfo_write()
4140 res = do_tune_cpucache(cachep, limit, in slabinfo_write()
4148 if (res >= 0) in slabinfo_write()
4149 res = count; in slabinfo_write()
4150 return res; in slabinfo_write()
Dvmscan.c853 int res; in pageout() local
863 res = mapping->a_ops->writepage(page, &wbc); in pageout()
864 if (res < 0) in pageout()
865 handle_write_error(mapping, page, res); in pageout()
866 if (res == AOP_WRITEPAGE_ACTIVATE) { in pageout()
Dshmem.c4181 struct file *res; in __shmem_file_setup() local
4201 res = ERR_PTR(ramfs_nommu_expand_for_mapping(inode, size)); in __shmem_file_setup()
4202 if (!IS_ERR(res)) in __shmem_file_setup()
4203 res = alloc_file_pseudo(inode, mnt, name, O_RDWR, in __shmem_file_setup()
4205 if (IS_ERR(res)) in __shmem_file_setup()
4207 return res; in __shmem_file_setup()
Dhugetlb.c5866 int res; in hugetlb_cma_reserve() local
5873 res = cma_declare_contiguous_nid(0, size, 0, PAGE_SIZE << order, in hugetlb_cma_reserve()
5876 if (res) { in hugetlb_cma_reserve()
5878 res, nid); in hugetlb_cma_reserve()
Dpage_alloc.c759 unsigned long res; in debug_guardpage_minorder_setup() local
761 if (kstrtoul(buf, 10, &res) < 0 || res > MAX_ORDER / 2) { in debug_guardpage_minorder_setup()
765 _debug_guardpage_minorder = res; in debug_guardpage_minorder_setup()
766 pr_info("Setting debug_guardpage_minorder to %lu\n", res); in debug_guardpage_minorder_setup()
/mm/damon/
Dreclaim.c225 static int walk_system_ram(struct resource *res, void *arg) in walk_system_ram() argument
229 if (a->end - a->start < res->end - res->start) { in walk_system_ram()
230 a->start = res->start; in walk_system_ram()
231 a->end = res->end; in walk_system_ram()