Home
last modified time | relevance | path

Searched refs:roundup (Results 1 – 25 of 204) sorted by relevance

123456789

/freebsd-11-stable/sys/kern/
HDsubr_module.c69 next = roundup(next, sizeof(u_long)); in preload_search_by_name()
106 next = roundup(next, sizeof(u_long)); in preload_search_by_type()
131 next = roundup(next, sizeof(u_long)); in preload_search_next_name()
147 next = roundup(next, sizeof(u_long)); in preload_search_next_name()
196 next = roundup(next, sizeof(u_long)); in preload_search_info()
247 next = roundup(next, sizeof(u_long)); in preload_delete_name()
305 next = roundup(next, sizeof(u_long)); in preload_bootstrap_relocate()
/freebsd-11-stable/stand/userboot/userboot/
HDbootinfo64.c70 a += roundup(strlen(s) + 1, sizeof(uint64_t));\
82 a += roundup(sizeof(s), sizeof(uint64_t)); \
93 a += roundup(mm->md_size, sizeof(uint64_t));\
223 addr = roundup(addr, PAGE_SIZE); in bi_load64()
230 addr = roundup(addr, PAGE_SIZE); in bi_load64()
246 kernend = roundup(addr + size, PAGE_SIZE); in bi_load64()
HDbootinfo32.c73 a += roundup(strlen(s) + 1, sizeof(uint32_t));\
85 a += roundup(sizeof(s), sizeof(uint32_t)); \
96 a += roundup(mm->md_size, sizeof(uint32_t));\
188 addr = roundup(addr, PAGE_SIZE); in bi_load32()
195 addr = roundup(addr, PAGE_SIZE); in bi_load32()
214 kernend = roundup(addr + size, PAGE_SIZE); in bi_load32()
/freebsd-11-stable/stand/i386/libi386/
HDbootinfo64.c75 a += roundup(strlen(s) + 1, sizeof(uint64_t));\
87 a += roundup(sizeof(s), sizeof(uint64_t)); \
98 a += roundup(mm->md_size, sizeof(uint64_t));\
227 addr = roundup(addr, PAGE_SIZE); in bi_load64()
251 envp = roundup(addr + size, PAGE_SIZE); in bi_load64()
255 kernend = roundup(addr, PAGE_SIZE); in bi_load64()
HDbootinfo32.c74 a += roundup(strlen(s) + 1, sizeof(u_long));\
86 a += roundup(sizeof(s), sizeof(u_long)); \
97 a += roundup(mm->md_size, sizeof(u_long));\
206 addr = roundup(addr, PAGE_SIZE); in bi_load32()
213 addr = roundup(addr, PAGE_SIZE); in bi_load32()
232 kernend = roundup(addr + size, PAGE_SIZE); in bi_load32()
HDmultiboot.c62 roundup(METADATA_FIXED_SIZE + METADATA_MODULE_SIZE * mod_num, PAGE_SIZE)
180 (*result)->f_size = roundup((*result)->f_size, PAGE_SIZE); in multiboot_loadfile()
331 last_addr = roundup(max_addr(), PAGE_SIZE); in multiboot_exec()
343 metadata_size = roundup(kernend - last_addr, PAGE_SIZE); in multiboot_exec()
446 rfp->f_size = roundup(rfp->f_size, PAGE_SIZE); in multiboot_obj_loadfile()
/freebsd-11-stable/sys/dev/cxgbe/iw_cxgbe/
HDresource.c259 vmem_xalloc(rdev->pbl_arena, roundup(size, (1 << MIN_PBL_SHIFT)), in c4iw_pblpool_alloc()
265 rdev->stats.pbl.cur += roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_alloc()
278 rdev->stats.pbl.cur -= roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_free()
280 vmem_xfree(rdev->pbl_arena, addr, roundup(size,(1 << MIN_PBL_SHIFT))); in c4iw_pblpool_free()
309 roundup((size << 6),(1 << MIN_RQT_SHIFT)), in c4iw_rqtpool_alloc()
319 rdev->stats.rqt.cur += roundup(size << 6, 1 << MIN_RQT_SHIFT); in c4iw_rqtpool_alloc()
332 rdev->stats.rqt.cur -= roundup(size << 6, 1 << MIN_RQT_SHIFT); in c4iw_rqtpool_free()
335 roundup((size << 6),(1 << MIN_RQT_SHIFT))); in c4iw_rqtpool_free()
/freebsd-11-stable/contrib/elftoolchain/elfcopy/
HDpe.c148 poh.oh_textsize = (uint32_t) roundup(sh.sh_size, in create_pe()
155 roundup(sh.sh_size, poh.oh_filealign); in create_pe()
158 roundup(sh.sh_size, poh.oh_filealign); in create_pe()
181 psh.sh_rawsize = roundup(sh.sh_size, poh.oh_filealign); in create_pe()
214 pb->pb_size = roundup(sh.sh_size, poh.oh_filealign); in create_pe()
/freebsd-11-stable/contrib/traceroute/
HDfindsaddr-socket.c81 #ifndef roundup
82 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */ macro
132 cp += roundup(SALEN((struct sockaddr *)sp), sizeof(u_int32_t)); in findsaddr()
198 cp += roundup(SALEN(sa), sizeof(long)); in findsaddr()
/freebsd-11-stable/stand/common/
HDmetadata.c180 a += roundup(strlen(s) + 1, align); \
192 a += roundup(sizeof(s), align); \
203 a += roundup(mm->md_size, align); \
313 addr = roundup(addr, PAGE_SIZE); in md_load_dual()
320 addr = roundup(addr, PAGE_SIZE); in md_load_dual()
331 addr = roundup(addr + size, PAGE_SIZE); in md_load_dual()
378 kernend = roundup(addr + size, PAGE_SIZE); in md_load_dual()
HDload_elf_obj.c143 dest = roundup(dest, PAGE_SIZE); in __elfN()
229 lastaddr = roundup(lastaddr, shdr[i].sh_addralign); in __elfN()
253 lastaddr = roundup(lastaddr, shdr[ef->symtabindex].sh_addralign); in __elfN()
264 lastaddr = roundup(lastaddr, shdr[symstrindex].sh_addralign); in __elfN()
276 lastaddr = roundup(lastaddr, shdr[ef->shstrindex].sh_addralign); in __elfN()
287 lastaddr = roundup(lastaddr, shdr[i].sh_addralign); in __elfN()
/freebsd-11-stable/crypto/heimdal/appl/rcp/
HDutil.c141 #ifndef roundup
142 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) macro
158 size = roundup(stb.st_blksize, blksize);
/freebsd-11-stable/stand/efi/loader/
HDbootinfo.c196 a += roundup(strlen(s) + 1, sizeof(u_long)); \
208 a += roundup(sizeof(s), sizeof(u_long)); \
219 a += roundup(mm->md_size, sizeof(u_long)); \
481 addr = roundup(addr, PAGE_SIZE); in bi_load()
488 addr = roundup(addr, PAGE_SIZE); in bi_load()
497 addr += roundup(dtb_size, PAGE_SIZE); in bi_load()
525 kernend = roundup(addr + size, PAGE_SIZE); in bi_load()
/freebsd-11-stable/stand/libsa/
HDnfs.c219 len = sizeof(uint32_t) + roundup(len, sizeof(uint32_t)); in nfs_getrootfh()
284 pos = roundup(d->fhsize, sizeof(uint32_t)) / sizeof(uint32_t); in nfs_lookupfh()
288 roundup(len, sizeof(uint32_t)); in nfs_lookupfh()
307 pos = roundup(newfd->fhsize, sizeof(uint32_t)) / sizeof(uint32_t); in nfs_lookupfh()
354 args, sizeof(uint32_t) + roundup(d->fhsize, sizeof(uint32_t)), in nfs_readlink()
422 pos = roundup(d->fhsize, sizeof(uint32_t)) / sizeof(uint32_t); in nfs_readdata()
431 args, 4 * sizeof(uint32_t) + roundup(d->fhsize, sizeof(uint32_t)), in nfs_readdata()
796 pos = roundup(fp->fhsize, sizeof(uint32_t)) / sizeof(uint32_t); in nfs_readdir()
805 roundup(fp->fhsize, sizeof(uint32_t)), in nfs_readdir()
837 pos = roundup(d->d_namlen, sizeof(uint32_t)) / sizeof(uint32_t); in nfs_readdir()
/freebsd-11-stable/usr.sbin/makefs/ffs/
HDmkfs.c285 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), in ffs_mkfs()
288 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag)); in ffs_mkfs()
317 sblock.fs_fpg = roundup(sblock.fs_iblkno + in ffs_mkfs()
321 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs()
323 sblock.fs_fpg = roundup(sblock.fs_iblkno + in ffs_mkfs()
327 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs()
344 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs()
353 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs()
366 lastminfpg = roundup(sblock.fs_iblkno + in ffs_mkfs()
377 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs()
[all …]
/freebsd-11-stable/sys/mips/mips/
HDmachdep.c402 size = roundup(size, sizeof(u_long)); in mips_postboot_fixup()
408 size = roundup(size, sizeof(u_long)); in mips_postboot_fixup()
413 size = roundup(size, sizeof(u_long)); in mips_postboot_fixup()
418 size = roundup(size, sizeof(u_long)); in mips_postboot_fixup()
/freebsd-11-stable/sys/ddb/
HDdb_capture.c105 db_capture_maxbufsize = roundup(db_capture_maxbufsize, in db_capture_sysinit()
107 db_capture_bufsize = roundup(db_capture_bufsize, TEXTDUMP_BLOCKSIZE); in db_capture_sysinit()
131 size = roundup(size, TEXTDUMP_BLOCKSIZE); in sysctl_debug_ddb_capture_bufsize()
/freebsd-11-stable/usr.sbin/makefs/
HDffs.c360 roundup(fsopts->minsize, ffs_opts->bsize) > fsopts->maxsize) in ffs_validate()
395 roundup(fsopts->inodes / ncg, in ffs_validate()
399 roundup(fsopts->inodes / ncg, in ffs_validate()
414 fsopts->size = roundup(fsopts->size, ffs_opts->bsize); in ffs_validate()
417 if (fsopts->roundup > 0) in ffs_validate()
418 fsopts->size = roundup(fsopts->size, fsopts->roundup); in ffs_validate()
594 if (this + curdirsize > roundup(curdirsize, DIRBLKSIZ)) \ in ffs_size_dir()
595 curdirsize = roundup(curdirsize, DIRBLKSIZ); \ in ffs_size_dir()
607 fsopts->size += roundup((x), ffs_opts->fsize); \ in ffs_size_dir()
1044 if (reclen + dbuf->cur + llen > roundup(dbuf->size, DIRBLKSIZ)) { in ffs_make_dirbuf()
/freebsd-11-stable/stand/ofw/libofw/
HDofw_copy.c45 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) macro
86 dlen = roundup(nlen + resid, PAGE_SIZE); in ofw_mapmem()
/freebsd-11-stable/sbin/newfs/
HDmkfs.c301 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), in mkfs()
304 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag); in mkfs()
359 sblock.fs_fpg = roundup(sblock.fs_iblkno + in mkfs()
363 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in mkfs()
365 sblock.fs_fpg = roundup(sblock.fs_iblkno + in mkfs()
369 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in mkfs()
385 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in mkfs()
396 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in mkfs()
409 lastminfpg = roundup(sblock.fs_iblkno + in mkfs()
420 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in mkfs()
[all …]
/freebsd-11-stable/usr.bin/column/
HDcolumn.c140 maxlength = roundup(maxlength + 1, TAB); in main()
170 while ((cnt = roundup(chcnt + 1, TAB)) <= endcol) { in c_columnate()
198 while ((cnt = roundup(chcnt + 1, TAB)) <= endcol) { in r_columnate()
/freebsd-11-stable/sys/arm/arm/
HDelf_trampoline.c551 func_end = roundup(func_end, sizeof(long)); in load_kernel()
564 lastaddr = roundup(lastaddr, in load_kernel()
568 lastaddr = roundup(lastaddr, in load_kernel()
606 lastaddr = roundup(lastaddr, in load_kernel()
616 lastaddr = roundup(lastaddr, in load_kernel()
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
HDdt_buf.c89 size_t adj = roundup(off, align) - off; in dt_buf_write()
142 return (roundup(off, align)); in dt_buf_offset()
/freebsd-11-stable/contrib/elftoolchain/common/
HD_elftc.h379 #define roundup2 roundup
425 #define roundup2 roundup
485 #define roundup2 roundup
/freebsd-11-stable/sys/contrib/dev/ath/ath_hal/ar9300/
HDar9300_beacon.c138 HALASSERT(roundup(bs->bs_sleepduration, beaconintval) == in ar9300_set_sta_beacon_timers()
145 roundup(bs->bs_sleepduration, dtimperiod) == in ar9300_set_sta_beacon_timers()

123456789