Home
last modified time | relevance | path

Searched refs:max_align (Results 1 – 7 of 7) sorted by relevance

/openbmc/qemu/linux-user/
H A Dthunk.c68 int nb_fields, offset, max_align, align, size, i, j; in thunk_register_struct() local
92 max_align = 1; in thunk_register_struct()
101 if (align > max_align) in thunk_register_struct()
102 max_align = align; in thunk_register_struct()
105 offset = (offset + max_align - 1) & ~(max_align - 1); in thunk_register_struct()
107 se->align[i] = max_align; in thunk_register_struct()
110 i == THUNK_HOST ? "host" : "target", offset, max_align); in thunk_register_struct()
/openbmc/linux/arch/x86/kernel/cpu/mtrr/
H A Dcleanup.c243 unsigned long max_align, align; in range_to_mtrr() local
248 max_align = __ffs(range_startk); in range_to_mtrr()
250 max_align = BITS_PER_LONG - 1; in range_to_mtrr()
253 if (align > max_align) in range_to_mtrr()
254 align = max_align; in range_to_mtrr()
/openbmc/qemu/block/
H A Dfile-posix.c399 size_t max_align = MAX(MAX_BLOCKSIZE, qemu_real_host_page_size()); in raw_probe_alignment() local
446 buf = qemu_memalign(max_align, max_align); in raw_probe_alignment()
451 bs->bl.request_alignment = (align != 1) ? align : max_align; in raw_probe_alignment()
461 buf = qemu_memalign(max_align, 2 * max_align); in raw_probe_alignment()
464 if (raw_is_io_aligned(fd, buf + align, max_align)) { in raw_probe_alignment()
2259 size_t max_align = MAX(MAX_BLOCKSIZE, qemu_real_host_page_size()); in allocate_first_block() local
2264 buf = qemu_memalign(max_align, write_size); in allocate_first_block()
/openbmc/linux/tools/lib/bpf/
H A Dbtf_dump.c837 int max_align = 1, align, i, bit_sz; in btf_is_struct_packed() local
848 max_align = max(align, max_align); in btf_is_struct_packed()
851 if (t->size % max_align != 0) in btf_is_struct_packed()
H A Dbtf.c684 int i, max_align = 1, align; in btf__align_of() local
690 max_align = max(max_align, align); in btf__align_of()
703 if ((t->size % max_align) != 0) in btf__align_of()
706 return max_align; in btf__align_of()
/openbmc/linux/arch/powerpc/lib/
H A Dsstep.c236 static nokprobe_inline unsigned long max_align(unsigned long x) in max_align() function
357 c = max_align(ea); in __copy_mem_in()
359 c = max_align(nb); in __copy_mem_in()
493 c = max_align(ea); in __copy_mem_out()
495 c = max_align(nb); in __copy_mem_out()
/openbmc/qemu/tcg/
H A Dtcg-op-gvec.c40 uint32_t max_align; in check_size_align() local
54 max_align = maxsz >= 16 ? 15 : 7; in check_size_align()
55 tcg_debug_assert((maxsz & max_align) == 0); in check_size_align()
56 tcg_debug_assert((ofs & max_align) == 0); in check_size_align()