• Home
  • Raw
  • Download

Lines Matching refs:arg

629 	struct zone *zone, struct memory_notify *arg)  in node_states_check_changes_online()  argument
633 arg->status_change_nid = NUMA_NO_NODE; in node_states_check_changes_online()
634 arg->status_change_nid_normal = NUMA_NO_NODE; in node_states_check_changes_online()
635 arg->status_change_nid_high = NUMA_NO_NODE; in node_states_check_changes_online()
638 arg->status_change_nid = nid; in node_states_check_changes_online()
640 arg->status_change_nid_normal = nid; in node_states_check_changes_online()
643 arg->status_change_nid_high = nid; in node_states_check_changes_online()
647 static void node_states_set_node(int node, struct memory_notify *arg) in node_states_set_node() argument
649 if (arg->status_change_nid_normal >= 0) in node_states_set_node()
652 if (arg->status_change_nid_high >= 0) in node_states_set_node()
655 if (arg->status_change_nid >= 0) in node_states_set_node()
786 struct memory_notify arg; in online_pages() local
799 arg.start_pfn = pfn; in online_pages()
800 arg.nr_pages = nr_pages; in online_pages()
801 node_states_check_changes_online(nr_pages, zone, &arg); in online_pages()
803 ret = memory_notify(MEM_GOING_ONLINE, &arg); in online_pages()
833 node_states_set_node(nid, &arg); in online_pages()
856 memory_notify(MEM_ONLINE, &arg); in online_pages()
864 memory_notify(MEM_CANCEL_ONLINE, &arg); in online_pages()
1008 static int online_memory_block(struct memory_block *mem, void *arg) in online_memory_block() argument
1428 struct zone *zone, struct memory_notify *arg) in node_states_check_changes_offline() argument
1434 arg->status_change_nid = NUMA_NO_NODE; in node_states_check_changes_offline()
1435 arg->status_change_nid_normal = NUMA_NO_NODE; in node_states_check_changes_offline()
1436 arg->status_change_nid_high = NUMA_NO_NODE; in node_states_check_changes_offline()
1449 arg->status_change_nid_normal = zone_to_nid(zone); in node_states_check_changes_offline()
1462 arg->status_change_nid_high = zone_to_nid(zone); in node_states_check_changes_offline()
1478 arg->status_change_nid = zone_to_nid(zone); in node_states_check_changes_offline()
1481 static void node_states_clear_node(int node, struct memory_notify *arg) in node_states_clear_node() argument
1483 if (arg->status_change_nid_normal >= 0) in node_states_clear_node()
1486 if (arg->status_change_nid_high >= 0) in node_states_clear_node()
1489 if (arg->status_change_nid >= 0) in node_states_clear_node()
1508 struct memory_notify arg; in offline_pages() local
1557 arg.start_pfn = start_pfn; in offline_pages()
1558 arg.nr_pages = nr_pages; in offline_pages()
1559 node_states_check_changes_offline(nr_pages, zone, &arg); in offline_pages()
1561 ret = memory_notify(MEM_GOING_OFFLINE, &arg); in offline_pages()
1651 node_states_clear_node(node, &arg); in offline_pages()
1652 if (arg.status_change_nid >= 0) { in offline_pages()
1659 memory_notify(MEM_OFFLINE, &arg); in offline_pages()
1666 memory_notify(MEM_CANCEL_OFFLINE, &arg); in offline_pages()
1679 static int check_memblock_offlined_cb(struct memory_block *mem, void *arg) in check_memblock_offlined_cb() argument
1712 static int check_no_memblock_for_node_cb(struct memory_block *mem, void *arg) in check_no_memblock_for_node_cb() argument
1714 int nid = *(int *)arg; in check_no_memblock_for_node_cb()
1868 static int try_offline_memory_block(struct memory_block *mem, void *arg) in try_offline_memory_block() argument
1871 uint8_t **online_types = arg; in try_offline_memory_block()
1897 static int try_reonline_memory_block(struct memory_block *mem, void *arg) in try_reonline_memory_block() argument
1899 uint8_t **online_types = arg; in try_reonline_memory_block()