Lines Matching refs:memory_block

49 #define to_memory_block(dev) container_of(dev, struct memory_block, dev)
107 struct memory_block *mem = to_memory_block(dev); in memory_block_release()
124 struct memory_block *mem = to_memory_block(dev); in phys_index_show()
148 struct memory_block *mem = to_memory_block(dev); in state_show()
178 static int memory_block_online(struct memory_block *mem) in memory_block_online()
222 static int memory_block_offline(struct memory_block *mem) in memory_block_offline()
262 memory_block_action(struct memory_block *mem, unsigned long action) in memory_block_action()
282 static int memory_block_change_state(struct memory_block *mem, in memory_block_change_state()
302 struct memory_block *mem = to_memory_block(dev); in memory_subsys_online()
323 struct memory_block *mem = to_memory_block(dev); in memory_subsys_offline()
335 struct memory_block *mem = to_memory_block(dev); in state_store()
380 struct memory_block *mem = to_memory_block(dev); in phys_device_show()
405 struct memory_block *mem = to_memory_block(dev); in valid_zones_show()
582 static struct memory_block *find_memory_block_by_id(unsigned long block_id) in find_memory_block_by_id()
584 struct memory_block *mem; in find_memory_block_by_id()
595 struct memory_block *find_memory_block(unsigned long section_nr) in find_memory_block()
622 static int __add_memory_block(struct memory_block *memory) in __add_memory_block()
645 static struct zone *early_node_zone_for_memory_block(struct memory_block *mem, in early_node_zone_for_memory_block()
692 void memory_block_add_nid(struct memory_block *mem, int nid, in memory_block_add_nid()
725 struct memory_block *mem; in add_memory_block()
789 static void remove_memory_block(struct memory_block *memory) in remove_memory_block()
819 struct memory_block *mem; in create_memory_block_devices()
856 struct memory_block *mem; in remove_memory_block_devices()
873 bool is_memblock_offlined(struct memory_block *mem) in is_memblock_offlined()
957 struct memory_block *mem; in walk_memory_blocks()
984 struct memory_block *mem = to_memory_block(dev); in for_each_memory_block_cb()