• Home
  • Raw
  • Download

Lines Matching refs:rc

543 	int rc = -EINVAL;  in set_online_page_callback()  local
550 rc = 0; in set_online_page_callback()
556 return rc; in set_online_page_callback()
562 int rc = -EINVAL; in restore_online_page_callback() local
569 rc = 0; in restore_online_page_callback()
575 return rc; in restore_online_page_callback()
1487 int rc; in add_memory() local
1490 rc = __add_memory(nid, start, size, mhp_flags); in add_memory()
1493 return rc; in add_memory()
1567 int rc; in add_memory_driver_managed() local
1578 rc = PTR_ERR(res); in add_memory_driver_managed()
1582 rc = add_memory_resource(nid, res, mhp_flags); in add_memory_driver_managed()
1583 if (rc < 0) in add_memory_driver_managed()
1588 return rc; in add_memory_driver_managed()
2164 int rc; in try_offline_node() local
2179 rc = for_each_memory_block(&nid, check_no_memblock_for_node_cb); in try_offline_node()
2180 if (rc) in try_offline_node()
2200 int rc = 0, nid = NUMA_NO_NODE; in try_remove_memory() local
2213 rc = walk_memory_blocks(start, size, &nid, check_memblock_offlined_cb); in try_remove_memory()
2214 if (rc) in try_remove_memory()
2215 return rc; in try_remove_memory()
2295 int rc; in remove_memory() local
2298 rc = try_remove_memory(start, size); in remove_memory()
2301 return rc; in remove_memory()
2333 int rc; in try_offline_memory_block() local
2344 rc = device_offline(&mem->dev); in try_offline_memory_block()
2349 if (!rc) in try_offline_memory_block()
2354 return rc < 0 ? rc : 0; in try_offline_memory_block()
2360 int rc; in try_reonline_memory_block() local
2364 rc = device_online(&mem->dev); in try_reonline_memory_block()
2365 if (rc < 0) in try_reonline_memory_block()
2367 __func__, rc); in try_reonline_memory_block()
2385 int rc; in offline_and_remove_memory() local
2410 rc = walk_memory_blocks(start, size, &tmp, try_offline_memory_block); in offline_and_remove_memory()
2416 if (!rc) { in offline_and_remove_memory()
2417 rc = try_remove_memory(start, size); in offline_and_remove_memory()
2418 if (rc) in offline_and_remove_memory()
2419 pr_err("%s: Failed to remove memory: %d", __func__, rc); in offline_and_remove_memory()
2426 if (rc) { in offline_and_remove_memory()
2434 return rc; in offline_and_remove_memory()