/freebsd-10.0-release/sys/sys/ |
H A D | _bitset.h | 41 #define __bitset_words(_s) (howmany(_s, _BITSET_BITS))
|
H A D | param.h | 274 #ifndef howmany 275 #define howmany(x, y) (((x)+((y)-1))/(y)) macro
|
/freebsd-10.0-release/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.0-release/sys/ofed/include/linux/ |
H A D | types.h | 57 unsigned long n[howmany(bits, sizeof(long) * 8)]
|
/freebsd-10.0-release/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.0-release/crypto/openssh/ |
H A D | authfd.h | 66 int howmany; member in struct:__anon4929
|
H A D | authfd.c | 212 auth->howmany = 0; 296 auth->howmany = buffer_get_int(&auth->identities); 297 if ((u_int)auth->howmany > 1024) 299 auth->howmany); 301 return auth->howmany; 323 if (auth->howmany <= 0) 352 auth->howmany--;
|
/freebsd-10.0-release/usr.bin/du/ |
H A D | du.c | 223 cblocksize = howmany(cblocksize, DEV_BSIZE) * DEV_BSIZE; 245 threshold = howmany(threshold / DEV_BSIZE * cblocksize, 266 howmany(p->fts_statp->st_size, cblocksize) : 267 howmany(p->fts_statp->st_blocks, cblocksize); 272 threshold_sign * howmany(p->fts_bignum * 279 (intmax_t)howmany(p->fts_bignum * 306 howmany(p->fts_statp->st_size, cblocksize) : 307 howmany(p->fts_statp->st_blocks, cblocksize); 315 (intmax_t)howmany(curblocks * 334 (void)printf("%jd\ttotal\n", (intmax_t)howmany( [all...] |
/freebsd-10.0-release/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.0-release/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.0-release/usr.sbin/makefs/ffs/ |
H A D | mkfs.c | 287 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), 290 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag)); 323 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 329 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 346 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 355 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 367 sblock.fs_ncg = howmany(sblock.fs_size, sblock.fs_fpg); 379 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 406 blks = howmany(size, sblock.fs_fsize); 443 csfrags = howmany(sbloc [all...] |
/freebsd-10.0-release/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); 676 resid = howmany(fragoff(sblock, dp->dp2.di_size), TP_BSIZE); 678 blks -= howmany(sblock->fs_fsize, TP_BSIZE) - resid; 739 blks = howmany(NXADD [all...] |
/freebsd-10.0-release/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.0-release/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.0-release/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.0-release/sbin/newfs/ |
H A D | mkfs.c | 301 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), 304 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag); 363 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 369 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 385 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 396 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 408 sblock.fs_ncg = howmany(sblock.fs_size, sblock.fs_fpg); 420 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 468 csfrags = howmany(sblock.fs_cssize, sblock.fs_fsize); 473 howmany(csfrag [all...] |
/freebsd-10.0-release/sbin/fsck_ffs/ |
H A D | setup.c | 267 bmapsize = roundup(howmany(maxfsblock, CHAR_BIT), sizeof(short)); 499 howmany(lp->d_bbsize + lp->d_sbsize, fs->fs_fsize), 507 fs->fs_ncg = howmany(fs->fs_size, fs->fs_fpg); 515 fs->fs_old_cgoffset = roundup(howmany(lp->d_nsectors, nspf), 518 fs->fs_ncg = howmany(fs->fs_size / lp->d_secpercyl,
|
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.0-release/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.0-release/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.0-release/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.0-release/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
|
/freebsd-10.0-release/crypto/openssh/openbsd-compat/ |
H A D | bsd-poll.c | 57 nmemb = howmany(maxfd + 1 , NFDBITS);
|
/freebsd-10.0-release/sys/dev/drm2/ |
H A D | drm_atomic.h | 40 #define BITS_TO_LONGS(x) howmany(x, BITS_PER_LONG)
|
/freebsd-10.0-release/usr.sbin/ppp/ |
H A D | defs.c | 387 return (fd_set *)malloc(howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask)); 393 memset(s, '\0', howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask));
|