Searched refs:lmb (Results 1 – 8 of 8) sorted by relevance
| /Linux-v6.6/arch/powerpc/platforms/pseries/ |
| D | hotplug-memory.c | 110 static int update_lmb_associativity_index(struct drmem_lmb *lmb) in update_lmb_associativity_index() argument 122 lmb_node = dlpar_configure_connector(cpu_to_be32(lmb->drc_index), in update_lmb_associativity_index() 160 lmb->aa_index = aa_index; in update_lmb_associativity_index() 164 static struct memory_block *lmb_to_memblock(struct drmem_lmb *lmb) in lmb_to_memblock() argument 169 section_nr = pfn_to_section_nr(PFN_DOWN(lmb->base_addr)); in lmb_to_memblock() 179 struct drmem_lmb *lmb, *start, *end; in get_lmb_range() local 183 for_each_drmem_lmb(lmb) { in get_lmb_range() 184 if (lmb->drc_index == drc_index) { in get_lmb_range() 185 start = lmb; in get_lmb_range() 204 static int dlpar_change_lmb_state(struct drmem_lmb *lmb, bool online) in dlpar_change_lmb_state() argument [all …]
|
| /Linux-v6.6/arch/powerpc/mm/ |
| D | drmem.c | 31 static u32 drmem_lmb_flags(struct drmem_lmb *lmb) in drmem_lmb_flags() argument 37 return lmb->flags & ~DRMEM_LMB_RESERVED; in drmem_lmb_flags() 69 struct drmem_lmb *lmb; in drmem_update_dt_v1() local 81 for_each_drmem_lmb(lmb) { in drmem_update_dt_v1() 82 dr_cell->base_addr = cpu_to_be64(lmb->base_addr); in drmem_update_dt_v1() 83 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); in drmem_update_dt_v1() 84 dr_cell->aa_index = cpu_to_be32(lmb->aa_index); in drmem_update_dt_v1() 85 dr_cell->flags = cpu_to_be32(drmem_lmb_flags(lmb)); in drmem_update_dt_v1() 95 struct drmem_lmb *lmb) in init_drconf_v2_cell() argument 97 dr_cell->base_addr = cpu_to_be64(lmb->base_addr); in init_drconf_v2_cell() [all …]
|
| D | numa.c | 586 static int __init get_nid_and_numa_distance(struct drmem_lmb *lmb) in get_nid_and_numa_distance() argument 601 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { in get_nid_and_numa_distance() 604 index = lmb->aa_index * aa.array_sz; in get_nid_and_numa_distance() 622 int of_drconf_to_nid_single(struct drmem_lmb *lmb) in of_drconf_to_nid_single() argument 637 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { in of_drconf_to_nid_single() 640 index = lmb->aa_index * aa.array_sz; in of_drconf_to_nid_single() 850 static int __init numa_setup_drmem_lmb(struct drmem_lmb *lmb, in numa_setup_drmem_lmb() argument 862 if ((lmb->flags & DRCONF_MEM_RESERVED) in numa_setup_drmem_lmb() 863 || !(lmb->flags & DRCONF_MEM_ASSIGNED)) in numa_setup_drmem_lmb() 869 base = lmb->base_addr; in numa_setup_drmem_lmb() [all …]
|
| /Linux-v6.6/arch/powerpc/include/asm/ |
| D | drmem.h | 31 static inline struct drmem_lmb *drmem_lmb_next(struct drmem_lmb *lmb, in drmem_lmb_next() argument 39 if (((++lmb - start) % 16) == 0) in drmem_lmb_next() 42 return lmb; in drmem_lmb_next() 45 #define for_each_drmem_lmb_in_range(lmb, start, end) \ argument 46 for ((lmb) = (start); (lmb) < (end); lmb = drmem_lmb_next(lmb, start)) 48 #define for_each_drmem_lmb(lmb) \ argument 49 for_each_drmem_lmb_in_range((lmb), \ 93 static inline void drmem_mark_lmb_reserved(struct drmem_lmb *lmb) in drmem_mark_lmb_reserved() argument 95 lmb->flags |= DRMEM_LMB_RESERVED; in drmem_mark_lmb_reserved() 98 static inline void drmem_remove_lmb_reservation(struct drmem_lmb *lmb) in drmem_remove_lmb_reservation() argument [all …]
|
| D | topology.h | 66 int of_drconf_to_nid_single(struct drmem_lmb *lmb); 97 static inline int of_drconf_to_nid_single(struct drmem_lmb *lmb) in of_drconf_to_nid_single() argument
|
| /Linux-v6.6/arch/powerpc/kernel/ |
| D | prom.c | 499 static int __init early_init_drmem_lmb(struct drmem_lmb *lmb, in early_init_drmem_lmb() argument 506 base = lmb->base_addr; in early_init_drmem_lmb() 514 if ((lmb->flags & DRCONF_MEM_RESERVED) || in early_init_drmem_lmb() 515 !(lmb->flags & DRCONF_MEM_ASSIGNED)) in early_init_drmem_lmb() 553 if (lmb->flags & DRCONF_MEM_HOTREMOVABLE) in early_init_drmem_lmb()
|
| /Linux-v6.6/arch/microblaze/boot/dts/ |
| D | system.dts | 58 xlnx,d-lmb = <0x1>; 78 xlnx,i-lmb = <0x1>;
|
| /Linux-v6.6/arch/powerpc/kexec/ |
| D | file_load_64.c | 517 static int kdump_setup_usable_lmb(struct drmem_lmb *lmb, const __be32 **usm, in kdump_setup_usable_lmb() argument 539 base = lmb->base_addr; in kdump_setup_usable_lmb()
|