Lines Matching refs:mem_block
216 struct memory_block *mem_block; in lmb_to_memblock() local
220 mem_block = find_memory_block(section_nr); in lmb_to_memblock()
221 return mem_block; in lmb_to_memblock()
255 struct memory_block *mem_block; in dlpar_change_lmb_state() local
258 mem_block = lmb_to_memblock(lmb); in dlpar_change_lmb_state()
259 if (!mem_block) in dlpar_change_lmb_state()
262 if (online && mem_block->dev.offline) in dlpar_change_lmb_state()
263 rc = device_online(&mem_block->dev); in dlpar_change_lmb_state()
264 else if (!online && !mem_block->dev.offline) in dlpar_change_lmb_state()
265 rc = device_offline(&mem_block->dev); in dlpar_change_lmb_state()
269 put_device(&mem_block->dev); in dlpar_change_lmb_state()
370 struct memory_block *mem_block; in dlpar_remove_lmb() local
377 mem_block = lmb_to_memblock(lmb); in dlpar_remove_lmb()
378 if (mem_block == NULL) in dlpar_remove_lmb()
383 put_device(&mem_block->dev); in dlpar_remove_lmb()
390 put_device(&mem_block->dev); in dlpar_remove_lmb()