• Home
  • Raw
  • Download

Lines Matching refs:ret

785 	int ret;  in online_pages()  local
803 ret = memory_notify(MEM_GOING_ONLINE, &arg); in online_pages()
804 ret = notifier_to_errno(ret); in online_pages()
805 if (ret) in online_pages()
867 return ret; in online_pages()
961 int ret = 1; in __try_online_node() local
969 ret = -ENOMEM; in __try_online_node()
975 ret = register_one_node(nid); in __try_online_node()
976 BUG_ON(ret); in __try_online_node()
979 return ret; in __try_online_node()
987 int ret; in try_online_node() local
990 ret = __try_online_node(nid, true); in try_online_node()
992 return ret; in try_online_node()
1025 int ret; in add_memory_resource() local
1030 ret = check_hotplug_memory_range(start, size); in add_memory_resource()
1031 if (ret) in add_memory_resource()
1032 return ret; in add_memory_resource()
1044 ret = __try_online_node(nid, false); in add_memory_resource()
1045 if (ret < 0) in add_memory_resource()
1047 new_node = ret; in add_memory_resource()
1050 ret = arch_add_memory(nid, start, size, &params); in add_memory_resource()
1051 if (ret < 0) in add_memory_resource()
1055 ret = create_memory_block_devices(start, size); in add_memory_resource()
1056 if (ret) { in add_memory_resource()
1068 ret = __register_one_node(nid); in add_memory_resource()
1069 BUG_ON(ret); in add_memory_resource()
1094 return ret; in add_memory_resource()
1102 return ret; in add_memory_resource()
1109 int ret; in __add_memory() local
1115 ret = add_memory_resource(nid, res, mhp_flags); in __add_memory()
1116 if (ret < 0) in __add_memory()
1118 return ret; in __add_memory()
1137 int ret; in add_memory_subsection() local
1157 ret = arch_add_memory(nid, start, size, &params); in add_memory_subsection()
1158 if (ret) { in add_memory_subsection()
1165 return ret; in add_memory_subsection()
1174 return ret; in add_memory_subsection()
1324 int ret = 0; in do_migrate_range() local
1364 ret = isolate_lru_page(page); in do_migrate_range()
1366 ret = isolate_movable_page(page, ISOLATE_UNEVICTABLE); in do_migrate_range()
1367 if (!ret) { /* Success */ in do_migrate_range()
1402 ret = migrate_pages(&source, alloc_migration_target, NULL, in do_migrate_range()
1404 if (ret) { in do_migrate_range()
1408 page_to_pfn(page), ret); in do_migrate_range()
1416 return ret; in do_migrate_range()
1509 int ret, node; in offline_pages() local
1530 ret = -EINVAL; in offline_pages()
1539 ret = -EINVAL; in offline_pages()
1547 ret = start_isolate_page_range(start_pfn, end_pfn, in offline_pages()
1550 if (ret) { in offline_pages()
1561 ret = memory_notify(MEM_GOING_OFFLINE, &arg); in offline_pages()
1562 ret = notifier_to_errno(ret); in offline_pages()
1563 if (ret) { in offline_pages()
1572 ret = -EINTR; in offline_pages()
1579 ret = scan_movable_pages(pfn, end_pfn, &pfn); in offline_pages()
1580 if (!ret) { in offline_pages()
1587 } while (!ret); in offline_pages()
1589 if (ret != -ENOENT) { in offline_pages()
1599 ret = dissolve_free_huge_pages(start_pfn, end_pfn); in offline_pages()
1600 if (ret) { in offline_pages()
1616 ret = test_pages_isolated(start_pfn, end_pfn, MEMORY_OFFLINE, NULL); in offline_pages()
1617 if (ret) in offline_pages()
1619 } while (ret); in offline_pages()
1676 return ret; in offline_pages()
1681 int ret = !is_memblock_offlined(mem); in check_memblock_offlined_cb() local
1683 if (unlikely(ret)) { in check_memblock_offlined_cb()