| /netbsd-src/lib/libc/locale/ |
| H A D | newlocale.c | 50 int i, howmany, categories[_LC_LAST - 1]; in __weak_alias() local 76 howmany = 0; in __weak_alias() 79 categories[howmany++] = i; in __weak_alias() 81 if (howmany-- > 0) { in __weak_alias() 82 for (i = 1; i < howmany; ++i) { in __weak_alias() 92 tokens[howmany] = tail; in __weak_alias() 93 tail = __UNCONST(strchr(tokens[howmany], '/')); in __weak_alias() 98 for (i = 0; i <= howmany; ++i) { in __weak_alias()
|
| /netbsd-src/sys/external/bsd/drm2/include/linux/ |
| H A D | bitmap.h | 51 size_t n = howmany(nbits, bpl); in bitmap_zero() 179 size_t n = howmany(nbits, bpl); in bitmap_copy() 194 size_t n = howmany(nbits, bpl); in bitmap_complement() 212 size_t n = howmany(nbits, bpl); in bitmap_and() 230 size_t n = howmany(nbits, bpl); in bitmap_andnot() 248 size_t n = howmany(nbits, bpl); in bitmap_or() 258 size_t n = howmany(nbits, bpl); in bitmap_zalloc()
|
| H A D | pfn.h | 35 #define PFN_UP(N) howmany(N, PAGE_SIZE)
|
| /netbsd-src/sbin/dump/ |
| H A D | traverse.c | 96 blkest = howmany(ufs_fragroundup(ufsib, in blockest() 98 sizeest = howmany(ufs_fragroundup(ufsib, DIP(dp, size)), TP_BSIZE); in blockest() 104 howmany(sizeest - UFS_NDADDR * ufsib->ufs_bsize / TP_BSIZE, in blockest() 584 cnt = howmany(DIP(dp, size), ufsib->ufs_fsize); in dumpino() 626 cnt = howmany(*size, ufsib->ufs_fsize); in dmpindir() 660 blks = howmany(frags * ufsib->ufs_fsize, TP_BSIZE); in blksout32() 693 blks = howmany(frags * ufsib->ufs_fsize, TP_BSIZE); in blksout64() 699 resid = howmany(ufsib->ufs_qfmask & extsize, in blksout64() 702 resid = howmany(ufsib->ufs_qfmask & dp->dp2.di_size, in blksout64() 705 blks -= howmany(ufsib->ufs_fsize, TP_BSIZE) - resid; in blksout64() [all …]
|
| H A D | rcache.c | 115 nblksread = howmany(readblksize, ufsib->ufs_bsize); in initcache() 276 daddr_t numBlocks = howmany(size, dev_bsize); in bread() 355 blkno += howmany(toCopy, dev_bsize); in bread() 356 numBlocks -= howmany(toCopy, dev_bsize); in bread() 367 howmany(toCopy, dev_bsize); in bread()
|
| /netbsd-src/usr.sbin/makefs/ffs/ |
| H A D | mkfs.c | 318 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), in ffs_mkfs() 321 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag)); in ffs_mkfs() 354 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs() 360 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs() 377 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs() 386 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs() 398 sblock.fs_ncg = howmany(sblock.fs_size, sblock.fs_fpg); in ffs_mkfs() 410 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), in ffs_mkfs() 472 csfrags = howmany(sblock.fs_cssize, sblock.fs_fsize); in ffs_mkfs() 477 howmany(csfrags, sblock.fs_frag); in ffs_mkfs() [all …]
|
| /netbsd-src/sys/arch/arm/rockchip/ |
| H A D | rk_i2c.c | 143 div = howmany(rate, sc->sc_clkfreq * 8) - 2; in rk_i2c_init() 149 divh = howmany(div, 2); in rk_i2c_init() 259 for (int i = 0; i < howmany(len + 1, 4); i++) in rk_i2c_write() 263 txdata.data32, howmany(len + 1, 4)); in rk_i2c_write() 317 rxdata, howmany(buflen, 4)); in rk_i2c_read() 324 for (int i = 0; i < howmany(buflen, 4); i++) in rk_i2c_read()
|
| /netbsd-src/sbin/resize_ffs/ |
| H A D | resize_ffs.c | 529 cg->cg_freeoff = cg->cg_iusedoff + howmany(newsb->fs_ipg, NBBY); in initcg() 533 howmany(newsb->fs_fpg, NBBY) - sizeof(int32_t); in initcg() 539 howmany(ffs_fragstoblks(newsb,newsb->fs_fpg), NBBY); in initcg() 548 howmany(newsb->fs_fpg, NBBY); in initcg() 832 ntot = howmany(newsb->fs_cssize, newsb->fs_fsize); in csum_fixup() 833 nold = howmany(oldsb->fs_cssize, newsb->fs_fsize); in csum_fixup() 917 newsb->fs_dsize -= howmany(newsb->fs_cssize, newsb->fs_fsize); in recompute_fs_dsize() 944 newsb->fs_ncg = howmany(newsb->fs_size, newsb->fs_fpg); in makegeometry() 947 newsb->fs_old_ncyl = howmany(newsb->fs_size * NSPF(newsb), in makegeometry() 949 newsb->fs_ncg = howmany(newsb->fs_old_ncyl, newsb->fs_old_cpg); in makegeometry() [all …]
|
| /netbsd-src/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)];
|
| /netbsd-src/sbin/newfs_msdos/ |
| H A D | mkfs_msdos.c | 356 x1 = howmany(bpb.bsec, (1048576 / 512)); /* -> MB */ in mkfs_msdos() 486 howmany((RESFTE + (bpb.spc ? MINCLS16 : MAXCLS12 + 1)) * in mkfs_msdos() 489 howmany(bpb.rde ? bpb.rde : DEFRDE, in mkfs_msdos() 492 (bpb.spc ? bpb.spc : howmany(DEFBLK, bpb.bps))) in mkfs_msdos() 496 howmany((RESFTE + MAXCLS16) * 2, bpb.bps) * bpb.nft + in mkfs_msdos() 497 howmany(DEFRDE, bpb.bps / sizeof(struct de)) + in mkfs_msdos() 499 (bpb.spc ? bpb.spc : howmany(8192, bpb.bps))) in mkfs_msdos() 536 rds = howmany(bpb.rde, bpb.bps / sizeof(struct de)); in mkfs_msdos() 538 for (bpb.spc = howmany(o.fat_type == 16 ? DEFBLK16 : DEFBLK, bpb.bps); in mkfs_msdos() 541 howmany((RESFTE + maxcls(o.fat_type)) * (o.fat_type / BPN), in mkfs_msdos() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/radeon/ |
| H A D | mkregtable.awk | 31 function howmany(x, n) { function 76 nentries = howmany(hi(maxreg, 2), 32)
|
| /netbsd-src/games/warp/ |
| H A D | term.c | 619 int howmany; in circfill() local 623 howmany = read(devtty,circlebuf+nextin,metakey?1:PUSHSIZE-nextin); in circfill() 624 if (howmany > 0) { in circfill() 632 for (i = howmany+nextin-1; i >= nextin; i--) in circfill() 634 nextin += howmany; in circfill() 637 return howmany; in circfill()
|
| /netbsd-src/sbin/fsck_ffs/ |
| H A D | pass5.c | 148 inomapsize = howmany(fs->fs_ipg, CHAR_BIT); in pass5() 150 blkmapsize = howmany(fs->fs_fpg, CHAR_BIT); in pass5() 167 howmany(ffs_fragstoblks(fs, fs->fs_fpg), CHAR_BIT); in pass5() 178 mapsize = &ocg->cg_free[howmany(fs->fs_fpg, NBBY)] - in pass5() 180 blkmapsize = howmany(fs->fs_fpg, NBBY); in pass5() 284 newcg->cg_old_ncyl = howmany(newcg->cg_ndblk, in pass5()
|
| H A D | pass1.c | 91 cgd = i + howmany(sblock->fs_cssize, sblock->fs_fsize); in pass1() 290 ndb = howmany(size, sblock->fs_bsize); in checkinode() 335 ndb = howmany(size, sizeof(int64_t)); in checkinode() 337 ndb = howmany(size, sizeof(int32_t)); in checkinode() 446 ndb = howmany(iswap32(dp->dp2.di_extsize), sblock->fs_bsize); in checkinode()
|
| /netbsd-src/sys/arch/arm/arm/ |
| H A D | cpu_subr.c | 69 volatile u_long arm_cpu_hatched[howmany(MAXCPUS, CPUINDEX_DIVISOR)] __cacheline_aligned = { 0 }; 70 volatile u_long arm_cpu_mbox[howmany(MAXCPUS, CPUINDEX_DIVISOR)] __cacheline_aligned = { 0 };
|
| /netbsd-src/sbin/fsck_ext2fs/ |
| H A D | setup.c | 250 bmapsize = roundup(howmany(maxfsblock, NBBY), sizeof(int16_t)); in setup() 334 howmany(sblock.e2fs.e2fs_bcount - sblock.e2fs.e2fs_first_dblock, in readsb() 341 sblock.e2fs_ngdb = howmany(sblock.e2fs_ncg, in readsb() 344 sblock.e2fs_itpg = howmany(sblock.e2fs.e2fs_ipg, sblock.e2fs_ipb); in readsb() 532 howmany(fs->e2fs.e2fs_bcount - fs->e2fs.e2fs_first_dblock, in calcsb() 535 fs->e2fs_ngdb = howmany(fs->e2fs_ncg, in calcsb()
|
| /netbsd-src/sbin/newfs/ |
| H A D | mkfs.c | 344 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), in mkfs() 347 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag)); in mkfs() 384 inodeblks = howmany(num_inodes, FFS_INOPB(&sblock)); in mkfs() 409 ncg = howmany(cgall - cgzero, sblock.fs_bsize - cgzero); in mkfs() 431 sblock.fs_fpg = roundup(howmany(sblock.fs_size, ncg), sblock.fs_frag); in mkfs() 440 ncg = howmany(sblock.fs_size, sblock.fs_fpg); in mkfs() 521 csfrags = howmany(sblock.fs_cssize, sblock.fs_fsize); in mkfs() 526 howmany(csfrags, sblock.fs_frag); in mkfs() 798 dupper += howmany(sblock.fs_cssize, sblock.fs_fsize); in initcg() 832 acg.cg_freeoff = acg.cg_iusedoff + howmany(sblock.fs_ipg, CHAR_BIT); in initcg() [all …]
|
| /netbsd-src/usr.sbin/apmd/ |
| H A D | apmd.c | 76 static void make_noise(int howmany); 226 make_noise(int howmany) in make_noise() argument 259 syslog(LOG_DEBUG, "sending %d tones to speaker\n", howmany); in make_noise() 260 write (spkrfd, "o4cc", 2 + howmany); in make_noise()
|
| /netbsd-src/sbin/newfs_lfs/ |
| H A D | make_lfs.c | 298 nblocks = howmany(nfrags, lfs_sb_getfrag(fs)); in make_dinode() 321 bb = howmany(bb, LFS_NINDIR(fs)); in make_dinode() 335 bb = howmany(nblocks - ULFS_NDADDR, LFS_NINDIR(fs)) - 1; in make_dinode() 341 bb = howmany(bb, LFS_NINDIR(fs)); in make_dinode() 809 make_dinode(ULFS_ROOTINO, dip, howmany(LFS_DIRBLKSIZ, lfs_sb_getfsize(fs)), fs); in make_lfs() 822 for (i = 0; i < ULFS_NDADDR && i < howmany(LFS_DIRBLKSIZ, lfs_sb_getbsize(fs)); i++) in make_lfs() 835 make_dinode(LOSTFOUNDINO, dip, howmany(DIRBLKSIZ,fs->lfs_fsize), fs); in make_lfs() 841 for (i = 0; i < ULFS_NDADDR && i < howmany(DIRBLKSIZ, lfs_sb_getbsize(fs)); i++) in make_lfs()
|
| /netbsd-src/external/cddl/osnet/dist/lib/libdtrace/common/ |
| H A D | dt_handle.c | 313 dtrace_dropkind_t what, uint64_t howmany) in dt_handle_cpudrop() argument 325 drop.dtdda_drops = howmany; in dt_handle_cpudrop() 338 (u_longlong_t)howmany, in dt_handle_cpudrop() 340 howmany > 1 ? "s" : "", (int)cpu); in dt_handle_cpudrop()
|
| /netbsd-src/usr.sbin/diskpart/ |
| H A D | diskpart.c | 188 threshold = howmany(spc, badsecttable); in main() 199 dp->d_ncylinders = howmany(totsize, spc); in main() 212 curcyl += howmany(defpart[def][part], spc); in main() 231 numcyls[part] = howmany(defpart[def][part], spc); in main()
|
| /netbsd-src/sys/arch/x68k/x68k/ |
| H A D | disksubr.c | 94 howmany(LABELOFFSET + sizeof(struct disklabel), lp->d_secsize) in readdisklabel() 97 howmany(sizeof(struct cpu_disklabel), lp->d_secsize) in readdisklabel() 276 howmany(LABELOFFSET + sizeof(struct disklabel), lp->d_secsize) in writedisklabel() 279 howmany(sizeof(struct cpu_disklabel), lp->d_secsize) in writedisklabel()
|
| /netbsd-src/sys/ufs/ffs/ |
| H A D | ffs_snapshot.c | 474 numblks = howmany(fs->fs_size, fs->fs_frag); 518 len = howmany(fs->fs_cssize, fs->fs_bsize); 589 loc = howmany(fs->fs_cssize, fs->fs_fsize); 682 *snaplistsize = fs->fs_ncg + howmany(fs->fs_cssize, fs->fs_bsize) + 697 loc = howmany(xp->i_size, fs->fs_bsize) - 1; 746 len = howmany(fs->fs_cssize, fs->fs_bsize); 819 numblks = howmany(fs->fs_size, fs->fs_frag); 857 len = howmany(fs->fs_cssize, fs->fs_bsize); 926 fs->fs_active = malloc(howmany(fs->fs_ncg, NBBY), 991 numblks = howmany(fs->fs_size, fs->fs_frag); [all …]
|
| /netbsd-src/sys/arch/x86/x86/ |
| H A D | cpu_rng.c | 271 NBYTES = howmany(NBITS, 8), in cpu_rng_get() 272 NWORDS = howmany(NBITS, 64), in cpu_rng_get()
|
| /netbsd-src/sys/arch/arm/amlogic/ |
| H A D | meson_clk_pll.c | 80 rate += howmany(frac_rate, __SHIFTOUT_MASK(pll->frac.mask) + 1); in meson_clk_pll_get_rate() 83 return (u_int)howmany(rate, n); in meson_clk_pll_get_rate()
|