Lines Matching refs:lmb
433 int of_drconf_to_nid_single(struct drmem_lmb *lmb) in of_drconf_to_nid_single() argument
448 !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < aa.n_arrays) { in of_drconf_to_nid_single()
449 index = lmb->aa_index * aa.array_sz + min_common_depth - 1; in of_drconf_to_nid_single()
456 index = lmb->aa_index * aa.array_sz; in of_drconf_to_nid_single()
653 static int __init numa_setup_drmem_lmb(struct drmem_lmb *lmb, in numa_setup_drmem_lmb() argument
665 if ((lmb->flags & DRCONF_MEM_RESERVED) in numa_setup_drmem_lmb()
666 || !(lmb->flags & DRCONF_MEM_ASSIGNED)) in numa_setup_drmem_lmb()
672 base = lmb->base_addr; in numa_setup_drmem_lmb()
688 nid = of_drconf_to_nid_single(lmb); in numa_setup_drmem_lmb()
1045 struct drmem_lmb *lmb; in hot_add_drconf_scn_to_nid() local
1051 for_each_drmem_lmb(lmb) { in hot_add_drconf_scn_to_nid()
1054 if ((lmb->flags & DRCONF_MEM_RESERVED) in hot_add_drconf_scn_to_nid()
1055 || !(lmb->flags & DRCONF_MEM_ASSIGNED)) in hot_add_drconf_scn_to_nid()
1058 if ((scn_addr < lmb->base_addr) in hot_add_drconf_scn_to_nid()
1059 || (scn_addr >= (lmb->base_addr + lmb_size))) in hot_add_drconf_scn_to_nid()
1062 nid = of_drconf_to_nid_single(lmb); in hot_add_drconf_scn_to_nid()