Lines Matching refs:mem_blk
796 struct memory_block *mem_blk) in do_register_memory_block_under_node() argument
804 mem_blk->nid = nid; in do_register_memory_block_under_node()
807 &mem_blk->dev.kobj, in do_register_memory_block_under_node()
808 kobject_name(&mem_blk->dev.kobj)); in do_register_memory_block_under_node()
812 kobject_name(&mem_blk->dev.kobj), ret); in do_register_memory_block_under_node()
814 ret = sysfs_create_link_nowarn(&mem_blk->dev.kobj, in do_register_memory_block_under_node()
818 dev_err_ratelimited(&mem_blk->dev, in do_register_memory_block_under_node()
825 static int register_mem_block_under_node_early(struct memory_block *mem_blk, in register_mem_block_under_node_early() argument
829 unsigned long start_pfn = section_nr_to_pfn(mem_blk->start_section_nr); in register_mem_block_under_node_early()
857 do_register_memory_block_under_node(nid, mem_blk); in register_mem_block_under_node_early()
868 static int register_mem_block_under_node_hotplug(struct memory_block *mem_blk, in register_mem_block_under_node_hotplug() argument
873 do_register_memory_block_under_node(nid, mem_blk); in register_mem_block_under_node_hotplug()
881 void unregister_memory_block_under_nodes(struct memory_block *mem_blk) in unregister_memory_block_under_nodes() argument
883 if (mem_blk->nid == NUMA_NO_NODE) in unregister_memory_block_under_nodes()
886 sysfs_remove_link(&node_devices[mem_blk->nid]->dev.kobj, in unregister_memory_block_under_nodes()
887 kobject_name(&mem_blk->dev.kobj)); in unregister_memory_block_under_nodes()
888 sysfs_remove_link(&mem_blk->dev.kobj, in unregister_memory_block_under_nodes()
889 kobject_name(&node_devices[mem_blk->nid]->dev.kobj)); in unregister_memory_block_under_nodes()