Home
last modified time | relevance | path

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

123

/netbsd/sys/uvm/
H A Duvm_pglist.c141 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 Duvm_pgflcache.c282 (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 Duvm_page.c407 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.h401 #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 Dtls.c91 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 Dtls.c104 _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 Dtmpfs_mem.c212 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.h40 #ifndef roundup2
41 #define roundup2(x, m) (((x) + (m) - 1) & ~((m) - 1)) macro
H A Delf_strptr.c116 count = roundup2(count, alignment); in elf_strptr()
/netbsd/sys/kern/
H A Dsubr_workqueue.c68 #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 Dsubr_evcnt.c226 const size_t len = roundup2(copylen, sizeof(uint64_t)); in sysctl_fillevcnt()
H A Dsys_select.c896 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 Ddirent.h47 roundup2(__DIRENT64_NAMEOFF + (len) + 1, sizeof(ino_t))
/netbsd/sys/dev/ic/
H A Di82596.c579 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 DTODO.ext2fs12 - use roundup2() instead of custom macros
/netbsd/sys/ufs/ext2fs/
H A Dext2fs_dir.h202 #define EXT2FS_DIRSIZ(len) roundup2(8 + len, 4)
/netbsd/sys/ufs/ufs/
H A Dextattr.h106 roundup2((sizeof(struct extattr) - 1 + (eap)->ea_namelength), 8)
/netbsd/sys/arch/x86/x86/
H A Dcpu_ucode_intel.c204 (struct intel1_ucode_header *)roundup2((uintptr_t)uha, 16); in cpu_ucode_intel_apply()
/netbsd/sys/dev/ieee1394/
H A Dfwdma.c160 esize = ssize = roundup2(esize, PAGE_SIZE); in fwdma_malloc_multiseg()
/netbsd/sys/arch/evbmips/mipssim/
H A Dmachdep.c237 memsize = roundup2(MIPS_KSEG0_TO_PHYS((uintptr_t)(end)), 1024 * 1024); in mach_init_memory()
/netbsd/sys/arch/sparc/stand/ofwboot/
H A Dloadfile_machdep.c290 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 Dbitops.h110 roundup2((n), (sizeof(unsigned long) * CHAR_BIT))
/netbsd/sys/sys/
H A Dparam.h451 #define roundup2(x,m) ((((x) - 1) | ((m) - 1)) + 1) macro
/netbsd/sys/arch/powerpc/booke/dev/
H A Dpq3nandfcm.c251 for (len = roundup2(len, 4); offset < len; offset += 4, dp32++) { in pq3nandfcm_write_buf()
/netbsd/sys/arch/powerpc/oea/
H A Doea_machdep.c825 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()

123