/mm/ |
D | util.c | 699 int res = 0; in get_cmdline() local 720 res = access_process_vm(task, arg_start, buffer, len, FOLL_FORCE); in get_cmdline() 726 if (res > 0 && buffer[res-1] != '\0' && len < buflen) { in get_cmdline() 727 len = strnlen(buffer, res); in get_cmdline() 728 if (len < res) { in get_cmdline() 729 res = len; in get_cmdline() 732 if (len > buflen - res) in get_cmdline() 733 len = buflen - res; in get_cmdline() 734 res += access_process_vm(task, env_start, in get_cmdline() 735 buffer+res, len, in get_cmdline() [all …]
|
D | memory_hotplug.c | 103 struct resource *res, *conflict; in register_memory_resource() local 104 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in register_memory_resource() 105 if (!res) in register_memory_resource() 108 res->name = "System RAM"; in register_memory_resource() 109 res->start = start; in register_memory_resource() 110 res->end = start + size - 1; in register_memory_resource() 111 res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY; in register_memory_resource() 112 conflict = request_resource_conflict(&iomem_resource, res); in register_memory_resource() 119 pr_debug("System RAM resource %pR cannot be added\n", res); in register_memory_resource() 120 kfree(res); in register_memory_resource() [all …]
|
D | memory-failure.c | 751 int res = 0; in me_huge_page() local 760 res = truncate_error_page(hpage, pfn, mapping); in me_huge_page() 771 res = MF_RECOVERED; in me_huge_page() 775 return res; in me_huge_page() 803 unsigned long res; member 1038 if ((p->flags & ps->mask) == ps->res) in identify_page_state() 1045 if ((page_flags & ps->mask) == ps->res) in identify_page_state() 1054 int res; in memory_failure_hugetlb() local 1106 res = -EBUSY; in memory_failure_hugetlb() 1112 res = -EBUSY; in memory_failure_hugetlb() [all …]
|
D | dmapool.c | 479 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()
|
D | hmm.c | 880 devmem->pagemap.res = devmem->resource; in hmm_devmem_pages_create() 1048 struct resource *res) in hmm_devmem_add_resource() argument 1053 if (res->desc != IORES_DESC_DEVICE_PUBLIC_MEMORY) in hmm_devmem_add_resource() 1065 devmem->resource = res; in hmm_devmem_add_resource()
|
D | slab_common.c | 88 int res; in kmem_cache_sanity_check() local 95 res = probe_kernel_address(s->name, tmp); in kmem_cache_sanity_check() 96 if (res) { in kmem_cache_sanity_check()
|
D | shmem.c | 4257 struct file *res; in __shmem_file_setup() local 4272 res = ERR_PTR(-ENOMEM); in __shmem_file_setup() 4283 res = ERR_PTR(-ENOSPC); in __shmem_file_setup() 4292 res = ERR_PTR(ramfs_nommu_expand_for_mapping(inode, size)); in __shmem_file_setup() 4293 if (IS_ERR(res)) in __shmem_file_setup() 4296 res = alloc_file(&path, FMODE_WRITE | FMODE_READ, in __shmem_file_setup() 4298 if (IS_ERR(res)) in __shmem_file_setup() 4301 return res; in __shmem_file_setup() 4307 return res; in __shmem_file_setup()
|
D | slab.c | 4174 int limit, batchcount, shared, res; in slabinfo_write() local 4193 res = -EINVAL; in slabinfo_write() 4198 res = 0; in slabinfo_write() 4200 res = do_tune_cpucache(cachep, limit, in slabinfo_write() 4208 if (res >= 0) in slabinfo_write() 4209 res = count; in slabinfo_write() 4210 return res; in slabinfo_write()
|
D | vmscan.c | 647 int res; in pageout() local 657 res = mapping->a_ops->writepage(page, &wbc); in pageout() 658 if (res < 0) in pageout() 659 handle_write_error(mapping, page, res); in pageout() 660 if (res == AOP_WRITEPAGE_ACTIVATE) { in pageout()
|
D | memblock.c | 1214 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()
|
D | memory.c | 4322 int res; in follow_pte() local 4326 !(res = __follow_pte_pmd(mm, address, NULL, NULL, in follow_pte() 4328 return res; in follow_pte() 4335 int res; in follow_pte_pmd() local 4339 !(res = __follow_pte_pmd(mm, address, start, end, in follow_pte_pmd() 4341 return res; in follow_pte_pmd()
|
D | page_alloc.c | 677 unsigned long res; in debug_guardpage_minorder_setup() local 679 if (kstrtoul(buf, 10, &res) < 0 || res > MAX_ORDER / 2) { in debug_guardpage_minorder_setup() 683 _debug_guardpage_minorder = res; in debug_guardpage_minorder_setup() 684 pr_info("Setting debug_guardpage_minorder to %lu\n", res); in debug_guardpage_minorder_setup()
|