/openbmc/linux/tools/testing/selftests/kvm/include/ |
H A D | test_util.h | 146 static inline uint64_t align_up(uint64_t x, uint64_t size) in align_up() function 157 uint64_t x_aligned_up = align_up(x, size); in align_down() 167 return (void *)align_up((unsigned long)x, size); in align_ptr_up()
|
/openbmc/hiomapd/ |
H A D | common.h | 64 static inline uint32_t align_up(uint32_t val, uint32_t size) in align_up() function
|
H A D | windows.c | 182 high_mem.size = align_up(high_mem.flash_offset, in window_flush_v1() 628 cur->size = align_up(rc, (1ULL << context->backend.block_size_shift)); in windows_create_map()
|
H A D | protocol.c | 361 size = align_up(size, 1 << context->backend.block_size_shift); in protocol_v1_mark_dirty() 508 ret = align_up(max_size_mb * FLASH_ACCESS_MS_PER_MB, 1000) / 1000; in get_suggested_timeout()
|
/openbmc/phosphor-mboxd/ |
H A D | common.h | 63 static inline uint32_t align_up(uint32_t val, uint32_t size) in align_up() function
|
H A D | mboxd_windows.c | 179 high_mem.size = align_up(high_mem.flash_offset, in write_from_window_v1() 634 cur->size = align_up(rc, (1ULL << context->block_size_shift)); in create_map_window()
|
H A D | mboxd_flash.c | 145 align_up(count, 1 << context->erase_size_shift) >> in set_flash_bytemap()
|
H A D | mboxd_msg.c | 142 ret = align_up(max_size_mb * FLASH_ACCESS_MS_PER_MB, 1000) / 1000; in get_suggested_timeout() 455 size = align_up(size, 1 << context->block_size_shift); in mbox_handle_dirty_window()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/x86_64/ |
H A D | memstress.c | 76 end = align_up(memstress_args.gpa + memstress_args.size, PG_SIZE_1G); in memstress_setup_ept()
|
/openbmc/phosphor-mboxd/vpnor/ |
H A D | pnor_partition_table.hpp | 123 return align_up(szBytes, blockSize); in capacity()
|
H A D | pnor_partition_table.cpp | 238 part.data.base = align_up(start, blockSize) / blockSize; in writeSizes() 239 size_t sizeInBlocks = align_up(size, blockSize) / blockSize; in writeSizes()
|
/openbmc/hiomapd/vpnor/ |
H A D | table.hpp | 133 return align_up(szBytes, blockSize); in capacity()
|
H A D | table.cpp | 255 part.data.base = align_up(start, blockSize) / blockSize; in writeSizes() 256 size_t sizeInBlocks = align_up(size, blockSize) / blockSize; in writeSizes()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | ucall_common.c | 16 return align_up(sizeof(struct ucall_header), page_size) / page_size; in ucall_nr_pages_required()
|
H A D | kvm_util.c | 1001 TEST_ASSERT_EQ(guest_paddr, align_up(guest_paddr, backing_src_pagesz)); in vm_userspace_mem_region_add()
|
/openbmc/hiomapd/mtd/ |
H A D | backend.c | 176 align_up(count, 1 << backend->erase_size_shift) >> in mtd_set_bytemap()
|
/openbmc/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | page_fault_test.c | 594 pt_size = align_up(pt_size, backing_src_pagesz); in setup_memslots() 595 data_size = align_up(guest_page_size, backing_src_pagesz); in setup_memslots()
|
/openbmc/qemu/system/ |
H A D | memory.c | 584 #define align_up(addr, size) \ macro 619 access_addr[1] = align_up(addr + size, access_size); in access_with_adjusted_size_unaligned() 631 MIN(addr + size, align_up(cur + 1, access_size)) - cur; in access_with_adjusted_size_unaligned() 651 MIN(addr + size, align_up(cur + 1, access_size)) - cur; in access_with_adjusted_size_unaligned()
|
/openbmc/linux/Documentation/arch/x86/ |
H A D | boot.rst | 899 runtime_start = align_up(load_address, kernel_alignment)
|