Lines Matching refs:memory
20 debug(" memory.cnt = 0x%lx\n", lmb->memory.cnt); in lmb_dump_all()
22 (unsigned long long)lmb->memory.size); in lmb_dump_all()
23 for (i = 0; i < lmb->memory.cnt; i++) { in lmb_dump_all()
25 (unsigned long long)lmb->memory.region[i].base); in lmb_dump_all()
27 (unsigned long long)lmb->memory.region[i].size); in lmb_dump_all()
95 lmb->memory.cnt = 0; in lmb_init()
96 lmb->memory.size = 0; in lmb_init()
214 struct lmb_region *_rgn = &(lmb->memory); in lmb_add()
319 for (i = lmb->memory.cnt - 1; i >= 0; i--) { in __lmb_alloc_base()
320 phys_addr_t lmbbase = lmb->memory.region[i].base; in __lmb_alloc_base()
321 phys_size_t lmbsize = lmb->memory.region[i].size; in __lmb_alloc_base()
363 rgn = lmb_overlaps_region(&lmb->memory, base, size); in lmb_alloc_addr()
369 if (lmb_addrs_overlap(lmb->memory.region[rgn].base, in lmb_alloc_addr()
370 lmb->memory.region[rgn].size, in lmb_alloc_addr()
387 rgn = lmb_overlaps_region(&lmb->memory, addr, 1); in lmb_get_free_size()
401 return lmb->memory.region[lmb->memory.cnt - 1].base + in lmb_get_free_size()
402 lmb->memory.region[lmb->memory.cnt - 1].size - addr; in lmb_get_free_size()