Searched refs:align (Results 1 – 5 of 5) sorted by relevance
| /test/lib/ |
| A D | efi_memory.c | 18 unsigned long align = 0x400000; in lib_test_efi_alloc_aligned_pages() local 27 align = 0x200; in lib_test_efi_alloc_aligned_pages() 28 addr = efi_alloc_aligned_pages(4096, EFI_ACPI_RECLAIM_MEMORY, align); in lib_test_efi_alloc_aligned_pages() 30 ut_asserteq_64(0, (uintptr_t)addr & (align - 1)); in lib_test_efi_alloc_aligned_pages() 35 align = 0x400000; in lib_test_efi_alloc_aligned_pages() 36 addr = efi_alloc_aligned_pages(4096, EFI_ACPI_RECLAIM_MEMORY, align); in lib_test_efi_alloc_aligned_pages() 38 ut_asserteq_64(0, (uintptr_t)addr & (align - 1)); in lib_test_efi_alloc_aligned_pages()
|
| A D | lmb.c | 85 static phys_addr_t lmb_alloc(phys_size_t size, ulong align) in lmb_alloc() argument 90 err = lmb_alloc_mem(LMB_MEM_ALLOC_ANY, align, &addr, size, LMB_NONE); in lmb_alloc() 97 static phys_addr_t lmb_alloc_base(phys_size_t size, ulong align, in lmb_alloc_base() argument 104 err = lmb_alloc_mem(LMB_MEM_ALLOC_MAX, align, &addr, size, flags); in lmb_alloc_base() 356 const phys_addr_t alloc_size, const ulong align) in test_noreserved() argument 364 const phys_addr_t alloc_size_aligned = (alloc_size + align - 1) & in test_noreserved() 365 ~(align - 1); in test_noreserved() 377 a = lmb_alloc(alloc_size, align); in test_noreserved() 383 b = lmb_alloc(alloc_size, align); in test_noreserved() 405 b = lmb_alloc_base(alloc_size, align, ram_end, LMB_NONE); in test_noreserved()
|
| /test/py/tests/ |
| A D | vboot_evil.py | 42 def align(offset): function 86 offset = align(offset) 106 len_tag = align(len_tag) 154 node_name_len = align(node_name_len) 187 original_node_len = align(original_node_len)
|
| /test/common/ |
| A D | bloblist.c | 339 int align = 5 - i; in bloblist_test_align() local 341 data = bloblist_add(3 + i, i * 4, align); in bloblist_test_align() 344 ut_asserteq(0, addr & (align - 1)); in bloblist_test_align()
|
| /test/dm/ |
| A D | ofnode.c | 1457 const int align = __alignof__(struct unit_test_state); in dm_test_livetree_align() local 1463 ut_asserteq(start, ALIGN(start, align)); in dm_test_livetree_align()
|
Completed in 16 milliseconds