Lines Matching refs:lmb
422 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()
932 struct drmem_lmb *lmb; in hot_add_drconf_scn_to_nid() local
938 for_each_drmem_lmb(lmb) { in hot_add_drconf_scn_to_nid()
941 if ((lmb->flags & DRCONF_MEM_RESERVED) in hot_add_drconf_scn_to_nid()
942 || !(lmb->flags & DRCONF_MEM_ASSIGNED)) in hot_add_drconf_scn_to_nid()
945 if ((scn_addr < lmb->base_addr) in hot_add_drconf_scn_to_nid()
946 || (scn_addr >= (lmb->base_addr + lmb_size))) in hot_add_drconf_scn_to_nid()
949 nid = of_drconf_to_nid_single(lmb); in hot_add_drconf_scn_to_nid()