/freebsd-10-stable/sys/sys/ |
H A D | _bitset.h | 41 #define __bitset_words(_s) (howmany(_s, _BITSET_BITS))
|
H A D | param.h | 287 #ifndef howmany 288 #define howmany(x, y) (((x)+((y)-1))/(y)) macro
|
/freebsd-10-stable/sbin/ffsinfo/ |
H A D | ffsinfo.c | 379 rb=howmany(ino->di_size, sblock.fs_bsize)-NDADDR; 394 rb-=howmany(sblock.fs_bsize, sizeof(ufs1_daddr_t)); 409 howmany(rb, howmany(sblock.fs_bsize, sizeof(ufs1_daddr_t)))); 410 for(ind2ctr=0; ((ind2ctr < howmany(sblock.fs_bsize, 424 rb-=howmany(sblock.fs_bsize, sizeof(ufs1_daddr_t)); 441 howmany(rb, 442 SQUARE(howmany(sblock.fs_bsize, sizeof(ufs1_daddr_t))))); 444 for(ind3ctr=0; ((ind3ctr<howmany(sblock.fs_bsize, 457 howmany(r [all...] |
/freebsd-10-stable/sys/ofed/include/linux/ |
H A D | types.h | 62 unsigned long n[howmany(bits, sizeof(long) * 8)]
|
/freebsd-10-stable/lib/libc/stdio/ |
H A D | printfcommon.h | 115 io_pad(struct io_state *iop, int howmany, const CHAR * __restrict with, argument 120 while (howmany > 0) { 121 n = (howmany >= PADSIZE) ? PADSIZE : howmany; 124 howmany -= n;
|
/freebsd-10-stable/usr.bin/du/ |
H A D | du.c | 222 cblocksize = howmany(cblocksize, DEV_BSIZE) * DEV_BSIZE; 244 threshold = howmany(threshold / DEV_BSIZE * cblocksize, 265 howmany(p->fts_statp->st_size, cblocksize) : 266 howmany(p->fts_statp->st_blocks, cblocksize); 271 threshold_sign * howmany(p->fts_bignum * 278 (intmax_t)howmany(p->fts_bignum * 305 howmany(p->fts_statp->st_size, cblocksize) : 306 howmany(p->fts_statp->st_blocks, cblocksize); 314 (intmax_t)howmany(curblocks * 333 (void)printf("%jd\ttotal\n", (intmax_t)howmany( [all...] |
/freebsd-10-stable/sys/netinet6/ |
H A D | ip6_mroute.h | 85 #ifndef howmany 86 #define howmany(x, y) (((x) + ((y) - 1)) / (y)) macro 90 if_mask ifs_bits[howmany(IF_SETSIZE, NIFBITS)];
|
/freebsd-10-stable/usr.sbin/ctm/ctm_smail/ |
H A D | ctm_smail.c | 119 #undef howmany macro 120 #define howmany(x,y) (((x)+((y)-1)) / (y)) macro 129 exp_size += howmany(exp_size, LINE_LENGTH); 130 npieces = howmany(exp_size, max_msg_size); 131 msg_size = howmany(ctm_size, npieces); 133 #undef howmany macro
|
/freebsd-10-stable/usr.sbin/makefs/ffs/ |
H A D | mkfs.c | 284 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), 287 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag)); 320 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 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), 364 sblock.fs_ncg = howmany(sblock.fs_size, sblock.fs_fpg); 376 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 403 blks = howmany(size, sblock.fs_fsize); 440 csfrags = howmany(sbloc [all...] |
/freebsd-10-stable/sys/dev/sfxge/ |
H A D | sfxge_tx.h | 55 #define SFXGE_TSO_MAX_SEGS howmany(SFXGE_TSO_MAX_SIZE, 512) 67 (2 + howmany(SFXGE_TSO_MAX_SIZE, MCLBYTES) + 1)
|
/freebsd-10-stable/sbin/dump/ |
H A D | traverse.c | 117 blkest = howmany(dbtob(DIP(dp, di_blocks)), TP_BSIZE); 118 sizeest = howmany(DIP(dp, di_size), TP_BSIZE); 124 howmany(sizeest - NDADDR * sblock->fs_bsize / TP_BSIZE, 563 cnt = howmany(DIP(dp, di_size), sblock->fs_fsize); 602 cnt = howmany(*size, sblock->fs_fsize); 632 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); 674 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); 677 resid = howmany(fragoff(sblock, spcl.c_extsize), 680 resid = howmany(fragoff(sblock, dp->dp2.di_size), 683 blks -= howmany(sbloc [all...] |
/freebsd-10-stable/sbin/growfs/ |
H A D | debug.c | 521 e = howmany((sb->fs_old_cpg * sb->fs_old_spc / sb->fs_old_nspf), CHAR_BIT); 566 e = howmany(sb->fs_old_cpg * sb->fs_old_spc / (sb->fs_old_nspf << sb->fs_fragshift), CHAR_BIT); 695 remaining_blocks = howmany(ino->di_size, sb->fs_bsize); /* XXX ts - +1? */ 705 remaining_blocks -= howmany(sb->fs_bsize, sizeof(ufs1_daddr_t)); 711 remaining_blocks -= SQUARE(howmany(sb->fs_bsize, sizeof(ufs1_daddr_t))); 772 remaining_blocks = howmany(ino->di_size, sb->fs_bsize); /* XXX ts - +1? */ 782 remaining_blocks -= howmany(sb->fs_bsize, sizeof(ufs2_daddr_t)); 788 remaining_blocks -= SQUARE(howmany(sb->fs_bsize, sizeof(ufs2_daddr_t))); 824 for (i = 0; (size_t)i < MIN(howmany(sb->fs_bsize, size), length);
|
/freebsd-10-stable/lib/libufs/ |
H A D | sblock.c | 97 blks = howmany(size, fs->fs_fsize); 147 blks = howmany(fs->fs_cssize, fs->fs_fsize);
|
/freebsd-10-stable/contrib/pf/libevent/ |
H A D | select.c | 56 #ifndef howmany 57 #define howmany(x, y) (((x)+((y)-1))/(y)) macro 104 select_resize(sop, howmany(32 + 1, NFDBITS)*sizeof(fd_mask)); 292 (howmany(ev->ev_fd + 1, NFDBITS) * sizeof(fd_mask)))
|
/freebsd-10-stable/sys/dev/netmap/ |
H A D | netmap_offloadings.c | 136 u_int *j, u_int lim, u_int *howmany) 395 /* Update howmany. */ 396 if (unlikely(dst_slots > *howmany)) { 397 dst_slots = *howmany; 400 *howmany -= dst_slots; 133 bdg_mismatch_datapath(struct netmap_vp_adapter *na, struct netmap_vp_adapter *dst_na, struct nm_bdg_fwd *ft_p, struct netmap_ring *ring, u_int *j, u_int lim, u_int *howmany) argument
|
/freebsd-10-stable/tools/tools/vt/setfont/ |
H A D | setfont.c | 72 glyphsize = howmany(vfnt.width, 8) * vfnt.height * vfnt.glyph_count;
|
/freebsd-10-stable/sbin/newfs/ |
H A D | mkfs.c | 302 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), 305 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag); 364 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 370 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 386 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 397 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 409 sblock.fs_ncg = howmany(sblock.fs_size, sblock.fs_fpg); 421 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 469 csfrags = howmany(sblock.fs_cssize, sblock.fs_fsize); 474 howmany(csfrag [all...] |
/freebsd-10-stable/tools/tools/net80211/wlantxtime/ |
H A D | wlantxtime.c | 360 numSymbols = howmany(numBits, bitsPerSymbol); 370 numSymbols = howmany(numBits, bitsPerSymbol); 380 numSymbols = howmany(numBits, bitsPerSymbol); 391 numSymbols = howmany(numBits, bitsPerSymbol); 426 numSymbols = howmany(numBits, bitsPerSymbol);
|
/freebsd-10-stable/sbin/fsck_ffs/ |
H A D | pass5.c | 130 inomapsize = howmany(fs->fs_ipg, CHAR_BIT); 132 blkmapsize = howmany(fs->fs_fpg, CHAR_BIT); 142 howmany(fragstoblks(fs, fs->fs_fpg), CHAR_BIT); 180 newcg->cg_old_ncyl = howmany(newcg->cg_ndblk, 426 inomapsize = howmany(fs->fs_ipg, CHAR_BIT); 440 howmany(fs->fs_fpg, CHAR_BIT),
|
/freebsd-10-stable/contrib/ncurses/ncurses/tty/ |
H A D | lib_twait.c | 284 int n, howmany; local 291 howmany = ioctl(0, 'ichr', &n); 292 if (howmany >= 0 && n > 0) {
|
/freebsd-10-stable/usr.sbin/pkg_install/info/ |
H A D | show.c | 291 printf("%lu\t%s\n", (unsigned long) howmany(sb.st_size, blksize), tmp); 316 printf("%lu\t(%s)\n", howmany(size, blksize), descr); 319 printf("%lu\n", howmany(size, blksize));
|
/freebsd-10-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-poll.c | 60 nmemb = howmany(maxfd + 1 , NFDBITS);
|
/freebsd-10-stable/tools/tools/vt/mkkfont/ |
H A D | mkkfont.c | 62 gbytes = howmany(fh->width, 8) * fh->height;
|
/freebsd-10-stable/sys/dev/drm2/ |
H A D | drm_atomic.h | 40 #define BITS_TO_LONGS(x) howmany(x, NB_BITS_PER_LONG)
|
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_handle.c | 313 dtrace_dropkind_t what, uint64_t howmany) 325 drop.dtdda_drops = howmany; 338 (u_longlong_t)howmany, 340 howmany > 1 ? "s" : "", cpu); 312 dt_handle_cpudrop(dtrace_hdl_t *dtp, processorid_t cpu, dtrace_dropkind_t what, uint64_t howmany) argument
|