Searched refs:ALIGN_UP (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/lib/zlib_dfltcc/ |
H A D | dfltcc.h | 110 #define ALIGN_UP(p, size) (__typeof__(p))(((uintptr_t)(p) + ((size) - 1)) & ~((size) - 1)) macro 112 #define GET_DFLTCC_STATE(state) ((struct dfltcc_state *)((char *)(state) + ALIGN_UP(sizeof(*state),…
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | pkey-helpers.h | 180 #define ALIGN_UP(x, align_to) (((x) + ((align_to)-1)) & ~((align_to)-1)) macro 183 ((typeof(p))ALIGN_UP((unsigned long)(p), ptr_align_to))
|
H A D | protection_keys.c | 727 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_anon_huge() 806 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_hugetlb()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | tcp_mmap.c | 130 #define ALIGN_UP(x, align_to) (((x) + ((align_to)-1)) & ~((align_to)-1)) macro 131 #define ALIGN_PTR_UP(p, ptr_align_to) ((typeof(p))ALIGN_UP((unsigned long)(p), ptr_align_to)) 140 sz = ALIGN_UP(need, map_align); in mmap_large_buffer()
|
/openbmc/qemu/subprojects/libvduse/ |
H A D | libvduse.c | 55 #define ALIGN_UP(n, m) ALIGN_DOWN((n) + (m) - 1, (m)) macro 140 return ALIGN_UP(sizeof(VduseDescStateSplit) * queue_size + in vduse_vq_log_size() 630 size_t in_sg_ofs = ALIGN_UP(sz, __alignof__(elem->in_sg[0])); in vduse_queue_alloc_element()
|
/openbmc/openbmc/meta-raspberrypi/recipes-graphics/userland/files/ |
H A D | 0002-wayland-Add-support-for-the-Wayland-winsys.patch | 664 +#ifndef ALIGN_UP 665 +#define ALIGN_UP(x,y) ((x + (y)-1) & ~((y)-1)) 684 + uint32_t stride = ALIGN_UP(window->width * 4, 16); 685 + uint32_t buffer_height = ALIGN_UP(window->height, 16);
|
/openbmc/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user.c | 83 #define ALIGN_UP(n, m) ALIGN_DOWN((n) + (m) - 1, (m)) macro 1874 return ALIGN_UP(sizeof(VuDescStateSplit) * queue_size + in vu_inflight_queue_size() 2768 size_t in_sg_ofs = ALIGN_UP(sz, __alignof__(elem->in_sg[0])); in virtqueue_alloc_element()
|