Lines Matching refs:reserved
32 printf("\n reserved.cnt = 0x%lx\n", lmb->reserved.cnt); in lmb_dump_all_force()
34 (unsigned long long)lmb->reserved.size); in lmb_dump_all_force()
35 for (i = 0; i < lmb->reserved.cnt; i++) { in lmb_dump_all_force()
37 (unsigned long long)lmb->reserved.region[i].base); in lmb_dump_all_force()
39 (unsigned long long)lmb->reserved.region[i].size); in lmb_dump_all_force()
104 lmb->reserved.cnt = 0; in lmb_init()
105 lmb->reserved.size = 0; in lmb_init()
223 struct lmb_region *rgn = &(lmb->reserved); in lmb_free()
272 struct lmb_region *_rgn = &(lmb->reserved); in lmb_reserve()
339 rgn = lmb_overlaps_region(&lmb->reserved, base, size); in __lmb_alloc_base()
342 if (lmb_add_region(&lmb->reserved, base, in __lmb_alloc_base()
347 res_base = lmb->reserved.region[rgn].base; in __lmb_alloc_base()
391 for (i = 0; i < lmb->reserved.cnt; i++) { in lmb_get_free_size()
392 if (addr < lmb->reserved.region[i].base) { in lmb_get_free_size()
394 return lmb->reserved.region[i].base - addr; in lmb_get_free_size()
396 if (lmb->reserved.region[i].base + in lmb_get_free_size()
397 lmb->reserved.region[i].size > addr) { in lmb_get_free_size()
413 for (i = 0; i < lmb->reserved.cnt; i++) { in lmb_is_reserved()
414 phys_addr_t upper = lmb->reserved.region[i].base + in lmb_is_reserved()
415 lmb->reserved.region[i].size - 1; in lmb_is_reserved()
416 if ((addr >= lmb->reserved.region[i].base) && (addr <= upper)) in lmb_is_reserved()