/hafnium-2.8-rc0/test/vmapi/el0_partitions/services/ |
A D | boot.c | 88 num_pages = align_up((text_end - text_begin), PAGE_SIZE) / PAGE_SIZE; in TEST_SERVICE() 95 base_va += PAGE_SIZE; in TEST_SERVICE() 100 align_up((rodata_end - rodata_begin), PAGE_SIZE) / PAGE_SIZE; in TEST_SERVICE() 107 base_va += PAGE_SIZE; in TEST_SERVICE() 111 num_pages = align_up((data_end - data_begin), PAGE_SIZE) / PAGE_SIZE; in TEST_SERVICE() 126 base_va += PAGE_SIZE; in TEST_SERVICE() 132 align_up((stacks_end - stacks_begin), PAGE_SIZE) / PAGE_SIZE; in TEST_SERVICE() 139 base_va += PAGE_SIZE; in TEST_SERVICE() 143 num_pages = align_up((image_end - data_end), PAGE_SIZE) / PAGE_SIZE; in TEST_SERVICE() 144 base_va = (uint64_t)align_down(data_end, PAGE_SIZE); in TEST_SERVICE() [all …]
|
A D | memory.c | 22 alignas(PAGE_SIZE) static uint8_t page[PAGE_SIZE]; 23 alignas(PAGE_SIZE) static uint8_t retrieve_buffer[PAGE_SIZE * 2]; 53 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 123 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 172 ptr[PAGE_SIZE]++; in TEST_SERVICE() 498 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 711 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 719 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 756 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 761 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() [all …]
|
/hafnium-2.8-rc0/test/vmapi/arch/aarch64/gicv3/inc/ |
A D | gicv3.h | 22 extern alignas(PAGE_SIZE) uint8_t send_page[PAGE_SIZE]; 23 extern alignas(PAGE_SIZE) uint8_t recv_page[PAGE_SIZE];
|
/hafnium-2.8-rc0/src/ |
A D | sp_pkg.c | 39 if ((header->img_offset % PAGE_SIZE) != 0U) { in sp_pkg_init_v1() 45 PAGE_SIZE); in sp_pkg_init_v1() 57 if (manifest_size > PAGE_SIZE) { in sp_pkg_init_v1() 75 paddr_t pkg_end = pa_add(pkg_start, PAGE_SIZE); in sp_pkg_init_v2() 79 if (header->pm_offset % PAGE_SIZE != 0 || in sp_pkg_init_v2() 80 header->img_offset % PAGE_SIZE != 0) { in sp_pkg_init_v2() 106 if (header->pm_offset > PAGE_SIZE) { in sp_pkg_init_v2() 129 paddr_t pkg_end = pa_add(pkg_start, PAGE_SIZE); in sp_pkg_init()
|
A D | cpu.c | 31 alignas(PAGE_SIZE) static char callstacks[MAX_CPUS][STACK_SIZE] __section( 35 static_assert((STACK_SIZE % PAGE_SIZE) == 0, "Keep each stack page aligned."); 36 static_assert((PAGE_SIZE % STACK_ALIGN) == 0, 48 alignas(PAGE_SIZE) static uint8_t cpu_message_buffer[MAX_CPUS][PAGE_SIZE]; in alignas() argument
|
A D | mm_test.cc | 39 constexpr size_t TEST_HEAP_SIZE = PAGE_SIZE * 16; 125 const paddr_t page_end = pa_add(page_begin, PAGE_SIZE); in TEST_F() 202 Eq(0x200'0000'0000 - PAGE_SIZE)); in TEST_F() 265 Eq(pa_addr(pa_add(map_begin, PAGE_SIZE)))); in TEST_F() 428 const paddr_t page_begin = pa_init(34567 * PAGE_SIZE); in TEST_F() 450 const paddr_t page_begin = pa_init(12000 * PAGE_SIZE); in TEST_F() 727 const paddr_t map_end = pa_add(map_begin, PAGE_SIZE); in TEST_F() 935 const paddr_t l0_begin = pa_init(5555 * PAGE_SIZE); in TEST_F() 1065 ipa_from_pa(pa_add(map_begin, PAGE_SIZE)), in TEST_F() 1070 ipa_from_pa(pa_add(map_begin, PAGE_SIZE)), in TEST_F() [all …]
|
A D | fdt_patch.c | 76 buf_size = fdt_totalsize(fdt) + PAGE_SIZE; in fdt_patch() 149 pa_add(fdt_addr, fdt_totalsize(fdt) + PAGE_SIZE), in fdt_patch()
|
A D | fdt_handler_test.cc | 24 constexpr size_t TEST_HEAP_SIZE = PAGE_SIZE * 10;
|
A D | load.c | 422 allocated_size = align_up(memiter_size(&fdt), PAGE_SIZE) + PAGE_SIZE; in load_secondary_fdt() 524 PAGE_SIZE; in ffa_map_memory_regions() 609 PAGE_SIZE; in ffa_map_memory_regions() 694 mem_size - align_up(kernel_size, PAGE_SIZE); in load_secondary() 973 pa_addr(mem_ranges_available[i].end), PAGE_SIZE)); in load_vms() 993 mem_size = align_up(manifest_vm->secondary.mem_size, PAGE_SIZE); in load_vms()
|
A D | manifest_test.cc | 32 constexpr size_t TEST_HEAP_SIZE = PAGE_SIZE * 32; 346 __attribute__((aligned(PAGE_SIZE))) struct sp_pkg_header spkg; 348 aligned(PAGE_SIZE))) char manifest_dtb[PAGE_SIZE] = {}; 349 __attribute__((aligned(PAGE_SIZE))) char img[PAGE_SIZE] = {}; 356 spkg.pm_offset = PAGE_SIZE; in Partition_package() 358 spkg.img_offset = 2 * PAGE_SIZE; in Partition_package()
|
/hafnium-2.8-rc0/test/vmapi/primary_with_secondaries/services/ |
A D | unmapped.c | 20 alignas(PAGE_SIZE) static uint8_t pages[2 * PAGE_SIZE]; in alignas() argument 36 {.address = (uint64_t)(&pages[PAGE_SIZE]), .page_count = 1}, in TEST_SERVICE() 53 *(volatile uint64_t *)(&pages[PAGE_SIZE - 6]); in TEST_SERVICE()
|
A D | memory.c | 22 alignas(PAGE_SIZE) static uint8_t page[PAGE_SIZE]; 53 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 90 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 147 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 223 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 274 ptr[PAGE_SIZE]++; in TEST_SERVICE() 594 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 807 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 815 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() 850 for (i = 0; i < PAGE_SIZE; ++i) { in TEST_SERVICE() [all …]
|
/hafnium-2.8-rc0/test/vmapi/primary_only/ |
A D | faults.c | 21 alignas(PAGE_SIZE) static char tx[PAGE_SIZE]; 22 alignas(PAGE_SIZE) static char rx[PAGE_SIZE];
|
/hafnium-2.8-rc0/test/vmapi/arch/aarch64/gicv3/ |
A D | gicv3_setup.c | 31 hftest_mm_identity_map((void *)GICD_BASE, PAGE_SIZE, mode); in gicv3_system_setup() 32 hftest_mm_identity_map((void *)GICR_BASE, PAGE_SIZE, mode); in gicv3_system_setup() 33 hftest_mm_identity_map((void *)IO32_C(SGI_BASE).ptr, PAGE_SIZE, mode); in gicv3_system_setup()
|
A D | gicv3.c | 25 alignas(PAGE_SIZE) uint8_t send_page[PAGE_SIZE]; 26 alignas(PAGE_SIZE) uint8_t recv_page[PAGE_SIZE];
|
/hafnium-2.8-rc0/test/vmapi/el0_partitions/ |
A D | memory_sharing.c | 21 alignas(PAGE_SIZE) static uint8_t 361 for (int i = 0; i < PAGE_SIZE; ++i) { in TEST() 369 for (int i = 0; i < PAGE_SIZE; ++i) { in TEST() 406 for (int i = 0; i < PAGE_SIZE; ++i) { in TEST() 469 for (int i = 0; i < PAGE_SIZE; ++i) { in TEST() 497 (uint64_t)pages + i * PAGE_SIZE; in TEST() 560 for (int i = 0; i < PAGE_SIZE; ++i) { in TEST() 873 pages[PAGE_SIZE] = 1; in TEST() 933 pages[PAGE_SIZE] = 1; in TEST() 2040 pages[PAGE_SIZE] = 1; in TEST() [all …]
|
/hafnium-2.8-rc0/test/vmapi/primary_with_secondaries/ |
A D | memory_sharing.c | 21 alignas(PAGE_SIZE) static uint8_t 387 for (int i = 0; i < PAGE_SIZE; ++i) { in TEST() 419 for (int i = 0; i < PAGE_SIZE; ++i) { in TEST() 427 for (int i = 0; i < PAGE_SIZE; ++i) { in TEST() 465 for (int i = 0; i < PAGE_SIZE; ++i) { in TEST() 558 (uint64_t)pages + i * PAGE_SIZE; in TEST() 946 pages[PAGE_SIZE] = 1; in TEST() 1008 pages[PAGE_SIZE] = 1; in TEST() 2136 pages[PAGE_SIZE] = 1; in TEST() 2198 pages[PAGE_SIZE] = 1; in TEST() [all …]
|
A D | no_services.c | 22 static alignas(PAGE_SIZE) uint8_t send_page[PAGE_SIZE]; 23 static alignas(PAGE_SIZE) uint8_t recv_page[PAGE_SIZE]; 24 static_assert(sizeof(send_page) == PAGE_SIZE, "Send page is not a page."); 25 static_assert(sizeof(recv_page) == PAGE_SIZE, "Recv page is not a page."); 177 EXPECT_FFA_ERROR(ffa_rxtx_map(PAGE_SIZE, PAGE_SIZE * 2), in TEST()
|
/hafnium-2.8-rc0/test/vmapi/arch/aarch64/trusty/ |
A D | trusty.c | 19 alignas(PAGE_SIZE) static uint8_t 20 pages[FRAGMENTED_SHARE_PAGE_COUNT * PAGE_SIZE]; 74 memset_s(pages, sizeof(pages), 'b', PAGE_SIZE); in TEST() 79 for (int i = 0; i < PAGE_SIZE; ++i) { in TEST() 100 memset_s(pages, sizeof(pages), 'b', PAGE_SIZE * 2); in TEST() 132 for (int i = 0; i < PAGE_SIZE * 2; ++i) { in TEST() 150 constituents[0].address = (uint64_t)pages + PAGE_SIZE; in TEST() 181 memset_s(ptr, sizeof(pages), 'b', PAGE_SIZE); in TEST() 186 for (int i = 0; i < PAGE_SIZE; ++i) { in TEST() 212 PAGE_SIZE * FRAGMENTED_SHARE_PAGE_COUNT); in TEST() [all …]
|
/hafnium-2.8-rc0/inc/hf/ |
A D | mm.h | 24 #define PAGE_SIZE (1 << PAGE_BITS) macro 25 #define MM_PTE_PER_PAGE (PAGE_SIZE / sizeof(pte_t)) 83 alignas(PAGE_SIZE) pte_t entries[MM_PTE_PER_PAGE]; 85 static_assert(sizeof(struct mm_page_table) == PAGE_SIZE, 87 static_assert(alignof(struct mm_page_table) == PAGE_SIZE,
|
/hafnium-2.8-rc0/test/arch/ |
A D | mm_test.c | 93 block_pte = arch_mm_block_pte(level, pa_init(PAGE_SIZE * 19), \ 120 level, pa_init(PAGE_SIZE * 12345678U), attrs); \ 145 level, pa_init(PAGE_SIZE * 999999999U)); \ 179 addr = pa_init(PAGE_SIZE * 17); \ 186 addr = pa_init(PAGE_SIZE * 500); \
|
/hafnium-2.8-rc0/test/vmapi/ffa_secure_partition_only/ |
A D | secure_partition.c | 22 static alignas(PAGE_SIZE) uint8_t send_page[PAGE_SIZE]; 23 static alignas(PAGE_SIZE) uint8_t recv_page[PAGE_SIZE]; 24 static_assert(sizeof(send_page) == PAGE_SIZE, "Send page is not a page."); 25 static_assert(sizeof(recv_page) == PAGE_SIZE, "Recv page is not a page."); 215 EXPECT_FFA_ERROR(ffa_rxtx_map(PAGE_SIZE, PAGE_SIZE * 2), in TEST()
|
/hafnium-2.8-rc0/test/vmapi/common/ |
A D | ffa.c | 20 static alignas(PAGE_SIZE) uint8_t send_page[PAGE_SIZE]; 21 static alignas(PAGE_SIZE) uint8_t recv_page[PAGE_SIZE]; 22 static_assert(sizeof(send_page) == PAGE_SIZE, "Send page is not a page."); 23 static_assert(sizeof(recv_page) == PAGE_SIZE, "Recv page is not a page.");
|
/hafnium-2.8-rc0/src/arch/aarch64/pl011/ |
A D | pl011.c | 94 pa_add(pa_init(PL011_BASE), PAGE_SIZE), in plat_console_mm_init()
|
/hafnium-2.8-rc0/test/inc/test/vmapi/ |
A D | ffa.h | 18 (PAGE_SIZE / sizeof(struct ffa_memory_region_constituent))
|