Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/randwritecomp/
H A Drandwritecomp.c108 sequential_writes(int fd, char *buf, uint64_t nblocks, int64_t n) in sequential_writes() argument
115 j = lrand48() % nblocks; in sequential_writes()
118 if (j >= nblocks) in sequential_writes()
124 random_writes(int fd, char *buf, uint64_t nblocks, int64_t n) in random_writes() argument
128 rwc_pwrite(fd, buf, BLOCKSZ, (lrand48() % nblocks) * BLOCKSZ); in random_writes()
139 uint64_t nblocks; in main() local
169 nblocks = ss.st_size / BLOCKSZ; in main()
170 if (nblocks == 0) { in main()
189 sequential_writes(fd, buf, nblocks, n); in main()
191 random_writes(fd, buf, nblocks, n); in main()
/f-stack/app/redis-5.0.5/deps/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()
227 const int nblocks = len / 16; in hash_x64_128() local
240 for (i = 0; i < nblocks; i++) { in hash_x64_128()
[all …]
/f-stack/freebsd/mips/nlm/
H A Dboard.c425 naep->nblocks = nae_num_complex(nae_pcibase); in nlm_setup_xlp_board()
435 naep->blockmask = (1 << naep->nblocks) - 1; in nlm_setup_xlp_board()
441 naep->nblocks = naep->nblocks - 1; in nlm_setup_xlp_board()
442 naep->blockmask = (1 << naep->nblocks) - 1; in nlm_setup_xlp_board()
457 for (block = 0; block < naep->nblocks; block++) { in nlm_setup_xlp_board()
H A Dboard.h119 int nblocks; member
/f-stack/freebsd/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()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/removal/
H A Dremoval.kshlib103 typeset nblocks=$((file_size / block_size))
108 bs=$block_size count=1 seek=$((RANDOM % nblocks)) >/dev/null 2>&1
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/reservation/
H A Dreservation.shlib162 typeset nblocks=$((volsize / volblocksize))
165 while ((nblocks > 1)); do
166 ((nblocks += DNODES_PER_LEVEL - 1))
167 ((nblocks /= DNODES_PER_LEVEL))
168 ((numdb += nblocks))
/f-stack/freebsd/contrib/openzfs/lib/libefi/
H A Drdwr_efi.c380 uint_t nblocks; in efi_alloc_and_init() local
400 nblocks = NBLOCKS(nparts, lbsize); in efi_alloc_and_init()
401 if ((nblocks * lbsize) < EFI_MIN_ARRAY_SIZE + lbsize) { in efi_alloc_and_init()
403 nblocks = EFI_MIN_ARRAY_SIZE / lbsize + 1; in efi_alloc_and_init()
432 vptr->efi_first_u_lba = nblocks + 1; in efi_alloc_and_init()
435 vptr->efi_last_u_lba = vptr->efi_last_lba - nblocks; in efi_alloc_and_init()
1169 uint_t nblocks; in efi_use_whole_disk() local
1205 nblocks = efi_label->efi_first_u_lba - 1; in efi_use_whole_disk()
1385 int nblocks; in efi_write() local
1419 nblocks = dk_ioc.dki_length / vtoc->efi_lbasize - 1; in efi_write()
[all …]
/f-stack/freebsd/mips/nlm/dev/net/
H A Dxlpge.h69 u_int nblocks; member
H A Dxlpge.c347 nlm_nae_init_netior(nae_base, sc->nblocks); in nlm_setup_interface()
395 nlm_nae_flush_free_fifo(nae_base, sc->nblocks); in nlm_xlpnae_init()
569 sc->nblocks = nae_ivars->nblocks; in nlm_xlpnae_attach()
584 for (nblock = 0; nblock < sc->nblocks; nblock++) { in nlm_xlpnae_attach()
592 if (sc->nblocks == 5) in nlm_xlpnae_attach()
595 sc->max_ports = sc->nblocks * PORTS_PER_CMPLX; in nlm_xlpnae_attach()
609 for (i = 0; i < sc->nblocks; i++) { in nlm_xlpnae_attach()
H A Dnae.c49 nlm_nae_flush_free_fifo(uint64_t nae_base, int nblocks) in nlm_nae_flush_free_fifo() argument
53 fifo_mask = (1 << (4 * nblocks)) - 1; in nlm_nae_flush_free_fifo()
776 nlm_nae_init_netior(uint64_t nae_base, int nblocks) in nlm_nae_init_netior() argument
780 if (nblocks == 5) in nlm_nae_init_netior()
785 switch (nblocks) { in nlm_nae_init_netior()
796 printf("WARNING: unsupported blocks %d\n", nblocks); in nlm_nae_init_netior()
/f-stack/freebsd/contrib/openzfs/module/os/linux/spl/
H A Dspl-cred.c108 if (gi->nblocks > 0) in crgetgroups()
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dspa_log_spacemap.c563 uint64_t nblocks) in summary_add_data() argument
575 e->lse_blkcount += nblocks; in summary_add_data()
579 spa_log_summary_add_incoming_blocks(spa_t *spa, uint64_t nblocks) in spa_log_summary_add_incoming_blocks() argument
581 summary_add_data(spa, spa_syncing_txg(spa), 0, nblocks); in spa_log_summary_add_incoming_blocks()
H A Dzap.c85 static uint64_t zap_allocate_blocks(zap_t *zap, int nblocks);
407 zap_allocate_blocks(zap_t *zap, int nblocks) in zap_allocate_blocks() argument
411 zap_f_phys(zap)->zap_freeblk += nblocks; in zap_allocate_blocks()
H A Dsa.c2137 sa_object_size(sa_handle_t *hdl, uint32_t *blksize, u_longlong_t *nblocks) in sa_object_size() argument
2140 blksize, nblocks); in sa_object_size()
/f-stack/freebsd/mips/nlm/hal/
H A Dnae.h606 void nlm_nae_flush_free_fifo(uint64_t nae_base, int nblocks);
632 int nlm_nae_init_netior(uint64_t nae_base, int nblocks);
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs_dataset.c5401 volsize_from_vdevs(zpool_handle_t *zhp, uint64_t nblocks, uint64_t blksize) in volsize_from_vdevs() argument
5411 return (nblocks * blksize); in volsize_from_vdevs()
5470 volsize = nblocks * asize * SPA_OLD_MAXBLOCKSIZE / tsize; in volsize_from_vdevs()
5477 ret = nblocks * blksize; in volsize_from_vdevs()
5495 uint64_t nblocks, volblocksize; in zvol_volsize_to_reservation() local
5509 nblocks = volsize / volblocksize; in zvol_volsize_to_reservation()
5514 volsize = volsize_from_vdevs(zph, nblocks, volblocksize); in zvol_volsize_to_reservation()
5519 while (nblocks > 1) { in zvol_volsize_to_reservation()
5520 nblocks += DNODES_PER_LEVEL - 1; in zvol_volsize_to_reservation()
5521 nblocks /= DNODES_PER_LEVEL; in zvol_volsize_to_reservation()
[all …]
/f-stack/freebsd/contrib/octeon-sdk/cvmx-malloc/
H A Dmalloc.c3893 int nblocks; in mALLINFo() local
3903 nblocks = 1; /* top always exists */ in mALLINFo()
3922 ++nblocks; in mALLINFo()
3928 mi.ordblks = nblocks; in mALLINFo()
/f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_vfsops.c1043 u_longlong_t nblocks; in zfs_statfs_project() local
1049 sa_object_size(zp->z_sa_hdl, &blksize, &nblocks); in zfs_statfs_project()
1053 used = blksize * nblocks; in zfs_statfs_project()
H A Dzfs_vnops_os.c1654 u_longlong_t nblocks; in zfs_getattr_fast() local
1669 sa_object_size(zp->z_sa_hdl, &blksize, &nblocks); in zfs_getattr_fast()
1671 sp->blocks = nblocks; in zfs_getattr_fast()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vnops_os.c1983 u_longlong_t nblocks; in zfs_getattr() local
2157 sa_object_size(zp->z_sa_hdl, &blksize, &nblocks); in zfs_getattr()
2159 vap->va_bytes = nblocks << 9; /* nblocks * 512 */ in zfs_getattr()