Home
last modified time | relevance | path

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

/linux/arch/powerpc/platforms/pseries/
H A Dhotplug-memory.c103 * The associativity lookup array index for this lmb is in find_aa_index()
111 static int update_lmb_associativity_index(struct drmem_lmb *lmb) in update_lmb_associativity_index() argument
123 lmb_node = dlpar_configure_connector(cpu_to_be32(lmb->drc_index), in update_lmb_associativity_index()
161 lmb->aa_index = aa_index; in update_lmb_associativity_index()
165 static struct memory_block *lmb_to_memblock(struct drmem_lmb *lmb) in lmb_to_memblock() argument
167 return memory_block_get(phys_to_block_id(lmb->base_addr)); in lmb_to_memblock()
174 struct drmem_lmb *lmb, *start, *end; in lmb_to_memblock()
178 for_each_drmem_lmb(lmb) { in get_lmb_range()
179 if (lmb->drc_index == drc_index) { in get_lmb_range()
180 start = lmb; in get_lmb_range() local
205 dlpar_change_lmb_state(struct drmem_lmb * lmb,bool online) dlpar_change_lmb_state() argument
228 dlpar_online_lmb(struct drmem_lmb * lmb) dlpar_online_lmb() argument
234 dlpar_offline_lmb(struct drmem_lmb * lmb) dlpar_offline_lmb() argument
288 lmb_is_removable(struct drmem_lmb * lmb) lmb_is_removable() argument
308 dlpar_remove_lmb(struct drmem_lmb * lmb) dlpar_remove_lmb() argument
340 struct drmem_lmb *lmb; dlpar_memory_remove_by_count() local
423 struct drmem_lmb *lmb; dlpar_memory_remove_by_index() local
456 struct drmem_lmb *lmb, *start_lmb, *end_lmb; dlpar_memory_remove_by_ic() local
551 dlpar_remove_lmb(struct drmem_lmb * lmb) dlpar_remove_lmb() argument
570 dlpar_add_lmb(struct drmem_lmb * lmb) dlpar_add_lmb() argument
614 struct drmem_lmb *lmb; dlpar_memory_add_by_count() local
704 struct drmem_lmb *lmb; dlpar_memory_add_by_index() local
738 struct drmem_lmb *lmb, *start_lmb, *end_lmb; dlpar_memory_add_by_ic() local
[all...]
/linux/arch/powerpc/mm/
H A 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 …]
/linux/arch/powerpc/include/asm/
H A 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 …]
H A 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/arch/powerpc/kexec/
H A Dfile_load_64.c147 static int kdump_setup_usable_lmb(struct drmem_lmb *lmb, const __be32 **usm, in kdump_setup_usable_lmb() argument
169 base = lmb->base_addr; in kdump_setup_usable_lmb()
/linux/arch/microblaze/boot/dts/
H A Dsystem.dts58 xlnx,d-lmb = <0x1>;
78 xlnx,i-lmb = <0x1>;