Searched refs:roundup (Results 1 - 25 of 173) sorted by relevance

1234567

/freebsd-10-stable/sys/kern/
H A Dsubr_module.c66 next = roundup(next, sizeof(u_long));
103 next = roundup(next, sizeof(u_long));
128 next = roundup(next, sizeof(u_long));
144 next = roundup(next, sizeof(u_long));
190 next = roundup(next, sizeof(u_long));
228 next = roundup(next, sizeof(u_long));
286 next = roundup(next, sizeof(u_long));
/freebsd-10-stable/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-10-stable/contrib/traceroute/
H A Dfindsaddr-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));
198 cp += roundup(SALEN(sa), sizeof(long));
/freebsd-10-stable/sys/boot/i386/libi386/
H A Dbootinfo32.c69 a += roundup(strlen(s) + 1, sizeof(u_long));\
81 a += roundup(sizeof(s), sizeof(u_long)); \
92 a += roundup(mm->md_size, sizeof(u_long));\
205 addr = roundup(addr, PAGE_SIZE);
212 addr = roundup(addr, PAGE_SIZE);
228 kernend = roundup(addr + size, PAGE_SIZE);
H A Dbootinfo64.c71 a += roundup(strlen(s) + 1, sizeof(u_int64_t));\
83 a += roundup(sizeof(s), sizeof(u_int64_t)); \
94 a += roundup(mm->md_size, sizeof(u_int64_t));\
223 addr = roundup(addr, PAGE_SIZE);
244 envp = roundup(addr + size, PAGE_SIZE);
248 kernend = roundup(addr, PAGE_SIZE);
H A Dmultiboot.c62 roundup(METADATA_FIXED_SIZE + METADATA_MODULE_SIZE * mod_num, PAGE_SIZE)
180 (*result)->f_size = roundup((*result)->f_size, PAGE_SIZE);
292 last_addr = roundup(max_addr(), PAGE_SIZE);
304 metadata_size = roundup(kernend - last_addr, PAGE_SIZE);
404 rfp->f_size = roundup(rfp->f_size, PAGE_SIZE);
/freebsd-10-stable/sys/boot/userboot/userboot/
H A Dbootinfo32.c69 a += roundup(strlen(s) + 1, sizeof(uint32_t));\
81 a += roundup(sizeof(s), sizeof(uint32_t)); \
92 a += roundup(mm->md_size, sizeof(uint32_t));\
184 addr = roundup(addr, PAGE_SIZE);
191 addr = roundup(addr, PAGE_SIZE);
207 kernend = roundup(addr + size, PAGE_SIZE);
H A Dbootinfo64.c70 a += roundup(strlen(s) + 1, sizeof(u_int64_t));\
82 a += roundup(sizeof(s), sizeof(u_int64_t)); \
93 a += roundup(mm->md_size, sizeof(u_int64_t));\
223 addr = roundup(addr, PAGE_SIZE);
230 addr = roundup(addr, PAGE_SIZE);
246 kernend = roundup(addr + size, PAGE_SIZE);
/freebsd-10-stable/sys/boot/uboot/common/
H A Dmetadata.c181 a += roundup(strlen(s) + 1, sizeof(u_long));\
193 a += roundup(sizeof(s), sizeof(u_long)); \
204 a += roundup(mm->md_size, sizeof(u_long)); \
300 addr = roundup(addr, PAGE_SIZE);
307 addr = roundup(addr, PAGE_SIZE);
316 addr += roundup(dtb_size, PAGE_SIZE);
341 kernend = roundup(addr + size, PAGE_SIZE);
/freebsd-10-stable/sys/boot/powerpc/ofw/
H A Dmetadata.c171 a += roundup(strlen(s) + 1, align); \
183 a += roundup(sizeof(s), align); \
194 a += roundup(mm->md_size, align); \
280 addr = roundup(addr, PAGE_SIZE);
287 addr = roundup(addr, PAGE_SIZE);
308 kernend = roundup(addr + size, PAGE_SIZE);
/freebsd-10-stable/sys/boot/powerpc/ps3/
H A Dmetadata.c170 a += roundup(strlen(s) + 1, align); \
182 a += roundup(sizeof(s), align); \
193 a += roundup(mm->md_size, align); \
279 addr = roundup(addr, PAGE_SIZE);
286 addr = roundup(addr, PAGE_SIZE);
307 kernend = roundup(addr + size, PAGE_SIZE);
/freebsd-10-stable/sys/boot/sparc64/loader/
H A Dmetadata.c212 a += roundup(strlen(s) + 1, sizeof(u_long));\
224 a += roundup(sizeof(s), sizeof(u_long)); \
235 a += roundup(mm->md_size, sizeof(u_long)); \
309 addr = roundup(addr, PAGE_SIZE);
316 addr = roundup(addr, PAGE_SIZE);
336 kernend = roundup(addr + size, PAGE_SIZE);
/freebsd-10-stable/sys/boot/ofw/libofw/
H A Dofw_copy.c45 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) macro
86 dlen = roundup(nlen + resid, PAGE_SIZE);
/freebsd-10-stable/sys/dev/cxgbe/iw_cxgbe/
H A Dresource.c259 vmem_xalloc(rdev->pbl_arena, roundup(size, (1 << MIN_PBL_SHIFT)),
265 rdev->stats.pbl.cur += roundup(size, 1 << MIN_PBL_SHIFT);
278 rdev->stats.pbl.cur -= roundup(size, 1 << MIN_PBL_SHIFT);
280 vmem_xfree(rdev->pbl_arena, addr, roundup(size,(1 << MIN_PBL_SHIFT)));
309 roundup((size << 6),(1 << MIN_RQT_SHIFT)),
319 rdev->stats.rqt.cur += roundup(size << 6, 1 << MIN_RQT_SHIFT);
332 rdev->stats.rqt.cur -= roundup(size << 6, 1 << MIN_RQT_SHIFT);
335 roundup((size << 6),(1 << MIN_RQT_SHIFT)));
/freebsd-10-stable/sys/powerpc/include/
H A Dframe.h79 #define FRAMELEN roundup(sizeof(struct trapframe) + \
/freebsd-10-stable/sys/cddl/compat/opensolaris/sys/
H A Dcpuvar.h65 #define CPUC_SIZE1 roundup(CPUC_SIZE, CPU_CACHE_COHERENCE_SIZE)
/freebsd-10-stable/sys/fs/ext2fs/
H A Dfs.h142 #define fragroundup(fs, size) /* calculates roundup(size, fs->fs_fsize) */ \
143 roundup(size, fs->e2fs_fsize)
/freebsd-10-stable/sys/boot/efi/loader/
H A Dbootinfo.c168 a += roundup(strlen(s) + 1, sizeof(u_long)); \
180 a += roundup(sizeof(s), sizeof(u_long)); \
191 a += roundup(mm->md_size, sizeof(u_long)); \
360 addr = roundup(addr, PAGE_SIZE);
367 addr = roundup(addr, PAGE_SIZE);
384 kernend = roundup(addr + size, PAGE_SIZE);
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_buf.c89 size_t adj = roundup(off, align) - off;
142 return (roundup(off, align));
/freebsd-10-stable/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_beacon.c129 HALASSERT(roundup(bs->bs_sleepduration, beaconintval) ==
136 roundup(bs->bs_sleepduration, dtimperiod) ==
/freebsd-10-stable/sys/mips/mips/
H A Dmachdep.c405 size = roundup(size, sizeof(u_long));
411 size = roundup(size, sizeof(u_long));
416 size = roundup(size, sizeof(u_long));
421 size = roundup(size, sizeof(u_long));
/freebsd-10-stable/sys/sys/
H A Dgmon.h150 #define ROUNDUP(x,y) roundup(x,y)
/freebsd-10-stable/sys/boot/ia64/common/
H A Dbootinfo.c147 a += roundup(strlen(s) + 1, sizeof(u_int64_t));\
158 a += roundup(sizeof(s), sizeof(u_int64_t)); \
168 a += roundup(mm->md_size, sizeof(u_int64_t));\
/freebsd-10-stable/sys/ddb/
H A Ddb_capture.c105 db_capture_maxbufsize = roundup(db_capture_maxbufsize,
107 db_capture_bufsize = roundup(db_capture_bufsize, TEXTDUMP_BLOCKSIZE);
131 size = roundup(size, TEXTDUMP_BLOCKSIZE);
/freebsd-10-stable/usr.sbin/makefs/ffs/
H A Dmkfs.c284 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize),
287 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag));
316 sblock.fs_fpg = roundup(sblock.fs_iblkno +
320 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode),
322 sblock.fs_fpg = roundup(sblock.fs_iblkno +
326 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode),
343 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode),
352 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode),
365 lastminfpg = roundup(sblock.fs_iblkno +
376 sblock.fs_ipg = roundup(howman
[all...]

Completed in 136 milliseconds

1234567