Lines Matching refs:alloc_addr_a
465 const phys_size_t alloc_addr_a = ram + 0x8000000; in test_alloc_addr() local
481 ret = lmb_reserve(&lmb, alloc_addr_a, 0x10000); in test_alloc_addr()
487 ASSERT_LMB(&lmb, ram, ram_size, 3, alloc_addr_a, 0x10000, in test_alloc_addr()
491 a = lmb_alloc_addr(&lmb, ram, alloc_addr_a - ram); in test_alloc_addr()
495 b = lmb_alloc_addr(&lmb, alloc_addr_a + 0x10000, in test_alloc_addr()
496 alloc_addr_b - alloc_addr_a - 0x10000); in test_alloc_addr()
497 ut_asserteq(b, alloc_addr_a + 0x10000); in test_alloc_addr()
550 ret = lmb_free(&lmb, a, alloc_addr_a - ram); in test_alloc_addr()
593 const phys_size_t alloc_addr_a = ram + 0x8000000; in test_get_unreserved_size() local
609 ret = lmb_reserve(&lmb, alloc_addr_a, 0x10000); in test_get_unreserved_size()
615 ASSERT_LMB(&lmb, ram, ram_size, 3, alloc_addr_a, 0x10000, in test_get_unreserved_size()
620 ut_asserteq(s, alloc_addr_a - ram); in test_get_unreserved_size()
622 ut_asserteq(s, alloc_addr_a - ram - 0x10000); in test_get_unreserved_size()
623 s = lmb_get_free_size(&lmb, alloc_addr_a - 4); in test_get_unreserved_size()
626 s = lmb_get_free_size(&lmb, alloc_addr_a + 0x10000); in test_get_unreserved_size()
627 ut_asserteq(s, alloc_addr_b - alloc_addr_a - 0x10000); in test_get_unreserved_size()
628 s = lmb_get_free_size(&lmb, alloc_addr_a + 0x20000); in test_get_unreserved_size()
629 ut_asserteq(s, alloc_addr_b - alloc_addr_a - 0x20000); in test_get_unreserved_size()