Searched refs:nblks (Results 1 - 18 of 18) sorted by relevance

/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Ddmu_zfetch.c343 * Process stream hit access for nblks blocks starting at zs_blkid. Return
347 dmu_zfetch_hit(zstream_t *zs, uint64_t nblks) argument
358 if (r->start == 0 || r->start > nblks)
360 if (r->end >= nblks) {
361 nblks = r->end;
371 ASSERT3U(zs->zs_ranges[i].start, >, nblks);
372 ASSERT3U(zs->zs_ranges[i].end, >, nblks);
373 zs->zs_ranges[j].start = zs->zs_ranges[i].start - nblks;
374 zs->zs_ranges[j].end = zs->zs_ranges[i].end - nblks;
382 zs->zs_blkid += nblks;
391 dmu_zfetch_future(zstream_t *zs, uint64_t blkid, uint64_t nblks) argument
469 dmu_zfetch_prepare(zfetch_t *zf, uint64_t blkid, uint64_t nblks, boolean_t fetch_data, boolean_t have_lock) argument
738 dmu_zfetch(zfetch_t *zf, uint64_t blkid, uint64_t nblks, boolean_t fetch_data, boolean_t missed, boolean_t have_lock) argument
[all...]
H A Ddnode_sync.c273 free_children(dmu_buf_impl_t *db, uint64_t blkid, uint64_t nblks, argument
327 end = (blkid + nblks - 1) >> shift;
348 free_children(subdb, blkid, nblks, free_indirects, tx);
371 dnode_sync_free_range_impl(dnode_t *dn, uint64_t blkid, uint64_t nblks, argument
382 if (blkid + nblks > dn->dn_phys->dn_maxblkid) {
383 nblks = dn->dn_phys->dn_maxblkid - blkid + 1;
393 ASSERT3U(blkid + nblks, <=, dn->dn_phys->dn_nblkptr);
394 free_blocks(dn, bp + blkid, nblks, tx);
399 int end = (blkid + nblks - 1) >> shift;
411 free_children(db, blkid, nblks, free_indirect
449 dnode_sync_free_range(void *arg, uint64_t blkid, uint64_t nblks) argument
[all...]
H A Ddmu.c517 uint64_t blkid, nblks, i; local
539 nblks = (P2ROUNDUP(offset + length, 1ULL << blkshift) -
552 nblks = 1;
554 dbp = kmem_zalloc(sizeof (dmu_buf_t *) * nblks, KM_SLEEP);
566 zs = dmu_zfetch_prepare(&dn->dn_zfetch, blkid, nblks, read,
569 for (i = 0; i < nblks; i++) {
577 dmu_buf_rele_array(dbp, nblks, tag);
592 if (i == nblks - 1 && blkid + i < dn->dn_maxblkid &&
608 zfs_racct_write(length, nblks);
618 dmu_buf_rele_array(dbp, nblks, ta
[all...]
H A Ddnode.c2240 uint64_t blkoff, blkid, nblks; local
2269 nblks = 1;
2326 nblks = len >> blkshift;
2328 nblks += 1;
2359 last = (blkid + nblks - 1) >> epbs;
2411 range_tree_clear(dn->dn_free_ranges[txgoff], blkid, nblks);
2412 range_tree_add(dn->dn_free_ranges[txgoff], blkid, nblks);
2414 dprintf_dnode(dn, "blkid=%llu nblks=%llu txg=%llu\n",
2415 (u_longlong_t)blkid, (u_longlong_t)nblks,
2419 dbuf_free_range(dn, blkid, blkid + nblks
[all...]
H A Ddsl_prop.c1035 int nblks = 0; local
1046 nblks = 2 * fnvlist_num_pairs(props);
1049 &dpsa, nblks, ZFS_SPACE_CHECK_RESERVED));
H A Ddmu_send.c1880 uint64_t nblks = (offset / datablksz) - local
1883 nblks, NULL, datablksz);
1884 blkid += nblks;
/freebsd-current/libexec/rtld-elf/
H A Drtld_malloc.c201 int nblks; /* how many blocks we get */ local
206 nblks = amt / sz;
209 nblks = 1;
224 while (--nblks > 0) {
/freebsd-current/usr.bin/mkimg/
H A Dvhd.c277 lba_t blk, blkcnt, nblks; local
332 nblks = rawsz / secsz;
333 while (blk < nblks) {
343 if (blk + blkcnt > nblks)
344 blkcnt = nblks - blk;
/freebsd-current/contrib/tcsh/
H A Dtc.alloc.c256 int nblks; /* become nblks blocks of the desired size */ local
276 nblks = 1 << (rnu - (bucket + 3)); /* how many blocks to get */
289 nblks--;
296 while (--nblks > 0) {
/freebsd-current/sys/kern/
H A Dvfs_cluster.c178 int nblks; local
199 nblks = howmany(totread, size);
200 if (nblks > racluster)
201 nblks = racluster;
206 if (nblks > 1) {
222 ncontig = min(ncontig + 1, nblks);
223 if (ncontig < nblks)
224 nblks = ncontig;
226 blkno, size, nblks, gbflags, bp);
H A Dsubr_blist.c969 daddr_t nblks; local
975 nblks = bitcount64(scan->bm_bitmap & mask);
978 return (nblks);
992 daddr_t blk, endBlk, i, nblks, skip; local
1008 nblks = 0;
1014 nblks += blst_meta_fill(&scan[i], allocBlk, count,
1020 return (nblks);
H A Dvfs_aio.c2474 int opcode, nblks; local
2484 nblks = btodb(nbytes);
2493 atomic_add_int(&job->outblock, nblks);
2495 atomic_add_int(&job->inblock, nblks);
/freebsd-current/sys/vm/
H A Dswap_pager.c2405 swaponsomething(struct vnode *vp, void *id, u_long nblks, argument
2412 * nblks is in DEV_BSIZE'd chunks, convert to PAGE_SIZE'd chunks.
2413 * First chop nblks off to page-align it, then convert.
2417 nblks &= ~(ctodb(1) - 1);
2418 nblks = dbtoc(nblks);
2421 sp->sw_blist = blist_create(nblks, M_WAITOK);
2425 sp->sw_nblks = nblks;
2436 nblks - howmany(BBSIZE, PAGE_SIZE));
2451 sp->sw_end = dvbase + nblks;
2529 u_long nblks; local
2973 u_long nblks; local
3074 swaponvp(struct thread *td, struct vnode *vp, u_long nblks) argument
[all...]
/freebsd-current/usr.sbin/pstat/
H A Dpstat.c475 print_swap_line(const char *swdevname, intmax_t nblks, intmax_t bused, argument
490 CONVERT_BLOCKS(nblks), "",
502 (intmax_t)CONVERT(nblks),
/freebsd-current/stand/efi/libefi/
H A Defipart.c1005 efipart_readwrite(EFI_BLOCK_IO *blkio, int rw, daddr_t blk, daddr_t nblks, argument
1016 if ((blk + nblks - 1) > blkio->Media->LastBlock)
1022 nblks * blkio->Media->BlockSize, buf);
1028 nblks * blkio->Media->BlockSize, buf);
1036 blk, nblks, EFI_ERROR_CODE(status));
/freebsd-current/tools/tools/vhba/
H A Dvhba.c167 vhba_rwparm(uint8_t *cdb, uint64_t *offset, uint32_t *tl, uint64_t nblks, uint32_t blk_shift) argument
224 if (lba + cnt > nblks) {
/freebsd-current/stand/common/
H A Dbcache.c95 * Initialise the cache for (nblks) of (bsize).
98 bcache_init(size_t nblks, size_t bsize) argument
101 bcache_total_nblks = nblks;
H A Dbootstrap.h80 void bcache_init(size_t nblks, size_t bsize);

Completed in 178 milliseconds