Home
last modified time | relevance | path

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

123

/netbsd/src/sys/uvm/
Duvm_pglist.c142 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()
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()
Duvm_page.c407 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/
Dtls.c93 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/
Dtls.c213 _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/
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/src/external/cddl/osnet/sys/sys/
Ddirent.h47 roundup2(__DIRENT64_NAMEOFF + (len) + 1, sizeof(ino_t))
/netbsd/src/sys/dev/ic/
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/src/sys/kern/
Dsubr_workqueue.c69 #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()
Dsubr_evcnt.c226 const size_t len = roundup2(copylen, sizeof(uint64_t)); in sysctl_fillevcnt()
Dkern_runq.c159 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/
DTODO.ext2fs12 - use roundup2() instead of custom macros
/netbsd/src/sys/ufs/ext2fs/
Dext2fs_dir.h202 #define EXT2FS_DIRSIZ(len) roundup2(8 + len, 4)
/netbsd/src/sys/ufs/ufs/
Dextattr.h106 roundup2((sizeof(struct extattr) - 1 + (eap)->ea_namelength), 8)
/netbsd/src/external/bsd/tcpdump/dist/
Dprint-pflog.c155 hdrlen = roundup2(hdrlen, 4); in pflog_if_print()
Dprint-nsh.c207 tlv_len_padded = roundup2(tlv_len, NSH_HDR_WORD_SIZE); in nsh_print()
Dprint-hncp.c832 l = roundup2(l, 4); in hncp_print_rec()
857 i += 4 + roundup2(bodylen, 4); in hncp_print_rec()
/netbsd/src/sys/arch/x86/x86/
Dcpu_ucode_intel.c204 (struct intel1_ucode_header *)roundup2((uintptr_t)uha, 16); in cpu_ucode_intel_apply()
/netbsd/src/sys/dev/ieee1394/
Dfwdma.c160 esize = ssize = roundup2(esize, PAGE_SIZE); in fwdma_malloc_multiseg()
/netbsd/src/sys/arch/sparc/stand/ofwboot/
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/src/sys/sys/
Dparam.h451 #define roundup2(x,m) ((((x) - 1) | ((m) - 1)) + 1) macro
/netbsd/src/external/cddl/osnet/dist/common/ctf/
Dctf_open.c340 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/
Dpq3nandfcm.c251 for (len = roundup2(len, 4); offset < len; offset += 4, dp32++) { in pq3nandfcm_write_buf()
/netbsd/src/sys/arch/powerpc/oea/
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()
/netbsd/src/tools/compat/
Dcompat_defs.h1282 #undef roundup2
1283 #define roundup2(x, m) ((((x) - 1) | ((m) - 1)) + 1) macro

123