/freebsd-12-stable/sbin/ffsinfo/ |
H A D | ffsinfo.c | 382 rb = howmany(ino->di_size, sblock.fs_bsize) - UFS_NDADDR; 397 rb-=howmany(sblock.fs_bsize, sizeof(ufs1_daddr_t)); 412 howmany(rb, howmany(sblock.fs_bsize, sizeof(ufs1_daddr_t)))); 413 for(ind2ctr=0; ((ind2ctr < howmany(sblock.fs_bsize, 428 rb-=howmany(sblock.fs_bsize, sizeof(ufs1_daddr_t)); 445 howmany(rb, 446 SQUARE(howmany(sblock.fs_bsize, sizeof(ufs1_daddr_t))))); 448 for(ind3ctr=0; ((ind3ctr<howmany(sblock.fs_bsize, 462 howmany(r [all...] |
/freebsd-12-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | delay.h | 65 DELAY(howmany(x, 1000));
|
H A D | jiffies.h | 91 result = howmany(msec * lkpi_msec2hz_rem, lkpi_msec2hz_div); 105 result = howmany(usec * lkpi_usec2hz_rem, lkpi_usec2hz_div); 118 return (howmany(nsec * lkpi_nsec2hz_rem, lkpi_nsec2hz_div)); 132 return (howmany(nsec * lkpi_nsec2hz_rem, lkpi_nsec2hz_div));
|
H A D | radix-tree.h | 40 howmany(sizeof(long) * NBBY, RADIX_TREE_MAP_SHIFT)
|
H A D | types.h | 75 unsigned long n[howmany(bits, sizeof(long) * 8)]
|
/freebsd-12-stable/sys/dev/vmware/vmci/ |
H A D | vmci_kernel_defs.h | 30 #define CEILING(x, y) howmany(x, y)
|
/freebsd-12-stable/lib/libc/stdio/ |
H A D | printfcommon.h | 117 io_pad(struct io_state *iop, int howmany, const CHAR * __restrict with, argument 122 while (howmany > 0) { 123 n = (howmany >= PADSIZE) ? PADSIZE : howmany; 126 howmany -= n;
|
/freebsd-12-stable/sys/compat/cloudabi32/ |
H A D | cloudabi32_module.c | 86 *stack_base -= howmany(sizeof(canarybuf), sizeof(register_t)); 100 *stack_base -= howmany(sizeof(pidbuf), sizeof(register_t)); 137 *stack_base -= howmany(sizeof(auxv), sizeof(register_t)); 143 *stack_base -= howmany(sizeof(cloudabi32_tcb_t), sizeof(register_t));
|
/freebsd-12-stable/sys/compat/cloudabi64/ |
H A D | cloudabi64_module.c | 86 *stack_base -= howmany(sizeof(canarybuf), sizeof(register_t)); 100 *stack_base -= howmany(sizeof(pidbuf), sizeof(register_t)); 137 *stack_base -= howmany(sizeof(auxv), sizeof(register_t)); 143 *stack_base -= howmany(sizeof(cloudabi64_tcb_t), sizeof(register_t));
|
/freebsd-12-stable/usr.bin/du/ |
H A D | du.c | 239 cblocksize = howmany(cblocksize, DEV_BSIZE) * DEV_BSIZE; 261 threshold = howmany(threshold / DEV_BSIZE * cblocksize, 282 howmany(p->fts_statp->st_size, cblocksize) : 283 howmany(p->fts_statp->st_blocks, cblocksize); 288 threshold_sign * howmany(p->fts_bignum * 295 (intmax_t)howmany(p->fts_bignum * 322 howmany(p->fts_statp->st_size, cblocksize) : 323 howmany(p->fts_statp->st_blocks, cblocksize); 331 (intmax_t)howmany(curblocks * 350 (void)printf("%jd\ttotal\n", (intmax_t)howmany( [all...] |
/freebsd-12-stable/tools/diag/prtblknos/ |
H A D | prtblknos.c | 118 lastlbn = howmany(size, fs->fs_bsize); 124 frags = howmany(size - (lastlbn - 1) * fs->fs_bsize, 179 last = howmany(lastlbn - lbn, blksperindir) < NINDIR(fs) ? 180 howmany(lastlbn - lbn, blksperindir) : NINDIR(fs); 243 seq = howmany(numfrags, fs->fs_frag); 249 seq = howmany(numfrags, fs->fs_frag); 260 seq += howmany(numfrags, fs->fs_frag);
|
/freebsd-12-stable/sys/netinet6/ |
H A D | ip6_mroute.h | 87 #ifndef howmany 88 #define howmany(x, y) (((x) + ((y) - 1)) / (y)) macro 92 if_mask ifs_bits[howmany(IF_SETSIZE, NIFBITS)];
|
/freebsd-12-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-12-stable/sys/dev/sfxge/ |
H A D | sfxge_tx.h | 57 #define SFXGE_TSO_MAX_SEGS howmany(SFXGE_TSO_MAX_SIZE, 512) 69 (2 + howmany(SFXGE_TSO_MAX_SIZE, MCLBYTES) + 1)
|
/freebsd-12-stable/usr.sbin/makefs/ffs/ |
H A D | mkfs.c | 289 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), 292 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag)); 325 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 331 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 348 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 357 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 369 sblock.fs_ncg = howmany(sblock.fs_size, sblock.fs_fpg); 381 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 443 csfrags = howmany(sblock.fs_cssize, sblock.fs_fsize); 448 howmany(csfrag [all...] |
/freebsd-12-stable/sbin/dump/ |
H A D | traverse.c | 120 blkest = howmany(dbtob(DIP(dp, di_blocks)), TP_BSIZE); 121 sizeest = howmany(DIP(dp, di_size), TP_BSIZE); 126 blkest += howmany(sizeest - 565 cnt = howmany(DIP(dp, di_size), sblock->fs_fsize); 604 cnt = howmany(*size, sblock->fs_fsize); 634 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); 677 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); 680 resid = howmany(fragoff(sblock, spcl.c_extsize), 683 resid = howmany(fragoff(sblock, dp->dp2.di_size), 686 blks -= howmany(sbloc [all...] |
/freebsd-12-stable/sbin/growfs/ |
H A D | debug.c | 523 e = howmany(sb->fs_old_cpg * sb->fs_old_spc / sb->fs_old_nspf, 569 e = howmany(sb->fs_old_cpg * sb->fs_old_spc / (sb->fs_old_nspf << sb->fs_fragshift), CHAR_BIT); 698 remaining_blocks = howmany(ino->di_size, sb->fs_bsize); /* XXX ts - +1? */ 708 remaining_blocks -= howmany(sb->fs_bsize, sizeof(ufs1_daddr_t)); 714 remaining_blocks -= SQUARE(howmany(sb->fs_bsize, sizeof(ufs1_daddr_t))); 775 remaining_blocks = howmany(ino->di_size, sb->fs_bsize); /* XXX ts - +1? */ 785 remaining_blocks -= howmany(sb->fs_bsize, sizeof(ufs2_daddr_t)); 791 remaining_blocks -= SQUARE(howmany(sb->fs_bsize, sizeof(ufs2_daddr_t))); 827 for (i = 0; (size_t)i < MIN(howmany(sb->fs_bsize, size), length);
|
/freebsd-12-stable/sys/sys/ |
H A D | param.h | 294 #ifndef howmany 295 #define howmany(x, y) (((x)+((y)-1))/(y)) macro
|
/freebsd-12-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-12-stable/sys/compat/cloudabi/ |
H A D | cloudabi_vdso.c | 54 pages = howmany(vdso_length, PAGE_SIZE);
|
/freebsd-12-stable/sys/dev/netmap/ |
H A D | netmap_offloadings.c | 157 u_int *j, u_int lim, u_int *howmany) 266 if (dst_slots >= *howmany) { 485 /* Update howmany and j. This is to commit the use of 487 if (unlikely(dst_slots > *howmany)) { 491 *howmany -= dst_slots; 153 bdg_mismatch_datapath(struct netmap_vp_adapter *na, struct netmap_vp_adapter *dst_na, const struct nm_bdg_fwd *ft_p, struct netmap_ring *dst_ring, u_int *j, u_int lim, u_int *howmany) argument
|
H A D | netmap_vale.c | 967 u_int needed, howmany; local 1069 howmany = nm_kr_space(kring, 1); 1070 if (needed < howmany) 1071 howmany = needed; 1072 lease_idx = nm_kr_lease(kring, howmany, 1); 1076 if (retry && needed <= howmany) 1080 while (howmany > 0) { 1099 if (unlikely(cnt > howmany)) 1105 bdg_mismatch_datapath(na, dst_na, ft_p, ring, &j, lim, &howmany); 1107 howmany [all...] |
/freebsd-12-stable/sbin/newfs/ |
H A D | mkfs.c | 297 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), 300 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag); 359 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 365 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 381 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 392 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 404 sblock.fs_ncg = howmany(sblock.fs_size, sblock.fs_fpg); 416 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 466 csfrags = howmany(sblock.fs_cssize, sblock.fs_fsize); 471 howmany(csfrag [all...] |
/freebsd-12-stable/tools/tools/net80211/wlantxtime/ |
H A D | wlantxtime.c | 355 numSymbols = howmany(numBits, bitsPerSymbol); 365 numSymbols = howmany(numBits, bitsPerSymbol); 375 numSymbols = howmany(numBits, bitsPerSymbol); 386 numSymbols = howmany(numBits, bitsPerSymbol); 421 numSymbols = howmany(numBits, bitsPerSymbol);
|
/freebsd-12-stable/sbin/fsck_ffs/ |
H A D | pass5.c | 139 inomapsize = howmany(fs->fs_ipg, CHAR_BIT); 141 blkmapsize = howmany(fs->fs_fpg, CHAR_BIT); 151 howmany(fragstoblks(fs, fs->fs_fpg), CHAR_BIT); 205 newcg->cg_old_ncyl = howmany(newcg->cg_ndblk, 457 inomapsize = howmany(fs->fs_ipg, CHAR_BIT); 471 howmany(fs->fs_fpg, CHAR_BIT),
|