Home
last modified time | relevance | path

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

/Linux-v4.19/arch/powerpc/platforms/pseries/
Dhotplug-memory.c166 static u32 lookup_lmb_associativity_index(struct drmem_lmb *lmb) in lookup_lmb_associativity_index() argument
177 lmb_node = dlpar_configure_connector(cpu_to_be32(lmb->drc_index), in lookup_lmb_associativity_index()
209 static int dlpar_add_device_tree_lmb(struct drmem_lmb *lmb) in dlpar_add_device_tree_lmb() argument
213 lmb->flags |= DRCONF_MEM_ASSIGNED; in dlpar_add_device_tree_lmb()
215 aa_index = lookup_lmb_associativity_index(lmb); in dlpar_add_device_tree_lmb()
218 lmb->drc_index); in dlpar_add_device_tree_lmb()
222 lmb->aa_index = aa_index; in dlpar_add_device_tree_lmb()
231 static int dlpar_remove_device_tree_lmb(struct drmem_lmb *lmb) in dlpar_remove_device_tree_lmb() argument
235 lmb->flags &= ~DRCONF_MEM_ASSIGNED; in dlpar_remove_device_tree_lmb()
236 lmb->aa_index = 0xffffffff; in dlpar_remove_device_tree_lmb()
[all …]
/Linux-v4.19/arch/powerpc/mm/
Ddrmem.c32 static u32 drmem_lmb_flags(struct drmem_lmb *lmb) in drmem_lmb_flags() argument
38 return lmb->flags & ~DRMEM_LMB_RESERVED; in drmem_lmb_flags()
70 struct drmem_lmb *lmb; in drmem_update_dt_v1() local
82 for_each_drmem_lmb(lmb) { in drmem_update_dt_v1()
83 dr_cell->base_addr = cpu_to_be64(lmb->base_addr); in drmem_update_dt_v1()
84 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); in drmem_update_dt_v1()
85 dr_cell->aa_index = cpu_to_be32(lmb->aa_index); in drmem_update_dt_v1()
86 dr_cell->flags = cpu_to_be32(drmem_lmb_flags(lmb)); in drmem_update_dt_v1()
96 struct drmem_lmb *lmb) in init_drconf_v2_cell() argument
98 dr_cell->base_addr = cpu_to_be64(lmb->base_addr); in init_drconf_v2_cell()
[all …]
Dnuma.c422 static int of_drconf_to_nid_single(struct drmem_lmb *lmb) in of_drconf_to_nid_single() argument
434 !(lmb->flags & DRCONF_MEM_AI_INVALID) && in of_drconf_to_nid_single()
435 lmb->aa_index < aa.n_arrays) { in of_drconf_to_nid_single()
436 index = lmb->aa_index * aa.array_sz + min_common_depth - 1; in of_drconf_to_nid_single()
443 index = lmb->aa_index * aa.array_sz; in of_drconf_to_nid_single()
578 static void __init numa_setup_drmem_lmb(struct drmem_lmb *lmb, in numa_setup_drmem_lmb() argument
589 if ((lmb->flags & DRCONF_MEM_RESERVED) in numa_setup_drmem_lmb()
590 || !(lmb->flags & DRCONF_MEM_ASSIGNED)) in numa_setup_drmem_lmb()
596 base = lmb->base_addr; in numa_setup_drmem_lmb()
612 nid = of_drconf_to_nid_single(lmb); in numa_setup_drmem_lmb()
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Ddrmem.h30 #define for_each_drmem_lmb_in_range(lmb, start, end) \ argument
31 for ((lmb) = (start); (lmb) <= (end); (lmb)++)
33 #define for_each_drmem_lmb(lmb) \ argument
34 for_each_drmem_lmb_in_range((lmb), \
77 static inline void drmem_mark_lmb_reserved(struct drmem_lmb *lmb) in drmem_mark_lmb_reserved() argument
79 lmb->flags |= DRMEM_LMB_RESERVED; in drmem_mark_lmb_reserved()
82 static inline void drmem_remove_lmb_reservation(struct drmem_lmb *lmb) in drmem_remove_lmb_reservation() argument
84 lmb->flags &= ~DRMEM_LMB_RESERVED; in drmem_remove_lmb_reservation()
87 static inline bool drmem_lmb_reserved(struct drmem_lmb *lmb) in drmem_lmb_reserved() argument
89 return lmb->flags & DRMEM_LMB_RESERVED; in drmem_lmb_reserved()
/Linux-v4.19/arch/powerpc/kernel/
Dprom.c471 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-v4.19/arch/microblaze/boot/dts/
Dsystem.dts73 xlnx,d-lmb = <0x1>;
93 xlnx,i-lmb = <0x1>;