Lines Matching refs:lmb
595 static int get_nid_and_numa_distance(struct drmem_lmb *lmb)
610 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) {
613 index = lmb->aa_index * aa.array_sz;
631 int of_drconf_to_nid_single(struct drmem_lmb *lmb)
646 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) {
649 index = lmb->aa_index * aa.array_sz;
847 * For each lmb in ibm,dynamic-memory a corresponding
859 static int __init numa_setup_drmem_lmb(struct drmem_lmb *lmb,
871 if ((lmb->flags & DRCONF_MEM_RESERVED)
872 || !(lmb->flags & DRCONF_MEM_ASSIGNED))
878 base = lmb->base_addr;
894 nid = get_nid_and_numa_distance(lmb);
1273 struct drmem_lmb *lmb;
1279 for_each_drmem_lmb(lmb) {
1282 if ((lmb->flags & DRCONF_MEM_RESERVED)
1283 || !(lmb->flags & DRCONF_MEM_ASSIGNED))
1286 if ((scn_addr < lmb->base_addr)
1287 || (scn_addr >= (lmb->base_addr + lmb_size)))
1290 nid = of_drconf_to_nid_single(lmb);