Home
last modified time | relevance | path

Searched refs:lmb (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/arch/powerpc/platforms/pseries/
Dhotplug-memory.c158 static int update_lmb_associativity_index(struct drmem_lmb *lmb) in update_lmb_associativity_index() argument
170 lmb_node = dlpar_configure_connector(cpu_to_be32(lmb->drc_index), in update_lmb_associativity_index()
208 lmb->aa_index = aa_index; in update_lmb_associativity_index()
212 static struct memory_block *lmb_to_memblock(struct drmem_lmb *lmb) in lmb_to_memblock() argument
217 section_nr = pfn_to_section_nr(PFN_DOWN(lmb->base_addr)); in lmb_to_memblock()
227 struct drmem_lmb *lmb, *start, *end; in get_lmb_range() local
231 for_each_drmem_lmb(lmb) { in get_lmb_range()
232 if (lmb->drc_index == drc_index) { in get_lmb_range()
233 start = lmb; in get_lmb_range()
252 static int dlpar_change_lmb_state(struct drmem_lmb *lmb, bool online) in dlpar_change_lmb_state() argument
[all …]
/linux-5.19.10/arch/powerpc/mm/
Ddrmem.c31 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 …]
Dnuma.c583 static int __init get_nid_and_numa_distance(struct drmem_lmb *lmb) in get_nid_and_numa_distance() argument
598 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { in get_nid_and_numa_distance()
601 index = lmb->aa_index * aa.array_sz; in get_nid_and_numa_distance()
619 int of_drconf_to_nid_single(struct drmem_lmb *lmb) in of_drconf_to_nid_single() argument
634 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { in of_drconf_to_nid_single()
637 index = lmb->aa_index * aa.array_sz; in of_drconf_to_nid_single()
847 static int __init numa_setup_drmem_lmb(struct drmem_lmb *lmb, in numa_setup_drmem_lmb() argument
859 if ((lmb->flags & DRCONF_MEM_RESERVED) in numa_setup_drmem_lmb()
860 || !(lmb->flags & DRCONF_MEM_ASSIGNED)) in numa_setup_drmem_lmb()
866 base = lmb->base_addr; in numa_setup_drmem_lmb()
[all …]
/linux-5.19.10/arch/powerpc/include/asm/
Ddrmem.h31 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 …]
Dtopology.h66 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-5.19.10/arch/powerpc/kernel/
Dprom.c473 static int __init early_init_drmem_lmb(struct drmem_lmb *lmb, in early_init_drmem_lmb() argument
480 base = lmb->base_addr; in early_init_drmem_lmb()
488 if ((lmb->flags & DRCONF_MEM_RESERVED) || in early_init_drmem_lmb()
489 !(lmb->flags & DRCONF_MEM_ASSIGNED)) in early_init_drmem_lmb()
527 if (lmb->flags & DRCONF_MEM_HOTREMOVABLE) in early_init_drmem_lmb()
/linux-5.19.10/arch/microblaze/boot/dts/
Dsystem.dts58 xlnx,d-lmb = <0x1>;
78 xlnx,i-lmb = <0x1>;
/linux-5.19.10/arch/powerpc/kexec/
Dfile_load_64.c513 static int kdump_setup_usable_lmb(struct drmem_lmb *lmb, const __be32 **usm, in kdump_setup_usable_lmb() argument
535 base = lmb->base_addr; in kdump_setup_usable_lmb()