lmb 29 arch/powerpc/include/asm/drmem.h #define for_each_drmem_lmb_in_range(lmb, start, end) \ lmb 30 arch/powerpc/include/asm/drmem.h for ((lmb) = (start); (lmb) < (end); (lmb)++) lmb 32 arch/powerpc/include/asm/drmem.h #define for_each_drmem_lmb(lmb) \ lmb 33 arch/powerpc/include/asm/drmem.h for_each_drmem_lmb_in_range((lmb), \ lmb 76 arch/powerpc/include/asm/drmem.h static inline void drmem_mark_lmb_reserved(struct drmem_lmb *lmb) lmb 78 arch/powerpc/include/asm/drmem.h lmb->flags |= DRMEM_LMB_RESERVED; lmb 81 arch/powerpc/include/asm/drmem.h static inline void drmem_remove_lmb_reservation(struct drmem_lmb *lmb) lmb 83 arch/powerpc/include/asm/drmem.h lmb->flags &= ~DRMEM_LMB_RESERVED; lmb 86 arch/powerpc/include/asm/drmem.h static inline bool drmem_lmb_reserved(struct drmem_lmb *lmb) lmb 88 arch/powerpc/include/asm/drmem.h return lmb->flags & DRMEM_LMB_RESERVED; lmb 101 arch/powerpc/include/asm/drmem.h static inline void invalidate_lmb_associativity_index(struct drmem_lmb *lmb) lmb 103 arch/powerpc/include/asm/drmem.h lmb->aa_index = 0xffffffff; lmb 107 arch/powerpc/include/asm/drmem.h static inline void lmb_set_nid(struct drmem_lmb *lmb) lmb 109 arch/powerpc/include/asm/drmem.h lmb->nid = memory_add_physaddr_to_nid(lmb->base_addr); lmb 111 arch/powerpc/include/asm/drmem.h static inline void lmb_clear_nid(struct drmem_lmb *lmb) lmb 113 arch/powerpc/include/asm/drmem.h lmb->nid = -1; lmb 116 arch/powerpc/include/asm/drmem.h static inline void lmb_set_nid(struct drmem_lmb *lmb) lmb 119 arch/powerpc/include/asm/drmem.h static inline void lmb_clear_nid(struct drmem_lmb *lmb) lmb 471 arch/powerpc/kernel/prom.c static void __init early_init_drmem_lmb(struct drmem_lmb *lmb, lmb 477 arch/powerpc/kernel/prom.c base = lmb->base_addr; lmb 485 arch/powerpc/kernel/prom.c if ((lmb->flags & DRCONF_MEM_RESERVED) || lmb 486 arch/powerpc/kernel/prom.c !(lmb->flags & DRCONF_MEM_ASSIGNED)) lmb 28 arch/powerpc/mm/drmem.c static u32 drmem_lmb_flags(struct drmem_lmb *lmb) lmb 34 arch/powerpc/mm/drmem.c return lmb->flags & ~DRMEM_LMB_RESERVED; lmb 66 arch/powerpc/mm/drmem.c struct drmem_lmb *lmb; lmb 78 arch/powerpc/mm/drmem.c for_each_drmem_lmb(lmb) { lmb 79 arch/powerpc/mm/drmem.c dr_cell->base_addr = cpu_to_be64(lmb->base_addr); lmb 80 arch/powerpc/mm/drmem.c dr_cell->drc_index = cpu_to_be32(lmb->drc_index); lmb 81 arch/powerpc/mm/drmem.c dr_cell->aa_index = cpu_to_be32(lmb->aa_index); lmb 82 arch/powerpc/mm/drmem.c dr_cell->flags = cpu_to_be32(drmem_lmb_flags(lmb)); lmb 92 arch/powerpc/mm/drmem.c struct drmem_lmb *lmb) lmb 94 arch/powerpc/mm/drmem.c dr_cell->base_addr = cpu_to_be64(lmb->base_addr); lmb 95 arch/powerpc/mm/drmem.c dr_cell->drc_index = cpu_to_be32(lmb->drc_index); lmb 96 arch/powerpc/mm/drmem.c dr_cell->aa_index = cpu_to_be32(lmb->aa_index); lmb 97 arch/powerpc/mm/drmem.c dr_cell->flags = cpu_to_be32(drmem_lmb_flags(lmb)); lmb 105 arch/powerpc/mm/drmem.c struct drmem_lmb *lmb, *prev_lmb; lmb 112 arch/powerpc/mm/drmem.c for_each_drmem_lmb(lmb) { lmb 114 arch/powerpc/mm/drmem.c prev_lmb = lmb; lmb 119 arch/powerpc/mm/drmem.c if (prev_lmb->aa_index != lmb->aa_index || lmb 120 arch/powerpc/mm/drmem.c drmem_lmb_flags(prev_lmb) != drmem_lmb_flags(lmb)) lmb 123 arch/powerpc/mm/drmem.c prev_lmb = lmb; lmb 139 arch/powerpc/mm/drmem.c for_each_drmem_lmb(lmb) { lmb 142 arch/powerpc/mm/drmem.c prev_lmb = lmb; lmb 143 arch/powerpc/mm/drmem.c init_drconf_v2_cell(dr_cell, lmb); lmb 148 arch/powerpc/mm/drmem.c if (prev_lmb->aa_index != lmb->aa_index || lmb 149 arch/powerpc/mm/drmem.c drmem_lmb_flags(prev_lmb) != drmem_lmb_flags(lmb)) { lmb 154 arch/powerpc/mm/drmem.c init_drconf_v2_cell(dr_cell, lmb); lmb 160 arch/powerpc/mm/drmem.c prev_lmb = lmb; lmb 192 arch/powerpc/mm/drmem.c static void __init read_drconf_v1_cell(struct drmem_lmb *lmb, lmb 197 arch/powerpc/mm/drmem.c lmb->base_addr = dt_mem_next_cell(dt_root_addr_cells, &p); lmb 198 arch/powerpc/mm/drmem.c lmb->drc_index = of_read_number(p++, 1); lmb 202 arch/powerpc/mm/drmem.c lmb->aa_index = of_read_number(p++, 1); lmb 203 arch/powerpc/mm/drmem.c lmb->flags = of_read_number(p++, 1); lmb 211 arch/powerpc/mm/drmem.c struct drmem_lmb lmb; lmb 219 arch/powerpc/mm/drmem.c read_drconf_v1_cell(&lmb, &prop); lmb 220 arch/powerpc/mm/drmem.c func(&lmb, &usm); lmb 242 arch/powerpc/mm/drmem.c struct drmem_lmb lmb; lmb 253 arch/powerpc/mm/drmem.c lmb.base_addr = dr_cell.base_addr; lmb 256 arch/powerpc/mm/drmem.c lmb.drc_index = dr_cell.drc_index; lmb 259 arch/powerpc/mm/drmem.c lmb.aa_index = dr_cell.aa_index; lmb 260 arch/powerpc/mm/drmem.c lmb.flags = dr_cell.flags; lmb 262 arch/powerpc/mm/drmem.c func(&lmb, &usm); lmb 354 arch/powerpc/mm/drmem.c struct drmem_lmb *lmb; lmb 360 arch/powerpc/mm/drmem.c drmem_info->lmbs = kcalloc(drmem_info->n_lmbs, sizeof(*lmb), lmb 365 arch/powerpc/mm/drmem.c for_each_drmem_lmb(lmb) { lmb 366 arch/powerpc/mm/drmem.c read_drconf_v1_cell(lmb, &prop); lmb 367 arch/powerpc/mm/drmem.c lmb_set_nid(lmb); lmb 373 arch/powerpc/mm/drmem.c struct drmem_lmb *lmb; lmb 390 arch/powerpc/mm/drmem.c drmem_info->lmbs = kcalloc(drmem_info->n_lmbs, sizeof(*lmb), lmb 403 arch/powerpc/mm/drmem.c lmb = &drmem_info->lmbs[lmb_index++]; lmb 405 arch/powerpc/mm/drmem.c lmb->base_addr = dr_cell.base_addr; lmb 408 arch/powerpc/mm/drmem.c lmb->drc_index = dr_cell.drc_index; lmb 411 arch/powerpc/mm/drmem.c lmb->aa_index = dr_cell.aa_index; lmb 412 arch/powerpc/mm/drmem.c lmb->flags = dr_cell.flags; lmb 414 arch/powerpc/mm/drmem.c lmb_set_nid(lmb); lmb 432 arch/powerpc/mm/numa.c static int of_drconf_to_nid_single(struct drmem_lmb *lmb) lmb 447 arch/powerpc/mm/numa.c !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { lmb 448 arch/powerpc/mm/numa.c index = lmb->aa_index * aa.array_sz + min_common_depth - 1; lmb 455 arch/powerpc/mm/numa.c index = lmb->aa_index * aa.array_sz; lmb 590 arch/powerpc/mm/numa.c static void __init numa_setup_drmem_lmb(struct drmem_lmb *lmb, lmb 601 arch/powerpc/mm/numa.c if ((lmb->flags & DRCONF_MEM_RESERVED) lmb 602 arch/powerpc/mm/numa.c || !(lmb->flags & DRCONF_MEM_ASSIGNED)) lmb 608 arch/powerpc/mm/numa.c base = lmb->base_addr; lmb 624 arch/powerpc/mm/numa.c nid = of_drconf_to_nid_single(lmb); lmb 960 arch/powerpc/mm/numa.c struct drmem_lmb *lmb; lmb 966 arch/powerpc/mm/numa.c for_each_drmem_lmb(lmb) { lmb 969 arch/powerpc/mm/numa.c if ((lmb->flags & DRCONF_MEM_RESERVED) lmb 970 arch/powerpc/mm/numa.c || !(lmb->flags & DRCONF_MEM_ASSIGNED)) lmb 973 arch/powerpc/mm/numa.c if ((scn_addr < lmb->base_addr) lmb 974 arch/powerpc/mm/numa.c || (scn_addr >= (lmb->base_addr + lmb_size))) lmb 977 arch/powerpc/mm/numa.c nid = of_drconf_to_nid_single(lmb); lmb 156 arch/powerpc/platforms/pseries/hotplug-memory.c static int update_lmb_associativity_index(struct drmem_lmb *lmb) lmb 168 arch/powerpc/platforms/pseries/hotplug-memory.c lmb_node = dlpar_configure_connector(cpu_to_be32(lmb->drc_index), lmb 204 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->aa_index = aa_index; lmb 208 arch/powerpc/platforms/pseries/hotplug-memory.c static struct memory_block *lmb_to_memblock(struct drmem_lmb *lmb) lmb 214 arch/powerpc/platforms/pseries/hotplug-memory.c section_nr = pfn_to_section_nr(PFN_DOWN(lmb->base_addr)); lmb 225 arch/powerpc/platforms/pseries/hotplug-memory.c struct drmem_lmb *lmb, *start, *end; lmb 229 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 230 arch/powerpc/platforms/pseries/hotplug-memory.c if (lmb->drc_index == drc_index) { lmb 231 arch/powerpc/platforms/pseries/hotplug-memory.c start = lmb; lmb 250 arch/powerpc/platforms/pseries/hotplug-memory.c static int dlpar_change_lmb_state(struct drmem_lmb *lmb, bool online) lmb 255 arch/powerpc/platforms/pseries/hotplug-memory.c mem_block = lmb_to_memblock(lmb); lmb 271 arch/powerpc/platforms/pseries/hotplug-memory.c static int dlpar_online_lmb(struct drmem_lmb *lmb) lmb 273 arch/powerpc/platforms/pseries/hotplug-memory.c return dlpar_change_lmb_state(lmb, true); lmb 277 arch/powerpc/platforms/pseries/hotplug-memory.c static int dlpar_offline_lmb(struct drmem_lmb *lmb) lmb 279 arch/powerpc/platforms/pseries/hotplug-memory.c return dlpar_change_lmb_state(lmb, false); lmb 338 arch/powerpc/platforms/pseries/hotplug-memory.c static bool lmb_is_removable(struct drmem_lmb *lmb) lmb 345 arch/powerpc/platforms/pseries/hotplug-memory.c if (!(lmb->flags & DRCONF_MEM_ASSIGNED)) lmb 350 arch/powerpc/platforms/pseries/hotplug-memory.c phys_addr = lmb->base_addr; lmb 377 arch/powerpc/platforms/pseries/hotplug-memory.c static int dlpar_remove_lmb(struct drmem_lmb *lmb) lmb 382 arch/powerpc/platforms/pseries/hotplug-memory.c if (!lmb_is_removable(lmb)) lmb 385 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_offline_lmb(lmb); lmb 391 arch/powerpc/platforms/pseries/hotplug-memory.c __remove_memory(lmb->nid, lmb->base_addr, block_sz); lmb 394 arch/powerpc/platforms/pseries/hotplug-memory.c memblock_remove(lmb->base_addr, block_sz); lmb 396 arch/powerpc/platforms/pseries/hotplug-memory.c invalidate_lmb_associativity_index(lmb); lmb 397 arch/powerpc/platforms/pseries/hotplug-memory.c lmb_clear_nid(lmb); lmb 398 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->flags &= ~DRCONF_MEM_ASSIGNED; lmb 405 arch/powerpc/platforms/pseries/hotplug-memory.c struct drmem_lmb *lmb; lmb 416 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 417 arch/powerpc/platforms/pseries/hotplug-memory.c if (lmb_is_removable(lmb)) lmb 430 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 431 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_remove_lmb(lmb); lmb 438 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_mark_lmb_reserved(lmb); lmb 448 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 449 arch/powerpc/platforms/pseries/hotplug-memory.c if (!drmem_lmb_reserved(lmb)) lmb 452 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_add_lmb(lmb); lmb 455 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->drc_index); lmb 457 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_remove_lmb_reservation(lmb); lmb 462 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 463 arch/powerpc/platforms/pseries/hotplug-memory.c if (!drmem_lmb_reserved(lmb)) lmb 466 arch/powerpc/platforms/pseries/hotplug-memory.c dlpar_release_drc(lmb->drc_index); lmb 468 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->base_addr); lmb 470 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_remove_lmb_reservation(lmb); lmb 480 arch/powerpc/platforms/pseries/hotplug-memory.c struct drmem_lmb *lmb; lmb 487 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 488 arch/powerpc/platforms/pseries/hotplug-memory.c if (lmb->drc_index == drc_index) { lmb 490 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_remove_lmb(lmb); lmb 492 arch/powerpc/platforms/pseries/hotplug-memory.c dlpar_release_drc(lmb->drc_index); lmb 503 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->base_addr); lmb 505 arch/powerpc/platforms/pseries/hotplug-memory.c pr_info("Memory at %llx was hot-removed\n", lmb->base_addr); lmb 512 arch/powerpc/platforms/pseries/hotplug-memory.c struct drmem_lmb *lmb; lmb 519 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 520 arch/powerpc/platforms/pseries/hotplug-memory.c if (lmb->drc_index == drc_index) { lmb 522 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_remove_lmb(lmb); lmb 524 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_add_lmb(lmb); lmb 526 arch/powerpc/platforms/pseries/hotplug-memory.c dlpar_release_drc(lmb->drc_index); lmb 537 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->base_addr); lmb 539 arch/powerpc/platforms/pseries/hotplug-memory.c pr_info("Memory at %llx was updated\n", lmb->base_addr); lmb 546 arch/powerpc/platforms/pseries/hotplug-memory.c struct drmem_lmb *lmb, *start_lmb, *end_lmb; lmb 561 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { lmb 562 arch/powerpc/platforms/pseries/hotplug-memory.c if (lmb->flags & DRCONF_MEM_RESERVED) lmb 571 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { lmb 572 arch/powerpc/platforms/pseries/hotplug-memory.c if (!(lmb->flags & DRCONF_MEM_ASSIGNED)) lmb 575 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_remove_lmb(lmb); lmb 579 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_mark_lmb_reserved(lmb); lmb 586 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { lmb 587 arch/powerpc/platforms/pseries/hotplug-memory.c if (!drmem_lmb_reserved(lmb)) lmb 590 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_add_lmb(lmb); lmb 593 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->drc_index); lmb 595 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_remove_lmb_reservation(lmb); lmb 599 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { lmb 600 arch/powerpc/platforms/pseries/hotplug-memory.c if (!drmem_lmb_reserved(lmb)) lmb 603 arch/powerpc/platforms/pseries/hotplug-memory.c dlpar_release_drc(lmb->drc_index); lmb 605 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->base_addr, lmb->drc_index); lmb 607 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_remove_lmb_reservation(lmb); lmb 628 arch/powerpc/platforms/pseries/hotplug-memory.c static int dlpar_remove_lmb(struct drmem_lmb *lmb) lmb 651 arch/powerpc/platforms/pseries/hotplug-memory.c static int dlpar_add_lmb(struct drmem_lmb *lmb) lmb 656 arch/powerpc/platforms/pseries/hotplug-memory.c if (lmb->flags & DRCONF_MEM_ASSIGNED) lmb 659 arch/powerpc/platforms/pseries/hotplug-memory.c rc = update_lmb_associativity_index(lmb); lmb 661 arch/powerpc/platforms/pseries/hotplug-memory.c dlpar_release_drc(lmb->drc_index); lmb 665 arch/powerpc/platforms/pseries/hotplug-memory.c lmb_set_nid(lmb); lmb 669 arch/powerpc/platforms/pseries/hotplug-memory.c rc = __add_memory(lmb->nid, lmb->base_addr, block_sz); lmb 671 arch/powerpc/platforms/pseries/hotplug-memory.c invalidate_lmb_associativity_index(lmb); lmb 675 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_online_lmb(lmb); lmb 677 arch/powerpc/platforms/pseries/hotplug-memory.c __remove_memory(lmb->nid, lmb->base_addr, block_sz); lmb 678 arch/powerpc/platforms/pseries/hotplug-memory.c invalidate_lmb_associativity_index(lmb); lmb 679 arch/powerpc/platforms/pseries/hotplug-memory.c lmb_clear_nid(lmb); lmb 681 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->flags |= DRCONF_MEM_ASSIGNED; lmb 689 arch/powerpc/platforms/pseries/hotplug-memory.c struct drmem_lmb *lmb; lmb 700 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 701 arch/powerpc/platforms/pseries/hotplug-memory.c if (!(lmb->flags & DRCONF_MEM_ASSIGNED)) lmb 711 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 712 arch/powerpc/platforms/pseries/hotplug-memory.c if (lmb->flags & DRCONF_MEM_ASSIGNED) lmb 715 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_acquire_drc(lmb->drc_index); lmb 719 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_add_lmb(lmb); lmb 721 arch/powerpc/platforms/pseries/hotplug-memory.c dlpar_release_drc(lmb->drc_index); lmb 728 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_mark_lmb_reserved(lmb); lmb 738 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 739 arch/powerpc/platforms/pseries/hotplug-memory.c if (!drmem_lmb_reserved(lmb)) lmb 742 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_remove_lmb(lmb); lmb 745 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->drc_index); lmb 747 arch/powerpc/platforms/pseries/hotplug-memory.c dlpar_release_drc(lmb->drc_index); lmb 749 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_remove_lmb_reservation(lmb); lmb 753 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 754 arch/powerpc/platforms/pseries/hotplug-memory.c if (!drmem_lmb_reserved(lmb)) lmb 758 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->base_addr, lmb->drc_index); lmb 759 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_remove_lmb_reservation(lmb); lmb 769 arch/powerpc/platforms/pseries/hotplug-memory.c struct drmem_lmb *lmb; lmb 775 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb(lmb) { lmb 776 arch/powerpc/platforms/pseries/hotplug-memory.c if (lmb->drc_index == drc_index) { lmb 778 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_acquire_drc(lmb->drc_index); lmb 780 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_add_lmb(lmb); lmb 782 arch/powerpc/platforms/pseries/hotplug-memory.c dlpar_release_drc(lmb->drc_index); lmb 796 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->base_addr, drc_index); lmb 803 arch/powerpc/platforms/pseries/hotplug-memory.c struct drmem_lmb *lmb, *start_lmb, *end_lmb; lmb 818 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { lmb 819 arch/powerpc/platforms/pseries/hotplug-memory.c if (lmb->flags & DRCONF_MEM_RESERVED) lmb 828 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { lmb 829 arch/powerpc/platforms/pseries/hotplug-memory.c if (lmb->flags & DRCONF_MEM_ASSIGNED) lmb 832 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_acquire_drc(lmb->drc_index); lmb 836 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_add_lmb(lmb); lmb 838 arch/powerpc/platforms/pseries/hotplug-memory.c dlpar_release_drc(lmb->drc_index); lmb 842 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_mark_lmb_reserved(lmb); lmb 848 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { lmb 849 arch/powerpc/platforms/pseries/hotplug-memory.c if (!drmem_lmb_reserved(lmb)) lmb 852 arch/powerpc/platforms/pseries/hotplug-memory.c rc = dlpar_remove_lmb(lmb); lmb 855 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->drc_index); lmb 857 arch/powerpc/platforms/pseries/hotplug-memory.c dlpar_release_drc(lmb->drc_index); lmb 859 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_remove_lmb_reservation(lmb); lmb 863 arch/powerpc/platforms/pseries/hotplug-memory.c for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { lmb 864 arch/powerpc/platforms/pseries/hotplug-memory.c if (!drmem_lmb_reserved(lmb)) lmb 868 arch/powerpc/platforms/pseries/hotplug-memory.c lmb->base_addr, lmb->drc_index); lmb 869 arch/powerpc/platforms/pseries/hotplug-memory.c drmem_remove_lmb_reservation(lmb);