Home
last modified time | relevance | path

Searched refs:align_up (Results 1 – 19 of 19) sorted by relevance

/openbmc/linux/tools/testing/selftests/kvm/include/
H A Dtest_util.h146 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 Dcommon.h64 static inline uint32_t align_up(uint32_t val, uint32_t size) in align_up() function
H A Dwindows.c182 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 Dprotocol.c361 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 Dcommon.h63 static inline uint32_t align_up(uint32_t val, uint32_t size) in align_up() function
H A Dmboxd_windows.c179 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 Dmboxd_flash.c145 align_up(count, 1 << context->erase_size_shift) >> in set_flash_bytemap()
H A Dmboxd_msg.c142 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 Dmemstress.c76 end = align_up(memstress_args.gpa + memstress_args.size, PG_SIZE_1G); in memstress_setup_ept()
/openbmc/phosphor-mboxd/vpnor/
H A Dpnor_partition_table.hpp123 return align_up(szBytes, blockSize); in capacity()
H A Dpnor_partition_table.cpp238 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 Dtable.hpp133 return align_up(szBytes, blockSize); in capacity()
H A Dtable.cpp255 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 Ducall_common.c16 return align_up(sizeof(struct ucall_header), page_size) / page_size; in ucall_nr_pages_required()
H A Dkvm_util.c1001 TEST_ASSERT_EQ(guest_paddr, align_up(guest_paddr, backing_src_pagesz)); in vm_userspace_mem_region_add()
/openbmc/hiomapd/mtd/
H A Dbackend.c176 align_up(count, 1 << backend->erase_size_shift) >> in mtd_set_bytemap()
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A Dpage_fault_test.c594 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 Dmemory.c584 #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 Dboot.rst899 runtime_start = align_up(load_address, kernel_alignment)