Home
last modified time | relevance | path

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

/mm/
Dmemremap.c49 static void pgmap_array_delete(struct resource *res) in pgmap_array_delete() argument
51 xa_store_range(&pgmap_array, PHYS_PFN(res->start), PHYS_PFN(res->end), in pgmap_array_delete()
58 return PHYS_PFN(pgmap->res.start) + in pfn_first()
64 const struct resource *res = &pgmap->res; in pfn_end() local
66 return (res->start + resource_size(res)) >> PAGE_SHIFT; in pfn_end()
105 struct resource *res = &pgmap->res; in memunmap_pages() local
123 __remove_pages(PHYS_PFN(res->start), in memunmap_pages()
124 PHYS_PFN(resource_size(res)), NULL); in memunmap_pages()
126 arch_remove_memory(nid, res->start, resource_size(res), in memunmap_pages()
128 kasan_remove_zero_shadow(__va(res->start), resource_size(res)); in memunmap_pages()
[all …]
Dutil.c845 int res = 0; in get_cmdline() local
866 res = access_process_vm(task, arg_start, buffer, len, FOLL_FORCE); in get_cmdline()
872 if (res > 0 && buffer[res-1] != '\0' && len < buflen) { in get_cmdline()
873 len = strnlen(buffer, res); in get_cmdline()
874 if (len < res) { in get_cmdline()
875 res = len; in get_cmdline()
878 if (len > buflen - res) in get_cmdline()
879 len = buflen - res; in get_cmdline()
880 res += access_process_vm(task, env_start, in get_cmdline()
881 buffer+res, len, in get_cmdline()
[all …]
Dmemory-failure.c785 int res = 0; in me_huge_page() local
794 res = truncate_error_page(hpage, pfn, mapping); in me_huge_page()
805 res = MF_RECOVERED; in me_huge_page()
809 return res; in me_huge_page()
837 unsigned long res; member
1072 if ((p->flags & ps->mask) == ps->res) in identify_page_state()
1079 if ((page_flags & ps->mask) == ps->res) in identify_page_state()
1088 int res; in memory_failure_hugetlb() local
1140 res = -EBUSY; in memory_failure_hugetlb()
1146 res = -EBUSY; in memory_failure_hugetlb()
[all …]
Dmemory_hotplug.c106 struct resource *res; in register_memory_resource() local
118 res = __request_region(&iomem_resource, start, size, in register_memory_resource()
121 if (!res) { in register_memory_resource()
126 return res; in register_memory_resource()
129 static void release_memory_resource(struct resource *res) in release_memory_resource() argument
131 if (!res) in release_memory_resource()
133 release_resource(res); in release_memory_resource()
134 kfree(res); in release_memory_resource()
1026 int __ref add_memory_resource(int nid, struct resource *res) in add_memory_resource() argument
1033 start = res->start; in add_memory_resource()
[all …]
Ddmapool.c480 static void dmam_pool_release(struct device *dev, void *res) in dmam_pool_release() argument
482 struct dma_pool *pool = *(struct dma_pool **)res; in dmam_pool_release()
487 static int dmam_pool_match(struct device *dev, void *res, void *match_data) in dmam_pool_match() argument
489 return *(struct dma_pool **)res == match_data; in dmam_pool_match()
Dslab.c4119 int limit, batchcount, shared, res; in slabinfo_write() local
4138 res = -EINVAL; in slabinfo_write()
4143 res = 0; in slabinfo_write()
4145 res = do_tune_cpucache(cachep, limit, in slabinfo_write()
4153 if (res >= 0) in slabinfo_write()
4154 res = count; in slabinfo_write()
4155 return res; in slabinfo_write()
Dvmscan.c867 int res; in pageout() local
877 res = mapping->a_ops->writepage(page, &wbc); in pageout()
878 if (res < 0) in pageout()
879 handle_write_error(mapping, page, res); in pageout()
880 if (res == AOP_WRITEPAGE_ACTIVATE) { in pageout()
Dshmem.c4097 struct file *res; in __shmem_file_setup() local
4117 res = ERR_PTR(ramfs_nommu_expand_for_mapping(inode, size)); in __shmem_file_setup()
4118 if (!IS_ERR(res)) in __shmem_file_setup()
4119 res = alloc_file_pseudo(inode, mnt, name, O_RDWR, in __shmem_file_setup()
4121 if (IS_ERR(res)) in __shmem_file_setup()
4123 return res; in __shmem_file_setup()
Dmemory.c4221 int res; in follow_pte() local
4225 !(res = __follow_pte_pmd(mm, address, NULL, in follow_pte()
4227 return res; in follow_pte()
4234 int res; in follow_pte_pmd() local
4238 !(res = __follow_pte_pmd(mm, address, range, in follow_pte_pmd()
4240 return res; in follow_pte_pmd()
Dpage_alloc.c738 unsigned long res; in debug_guardpage_minorder_setup() local
740 if (kstrtoul(buf, 10, &res) < 0 || res > MAX_ORDER / 2) { in debug_guardpage_minorder_setup()
744 _debug_guardpage_minorder = res; in debug_guardpage_minorder_setup()
745 pr_info("Setting debug_guardpage_minorder to %lu\n", res); in debug_guardpage_minorder_setup()