Home
last modified time | relevance | path

Searched refs:nblocks (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Drandwritecomp.c101 sequential_writes(int fd, char *buf, uint64_t nblocks, int64_t n) in sequential_writes() argument
108 j = lrand48() % nblocks; in sequential_writes()
111 if (j >= nblocks) in sequential_writes()
117 random_writes(int fd, char *buf, uint64_t nblocks, int64_t n) in random_writes() argument
121 rwc_pwrite(fd, buf, BLOCKSZ, (lrand48() % nblocks) * BLOCKSZ); in random_writes()
132 uint64_t nblocks; in main() local
167 nblocks = ss.st_size / BLOCKSZ; in main()
168 if (nblocks == 0) { in main()
187 sequential_writes(fd, buf, nblocks, n); in main()
189 random_writes(fd, buf, nblocks, n); in main()
/freebsd/tests/sys/cddl/zfs/tests/reservation/
H A Dreservation.kshlib139 typeset nblocks
158 (( nblocks = volsize / volblocksize ))
160 while (( nblocks > 1 )); do
161 (( nblocks = nblocks + DNODES_PER_LEVEL - 1 ))
162 (( nblocks = nblocks / DNODES_PER_LEVEL ))
163 (( numdb = numdb + nblocks ))
/freebsd/sys/dev/usb/
H A Dusb_mbuf.c65 usb_size_t block_size, uint16_t nblocks) in usb_alloc_mbufs() argument
75 if (nblocks && block_size) { in usb_alloc_mbufs()
76 alloc_size = (block_size + sizeof(struct usb_mbuf)) * nblocks; in usb_alloc_mbufs()
80 data_ptr = (void *)(m_ptr + nblocks); in usb_alloc_mbufs()
82 while (nblocks--) { in usb_alloc_mbufs()
H A Dusb_mbuf.h89 usb_size_t block_size, uint16_t nblocks);
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dhash.h75 const int nblocks = len / 4; in hash_x86_32() local
84 const uint32_t *blocks = (const uint32_t *) (data + nblocks*4); in hash_x86_32()
87 for (i = -nblocks; i; i++) { in hash_x86_32()
102 const uint8_t *tail = (const uint8_t *) (data + nblocks*4); in hash_x86_32()
126 const int nblocks = len / 16; in hash_x86_128() local
140 const uint32_t *blocks = (const uint32_t *) (data + nblocks*16); in hash_x86_128()
143 for (i = -nblocks; i; i++) { in hash_x86_128()
173 const uint8_t *tail = (const uint8_t *) (data + nblocks*16); in hash_x86_128()
228 const int nblocks = len / 16; in hash_x64_128() local
241 for (i = 0; i < nblocks; i++) { in hash_x64_128()
[all …]
/freebsd/sys/dev/wg/
H A Dwg_crypto.c107 const uint8_t *block, size_t nblocks, in blake2s_compress() argument
114 while (nblocks > 0) { in blake2s_compress()
167 --nblocks; in blake2s_compress()
185 const size_t nblocks = DIV_ROUND_UP(inlen, BLAKE2S_BLOCK_SIZE); in blake2s_update() local
187 blake2s_compress(state, in, nblocks - 1, BLAKE2S_BLOCK_SIZE); in blake2s_update()
188 in += BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update()
189 inlen -= BLAKE2S_BLOCK_SIZE * (nblocks - 1); in blake2s_update()
/freebsd/sys/geom/uzip/
H A Dg_uzip.c240 KASSERT(start_blk < sc->nblocks, ("start_blk out of range")); in g_uzip_request()
242 KASSERT(end_blk <= sc->nblocks, ("end_blk out of range")); in g_uzip_request()
568 (sc->nblocks + 1) * sizeof(uint64_t); in g_uzip_parse_toc()
571 for (i = 0; i < sc->nblocks; i++) { in g_uzip_parse_toc()
610 for (j = i + 1; j < sc->nblocks + 1; j++) { in g_uzip_parse_toc()
641 for (i = 0; i < sc->nblocks; i++) { in g_uzip_parse_toc()
785 sc->nblocks = ntohl(header->nblocks); in g_uzip_taste()
795 total_offsets = sc->nblocks + 1; in g_uzip_taste()
799 gp->name, sc->nblocks); in g_uzip_taste()
843 if (sc->nblocks != offsets_read) { in g_uzip_taste()
[all …]
H A Dg_uzip_cloop.h58 uint32_t nblocks; /* number of blocks */ member
H A Dg_uzip_softc.h36 uint32_t nblocks; /* number of blocks */ member
/freebsd/usr.bin/mkuzip/
H A Dmkuzip.c283 hdr.nblocks = cfs.isize / cfs.blksz; in main()
288 hdr.nblocks++; in main()
290 toc = mkuz_safe_malloc((hdr.nblocks + 1) * sizeof(*toc)); in main()
298 toc[hdr.nblocks] = 0; in main()
312 iov[1].iov_len = (hdr.nblocks + 1) * sizeof(*toc); in main()
321 hdr.nblocks, iov[1].iov_len); in main()
410 hdr.nblocks = htonl(hdr.nblocks); in main()
H A Dmkuz_cloop.h49 uint32_t nblocks; /* number of blocks */ member
/freebsd/sys/contrib/ck/src/
H A Dck_ht_hash.h122 const int nblocks = len / 4; in MurmurHash3_x86_32() local
133 const uint32_t * blocks = (const uint32_t *)(const void *)(data + nblocks*4); in MurmurHash3_x86_32()
135 for(i = -nblocks; i; i++) in MurmurHash3_x86_32()
151 const uint8_t * tail = (const uint8_t*)(data + nblocks*4); in MurmurHash3_x86_32()
/freebsd/sys/contrib/openzfs/lib/libefi/
H A Drdwr_efi.c337 uint_t nblocks; in efi_alloc_and_init() local
357 nblocks = NBLOCKS(nparts, lbsize); in efi_alloc_and_init()
358 if ((nblocks * lbsize) < EFI_MIN_ARRAY_SIZE + lbsize) { in efi_alloc_and_init()
360 nblocks = EFI_MIN_ARRAY_SIZE / lbsize + 1; in efi_alloc_and_init()
389 vptr->efi_first_u_lba = nblocks + 1; in efi_alloc_and_init()
392 vptr->efi_last_u_lba = vptr->efi_last_lba - nblocks; in efi_alloc_and_init()
1123 uint_t nblocks; in efi_use_whole_disk() local
1159 nblocks = efi_label->efi_first_u_lba - 1; in efi_use_whole_disk()
1178 limit = P2ALIGN_TYPED(efi_label->efi_last_lba - nblocks - in efi_use_whole_disk()
1255 efi_label->efi_last_u_lba = efi_label->efi_last_lba - nblocks; in efi_use_whole_disk()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dbrt.c387 uint64_t nblocks = BRT_RANGESIZE_TO_NBLOCKS(brtvd->bv_size); in brt_vdev_dump() local
394 (u_longlong_t)nblocks, in brt_vdev_dump()
395 (size_t)BT_SIZEOFMAP(nblocks)); in brt_vdev_dump()
409 bitmap = kmem_alloc(nblocks + 1, KM_SLEEP); in brt_vdev_dump()
410 for (idx = 0; idx < nblocks; idx++) { in brt_vdev_dump()
416 kmem_free(bitmap, nblocks + 1); in brt_vdev_dump()
489 uint64_t nblocks, onblocks, size; in brt_vdev_realloc() local
499 nblocks = BRT_RANGESIZE_TO_NBLOCKS(size); in brt_vdev_realloc()
500 bitmap = kmem_zalloc(BT_SIZEOFMAP(nblocks), KM_SLEEP); in brt_vdev_realloc()
523 memcpy(bitmap, brtvd->bv_bitmap, MIN(BT_SIZEOFMAP(nblocks), in brt_vdev_realloc()
[all …]
H A Dddt_log.c178 uint64_t nblocks; in ddt_log_update_stats() local
180 nblocks = doi.doi_physical_blocks_512; in ddt_log_update_stats()
182 nblocks += doi.doi_physical_blocks_512; in ddt_log_update_stats()
189 ddo->ddo_dspace = nblocks << 9; in ddt_log_update_stats()
215 uint64_t nblocks = howmany(nentries, in ddt_log_begin() local
218 uint64_t length = nblocks * dlu->dlu_dn->dn_datablksz; in ddt_log_begin()
H A Dspa_log_spacemap.c576 uint64_t metaslabs_dirty, uint64_t nblocks) in summary_add_data() argument
594 e->lse_blkcount += nblocks; in summary_add_data()
598 spa_log_summary_add_incoming_blocks(spa_t *spa, uint64_t nblocks) in spa_log_summary_add_incoming_blocks() argument
600 summary_add_data(spa, spa_syncing_txg(spa), 0, 0, nblocks); in spa_log_summary_add_incoming_blocks()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/reservation/
H A Dreservation.shlib152 typeset nblocks=$((volsize / volblocksize))
155 while ((nblocks > 1)); do
156 ((nblocks += DNODES_PER_LEVEL - 1))
157 ((nblocks /= DNODES_PER_LEVEL))
158 ((numdb += nblocks))
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/
H A Dremoval.kshlib96 typeset nblocks=$((file_size / block_size))
101 bs=$block_size count=1 seek=$((RANDOM % nblocks)) >/dev/null 2>&1
/freebsd/contrib/lib9p/pytest/
H A Dnumalloc.py218 nblocks = len(self.avail)
220 if i >= nblocks:
221 if nblocks == 0:
/freebsd/sys/fs/ext2fs/
H A Dext2_inode.c127 int i, nblocks, error = 0, allerror = 0; in ext2_indirtrunc() local
142 nblocks = btodb(fs->e2fs_bsize); in ext2_indirtrunc()
199 blocksreleased += nblocks; in ext2_indirtrunc()
239 e4fs_daddr_t count, nblocks, blocksreleased = 0; in ext2_ind_truncate() local
322 nblocks = btodb(fs->e2fs_bsize); in ext2_ind_truncate()
385 blocksreleased += nblocks; in ext2_ind_truncate()
/freebsd/crypto/openssl/engines/
H A De_devcrypto.c250 size_t nblocks, ivlen; in cipher_do_cipher() local
303 nblocks = (inl + cipher_ctx->blocksize - 1) in cipher_do_cipher()
307 nblocks += iv[ivlen]; in cipher_do_cipher()
308 iv[ivlen] = (uint8_t) nblocks; in cipher_do_cipher()
309 nblocks >>= 8; in cipher_do_cipher()
326 size_t nblocks, len; in ctr_do_cipher() local
337 nblocks = inl/cipher_ctx->blocksize; in ctr_do_cipher()
338 len = nblocks * cipher_ctx->blocksize; in ctr_do_cipher()
/freebsd/sys/ufs/ffs/
H A Dffs_inode.c249 int offset, size, level, nblocks; in ffs_truncate() local
520 nblocks = btodb(fs->fs_bsize); in ffs_truncate()
587 blocksreleased += nblocks; in ffs_truncate()
710 int i, nblocks, error = 0, allerror = 0; in ffs_indirtrunc() local
729 nblocks = btodb(fs->fs_bsize); in ffs_indirtrunc()
788 blocksreleased += nblocks; in ffs_indirtrunc()
/freebsd/sys/ufs/ufs/
H A Dufs_dirhash.c349 uint64_t dirblocks, i, narrays, nblocks, nslots; in ufsdirhash_build() local
381 nblocks = (dirblocks * 3 + 1) / 2; in ufsdirhash_build()
384 nblocks * sizeof(*dh->dh_blkfree); in ufsdirhash_build()
402 dh->dh_nblk = nblocks; in ufsdirhash_build()
420 dh->dh_blkfree = malloc(nblocks * sizeof(dh->dh_blkfree[0]), in ufsdirhash_build()
/freebsd/contrib/less/
H A Dch.c416 BLOCKNUM nblocks; in sync_logfile()
420 nblocks = (ch_fpos + LBUFSIZE - 1) / LBUFSIZE; in sync_logfile()
421 for (block = 0; block < nblocks; block++) in sync_logfile()
407 BLOCKNUM nblocks; sync_logfile() local
/freebsd/usr.sbin/fwcontrol/
H A Dfwdv.c101 int nblocks[] = {250 /* NTSC */, 300 /* PAL */}; in dvrecv() local
200 nb = nblocks[system]; in dvrecv()

12