Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 12 of 12) sorted by relevance

/mm/
Ddmapool.c134 struct dma_pool *retval; in dma_pool_create() local
158 retval = kmalloc_node(sizeof(*retval), GFP_KERNEL, dev_to_node(dev)); in dma_pool_create()
159 if (!retval) in dma_pool_create()
160 return retval; in dma_pool_create()
162 strlcpy(retval->name, name, sizeof(retval->name)); in dma_pool_create()
164 retval->dev = dev; in dma_pool_create()
166 INIT_LIST_HEAD(&retval->page_list); in dma_pool_create()
167 spin_lock_init(&retval->lock); in dma_pool_create()
168 retval->size = size; in dma_pool_create()
169 retval->boundary = boundary; in dma_pool_create()
[all …]
Dmincore.c271 long retval; in SYSCALL_DEFINE3() local
294 retval = 0; in SYSCALL_DEFINE3()
301 retval = do_mincore(start, min(pages, PAGE_SIZE), tmp); in SYSCALL_DEFINE3()
304 if (retval <= 0) in SYSCALL_DEFINE3()
306 if (copy_to_user(vec, tmp, retval)) { in SYSCALL_DEFINE3()
307 retval = -EFAULT; in SYSCALL_DEFINE3()
310 pages -= retval; in SYSCALL_DEFINE3()
311 vec += retval; in SYSCALL_DEFINE3()
312 start += retval << PAGE_SHIFT; in SYSCALL_DEFINE3()
313 retval = 0; in SYSCALL_DEFINE3()
[all …]
Dpage_cgroup.c416 unsigned short retval; in swap_cgroup_cmpxchg() local
421 retval = sc->id; in swap_cgroup_cmpxchg()
422 if (retval == old) in swap_cgroup_cmpxchg()
425 retval = 0; in swap_cgroup_cmpxchg()
427 return retval; in swap_cgroup_cmpxchg()
Dmlock.c267 static int __mlock_posix_error_return(long retval) in __mlock_posix_error_return() argument
269 if (retval == -EFAULT) in __mlock_posix_error_return()
270 retval = -ENOMEM; in __mlock_posix_error_return()
271 else if (retval == -ENOMEM) in __mlock_posix_error_return()
272 retval = -EAGAIN; in __mlock_posix_error_return()
273 return retval; in __mlock_posix_error_return()
Dfilemap.c1694 ssize_t retval = 0; in generic_file_read_iter() local
1708 retval = filemap_write_and_wait_range(mapping, pos, in generic_file_read_iter()
1710 if (!retval) { in generic_file_read_iter()
1712 retval = mapping->a_ops->direct_IO(READ, iocb, &data, pos); in generic_file_read_iter()
1715 if (retval > 0) { in generic_file_read_iter()
1716 *ppos = pos + retval; in generic_file_read_iter()
1717 iov_iter_advance(iter, retval); in generic_file_read_iter()
1728 if (retval < 0 || !iov_iter_count(iter) || *ppos >= size) { in generic_file_read_iter()
1734 retval = do_generic_file_read(file, ppos, iter, retval); in generic_file_read_iter()
1736 return retval; in generic_file_read_iter()
Dswapfile.c1386 int retval = 0; in try_to_unuse() local
1412 retval = -EINTR; in try_to_unuse()
1442 retval = -ENOMEM; in try_to_unuse()
1473 retval = shmem_unuse(entry, page); in try_to_unuse()
1475 if (retval < 0) in try_to_unuse()
1480 retval = unuse_mm(start_mm, entry, page); in try_to_unuse()
1492 while (swap_count(*swap_map) && !retval && in try_to_unuse()
1509 retval = unuse_mm(mm, entry, page); in try_to_unuse()
1524 if (retval) { in try_to_unuse()
1592 return retval; in try_to_unuse()
Dmemory.c1468 int retval; in insert_page() local
1472 retval = -EINVAL; in insert_page()
1475 retval = -ENOMEM; in insert_page()
1480 retval = -EBUSY; in insert_page()
1490 retval = 0; in insert_page()
1492 return retval; in insert_page()
1496 return retval; in insert_page()
1546 int retval; in insert_pfn() local
1550 retval = -ENOMEM; in insert_pfn()
1554 retval = -EBUSY; in insert_pfn()
[all …]
Dmmap.c302 unsigned long retval; in SYSCALL_DEFINE1() local
367 retval = mm->brk; in SYSCALL_DEFINE1()
369 return retval; in SYSCALL_DEFINE1()
1449 unsigned long retval = -EBADF; in SYSCALL_DEFINE6() local
1458 retval = -EINVAL; in SYSCALL_DEFINE6()
1486 retval = vm_mmap_pgoff(file, addr, len, prot, flags, pgoff); in SYSCALL_DEFINE6()
1491 return retval; in SYSCALL_DEFINE6()
Dshmem.c1375 int retval = -ENOMEM; in shmem_lock() local
1389 retval = 0; in shmem_lock()
1393 return retval; in shmem_lock()
1531 ssize_t retval = 0; in shmem_file_read_iter() local
1609 retval += ret; in shmem_file_read_iter()
1626 return retval ? retval : error; in shmem_file_read_iter()
Dnommu.c1499 unsigned long retval = -EBADF; in SYSCALL_DEFINE6() local
1510 retval = vm_mmap_pgoff(file, addr, len, prot, flags, pgoff); in SYSCALL_DEFINE6()
1515 return retval; in SYSCALL_DEFINE6()
Dhugetlb.c1954 int retval; in hugetlb_sysfs_add_hstate() local
1961 retval = sysfs_create_group(hstate_kobjs[hi], hstate_attr_group); in hugetlb_sysfs_add_hstate()
1962 if (retval) in hugetlb_sysfs_add_hstate()
1965 return retval; in hugetlb_sysfs_add_hstate()
Dmemcontrol.c3972 int retval = 0; in mem_cgroup_hierarchy_write() local
3994 retval = -EBUSY; in mem_cgroup_hierarchy_write()
3996 retval = -EINVAL; in mem_cgroup_hierarchy_write()
4001 return retval; in mem_cgroup_hierarchy_write()