lmb 39 include/linux/lmb.h extern struct lmb lmb; lmb 20 lib/lmb.c struct lmb lmb; lmb 40 lib/lmb.c pr_info(" memory.cnt = 0x%lx\n", lmb.memory.cnt); lmb 42 lib/lmb.c (unsigned long long)lmb.memory.size); lmb 43 lib/lmb.c for (i=0; i < lmb.memory.cnt ;i++) { lmb 45 lib/lmb.c i, (unsigned long long)lmb.memory.region[i].base); lmb 47 lib/lmb.c (unsigned long long)lmb.memory.region[i].size); lmb 50 lib/lmb.c pr_info(" reserved.cnt = 0x%lx\n", lmb.reserved.cnt); lmb 52 lib/lmb.c (unsigned long long)lmb.memory.size); lmb 53 lib/lmb.c for (i=0; i < lmb.reserved.cnt ;i++) { lmb 55 lib/lmb.c i, (unsigned long long)lmb.reserved.region[i].base); lmb 57 lib/lmb.c (unsigned long long)lmb.reserved.region[i].size); lmb 112 lib/lmb.c lmb.memory.region[0].base = 0; lmb 113 lib/lmb.c lmb.memory.region[0].size = 0; lmb 114 lib/lmb.c lmb.memory.cnt = 1; lmb 117 lib/lmb.c lmb.reserved.region[0].base = 0; lmb 118 lib/lmb.c lmb.reserved.region[0].size = 0; lmb 119 lib/lmb.c lmb.reserved.cnt = 1; lmb 126 lib/lmb.c lmb.memory.size = 0; lmb 128 lib/lmb.c for (i = 0; i < lmb.memory.cnt; i++) lmb 129 lib/lmb.c lmb.memory.size += lmb.memory.region[i].size; lmb 198 lib/lmb.c struct lmb_region *_rgn = &lmb.memory; lmb 202 lib/lmb.c lmb.rmo_size = size; lmb 210 lib/lmb.c struct lmb_region *rgn = &(lmb.memory); lmb 259 lib/lmb.c struct lmb_region *_rgn = &lmb.reserved; lmb 298 lib/lmb.c j = lmb_overlaps_region(&lmb.reserved, base, size); lmb 301 lib/lmb.c if (lmb_add_region(&lmb.reserved, base, size) < 0) lmb 305 lib/lmb.c res_base = lmb.reserved.region[j].base; lmb 344 lib/lmb.c struct lmb_region *mem = &lmb.memory; lmb 395 lib/lmb.c for (i = lmb.memory.cnt - 1; i >= 0; i--) { lmb 396 lib/lmb.c u64 lmbbase = lmb.memory.region[i].base; lmb 397 lib/lmb.c u64 lmbsize = lmb.memory.region[i].size; lmb 410 lib/lmb.c j = lmb_overlaps_region(&lmb.reserved, base, size); lmb 413 lib/lmb.c if (lmb_add_region(&lmb.reserved, base, size) < 0) lmb 417 lib/lmb.c res_base = lmb.reserved.region[j].base; lmb 429 lib/lmb.c return lmb.memory.size; lmb 434 lib/lmb.c int idx = lmb.memory.cnt - 1; lmb 436 lib/lmb.c return (lmb.memory.region[idx].base + lmb.memory.region[idx].size); lmb 451 lib/lmb.c for (i = 0; i < lmb.memory.cnt; i++) { lmb 452 lib/lmb.c if (limit > lmb.memory.region[i].size) { lmb 453 lib/lmb.c limit -= lmb.memory.region[i].size; lmb 457 lib/lmb.c lmb.memory.region[i].size = limit; lmb 458 lib/lmb.c lmb.memory.cnt = i + 1; lmb 462 lib/lmb.c if (lmb.memory.region[0].size < lmb.rmo_size) lmb 463 lib/lmb.c lmb.rmo_size = lmb.memory.region[0].size; lmb 468 lib/lmb.c for (i = 0; i < lmb.reserved.cnt; i++) { lmb 469 lib/lmb.c p = &lmb.reserved.region[i]; lmb 477 lib/lmb.c lmb_remove_region(&lmb.reserved, i); lmb 487 lib/lmb.c for (i = 0; i < lmb.reserved.cnt; i++) { lmb 488 lib/lmb.c u64 upper = lmb.reserved.region[i].base + lmb 489 lib/lmb.c lmb.reserved.region[i].size - 1; lmb 490 lib/lmb.c if ((addr >= lmb.reserved.region[i].base) && (addr <= upper)) lmb 508 lib/lmb.c for (i = 0; i < lmb.memory.cnt; i++) { lmb 509 lib/lmb.c u64 start = lmb.memory.region[i].base; lmb 510 lib/lmb.c u64 end = start + lmb.memory.region[i].size - 1;