| /netbsd/src/sys/uvm/ |
| D | uvm_pglist.c | 142 candidate = roundup2(ulmax(low, uvm_physseg_get_avail_start(psi) + in uvm_pglistalloc_c_ps() 166 … candidate = roundup2(ulmax(low, uvm_physseg_get_avail_start(psi)), alignment); in uvm_pglistalloc_c_ps() 179 candidate = roundup2(candidate, alignment); in uvm_pglistalloc_c_ps() 264 cnt = roundup2(cnt, alignment); in uvm_pglistalloc_c_ps() 352 rlo = roundup2(ptoa(uvm_physseg_get_avail_start(upm)), alignment); in uvm_pglistalloc_contig_aggressive() 353 rlo = MAX(rlo, roundup2(low, alignment)); in uvm_pglistalloc_contig_aggressive() 354 rlo = MAX(rlo, roundup2(pa - ptoa(num - 1), alignment)); in uvm_pglistalloc_contig_aggressive() 710 low = roundup2(low, alignment); in uvm_pglistalloc()
|
| D | uvm_pgflcache.c | 282 (roundup2(sz * VM_NFREELIST, coherency_unit) + coherency_unit - 1); in uvm_pgflcache_init_cpu() 363 addr = roundup2((uintptr_t)ucpu->pgflcachemem, coherency_unit); in uvm_pgflcache_resume()
|
| D | uvm_page.c | 407 bucketsize = roundup2(bucketsize, coherency_unit); in uvm_page_init() 755 bucketsize = roundup2(bucketsize, coherency_unit); in uvm_page_redim() 759 bucketarray = (char *)roundup2((uintptr_t)bucketmem, coherency_unit); in uvm_page_redim() 958 ucpu = (struct uvm_cpu *)roundup2((uintptr_t)ucpu, in uvm_cpu_attach()
|
| /netbsd/src/lib/libc/tls/ |
| D | tls.c | 93 tls_allocation = roundup2(tls_size, alignof(max_align_t)); in __weak_alias() 163 tls_size = roundup2(phdr->p_memsz, phdr->p_align); in __libc_static_tls_setup_cb()
|
| /netbsd/src/libexec/ld.elf_so/ |
| D | tls.c | 213 _rtld_tls_static_space = roundup2(_rtld_tls_static_space, in _rtld_tls_initial_allocation() 416 offset = roundup2(_rtld_tls_static_offset, obj->tlsalign); in _rtld_tls_offset_allocate() 419 offset = roundup2(_rtld_tls_static_offset + obj->tlssize, in _rtld_tls_offset_allocate()
|
| /netbsd/src/sys/fs/tmpfs/ |
| D | tmpfs_mem.c | 212 const size_t sz = roundup2(len, TMPFS_NAME_QUANTUM); in tmpfs_strname_alloc() 224 const size_t sz = roundup2(len, TMPFS_NAME_QUANTUM); in tmpfs_strname_free()
|
| /netbsd/src/external/cddl/osnet/sys/sys/ |
| D | dirent.h | 47 roundup2(__DIRENT64_NAMEOFF + (len) + 1, sizeof(ino_t))
|
| /netbsd/src/sys/dev/ic/ |
| D | i82596.c | 579 sc->sc_scp_sz = roundup2(sizeof(struct iee_scp), sc->sc_cl_align); in iee_attach() 581 sc->sc_iscp_sz = roundup2(sizeof(struct iee_iscp), sc->sc_cl_align); in iee_attach() 583 sc->sc_scb_sz = roundup2(sizeof(struct iee_scb), sc->sc_cl_align); in iee_attach() 585 sc->sc_rfd_sz = roundup2(sizeof(struct iee_rfd), sc->sc_cl_align); in iee_attach() 587 sc->sc_rbd_sz = roundup2(sizeof(struct iee_rbd), sc->sc_cl_align); in iee_attach() 589 sc->sc_cb_sz = roundup2(sizeof(struct iee_cb), sc->sc_cl_align); in iee_attach() 591 sc->sc_tbd_sz = roundup2(sizeof(struct iee_tbd), sc->sc_cl_align); in iee_attach()
|
| /netbsd/src/sys/kern/ |
| D | subr_workqueue.c | 69 #define WQ_SIZE (roundup2(sizeof(struct workqueue), coherency_unit)) 70 #define WQ_QUEUE_SIZE (roundup2(sizeof(struct workqueue_queue), coherency_unit)) 311 wq = (void *)roundup2((uintptr_t)ptr, coherency_unit); in workqueue_create()
|
| D | subr_evcnt.c | 226 const size_t len = roundup2(copylen, sizeof(uint64_t)); in sysctl_fillevcnt()
|
| D | kern_runq.c | 159 size = roundup2(sizeof(spc->spc_queue[0]) * PRI_COUNT, coherency_unit) + in sched_cpuattach() 162 spc->spc_queue = (void *)roundup2((uintptr_t)p, coherency_unit); in sched_cpuattach()
|
| /netbsd/src/doc/ |
| D | TODO.ext2fs | 12 - use roundup2() instead of custom macros
|
| /netbsd/src/sys/ufs/ext2fs/ |
| D | ext2fs_dir.h | 202 #define EXT2FS_DIRSIZ(len) roundup2(8 + len, 4)
|
| /netbsd/src/sys/ufs/ufs/ |
| D | extattr.h | 106 roundup2((sizeof(struct extattr) - 1 + (eap)->ea_namelength), 8)
|
| /netbsd/src/external/bsd/tcpdump/dist/ |
| D | print-pflog.c | 155 hdrlen = roundup2(hdrlen, 4); in pflog_if_print()
|
| D | print-nsh.c | 207 tlv_len_padded = roundup2(tlv_len, NSH_HDR_WORD_SIZE); in nsh_print()
|
| D | print-hncp.c | 832 l = roundup2(l, 4); in hncp_print_rec() 857 i += 4 + roundup2(bodylen, 4); in hncp_print_rec()
|
| /netbsd/src/sys/arch/x86/x86/ |
| D | cpu_ucode_intel.c | 204 (struct intel1_ucode_header *)roundup2((uintptr_t)uha, 16); in cpu_ucode_intel_apply()
|
| /netbsd/src/sys/dev/ieee1394/ |
| D | fwdma.c | 160 esize = ssize = roundup2(esize, PAGE_SIZE); in fwdma_malloc_multiseg()
|
| /netbsd/src/sys/arch/sparc/stand/ofwboot/ |
| D | loadfile_machdep.c | 290 len = roundup2(len + (rva & PAGE_MASK_4M), PAGE_SIZE_4M); in mmu_mapin() 503 len = roundup2(len + (rva & PAGE_MASK_4M), PAGE_SIZE_4M); in ofw_mapin()
|
| /netbsd/src/sys/sys/ |
| D | param.h | 451 #define roundup2(x,m) ((((x) - 1) | ((m) - 1)) + 1) macro
|
| /netbsd/src/external/cddl/osnet/dist/common/ctf/ |
| D | ctf_open.c | 340 funcoff += roundup2(fp->ctf_idwidth * (vlen + 2), 4); in init_symtab() 405 vbytes = roundup2(fp->ctf_idwidth * vlen, 4); in init_types() 554 vbytes = roundup2(fp->ctf_idwidth * vlen, 4); in init_types()
|
| /netbsd/src/sys/arch/powerpc/booke/dev/ |
| D | pq3nandfcm.c | 251 for (len = roundup2(len, 4); offset < len; offset += 4, dp32++) { in pq3nandfcm_write_buf()
|
| /netbsd/src/sys/arch/powerpc/oea/ |
| D | oea_machdep.c | 825 paddr_t end = roundup2(mp->start + mp->size, bat_inc); in oea_batinit() 833 end = roundup2(mp->start + mp->size, bat_inc); in oea_batinit()
|
| /netbsd/src/tools/compat/ |
| D | compat_defs.h | 1282 #undef roundup2 1283 #define roundup2(x, m) ((((x) - 1) | ((m) - 1)) + 1) macro
|