Home
last modified time | relevance | path

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

12

/freebsd-14.2/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-14.2/tests/sys/cddl/zfs/tests/reservation/
H A Dreservation.kshlib142 typeset nblocks
161 (( nblocks = volsize / volblocksize ))
163 while (( nblocks > 1 )); do
164 (( nblocks = nblocks + DNODES_PER_LEVEL - 1 ))
165 (( nblocks = nblocks / DNODES_PER_LEVEL ))
166 (( numdb = numdb + nblocks ))
/freebsd-14.2/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-14.2/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-14.2/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-14.2/usr.bin/mkuzip/
H A Dmkuzip.c284 hdr.nblocks = cfs.isize / cfs.blksz; in main()
289 hdr.nblocks++; in main()
291 toc = mkuz_safe_malloc((hdr.nblocks + 1) * sizeof(*toc)); in main()
299 toc[hdr.nblocks] = 0; in main()
313 iov[1].iov_len = (hdr.nblocks + 1) * sizeof(*toc); in main()
322 hdr.nblocks, iov[1].iov_len); in main()
411 hdr.nblocks = htonl(hdr.nblocks); in main()
H A Dmkuz_cloop.h49 uint32_t nblocks; /* number of blocks */ member
/freebsd-14.2/sys/geom/uzip/
H A Dg_uzip.c568 (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()
874 sc->toc[sc->nblocks].offset != 0) { in g_uzip_taste()
883 sc->toc[sc->nblocks].offset = pp->mediasize; 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-14.2/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-14.2/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()
1339 int nblocks; in efi_write() local
1373 nblocks = dk_ioc.dki_length / vtoc->efi_lbasize - 1; in efi_write()
[all …]
/freebsd-14.2/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-14.2/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-14.2/contrib/lib9p/pytest/
H A Dnumalloc.py218 nblocks = len(self.avail)
220 if i >= nblocks:
221 if nblocks == 0:
/freebsd-14.2/sys/fs/ext2fs/
H A Dext2_inode.c129 int i, nblocks, error = 0, allerror = 0; in ext2_indirtrunc() local
144 nblocks = btodb(fs->e2fs_bsize); in ext2_indirtrunc()
201 blocksreleased += nblocks; in ext2_indirtrunc()
241 e4fs_daddr_t count, nblocks, blocksreleased = 0; in ext2_ind_truncate() local
324 nblocks = btodb(fs->e2fs_bsize); in ext2_ind_truncate()
387 blocksreleased += nblocks; in ext2_ind_truncate()
/freebsd-14.2/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-14.2/sys/ufs/ffs/
H A Dffs_inode.c251 int offset, size, level, nblocks; in ffs_truncate() local
522 nblocks = btodb(fs->fs_bsize); in ffs_truncate()
589 blocksreleased += nblocks; in ffs_truncate()
712 int i, nblocks, error = 0, allerror = 0; in ffs_indirtrunc() local
731 nblocks = btodb(fs->fs_bsize); in ffs_indirtrunc()
790 blocksreleased += nblocks; in ffs_indirtrunc()
/freebsd-14.2/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-cred.c108 if (gi->nblocks > 0) in crgetgroups()
/freebsd-14.2/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-14.2/contrib/less/
H A Dch.c407 BLOCKNUM nblocks; in sync_logfile() local
411 nblocks = (ch_fpos + LBUFSIZE - 1) / LBUFSIZE; in sync_logfile()
412 for (block = 0; block < nblocks; block++) in sync_logfile()
/freebsd-14.2/sys/contrib/openzfs/module/zfs/
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()
H A Dbrt.c493 uint64_t nblocks, size; in brt_vdev_realloc() local
503 nblocks = BRT_RANGESIZE_TO_NBLOCKS(size); in brt_vdev_realloc()
504 bitmap = kmem_zalloc(BT_SIZEOFMAP(nblocks), KM_SLEEP); in brt_vdev_realloc()
529 memcpy(bitmap, brtvd->bv_bitmap, MIN(BT_SIZEOFMAP(nblocks), in brt_vdev_realloc()
539 brtvd->bv_nblocks = nblocks; in brt_vdev_realloc()
/freebsd-14.2/usr.sbin/fwcontrol/
H A Dfwdv.c101 int nblocks[] = {250 /* NTSC */, 300 /* PAL */}; in dvrecv() local
200 nb = nblocks[system]; in dvrecv()

12