Searched refs:lmb (Results 1 – 6 of 6) sorted by relevance
| /Linux-v5.4/arch/powerpc/platforms/pseries/ |
| D | hotplug-memory.c | 156 static int update_lmb_associativity_index(struct drmem_lmb *lmb) in update_lmb_associativity_index() argument 168 lmb_node = dlpar_configure_connector(cpu_to_be32(lmb->drc_index), in update_lmb_associativity_index() 204 lmb->aa_index = aa_index; in update_lmb_associativity_index() 208 static struct memory_block *lmb_to_memblock(struct drmem_lmb *lmb) in lmb_to_memblock() argument 214 section_nr = pfn_to_section_nr(PFN_DOWN(lmb->base_addr)); in lmb_to_memblock() 225 struct drmem_lmb *lmb, *start, *end; in get_lmb_range() local 229 for_each_drmem_lmb(lmb) { in get_lmb_range() 230 if (lmb->drc_index == drc_index) { in get_lmb_range() 231 start = lmb; in get_lmb_range() 250 static int dlpar_change_lmb_state(struct drmem_lmb *lmb, bool online) in dlpar_change_lmb_state() argument [all …]
|
| /Linux-v5.4/arch/powerpc/include/asm/ |
| D | drmem.h | 29 #define for_each_drmem_lmb_in_range(lmb, start, end) \ argument 30 for ((lmb) = (start); (lmb) <= (end); (lmb)++) 32 #define for_each_drmem_lmb(lmb) \ argument 33 for_each_drmem_lmb_in_range((lmb), \ 76 static inline void drmem_mark_lmb_reserved(struct drmem_lmb *lmb) in drmem_mark_lmb_reserved() argument 78 lmb->flags |= DRMEM_LMB_RESERVED; in drmem_mark_lmb_reserved() 81 static inline void drmem_remove_lmb_reservation(struct drmem_lmb *lmb) in drmem_remove_lmb_reservation() argument 83 lmb->flags &= ~DRMEM_LMB_RESERVED; in drmem_remove_lmb_reservation() 86 static inline bool drmem_lmb_reserved(struct drmem_lmb *lmb) in drmem_lmb_reserved() argument 88 return lmb->flags & DRMEM_LMB_RESERVED; in drmem_lmb_reserved() [all …]
|
| /Linux-v5.4/arch/powerpc/mm/ |
| D | drmem.c | 28 static u32 drmem_lmb_flags(struct drmem_lmb *lmb) in drmem_lmb_flags() argument 34 return lmb->flags & ~DRMEM_LMB_RESERVED; in drmem_lmb_flags() 66 struct drmem_lmb *lmb; in drmem_update_dt_v1() local 78 for_each_drmem_lmb(lmb) { in drmem_update_dt_v1() 79 dr_cell->base_addr = cpu_to_be64(lmb->base_addr); in drmem_update_dt_v1() 80 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); in drmem_update_dt_v1() 81 dr_cell->aa_index = cpu_to_be32(lmb->aa_index); in drmem_update_dt_v1() 82 dr_cell->flags = cpu_to_be32(drmem_lmb_flags(lmb)); in drmem_update_dt_v1() 92 struct drmem_lmb *lmb) in init_drconf_v2_cell() argument 94 dr_cell->base_addr = cpu_to_be64(lmb->base_addr); in init_drconf_v2_cell() [all …]
|
| D | numa.c | 432 static int of_drconf_to_nid_single(struct drmem_lmb *lmb) in of_drconf_to_nid_single() argument 447 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { in of_drconf_to_nid_single() 448 index = lmb->aa_index * aa.array_sz + min_common_depth - 1; in of_drconf_to_nid_single() 455 index = lmb->aa_index * aa.array_sz; in of_drconf_to_nid_single() 590 static void __init numa_setup_drmem_lmb(struct drmem_lmb *lmb, in numa_setup_drmem_lmb() argument 601 if ((lmb->flags & DRCONF_MEM_RESERVED) in numa_setup_drmem_lmb() 602 || !(lmb->flags & DRCONF_MEM_ASSIGNED)) in numa_setup_drmem_lmb() 608 base = lmb->base_addr; in numa_setup_drmem_lmb() 624 nid = of_drconf_to_nid_single(lmb); in numa_setup_drmem_lmb() 960 struct drmem_lmb *lmb; in hot_add_drconf_scn_to_nid() local [all …]
|
| /Linux-v5.4/arch/powerpc/kernel/ |
| D | prom.c | 471 static void __init early_init_drmem_lmb(struct drmem_lmb *lmb, in early_init_drmem_lmb() argument 477 base = lmb->base_addr; in early_init_drmem_lmb() 485 if ((lmb->flags & DRCONF_MEM_RESERVED) || in early_init_drmem_lmb() 486 !(lmb->flags & DRCONF_MEM_ASSIGNED)) in early_init_drmem_lmb()
|
| /Linux-v5.4/arch/microblaze/boot/dts/ |
| D | system.dts | 58 xlnx,d-lmb = <0x1>; 78 xlnx,i-lmb = <0x1>;
|