/netbsd/sys/uvm/ |
H A D | uvm_pglist.c | 141 candidate = roundup2(uimax(low, uvm_physseg_get_avail_start(psi) + in uvm_pglistalloc_c_ps() 165 candidate = roundup2(uimax(low, uvm_physseg_get_avail_start(psi)), alignment); in uvm_pglistalloc_c_ps() 178 candidate = roundup2(candidate, alignment); in uvm_pglistalloc_c_ps() 263 cnt = roundup2(cnt, alignment); in uvm_pglistalloc_c_ps() 351 rlo = roundup2(ptoa(uvm_physseg_get_avail_start(upm)), alignment); in uvm_pglistalloc_contig_aggressive() 352 rlo = MAX(rlo, roundup2(low, alignment)); in uvm_pglistalloc_contig_aggressive() 353 rlo = MAX(rlo, roundup2(pa - ptoa(num - 1), alignment)); in uvm_pglistalloc_contig_aggressive() 708 low = roundup2(low, alignment); in uvm_pglistalloc()
|
H A 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()
|
H A D | uvm_page.c | 407 bucketsize = roundup2(bucketsize, coherency_unit); in uvm_page_init() 772 bucketsize = roundup2(bucketsize, coherency_unit); in uvm_page_redim() 776 bucketarray = (char *)roundup2((uintptr_t)bucketmem, coherency_unit); in uvm_page_redim() 975 ucpu = (struct uvm_cpu *)roundup2((uintptr_t)ucpu, in uvm_cpu_attach()
|
/netbsd/external/bsd/elftoolchain/dist/common/ |
H A D | _elftc.h | 401 #ifndef roundup2 402 #define roundup2 roundup macro 416 #define roundup2 roundup macro 456 #define roundup2 roundup macro 506 #define roundup2 roundup macro
|
/netbsd/lib/libc/tls/ |
H A D | tls.c | 91 tls_allocation = roundup2(tls_size, alignof(max_align_t)); in __weak_alias() 160 tls_size = roundup2(phdr->p_memsz, phdr->p_align); in __libc_static_tls_setup_cb()
|
/netbsd/libexec/ld.elf_so/ |
H A D | tls.c | 104 _rtld_tls_static_space = roundup2(_rtld_tls_static_space, in _rtld_tls_initial_allocation() 248 offset = roundup2(_rtld_tls_static_offset, obj->tlsalign); in _rtld_tls_offset_allocate() 251 offset = roundup2(_rtld_tls_static_offset + obj->tlssize, in _rtld_tls_offset_allocate()
|
/netbsd/sys/fs/tmpfs/ |
H A 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/external/bsd/elftoolchain/dist/libelf/ |
H A D | _libelf.h | 40 #ifndef roundup2 41 #define roundup2(x, m) (((x) + (m) - 1) & ~((m) - 1)) macro
|
H A D | elf_strptr.c | 116 count = roundup2(count, alignment); in elf_strptr()
|
/netbsd/sys/kern/ |
H A D | subr_workqueue.c | 68 #define WQ_SIZE (roundup2(sizeof(struct workqueue), coherency_unit)) 69 #define WQ_QUEUE_SIZE (roundup2(sizeof(struct workqueue_queue), coherency_unit)) 294 wq = (void *)roundup2((uintptr_t)ptr, coherency_unit); in workqueue_create()
|
H A D | subr_evcnt.c | 226 const size_t len = roundup2(copylen, sizeof(uint64_t)); in sysctl_fillevcnt()
|
H A D | sys_select.c | 896 sc = kmem_alloc(roundup2(sizeof(selcluster_t), in selsysinit() 898 sc = (void *)roundup2((uintptr_t)sc, coherency_unit); in selsysinit()
|
/netbsd/external/cddl/osnet/sys/sys/ |
H A D | dirent.h | 47 roundup2(__DIRENT64_NAMEOFF + (len) + 1, sizeof(ino_t))
|
/netbsd/sys/dev/ic/ |
H A 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/doc/ |
H A D | TODO.ext2fs | 12 - use roundup2() instead of custom macros
|
/netbsd/sys/ufs/ext2fs/ |
H A D | ext2fs_dir.h | 202 #define EXT2FS_DIRSIZ(len) roundup2(8 + len, 4)
|
/netbsd/sys/ufs/ufs/ |
H A D | extattr.h | 106 roundup2((sizeof(struct extattr) - 1 + (eap)->ea_namelength), 8)
|
/netbsd/sys/arch/x86/x86/ |
H A D | cpu_ucode_intel.c | 204 (struct intel1_ucode_header *)roundup2((uintptr_t)uha, 16); in cpu_ucode_intel_apply()
|
/netbsd/sys/dev/ieee1394/ |
H A D | fwdma.c | 160 esize = ssize = roundup2(esize, PAGE_SIZE); in fwdma_malloc_multiseg()
|
/netbsd/sys/arch/evbmips/mipssim/ |
H A D | machdep.c | 237 memsize = roundup2(MIPS_KSEG0_TO_PHYS((uintptr_t)(end)), 1024 * 1024); in mach_init_memory()
|
/netbsd/sys/arch/sparc/stand/ofwboot/ |
H A 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/sys/external/bsd/common/include/linux/ |
H A D | bitops.h | 110 roundup2((n), (sizeof(unsigned long) * CHAR_BIT))
|
/netbsd/sys/sys/ |
H A D | param.h | 451 #define roundup2(x,m) ((((x) - 1) | ((m) - 1)) + 1) macro
|
/netbsd/sys/arch/powerpc/booke/dev/ |
H A D | pq3nandfcm.c | 251 for (len = roundup2(len, 4); offset < len; offset += 4, dp32++) { in pq3nandfcm_write_buf()
|
/netbsd/sys/arch/powerpc/oea/ |
H A 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()
|