Home
last modified time | relevance | path

Searched refs:roundup2 (Results 1 – 25 of 273) sorted by relevance

1234567891011

/freebsd-14.2/lib/libc/gen/
H A Dtls.c116 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-14.2/stand/efi/loader/arch/amd64/
H A Dmultiboot2.c206 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-14.2/stand/uboot/
H A Dcopy.c102 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-14.2/tools/build/cross-build/include/common/sys/
H A Dparam.h83 #ifndef roundup2
84 #define roundup2(x, y) \ macro
/freebsd-14.2/contrib/elftoolchain/common/
H A D_elftc.h378 #ifndef roundup2
379 #define roundup2 roundup macro
424 #ifndef roundup2
425 #define roundup2 roundup macro
485 #define roundup2 roundup macro
/freebsd-14.2/sys/netlink/
H A Dnetlink.h197 #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)
H A Dnetlink_io.c553 buffer_length = roundup2(data_length, 8) + SCRATCH_BUFFER_SIZE; in nl_process_mbuf()
555 buffer_length += roundup2(data_length, 8); in nl_process_mbuf()
568 .lb.base = &buffer[roundup2(data_length, 8)], in nl_process_mbuf()
569 .lb.size = buffer_length - roundup2(data_length, 8), in nl_process_mbuf()
/freebsd-14.2/tests/atf_python/sys/netpfil/ipfw/
H A Dutils.py18 def roundup2(val: int, num: int) -> int: function
26 return roundup2(val, 8)
/freebsd-14.2/sys/dev/cxgbe/crypto/
H A Dt6_kern_tls.c344 dst += roundup2(LEN__SET_TCB_FIELD_ULP, 16); in ktls_set_tcb_fields()
351 dst += roundup2(LEN__SET_TCB_FIELD_ULP, 16); in ktls_set_tcb_fields()
355 dst += roundup2(LEN__SET_TCB_FIELD_ULP, 16); in ktls_set_tcb_fields()
777 roundup2(m->m_len + m_tls->m_len, 16); in ktls_wr_len()
811 wr_len += roundup2(imm_len, 16); in ktls_wr_len()
818 wr_len = roundup2(wr_len, 16); in ktls_wr_len()
983 tot_len += roundup2(wr_len, EQ_ESIZE); in t6_ktls_parse_pkt()
1008 tot_len += roundup2(wr_len, EQ_ESIZE); in t6_ktls_parse_pkt()
1029 tot_len += roundup2(wr_len, EQ_ESIZE); in t6_ktls_parse_pkt()
1558 twr_len += roundup2(imm_len, 16); in ktls_write_tls_wr()
[all …]
H A Dt4_crypto.c390 return (roundup2(n, 16)); in ccr_ulptx_sgl_len()
423 if (roundup2(transhdr_len, 16) + roundup2(input_len, 16) > in ccr_use_imm_data()
533 wr_len = roundup2(transhdr_len, 16) + roundup2(imm_len, 16) + sgl_len; in ccr_hash()
663 kctx_len = roundup2(s->cipher.key_len, 16); in ccr_cipher()
687 wr_len = roundup2(transhdr_len, 16) + iv_len + in ccr_cipher()
688 roundup2(imm_len, 16) + sgl_len; in ccr_cipher()
988 wr_len = roundup2(transhdr_len, 16) + iv_len + roundup2(imm_len, 16) + in ccr_eta()
1277 wr_len = roundup2(transhdr_len, 16) + iv_len + roundup2(imm_len, 16) + in ccr_gcm()
1559 kctx_len = roundup2(s->cipher.key_len, 16) * 2; in ccr_ccm()
1624 wr_len = roundup2(transhdr_len, 16) + iv_len + roundup2(imm_len, 16) + in ccr_ccm()
[all …]
H A Dt4_crypto.h242 #define TLS_KEY_CONTEXT_SZ roundup2(sizeof(struct tls_keyctx), 32)
245 roundup2(sizeof(struct tls_key_req) + TLS_KEY_CONTEXT_SZ, 16)
/freebsd-14.2/usr.bin/netstat/
H A Dcommon.c115 size = roundup2(ifindex + 1, 32) * in prepare_ifmap()
123 ifmap_size = roundup2(ifindex + 1, 32); in prepare_ifmap()
/freebsd-14.2/tests/atf_python/sys/netlink/
H A Dutils.py16 def roundup2(val: int, num: int) -> int: function
24 return roundup2(val, 4)
/freebsd-14.2/sys/arm64/arm64/
H A Dgenassym.c40 ASSYM(BOOTPARAMS_SIZE, roundup2(sizeof(struct arm64_bootparams),
54 ASSYM(PCB_SIZE, roundup2(sizeof(struct pcb), STACKALIGNBYTES + 1));
/freebsd-14.2/sys/x86/xen/
H A Dpv.c190 physfree = roundup2(start_info_paddr + sizeof(struct hvm_start_info), in hammer_time_xen()
192 physfree = MAX(roundup2((vm_paddr_t)_end - KERNBASE, PAGE_SIZE), in hammer_time_xen()
196 physfree = MAX(roundup2(start_info->memmap_paddr + in hammer_time_xen()
211 physfree = MAX(roundup2(mod[i].paddr + mod[i].size, in hammer_time_xen()
/freebsd-14.2/lib/libprocstat/
H A Dcore.c199 roundup2(nhdr.n_namesz, sizeof(Elf32_Size)) + in procstat_core_get()
200 roundup2(nhdr.n_descsz, sizeof(Elf32_Size)); in procstat_core_get()
449 roundup2(nhdr.n_namesz, sizeof(Elf32_Size)) + in procstat_core_note_count()
450 roundup2(nhdr.n_descsz, sizeof(Elf32_Size)); in procstat_core_note_count()
/freebsd-14.2/stand/i386/isoboot/
H A Disoboot.c226 (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-14.2/sys/dev/rtwn/rtl8192c/usb/
H A Dr92cu_rx.c52 return (roundup2(totlen, 128)); in r92cu_align_rx()
/freebsd-14.2/sys/net80211/
H A Dieee80211_radiotap.c72 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-14.2/stand/efi/loader/
H A Dcopy.c344 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-14.2/sys/dev/rtwn/rtl8812a/usb/
H A Dr12au_rx.c83 return (roundup2(totlen, 8)); in r12au_align_rx()
/freebsd-14.2/sys/vm/
H A Dvm_reserv.c280 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()
1178 if (lo < roundup2(lo, ppn_align)) { in vm_reserv_find_contig()
1180 lo = roundup2(lo, ppn_align); in vm_reserv_find_contig()
1181 } else if (roundup2(lo + 1, ppn_bound) >= lo + npages) in vm_reserv_find_contig()
1183 if (roundup2(lo + 1, ppn_bound) < lo + npages) { in vm_reserv_find_contig()
1185 lo = roundup2(lo + 1, ppn_bound); in vm_reserv_find_contig()
/freebsd-14.2/stand/kboot/kboot/arch/aarch64/
H A Dexec.c251 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-14.2/libexec/rtld-elf/
H A Drtld_malloc.c186 x = roundup2((uintptr_t)mem + sizeof(union overhead), align); in __crt_aligned_alloc_offset()
296 addr = roundup2(pagepool_start, pagesz); in morepages()
/freebsd-14.2/stand/i386/zfsboot/
H A Dzfsboot.c177 (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()

1234567891011