Home
last modified time | relevance | path

Searched refs:howmany (Results 26 – 50 of 114) sorted by relevance

12345

/dragonfly/sys/vfs/ufs/
H A Dufs_dirhash.c134 narrays = howmany(nslots, DH_NBLKOFF); in ufsdirhash_build()
136 dirblocks = howmany(ip->i_size, DIRBLKSIZ); in ufsdirhash_build()
457 for (i = howmany(slotneeded, DIRALIGN); i <= DH_NFSTATS; i++) in ufsdirhash_findfree()
465 dh->dh_blkfree[dirblock] >= howmany(slotneeded, DIRALIGN), in ufsdirhash_findfree()
688 block = howmany(offset, DIRBLKSIZ); in ufsdirhash_dirtrunc()
H A Dfs.h337 /* inode map */ howmany((fs)->fs_ipg, NBBY) + \
338 /* block map */ howmany((fs)->fs_cpg * (fs)->fs_spc / NSPF(fs), NBBY) +\
341 /* cluster map */ howmany((fs)->fs_cpg * (fs)->fs_spc / NSPB(fs), NBBY)))
/dragonfly/usr.sbin/ppp/
H A Ddefs.c394 return (fd_set *)malloc(howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask)); in mkfdset()
400 memset(s, '\0', howmany(getdtablesize(), NFDBITS) * sizeof (fd_mask)); in zerofdset()
/dragonfly/sys/dev/drm/include/linux/
H A Dradix-tree.h40 howmany(sizeof(long) * NBBY, RADIX_TREE_MAP_SHIFT)
H A Dkernel.h59 #define DIV_ROUND_UP howmany
/dragonfly/sys/dev/netif/iwm/
H A Dif_iwmvar.h163 uint8_t enabled_api[howmany(IWM_NUM_UCODE_TLV_API, NBBY)];
164 uint8_t enabled_capa[howmany(IWM_NUM_UCODE_TLV_CAPA, NBBY)];
/dragonfly/sys/netproto/802_11/
H A D_ieee80211.h78 #define IEEE80211_MODE_BYTES howmany(IEEE80211_MODE_MAX, NBBY)
155 #define IEEE80211_CHAN_BYTES howmany(IEEE80211_CHAN_MAX, NBBY)
/dragonfly/sbin/fsck/
H A Dinode.c76 ndb = howmany(dino.di_size, sblock.fs_bsize); in ckinode()
169 nif = howmany(isize , sizepb); in iblock()
379 blks = howmany(dp->di_size, sblock.fs_bsize); in cacheino()
/dragonfly/usr.sbin/makefs/cd9660/
H A Dcd9660_eltorito.c151 howmany(new_image->size, diskStructure->sectorSize) * in cd9660_add_boot_disk()
152 howmany(diskStructure->sectorSize, 512); in cd9660_add_boot_disk()
399 catalog_sectors = howmany(num_entries * 0x20, diskStructure->sectorSize); in cd9660_setup_boot()
/dragonfly/sys/vfs/msdosfs/
H A Dmsdosfs_conv.c642 if ((wep->weCnt&WIN_CNT) > howmany(WIN_MAXLEN, WIN_CHARS) in win2unixfn()
761 return howmany(WIN_MAXLEN - wlen/2, WIN_CHARS); in winSlotCnt()
766 return howmany(unlen, WIN_CHARS); in winSlotCnt()
/dragonfly/test/cocci/
H A Duseful_macros.cocci70 +howmany(X, Y)
/dragonfly/sys/dev/netif/ath/ath_hal/
H A Dah.c337 numSymbols = howmany(numBits, bitsPerSymbol); in ath_computedur_ht()
384 numSymbols = howmany(numBits, bitsPerSymbol); in ath_hal_computetxtime()
394 numSymbols = howmany(numBits, bitsPerSymbol); in ath_hal_computetxtime()
404 numSymbols = howmany(numBits, bitsPerSymbol); in ath_hal_computetxtime()
414 numSymbols = howmany(numBits, bitsPerSymbol); in ath_hal_computetxtime()
/dragonfly/sys/net/netmap/
H A Dnetmap.c784 u_int i, howmany, src_lim, dst_lim; in netmap_sw_to_nic() local
795 howmany = kring->nr_hwavail; /* XXX otherwise cur - reserved - nr_hwcur */ in netmap_sw_to_nic()
798 for (i = 0; howmany > 0 && i < na->num_tx_rings; i++, k1++) { in netmap_sw_to_nic()
799 ND("%d packets left to ring %d (space %d)", howmany, i, k1->nr_hwavail); in netmap_sw_to_nic()
801 while (howmany > 0 && k1->ring->avail > 0) { in netmap_sw_to_nic()
817 howmany--; in netmap_sw_to_nic()
/dragonfly/lib/libc/stdlib/
H A Dstrfmon.c82 #define GRPCPY(howmany) do { \ argument
83 int i = howmany; \
/dragonfly/sys/dev/virtual/virtio/net/
H A Dif_vtnetvar.h252 howmany(sizeof(struct vtnet_rx_header) + VTNET_MAX_RX_SIZE, \
/dragonfly/sys/dev/raid/ida/
H A Dida.c345 hwqcb->req.bcount = howmany(datasize, DEV_BSIZE); in ida_command()
411 hwqcb->req.bcount = howmany(bp->b_bcount, DEV_BSIZE); in ida_construct_qcb()
/dragonfly/sys/bus/firewire/
H A Dfwdma.c160 nseg = howmany(n, ssize / esize); in fwdma_malloc_multiseg()
H A Dfwcrom.c459 tl->crc_len = howmany(sizeof(struct csrtext) + len, sizeof(u_int32_t)); in crom_add_simple_text()
466 for (i = 0; i < howmany(len, sizeof(u_int32_t)); i ++) in crom_add_simple_text()
/dragonfly/contrib/file/src/
H A Dmagic.c517 size_t howmany = in file_or_fd() local
522 if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) { in file_or_fd()
/dragonfly/sys/kern/
H A Dsubr_param.c207 ntp_default_tick_delta = howmany(30000000, 60 * hz); in init_param1()
/dragonfly/usr.sbin/makefs/
H A Dcd9660.h120 howmany((__bytes), (__sector_size))
/dragonfly/sys/vfs/ext2fs/
H A Dext2_vfsops.c620 fs->e2fs_gcount = howmany(fs->e2fs_bcount - in ext2_compute_sb_data()
640 e2fs_gdbcount_alloc = howmany(fs->e2fs_gcount, e2fs_descpb); in ext2_compute_sb_data()
643 e2fs_gdbcount_alloc = howmany(fs->e2fs_gcount, in ext2_compute_sb_data()
646 fs->e2fs_gdbcount = howmany(fs->e2fs_gcount, e2fs_descpb); in ext2_compute_sb_data()
1391 used_blocks = howmany(ip->i_size, fs->e2fs_bsize); in ext2_vget()
/dragonfly/lib/libc/stdio/
H A Dxprintf.c135 __printf_pad(struct __printf_io *io, int howmany, int zero) in __printf_pad() argument
146 if ((n = (howmany)) > 0) { in __printf_pad()
/dragonfly/usr.bin/ruptime/
H A Druptime.c191 minutes = howmany(tval, 60); in interval()
/dragonfly/sbin/fsdb/
H A Dfsdbutil.c241 ndb = howmany(dp->di_size, sblock.fs_bsize); in printblocks()

12345