Lines Matching +full:long +full:- +full:ram +full:- +full:code

1 // SPDX-License-Identifier: GPL-2.0+
90 KUNIT_EXPECT_EQ_MSG(test, r->start, exp_r->start, "Start elements are not equal"); in resource_do_test()
91 KUNIT_EXPECT_EQ_MSG(test, r->end, exp_r->end, "End elements are not equal"); in resource_do_test()
100 ret = resource_union(r->r1, r->r2, &result); in resource_do_union_test()
101 resource_do_test(test, ret, &result, r->ret, &r->r, r->r1, r->r2); in resource_do_union_test()
104 ret = resource_union(r->r2, r->r1, &result); in resource_do_union_test()
105 resource_do_test(test, ret, &result, r->ret, &r->r, r->r2, r->r1); in resource_do_union_test()
124 ret = resource_intersection(r->r1, r->r2, &result); in resource_do_intersection_test()
125 resource_do_test(test, ret, &result, r->ret, &r->r, r->r1, r->r2); in resource_do_intersection_test()
128 ret = resource_intersection(r->r2, r->r1, &result); in resource_do_intersection_test()
129 resource_do_test(test, ret, &result, r->ret, &r->r, r->r2, r->r1); in resource_do_intersection_test()
145 * BASE-BASE+1M-1 : Test System RAM 0
146 * # hole 0 (BASE+1M-BASE+2M)
147 * BASE+2M-BASE+3M-1 : Test CXL Window 0
148 * BASE+3M-BASE+4M-1 : Test System RAM 1
149 * BASE+4M-BASE+7M-1 : Test CXL Window 1
150 * BASE+4M-BASE+5M-1 : Test System RAM 2
151 * BASE+4M+128K-BASE+4M+256K-1: Test Code
152 * BASE+5M-BASE+6M-1 : Test System RAM 3
192 const char *name, unsigned long flags) in resource_test_request_region()
203 const char *name, unsigned long flags) in resource_test_insert_resource()
210 res->name = name; in resource_test_insert_resource()
211 res->start = start; in resource_test_insert_resource()
212 res->end = start + size - 1; in resource_test_insert_resource()
213 res->flags = flags; in resource_test_insert_resource()
224 unsigned long flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY; in resource_test_region_intersects()
232 start = parent->start; in resource_test_region_intersects()
236 RES_TEST_RAM0_SIZE, "Test System RAM 0", flags); in resource_test_region_intersects()
241 RES_TEST_RAM1_SIZE, "Test System RAM 1", flags); in resource_test_region_intersects()
246 RES_TEST_RAM2_SIZE, "Test System RAM 2", flags); in resource_test_region_intersects()
248 RES_TEST_CODE_SIZE, "Test Code", flags); in resource_test_region_intersects()
250 RES_TEST_RAM3_SIZE, "Test System RAM 3", flags); in resource_test_region_intersects()
258 RES_TEST_RAM0_SIZE - PAGE_SIZE, 2 * PAGE_SIZE, in resource_test_region_intersects()
265 RES_TEST_HOLE0_SIZE - PAGE_SIZE, 2 * PAGE_SIZE, in resource_test_region_intersects()
269 RES_TEST_WIN0_SIZE - PAGE_SIZE, 2 * PAGE_SIZE, in resource_test_region_intersects()
273 RES_TEST_RAM1_SIZE - PAGE_SIZE, 2 * PAGE_SIZE, in resource_test_region_intersects()
277 RES_TEST_RAM2_SIZE - PAGE_SIZE, 2 * PAGE_SIZE, in resource_test_region_intersects()