Home
last modified time | relevance | path

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

12345678910

/freebsd/contrib/ofed/libbnxtre/
H A Dmemory.h95 unsigned long roundup = 1; in roundup_pow_of_two() local
98 return (roundup << 1); in roundup_pow_of_two()
100 while (roundup < val) in roundup_pow_of_two()
101 roundup <<= 1; in roundup_pow_of_two()
103 return roundup; in roundup_pow_of_two()
/freebsd/sys/kern/
H A Dsubr_module.c86 next = roundup(next, sizeof(u_long)); in preload_search_by_name()
122 next = roundup(next, sizeof(u_long)); in preload_search_by_type()
146 next = roundup(next, sizeof(u_long)); in preload_search_next_name()
162 next = roundup(next, sizeof(u_long)); in preload_search_next_name()
211 next = roundup(next, sizeof(u_long)); in preload_search_info()
261 next = roundup(next, sizeof(u_long)); in preload_delete_name()
320 next = roundup(next, sizeof(u_long)); in preload_bootstrap_relocate()
550 bptr += roundup(len, sizeof(u_long)) / sizeof(uint32_t); in preload_dump_internal()
/freebsd/contrib/elftoolchain/elfcopy/
H A Dpe.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/usr.sbin/traceroute/
H A Dfindsaddr-socket.c66 #ifndef roundup
67 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */ macro
113 cp += roundup(SALEN((struct sockaddr *)sp), sizeof(u_int32_t)); in findsaddr()
180 cp += roundup(SALEN(sa), sizeof(long)); in findsaddr()
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dresource.c255 rdev->stats.pbl.cur += roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_alloc()
267 rdev->stats.pbl.cur -= roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_alloc()
281 roundup((size << 6),(1 << MIN_RQT_SHIFT)), in c4iw_pblpool_free()
291 rdev->stats.rqt.cur += roundup(size << 6, 1 << MIN_RQT_SHIFT); in c4iw_pblpool_create()
304 rdev->stats.rqt.cur -= roundup(size << 6, 1 << MIN_RQT_SHIFT); in c4iw_rqtpool_alloc()
307 roundup((size << 6),(1 << MIN_RQT_SHIFT))); in c4iw_rqtpool_alloc()
/freebsd/crypto/heimdal/appl/rcp/
H A Dutil.c141 #ifndef roundup
142 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) macro
158 size = roundup(stb.st_blksize, blksize);
/freebsd/stand/libsa/
H A Dnfs.c217 len = sizeof(uint32_t) + roundup(len, sizeof(uint32_t)); in nfs_getrootfh()
282 pos = roundup(d->fhsize, sizeof(uint32_t)) / sizeof(uint32_t); in nfs_lookupfh()
286 roundup(len, sizeof(uint32_t)); in nfs_lookupfh()
305 pos = roundup(newfd->fhsize, sizeof(uint32_t)) / sizeof(uint32_t); in nfs_lookupfh()
352 args, sizeof(uint32_t) + roundup(d->fhsize, sizeof(uint32_t)), in nfs_readlink()
420 pos = roundup(d->fhsize, sizeof(uint32_t)) / sizeof(uint32_t); in nfs_readdata()
429 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/tools/build/cross-build/include/common/sys/
H A Dparam.h80 #ifndef roundup
81 #define roundup(x, y) ((((x) + ((y)-1)) / (y)) * (y)) /* to any y */ macro
/freebsd/sys/dev/qat_c2xxx/
H A Dqat_hw15var.h69 roundup(HASH_CONTENT_DESC_SIZE + CIPHER_CONTENT_DESC_SIZE,
72 roundup(sizeof(struct fw_la_cipher_req_params) +
/freebsd/lib/libpmc/pmu-events/
H A Djson.h29 #ifndef roundup
30 #define roundup(x, y) ( \ macro
/freebsd/sys/arm64/arm64/
H A Dmachdep_boot.c81 size = roundup(size, sizeof(u_long)); \
114 lastaddr = roundup(lastaddr, sizeof(int)); in fake_preload_metadata()
120 lastaddr = roundup(lastaddr, sizeof(int)); in fake_preload_metadata()
/freebsd/usr.sbin/makefs/ffs/
H A Dmkfs.c307 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), in ffs_mkfs()
310 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag)); in ffs_mkfs()
352 sblock.fs_fpg = roundup(sblock.fs_iblkno + in ffs_mkfs()
356 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs()
358 sblock.fs_fpg = roundup(sblock.fs_iblkno + in ffs_mkfs()
362 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs()
380 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs()
391 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs()
404 lastminfpg = roundup(sblock.fs_iblkno + in ffs_mkfs()
415 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs()
[all …]
/freebsd/usr.sbin/makefs/
H A Dffs.c371 roundup(fsopts->minsize, ffs_opts->bsize) > fsopts->maxsize) in ffs_validate()
403 roundup(SBLOCK_UFS1 + SBLOCKSIZE, ffs_opts->bsize); in ffs_validate()
404 fsopts->size += roundup(SBLOCKSIZE, ffs_opts->bsize); in ffs_validate()
407 roundup(fsopts->inodes, ffs_opts->bsize / DINODE1_SIZE); in ffs_validate()
410 roundup(SBLOCK_UFS2 + SBLOCKSIZE, ffs_opts->bsize); in ffs_validate()
411 fsopts->size += roundup(SBLOCKSIZE, ffs_opts->bsize); in ffs_validate()
414 roundup(fsopts->inodes, ffs_opts->bsize / DINODE2_SIZE); in ffs_validate()
429 fsopts->size = roundup(fsopts->size, ffs_opts->bsize); in ffs_validate()
432 if (fsopts->roundup > 0) in ffs_validate()
433 fsopts->size = roundup(fsopts->size, fsopts->roundup); in ffs_validate()
[all …]
/freebsd/sys/ddb/
H A Ddb_capture.c106 db_capture_maxbufsize = roundup(db_capture_maxbufsize, in db_capture_sysinit()
108 db_capture_bufsize = roundup(db_capture_bufsize, TEXTDUMP_BLOCKSIZE); in db_capture_sysinit()
132 size = roundup(size, TEXTDUMP_BLOCKSIZE); in sysctl_debug_ddb_capture_bufsize()
/freebsd/contrib/llvm-project/libcxx/src/
H A Dmemory_resource.cpp137 static size_t roundup(size_t count, size_t alignment) { in roundup() function
164 size_t aligned_capacity = roundup(bytes, footer_align) + footer_size; in __do_allocate()
242 size_t aligned_capacity = roundup(chunk_size, footer_align) + footer_size; in __allocate_in_new_chunk()
461 return roundup(newsize, footer_align) + footer_size; in do_allocate()
476 size_t aligned_capacity = roundup(bytes, footer_align) + footer_size; in do_allocate()
481 aligned_capacity = roundup(newsize, footer_align) + footer_size; in do_allocate()
/freebsd/stand/libofw/
H A Dofw_copy.c42 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) macro
83 dlen = roundup(nlen + resid, PAGE_SIZE); in ofw_mapmem()
/freebsd/contrib/arm-optimized-routines/math/test/rtest/
H A Dsemi.c14 int roundup = (isfloor && sign) || (isceil && !sign); in test_rint() local
32 out[0] = sign | (roundup ? 0x3FF00000 : 0); in test_rint()
52 if (roundword && roundup) { in test_rint()
77 int roundup = (isfloor && sign) || (isceil && !sign); in test_rintf() local
94 *out = sign | (roundup ? 0x3F800000 : 0); in test_rintf()
111 if (roundword && roundup) { in test_rintf()
/freebsd/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf.c26 #ifndef roundup
27 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) macro
205 sz = roundup(1223 + SSHBUF_SIZE_INC * 3, SSHBUF_SIZE_INC); in sshbuf_tests()
/freebsd/sbin/newfs/
H A Dmkfs.c306 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), in mkfs()
309 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag); in mkfs()
365 sblock.fs_fpg = roundup(sblock.fs_iblkno + in mkfs()
369 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in mkfs()
371 sblock.fs_fpg = roundup(sblock.fs_iblkno + in mkfs()
375 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in mkfs()
392 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in mkfs()
405 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in mkfs()
418 lastminfpg = roundup(sblock.fs_iblkno + in mkfs()
429 sblock.fs_ipg = roundup(howman in mkfs()
[all...]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dsdio_txrx.c101 len = roundup(len, sdio->func->cur_blksize); in mt76s_rx_run_queue()
232 len = roundup(len, sdio->func->cur_blksize); in __mt76s_xmit_queue()
263 err = __skb_grow(e->skb, roundup(e->skb->len, in mt76s_tx_run_queue()
275 pad = roundup(e->skb->len, 4) - e->skb->len; in mt76s_tx_run_queue()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_buf.c89 size_t adj = roundup(off, align) - off; in dt_buf_write()
142 return (roundup(off, align)); in dt_buf_offset()
/freebsd/usr.bin/column/
H A Dcolumn.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/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_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()
/freebsd/stand/common/
H A Dload_elf_obj.c260 lastaddr = roundup(lastaddr, shdr[i].sh_addralign); in __elfN()
282 lastaddr = roundup(lastaddr, shdr[ef->symtabindex].sh_addralign); in __elfN()
293 lastaddr = roundup(lastaddr, shdr[symstrindex].sh_addralign); in __elfN()
305 lastaddr = roundup(lastaddr, shdr[ef->shstrindex].sh_addralign); in __elfN()
316 lastaddr = roundup(lastaddr, shdr[i].sh_addralign); in __elfN()
/freebsd/lib/libc/gen/
H A Dmemalign.c40 return (aligned_alloc(align, roundup(size, align))); in memalign()

12345678910