/dragonfly/sbin/ffsinfo/ |
H A D | ffsinfo.c | 441 rb=howmany(ino->di_size, sblock.fs_bsize)-UFS_NDADDR; in dump_whole_inode() 454 rb-=howmany(sblock.fs_bsize, sizeof(ufs_daddr_t)); in dump_whole_inode() 467 howmany(rb, howmany(sblock.fs_bsize, sizeof(ufs_daddr_t)))); in dump_whole_inode() 468 for(ind2ctr=0; ((ind2ctr < howmany(sblock.fs_bsize, in dump_whole_inode() 481 rb-=howmany(sblock.fs_bsize, sizeof(ufs_daddr_t)); in dump_whole_inode() 496 howmany(rb, in dump_whole_inode() 499 for(ind3ctr=0; ((ind3ctr < howmany(sblock.fs_bsize, in dump_whole_inode() 511 howmany(rb, in dump_whole_inode() 512 howmany(sblock.fs_bsize, sizeof(ufs_daddr_t)))); in dump_whole_inode() 513 for(ind2ctr=0; ((ind2ctr < howmany(sblock.fs_bsize, in dump_whole_inode() [all …]
|
/dragonfly/lib/libc/stdio/ |
H A D | printfcommon.h | 115 io_pad(struct io_state *iop, int howmany, const CHAR * __restrict with, in io_pad() argument 120 while (howmany > 0) { in io_pad() 121 n = (howmany >= PADSIZE) ? PADSIZE : howmany; in io_pad() 124 howmany -= n; in io_pad()
|
/dragonfly/usr.sbin/makefs/ffs/ |
H A D | mkfs.c | 324 roundup(howmany(8192 + SBLOCKSIZE, sblock.fs_fsize), in ffs_mkfs() 374 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs() 430 sblock.fs_ncg = howmany(sblock.fs_size, sblock.fs_fpg); in ffs_mkfs() 508 csfrags = howmany(sblock.fs_cssize, sblock.fs_fsize); in ffs_mkfs() 513 howmany(csfrags, sblock.fs_frag); in ffs_mkfs() 637 blks = howmany(size, fs->fs_fsize); in ffs_write_superblock() 683 dupper += howmany(sblock.fs_cssize, sblock.fs_fsize); in initcg() 704 acg.cg_old_ncyl = howmany(acg.cg_ndblk, in initcg() 727 howmany(sblock.fs_fpg, CHAR_BIT); in initcg() 730 howmany(sblock.fs_fpg, CHAR_BIT) - sizeof(int32_t); in initcg() [all …]
|
/dragonfly/usr.sbin/makefs/ |
H A D | ffs.h | 128 /* inode map */ howmany((fs)->fs_ipg, NBBY) + \ 129 /* block map */ howmany((fs)->fs_fpg, NBBY) +\ 132 /* cluster map */ howmany(fragstoblks(fs, (fs)->fs_fpg), NBBY)))
|
/dragonfly/usr.bin/du/ |
H A D | du.c | 246 (void) prthumanval(howmany(*(du_number_t *)p->fts_pointer, blocksize)); in main() 250 howmany(*(du_number_t *)p->fts_pointer, blocksize), in main() 276 (void) prthumanval(howmany(STBLOCKS(p->fts_statp), in main() 281 howmany((long long)STBLOCKS(p->fts_statp), blocksize), in main() 302 (void) prthumanval(howmany(savednumber, blocksize)); in main() 305 (void) printf("%lld\ttotal\n", howmany(savednumber, blocksize)); in main()
|
/dragonfly/sbin/growfs/ |
H A D | growfs.c | 394 acg.cg_clustersumoff = acg.cg_freeoff + howmany in initcg() 401 acg.cg_nextfreeoff = acg.cg_clusteroff + howmany in initcg() 925 if(howmany(sblock.fs_cssize, sblock.fs_fsize) == in updcsloc() 926 howmany(osblock.fs_cssize, osblock.fs_fsize)) { in updcsloc() 936 howmany(osblock.fs_cssize, osblock.fs_bsize); in updcsloc() 1234 howmany(sblock.fs_cssize, sblock.fs_fsize); in updcsloc() 1236 howmany(osblock.fs_cssize, osblock.fs_fsize); in updcsloc() 2313 for(ictr=0; ictr < MIN(howmany(sblock.fs_bsize, in updrefs() 2337 for(ind2ctr=0; ind2ctr < howmany(sblock.fs_bsize, in updrefs() 2348 for(ictr=0; ictr<MIN(howmany((unsigned int) in updrefs() [all …]
|
H A D | debug.c | 456 e=howmany((sb->fs_cpg * sb->fs_spc / NSPF(sb)), NBBY); in dbg_dump_frmap() 500 e=howmany(sb->fs_cpg * sb->fs_spc / NSPB(sb), NBBY); in dbg_dump_clmap() 625 remaining_blocks=howmany(ino->di_size, sb->fs_bsize); /* XXX ts - +1? */ in dbg_dump_ino() 635 remaining_blocks-=howmany(sb->fs_bsize, sizeof(ufs_daddr_t)); in dbg_dump_ino() 641 remaining_blocks-=SQUARE(howmany(sb->fs_bsize, sizeof(ufs_daddr_t))); in dbg_dump_ino() 681 for (i=0; (size_t)i<MIN(howmany(sb->fs_bsize, sizeof(ufs_daddr_t)), in dbg_dump_iblk()
|
/dragonfly/sbin/dump/ |
H A D | traverse.c | 88 blkest = howmany(dbtob(dp->di_blocks), TP_BSIZE); in blockest() 89 sizeest = howmany(dp->di_size, TP_BSIZE); in blockest() 95 howmany(sizeest - UFS_NDADDR * sblock->fs_bsize / TP_BSIZE, in blockest() 411 cnt = howmany(dp->di_size, sblock->fs_fsize); in dumpino() 437 cnt = howmany(*size, sblock->fs_fsize); in dmpindir() 461 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in blksout() 497 spcl.c_count = howmany(mapsize * sizeof(char), TP_BSIZE); in dumpmap()
|
H A D | main.c | 360 mapsize = roundup(howmany(maxino, NBBY), TP_BSIZE); in main() 364 tapesize = 3 * (howmany(mapsize * sizeof(char), TP_BSIZE) + 1); in main() 420 (howmany(mapsize * sizeof(char), TP_BSIZE) + 1); in main()
|
/dragonfly/sys/sys/ |
H A D | _fd_set.h | 78 #ifndef howmany 79 #define howmany(a, b) __howmany(a, b) macro
|
H A D | param.h | 382 #ifndef howmany 383 #define howmany(x, y) (((x)+((y)-1))/(y)) macro
|
/dragonfly/sys/netinet6/ |
H A D | ip6_mroute.h | 98 #ifndef howmany 99 #define howmany(x, y) (((x) + ((y) - 1)) / (y)) macro 103 if_mask ifs_bits[howmany(IF_SETSIZE, NIFBITS)];
|
/dragonfly/sbin/fsck/ |
H A D | pass5.c | 108 mapsize = &ocg->cg_free[howmany(fs->fs_fpg, NBBY)] - in pass5() 110 blkmapsize = howmany(fs->fs_fpg, NBBY); in pass5() 125 newcg->cg_iusedoff + howmany(fs->fs_ipg, NBBY); in pass5() 128 howmany(fs->fs_cpg * fs->fs_spc / NSPF(fs), NBBY); in pass5() 138 howmany(fs->fs_cpg * fs->fs_spc / NSPB(fs), NBBY); in pass5()
|
H A D | pass1.c | 78 cgd = i+ howmany(sblock.fs_cssize, sblock.fs_fsize); in pass1() 227 ndb = howmany(dp->di_size, sblock.fs_bsize); in checkinode() 260 ndb = howmany(dp->di_size, sizeof(ufs_daddr_t)); in checkinode()
|
/dragonfly/tools/tools/net80211/wlantxtime/ |
H A D | wlantxtime.c | 359 numSymbols = howmany(numBits, bitsPerSymbol); in ieee80211_compute_duration() 369 numSymbols = howmany(numBits, bitsPerSymbol); in ieee80211_compute_duration() 379 numSymbols = howmany(numBits, bitsPerSymbol); in ieee80211_compute_duration() 390 numSymbols = howmany(numBits, bitsPerSymbol); in ieee80211_compute_duration() 425 numSymbols = howmany(numBits, bitsPerSymbol); in ieee80211_compute_duration_ht()
|
/dragonfly/sys/netproto/802_11/wlan/ |
H A D | ieee80211_phy.c | 529 numSymbols = howmany(numBits, bitsPerSymbol); in ieee80211_compute_duration() 539 numSymbols = howmany(numBits, bitsPerSymbol); in ieee80211_compute_duration() 549 numSymbols = howmany(numBits, bitsPerSymbol); in ieee80211_compute_duration() 560 numSymbols = howmany(numBits, bitsPerSymbol); in ieee80211_compute_duration() 615 numSymbols = howmany(numBits, bitsPerSymbol); in ieee80211_compute_duration_ht()
|
/dragonfly/sbin/newfs_msdos/ |
H A D | mkfs_msdos.c | 453 howmany((RESFTE + (bpb.bpbSecPerClust ? MINCLS16 : MAXCLS12 + 1)) * in mkfs_msdos() 457 howmany(bpb.bpbRootDirEnts ? bpb.bpbRootDirEnts : DEFRDE, in mkfs_msdos() 461 howmany(DEFBLK, bpb.bpbBytesPerSec))) in mkfs_msdos() 465 howmany((RESFTE + MAXCLS16) * 2, bpb.bpbBytesPerSec) * in mkfs_msdos() 467 howmany(DEFRDE, bpb.bpbBytesPerSec / sizeof(struct de)) + in mkfs_msdos() 470 howmany(8192, bpb.bpbBytesPerSec))) in mkfs_msdos() 528 rds = howmany(bpb.bpbRootDirEnts, in mkfs_msdos() 531 for (bpb.bpbSecPerClust = howmany(fat == 16 ? DEFBLK16 : in mkfs_msdos() 534 howmany((RESFTE + maxcls(fat)) * (fat / BPN), in mkfs_msdos() 557 x2 = howmany((RESFTE + MIN(x, maxcls(fat))) * (fat / BPN), in mkfs_msdos()
|
/dragonfly/sbin/newfs/ |
H A D | mkfs.c | 324 roundup(howmany(sbsize, sblock.fs_fsize), sblock.fs_frag)); in mkfs() 327 howmany(sblock.fs_nsect, NSPF(&sblock)), sblock.fs_frag); in mkfs() 352 mincpgcnt = howmany(sblock.fs_cgoffset * (~sblock.fs_cgmask) + used, in mkfs() 787 dupper += howmany(sblock.fs_cssize, sblock.fs_fsize); in initcg() 805 acg.cg_freeoff = acg.cg_iusedoff + howmany(sblock.fs_ipg, NBBY); in initcg() 808 howmany(sblock.fs_cpg * sblock.fs_spc / NSPF(&sblock), NBBY); in initcg() 810 acg.cg_clustersumoff = acg.cg_freeoff + howmany in initcg() 817 acg.cg_nextfreeoff = acg.cg_clusteroff + howmany in initcg() 1083 frag = howmany(size, sblock.fs_fsize); in alloc() 1110 ncyl = howmany(fssize, (u_int)secpercyl); in calcipg() [all …]
|
/dragonfly/sys/net/netmap/ |
H A D | netmap_vale.c | 1226 u_int needed, howmany; in nm_bdg_flush() local 1292 howmany = nm_kr_space(kring, 1); in nm_bdg_flush() 1293 if (needed < howmany) in nm_bdg_flush() 1294 howmany = needed; in nm_bdg_flush() 1299 if (retry && needed <= howmany) in nm_bdg_flush() 1303 while (howmany > 0) { in nm_bdg_flush() 1322 if (unlikely(cnt > howmany)) in nm_bdg_flush() 1324 howmany -= cnt; in nm_bdg_flush() 1365 if (unlikely(howmany > 0)) { in nm_bdg_flush() 1370 ND("leftover %d bufs", howmany); in nm_bdg_flush() [all …]
|
/dragonfly/bin/ls/ |
H A D | print.c | 139 printf("total %lu\n", howmany(dp->btotal, blocksize)); in printlong() 150 dp->s_block, howmany(sp->st_blocks, blocksize)); in printlong() 278 printf("total %lu\n", howmany(dp->btotal, blocksize)); in printcol() 331 (int)sizefield, howmany(sp->st_blocks, blocksize)); in printaname()
|
/dragonfly/contrib/ncurses/ncurses/tty/ |
H A D | lib_twait.c | 317 int n, howmany; in _nc_timed_wait() local 324 howmany = ioctl(0, 'ichr', &n); in _nc_timed_wait() 325 if (howmany >= 0 && n > 0) { in _nc_timed_wait()
|
/dragonfly/stand/boot/common/ |
H A D | fs.h | 425 /* inode map */ howmany((fs)->fs_ipg, NBBY) + \ 426 /* block map */ howmany((fs)->fs_fpg, NBBY) +\ 429 /* cluster map */ howmany(fragstoblks(fs, (fs)->fs_fpg), NBBY)))
|
/dragonfly/sys/dev/drm/include/linux/ |
H A D | types.h | 40 unsigned long n[howmany(bits, sizeof(long) * 8)]
|
H A D | delay.h | 51 DELAY(howmany(x, 1000)); in ndelay()
|
/dragonfly/sys/vfs/hammer/ |
H A D | hammer_rebalance.c | 333 avg_elms = howmany(count, lockroot.count); in rebalance_node() 346 n = howmany(count, rebal->saturation); in rebalance_node() 347 avg_elms = howmany(count, n); in rebalance_node()
|