/freebsd/lib/libc/gen/ |
H A D | tls.c | 116 res = (void *)roundup2((uintptr_t)mem + sizeof(void *), align); in libc_malloc_aligned() 183 post_size = roundup2(TLS_TCB_SIZE, libc_tls_init_align) - TLS_TCB_SIZE; in get_tls_block_ptr() 188 pre_size = roundup2(tls_block_size, libc_tls_init_align) - in get_tls_block_ptr() 247 post_size = roundup2(TLS_TCB_SIZE, libc_tls_init_align) - TLS_TCB_SIZE; in __libc_allocate_tls() 252 pre_size = roundup2(tls_block_size, libc_tls_init_align) - in __libc_allocate_tls() 312 size = roundup2(libc_tls_static_space, tcbalign); in __libc_free_tls() 333 size = roundup2(libc_tls_static_space, tcbalign); in __libc_allocate_tls() 438 libc_tls_static_space = roundup2(phdr[i].p_memsz, in _init_tls()
|
/freebsd/stand/efi/loader/arch/amd64/ |
H A D | multiboot2.c | 206 i += roundup2(tag->size, MULTIBOOT_TAG_ALIGN); in loadfile() 257 return (roundup2(tag->size, MULTIBOOT_TAG_ALIGN)); in add_string() 271 len += roundup2(bs->size, MULTIBOOT_TAG_ALIGN); in add_efi() 277 len += roundup2(efi64->size, MULTIBOOT_TAG_ALIGN); in add_efi() 284 return (len + roundup2(ih->size, MULTIBOOT_TAG_ALIGN)); in add_efi() 303 return (roundup2(mod->size, MULTIBOOT_TAG_ALIGN)); in add_module() 314 return (roundup2(tag->size, MULTIBOOT_TAG_ALIGN)); in add_end()
|
/freebsd/stand/uboot/ |
H A D | copy.c | 102 eubldr = roundup2((uint64_t)uboot_heap_end, KERN_ALIGN); in uboot_loadaddr() 106 sblock = roundup2((uint64_t)si->mr[i].start, in uboot_loadaddr() 143 return roundup2(addr, PAGE_SIZE); in uboot_loadaddr()
|
/freebsd/tools/build/cross-build/include/common/sys/ |
H A D | param.h | 83 #ifndef roundup2 84 #define roundup2(x, y) \ macro
|
/freebsd/contrib/elftoolchain/common/ |
H A D | _elftc.h | 378 #ifndef roundup2 379 #define roundup2 roundup macro 424 #ifndef roundup2 425 #define roundup2 roundup macro 485 #define roundup2 roundup macro
|
/freebsd/sys/netlink/ |
H A D | netlink.h | 197 #ifndef roundup2 198 #define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ macro 201 #define NL_ITEM_ALIGN(_len) roundup2(_len, NL_ITEM_ALIGN_SIZE)
|
/freebsd/tests/atf_python/sys/netpfil/ipfw/ |
H A D | utils.py | 18 def roundup2(val: int, num: int) -> int: function 26 return roundup2(val, 8)
|
/freebsd/sys/dev/cxgbe/crypto/ |
H A D | t6_kern_tls.c | 343 dst += roundup2(LEN__SET_TCB_FIELD_ULP, 16); in ktls_set_tcb_fields() 350 dst += roundup2(LEN__SET_TCB_FIELD_ULP, 16); in ktls_set_tcb_fields() 354 dst += roundup2(LEN__SET_TCB_FIELD_ULP, 16); in ktls_set_tcb_fields() 776 roundup2(m->m_len + m_tls->m_len, 16); in ktls_wr_len() 810 wr_len += roundup2(imm_len, 16); in ktls_wr_len() 817 wr_len = roundup2(wr_len, 16); in ktls_wr_len() 982 tot_len += roundup2(wr_len, EQ_ESIZE); in t6_ktls_parse_pkt() 1007 tot_len += roundup2(wr_len, EQ_ESIZE); in t6_ktls_parse_pkt() 1028 tot_len += roundup2(wr_len, EQ_ESIZE); in t6_ktls_parse_pkt() 1557 twr_len += roundup2(imm_len, 16); in ktls_write_tls_wr() [all …]
|
H A D | t4_crypto.c | 389 return (roundup2(n, 16)); in ccr_ulptx_sgl_len() 422 if (roundup2(transhdr_len, 16) + roundup2(input_len, 16) > in ccr_use_imm_data() 532 wr_len = roundup2(transhdr_len, 16) + roundup2(imm_len, 16) + sgl_len; in ccr_hash() 662 kctx_len = roundup2(s->cipher.key_len, 16); in ccr_cipher() 686 wr_len = roundup2(transhdr_len, 16) + iv_len + in ccr_cipher() 687 roundup2(imm_len, 16) + sgl_len; in ccr_cipher() 987 wr_len = roundup2(transhdr_len, 16) + iv_len + roundup2(imm_len, 16) + in ccr_eta() 1276 wr_len = roundup2(transhdr_len, 16) + iv_len + roundup2(imm_len, 16) + in ccr_gcm() 1558 kctx_len = roundup2(s->cipher.key_len, 16) * 2; in ccr_ccm() 1623 wr_len = roundup2(transhdr_len, 16) + iv_len + roundup2(imm_len, 16) + in ccr_ccm() [all …]
|
H A D | t4_crypto.h | 242 #define TLS_KEY_CONTEXT_SZ roundup2(sizeof(struct tls_keyctx), 32) 245 roundup2(sizeof(struct tls_key_req) + TLS_KEY_CONTEXT_SZ, 16)
|
/freebsd/usr.bin/netstat/ |
H A D | common.c | 114 size = roundup2(ifindex + 1, 32) * in prepare_ifmap() 122 ifmap_size = roundup2(ifindex + 1, 32); in prepare_ifmap()
|
/freebsd/sys/x86/xen/ |
H A D | pv.c | 174 physfree = roundup2(start_info_paddr + sizeof(struct hvm_start_info), in hammer_time_xen() 176 physfree = MAX(roundup2((vm_paddr_t)_end - KERNBASE, PAGE_SIZE), in hammer_time_xen() 180 physfree = MAX(roundup2(start_info->memmap_paddr + in hammer_time_xen() 195 physfree = MAX(roundup2(mod[i].paddr + mod[i].size, in hammer_time_xen()
|
/freebsd/tests/atf_python/sys/netlink/ |
H A D | utils.py | 16 def roundup2(val: int, num: int) -> int: function 24 return roundup2(val, 4)
|
/freebsd/sys/arm64/arm64/ |
H A D | genassym.c | 39 ASSYM(BOOTPARAMS_SIZE, roundup2(sizeof(struct arm64_bootparams), 53 ASSYM(PCB_SIZE, roundup2(sizeof(struct pcb), STACKALIGNBYTES + 1));
|
/freebsd/sys/dev/rtwn/rtl8192c/usb/ |
H A D | r92cu_rx.c | 52 return (roundup2(totlen, 128)); in r92cu_align_rx()
|
/freebsd/lib/libprocstat/ |
H A D | core.c | 198 roundup2(nhdr.n_namesz, sizeof(Elf32_Size)) + in procstat_core_get() 199 roundup2(nhdr.n_descsz, sizeof(Elf32_Size)); in procstat_core_get() 448 roundup2(nhdr.n_namesz, sizeof(Elf32_Size)) + in procstat_core_note_count() 449 roundup2(nhdr.n_descsz, sizeof(Elf32_Size)); in procstat_core_note_count()
|
/freebsd/stand/i386/isoboot/ |
H A D | isoboot.c | 226 (roundup2(__base + (int32_t)&_end, 0x10000) - __base); in main() 359 p += roundup2(hdr.ex.a_text, PAGE_SIZE); in load() 362 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); in load() 393 p += roundup2(ep[1].p_memsz, PAGE_SIZE); in load()
|
/freebsd/sys/net80211/ |
H A D | ieee80211_radiotap.c | 72 th->it_len = htole16(roundup2(tlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv() 88 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv() 360 off = roundup2(off, items[i].align); in radiotap_offset()
|
/freebsd/stand/efi/loader/ |
H A D | copy.c | 344 staging = roundup2(staging, M(2)); in efi_copy_init() 357 end = roundup2(end, EFI_PAGE_SIZE); in efi_check_space() 437 new_staging = roundup2(new_base, M(2)); in efi_check_space()
|
/freebsd/sys/dev/rtwn/rtl8812a/usb/ |
H A D | r12au_rx.c | 83 return (roundup2(totlen, 8)); in r12au_align_rx()
|
/freebsd/stand/kboot/kboot/arch/aarch64/ |
H A D | exec.c | 251 roundup2(sizeof(struct efi_map_header), 16) - fp->f_addr; in elf64_exec() 254 trampoline_data->memmap_len = efi_map_size - roundup2(sizeof(struct efi_map_header), 16); in elf64_exec()
|
/freebsd/sys/vm/ |
H A D | vm_reserv.c | 280 paddr = roundup2(seg->start, VM_LEVEL_0_SIZE); in sysctl_vm_reserv_fullpop() 653 maxpages = roundup2(minpages, VM_LEVEL_0_NPAGES); in vm_reserv_alloc_contig() 1015 paddr = roundup2(seg->start, VM_LEVEL_0_SIZE); in vm_reserv_init() 1199 if (lo < roundup2(lo, ppn_align)) { in vm_reserv_find_contig() 1201 lo = roundup2(lo, ppn_align); in vm_reserv_find_contig() 1202 } else if (roundup2(lo + 1, ppn_bound) >= lo + npages) in vm_reserv_find_contig() 1204 if (roundup2(lo + 1, ppn_bound) < lo + npages) { in vm_reserv_find_contig() 1206 lo = roundup2(lo + 1, ppn_bound); in vm_reserv_find_contig()
|
/freebsd/libexec/rtld-elf/ |
H A D | rtld_malloc.c | 183 x = roundup2((uintptr_t)mem + sizeof(union overhead), align); in __crt_aligned_alloc_offset() 293 addr = roundup2(pagepool_start, pagesz); in morepages()
|
/freebsd/stand/i386/gptboot/ |
H A D | gptboot.c | 267 dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base); in main() 420 p += roundup2(hdr.ex.a_text, PAGE_SIZE); in load() 423 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); in load() 454 p += roundup2(ep[1].p_memsz, PAGE_SIZE); in load()
|
/freebsd/stand/i386/zfsboot/ |
H A D | zfsboot.c | 177 (roundup2(__base + (int32_t)&_end, 0x10000) - __base); in main() 379 p += roundup2(hdr.ex.a_text, PAGE_SIZE); in load() 385 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); in load() 431 p += roundup2(ep[1].p_memsz, PAGE_SIZE); in load()
|