Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd/lib/libc/gen/
H A Dtls.c118 res = (void *)roundup2((uintptr_t)mem + sizeof(void *), align); in libc_malloc_aligned()
184 post_size = roundup2(TLS_TCB_SIZE, libc_tls_init_align) - TLS_TCB_SIZE; in get_tls_block_ptr()
189 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()
313 size = roundup2(libc_tls_static_space, tcbalign); in __libc_free_tls()
334 size = roundup2(libc_tls_static_space, tcbalign); in __libc_allocate_tls()
442 libc_tls_static_space = roundup2(phdr[i].p_memsz, in _init_tls()
/freebsd/stand/efi/loader/arch/amd64/
H A Dmultiboot2.c204 i += roundup2(tag->size, MULTIBOOT_TAG_ALIGN); in loadfile()
255 return (roundup2(tag->size, MULTIBOOT_TAG_ALIGN)); in add_string()
269 len += roundup2(bs->size, MULTIBOOT_TAG_ALIGN); in add_efi()
275 len += roundup2(efi64->size, MULTIBOOT_TAG_ALIGN); in add_efi()
282 return (len + roundup2(ih->size, MULTIBOOT_TAG_ALIGN)); in add_efi()
301 return (roundup2(mod->size, MULTIBOOT_TAG_ALIGN)); in add_module()
312 return (roundup2(tag->size, MULTIBOOT_TAG_ALIGN)); in add_end()
/freebsd/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/tools/build/cross-build/include/common/sys/
H A Dparam.h83 #ifndef roundup2
84 #define roundup2(x, y) \ macro
/freebsd/sys/x86/xen/
H A Dpv.c174 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/sys/dev/cxgbe/crypto/
H A Dt6_kern_tls.c319 len = sizeof(*wr) + 3 * roundup2(LEN__SET_TCB_FIELD_ULP, 16); in ktls_set_tcb_fields()
321 len += roundup2(LEN__SET_TCB_FIELD_ULP, 16); in ktls_set_tcb_fields()
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()
360 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()
[all …]
H A Dt4_crypto.c329 len += roundup2(nsegs % 8, 2) * sizeof(uint64_t); in ccr_phys_dsgl_len()
390 return (roundup2(n, 16)); in ccr_ulptx_sgl_len()
423 if (roundup2(transhdr_len, 16) + roundup2(input_len, 16) > in ccr_use_imm_data()
503 iopad_size = roundup2(s->hmac.partial_digest_len, 16); in ccr_hash()
534 wr_len = roundup2(transhdr_len, 16) + roundup2(imm_len, 16) + sgl_len; in ccr_hash()
664 kctx_len = roundup2(s->cipher.key_len, 16); in ccr_cipher()
688 wr_len = roundup2(transhdr_len, 16) + iv_len + in ccr_cipher()
689 roundup2(imm_le in ccr_cipher()
[all...]
H A Dt4_crypto.h243 #define TLS_KEY_CONTEXT_SZ roundup2(sizeof(struct tls_keyctx), 32)
246 roundup2(sizeof(struct tls_key_req) + TLS_KEY_CONTEXT_SZ, 16)
/freebsd/tests/atf_python/sys/netpfil/ipfw/
H A Dutils.py18 def roundup2(val: int, num: int) -> int: function
26 return roundup2(val, 8)
/freebsd/usr.bin/netstat/
H A Dcommon.c113 size = roundup2(ifindex + 1, 32) * in prepare_ifmap()
121 ifmap_size = roundup2(ifindex + 1, 32); in prepare_ifmap()
/freebsd/stand/kboot/libkboot/
H A Defi.c58 efisz = roundup2(sizeof(*efi_map_hdr), 16);
122 efisz = roundup2(sizeof(*efi_map_hdr), 16); in efi_read_from_pa()
170 efisz = roundup2(sizeof(struct efi_map_header), 16); in foreach_efi_map_entry()
/freebsd/tests/atf_python/sys/netlink/
H A Dutils.py16 def roundup2(val: int, num: int) -> int: function
24 return roundup2(val, 4)
/freebsd/stand/uboot/
H A Dcopy.c98 eubldr = roundup2((uint64_t)uboot_heap_end, KERN_ALIGN); in uboot_loadaddr()
102 sblock = roundup2((uint64_t)si->mr[i].start, in uboot_loadaddr()
/freebsd/lib/libprocstat/
H A Dcore.c238 roundup2(nhdr.n_namesz, sizeof(Elf32_Size)) + in procstat_core_get()
239 roundup2(nhdr.n_descsz, sizeof(Elf32_Size)); in procstat_core_get()
488 roundup2(nhdr.n_namesz, sizeof(Elf32_Size)) + in procstat_core_note_count()
489 roundup2(nhdr.n_descsz, sizeof(Elf32_Size)); in procstat_core_note_count()
/freebsd/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/stand/efi/loader/
H A Dcopy.c351 staging = roundup2(staging, M(2)); in efi_copy_init()
364 end = roundup2(end, EFI_PAGE_SIZE); in efi_check_space()
447 new_staging = roundup2(new_base, M(2)); in efi_check_space()
/freebsd/sys/dev/rtwn/rtl8192c/usb/
H A Dr92cu_rx.c52 return (roundup2(totlen, 128)); in r92cu_align_rx()
/freebsd/sbin/hastd/
H A Dnv.c100 (sizeof(struct nvhdr) + roundup2((size_t)(nvh)->nvh_namesize, 8))
105 #define NVH_SIZE(nvh) (NVH_HSIZE(nvh) + roundup2(NVH_DSIZE(nvh), 8))
250 if (roundup2(dsize, 8) == 0 || in nv_validate()
251 roundup2(dsize, 8) > size - NVH_HSIZE(nvh)) { in nv_validate()
770 nvh = calloc(1, sizeof(*nvh) + roundup2(namesize, 8)); in nv_add()
798 vsize = roundup2(vsize, 8) - vsize; in nv_add()
/freebsd/stand/kboot/kboot/arch/aarch64/
H A Dexec.c250 roundup2(sizeof(struct efi_map_header), 16) - fp->f_addr; in elf64_exec()
253 trampoline_data->memmap_len = efi_map_size - roundup2(sizeof(struct efi_map_header), 16); in elf64_exec()
/freebsd/lib/libc/tests/string/
H A Dstpncpy_test.c50 alloc_size = roundup2(len, page_size) + page_size; in makebuf()
69 alloc_size = roundup2(len, page_size) + page_size; in freebuf()
H A Dmemccpy_test.c52 alloc_size = roundup2(len, page_size) + page_size; in makebuf()
71 alloc_size = roundup2(len, page_size) + page_size; in freebuf()
/freebsd/sys/vm/
H A Dvm_reserv.c303 paddr = roundup2(seg->start, VM_LEVEL_0_SIZE); in sysctl_vm_reserv_fullpop()
571 allocpages = roundup2(minpages, VM_LEVEL_0_NPAGES); in vm_reserv_num_alloc_pages()
1058 paddr = roundup2(seg->start, VM_LEVEL_0_SIZE); in vm_reserv_init()
1254 if (lo < roundup2(lo, ppn_align)) { in vm_reserv_find_contig()
1256 lo = roundup2(lo, ppn_align); in vm_reserv_find_contig()
1257 } else if (roundup2(lo + 1, ppn_bound) >= lo + npages) in vm_reserv_find_contig()
1259 if (roundup2(lo + 1, ppn_bound) < lo + npages) { in vm_reserv_find_contig()
1261 lo = roundup2(lo + 1, ppn_bound); in vm_reserv_find_contig()
/freebsd/stand/i386/gptzfsboot/
H A Dzfsboot.c186 (roundup2(__base + (int32_t)&_end, 0x10000) - __base); in main()
381 p += roundup2(hdr.ex.a_text, PAGE_SIZE); in load()
387 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); in load()
433 p += roundup2(ep[1].p_memsz, PAGE_SIZE); in load()
/freebsd/sys/dev/rtwn/rtl8812a/usb/
H A Dr12au_rx.c83 return (roundup2(totlen, 8)); in r12au_align_rx()
/freebsd/libexec/rtld-elf/
H A Drtld_malloc.c183 x = roundup2((uintptr_t)mem + sizeof(union overhead), align); in __crt_aligned_alloc_offset()
293 addr = roundup2(pagepool_start, pagesz); in morepages()

12345678910>>...12