Searched refs:howmany (Results 1 - 25 of 156) sorted by relevance

1234567

/freebsd-10-stable/sys/sys/
H A D_bitset.h41 #define __bitset_words(_s) (howmany(_s, _BITSET_BITS))
H A Dparam.h287 #ifndef howmany
288 #define howmany(x, y) (((x)+((y)-1))/(y)) macro
/freebsd-10-stable/sbin/ffsinfo/
H A Dffsinfo.c379 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 Dtypes.h62 unsigned long n[howmany(bits, sizeof(long) * 8)]
/freebsd-10-stable/lib/libc/stdio/
H A Dprintfcommon.h115 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 Ddu.c222 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 Dip6_mroute.h85 #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 Dctm_smail.c119 #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 Dmkfs.c284 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 Dsfxge_tx.h55 #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 Dtraverse.c117 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 Ddebug.c521 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 Dsblock.c97 blks = howmany(size, fs->fs_fsize);
147 blks = howmany(fs->fs_cssize, fs->fs_fsize);
/freebsd-10-stable/contrib/pf/libevent/
H A Dselect.c56 #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 Dnetmap_offloadings.c136 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 Dsetfont.c72 glyphsize = howmany(vfnt.width, 8) * vfnt.height * vfnt.glyph_count;
/freebsd-10-stable/sbin/newfs/
H A Dmkfs.c302 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 Dwlantxtime.c360 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 Dpass5.c130 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 Dlib_twait.c284 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 Dshow.c291 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 Dbsd-poll.c60 nmemb = howmany(maxfd + 1 , NFDBITS);
/freebsd-10-stable/tools/tools/vt/mkkfont/
H A Dmkkfont.c62 gbytes = howmany(fh->width, 8) * fh->height;
/freebsd-10-stable/sys/dev/drm2/
H A Ddrm_atomic.h40 #define BITS_TO_LONGS(x) howmany(x, NB_BITS_PER_LONG)
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_handle.c313 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

Completed in 330 milliseconds

1234567