Home
last modified time | relevance | path

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

/mm/
Dutil.c632 int res = 0; in get_cmdline() local
653 res = access_process_vm(task, arg_start, buffer, len, FOLL_FORCE); in get_cmdline()
659 if (res > 0 && buffer[res-1] != '\0' && len < buflen) { in get_cmdline()
660 len = strnlen(buffer, res); in get_cmdline()
661 if (len < res) { in get_cmdline()
662 res = len; in get_cmdline()
665 if (len > buflen - res) in get_cmdline()
666 len = buflen - res; in get_cmdline()
667 res += access_process_vm(task, env_start, in get_cmdline()
668 buffer+res, len, in get_cmdline()
[all …]
Dmemory_hotplug.c152 struct resource *res; in register_memory_resource() local
153 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in register_memory_resource()
154 if (!res) in register_memory_resource()
157 res->name = "System RAM"; in register_memory_resource()
158 res->start = start; in register_memory_resource()
159 res->end = start + size - 1; in register_memory_resource()
160 res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY; in register_memory_resource()
161 if (request_resource(&iomem_resource, res) < 0) { in register_memory_resource()
162 pr_debug("System RAM resource %pR cannot be added\n", res); in register_memory_resource()
163 kfree(res); in register_memory_resource()
[all …]
Dmemory-failure.c738 int res = 0; in me_huge_page() local
753 res = dequeue_hwpoisoned_huge_page(hpage); in me_huge_page()
754 if (!res) in me_huge_page()
786 unsigned long res; member
1052 int res; in memory_failure() local
1118 res = dequeue_hwpoisoned_huge_page(hpage); in memory_failure()
1120 res ? MF_IGNORED : MF_DELAYED); in memory_failure()
1122 return res; in memory_failure()
1183 res = -EBUSY; in memory_failure()
1255 res = -EBUSY; in memory_failure()
[all …]
Ddmapool.c479 static void dmam_pool_release(struct device *dev, void *res) in dmam_pool_release() argument
481 struct dma_pool *pool = *(struct dma_pool **)res; in dmam_pool_release()
486 static int dmam_pool_match(struct device *dev, void *res, void *match_data) in dmam_pool_match() argument
488 return *(struct dma_pool **)res == match_data; in dmam_pool_match()
Dslab_common.c83 int res; in kmem_cache_sanity_check() local
90 res = probe_kernel_address(s->name, tmp); in kmem_cache_sanity_check()
91 if (res) { in kmem_cache_sanity_check()
Dshmem.c3999 struct file *res; in __shmem_file_setup() local
4014 res = ERR_PTR(-ENOMEM); in __shmem_file_setup()
4025 res = ERR_PTR(-ENOSPC); in __shmem_file_setup()
4034 res = ERR_PTR(ramfs_nommu_expand_for_mapping(inode, size)); in __shmem_file_setup()
4035 if (IS_ERR(res)) in __shmem_file_setup()
4038 res = alloc_file(&path, FMODE_WRITE | FMODE_READ, in __shmem_file_setup()
4040 if (IS_ERR(res)) in __shmem_file_setup()
4043 return res; in __shmem_file_setup()
4049 return res; in __shmem_file_setup()
Dvmscan.c632 int res; in pageout() local
642 res = mapping->a_ops->writepage(page, &wbc); in pageout()
643 if (res < 0) in pageout()
644 handle_write_error(mapping, page, res); in pageout()
645 if (res == AOP_WRITEPAGE_ACTIVATE) { in pageout()
Dmemblock.c1214 phys_addr_t res = memblock_alloc_nid(size, align, nid); in memblock_alloc_try_nid() local
1216 if (res) in memblock_alloc_try_nid()
1217 return res; in memblock_alloc_try_nid()
Dslab.c4216 int limit, batchcount, shared, res; in slabinfo_write() local
4235 res = -EINVAL; in slabinfo_write()
4240 res = 0; in slabinfo_write()
4242 res = do_tune_cpucache(cachep, limit, in slabinfo_write()
4250 if (res >= 0) in slabinfo_write()
4251 res = count; in slabinfo_write()
4252 return res; in slabinfo_write()
Dpage_alloc.c659 unsigned long res; in debug_guardpage_minorder_setup() local
661 if (kstrtoul(buf, 10, &res) < 0 || res > MAX_ORDER / 2) { in debug_guardpage_minorder_setup()
665 _debug_guardpage_minorder = res; in debug_guardpage_minorder_setup()
666 pr_info("Setting debug_guardpage_minorder to %lu\n", res); in debug_guardpage_minorder_setup()
Dmemory.c3771 int res; in follow_pte() local
3775 !(res = __follow_pte(mm, address, ptepp, ptlp))); in follow_pte()
3776 return res; in follow_pte()