Home
last modified time | relevance | path

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

/freebsd/libexec/rtld-elf/
H A Drtld_malloc.c201 int nblks; /* how many blocks we get */ in morecore() local
206 nblks = amt / sz; in morecore()
209 nblks = 1; in morecore()
224 while (--nblks > 0) { in morecore()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddnode_sync.c273 free_children(dmu_buf_impl_t *db, uint64_t blkid, uint64_t nblks, in free_children() argument
327 end = (blkid + nblks - 1) >> shift; in free_children()
348 free_children(subdb, blkid, nblks, free_indirects, tx); in free_children()
371 dnode_sync_free_range_impl(dnode_t *dn, uint64_t blkid, uint64_t nblks, in dnode_sync_free_range_impl() argument
382 if (blkid + nblks > dn->dn_phys->dn_maxblkid) { in dnode_sync_free_range_impl()
383 nblks = dn->dn_phys->dn_maxblkid - blkid + 1; in dnode_sync_free_range_impl()
393 ASSERT3U(blkid + nblks, <=, dn->dn_phys->dn_nblkptr); in dnode_sync_free_range_impl()
394 free_blocks(dn, bp + blkid, nblks, tx); in dnode_sync_free_range_impl()
399 int end = (blkid + nblks - 1) >> shift; in dnode_sync_free_range_impl()
411 free_children(db, blkid, nblks, free_indirects, tx); in dnode_sync_free_range_impl()
[all …]
H A Ddmu_zfetch.c343 * Process stream hit access for nblks blocks starting at zs_blkid. Return in dmu_zfetch_prepare()
347 dmu_zfetch_hit(zstream_t *zs, uint64_t nblks) in dmu_zfetch_prepare()
358 if (r->start == 0 || r->start > nblks) in dmu_zfetch_prepare()
360 if (r->end >= nblks) { in dmu_zfetch_prepare()
361 nblks = r->end; in dmu_zfetch_prepare()
371 ASSERT3U(zs->zs_ranges[i].start, >, nblks); in dmu_zfetch_prepare()
372 ASSERT3U(zs->zs_ranges[i].end, >, nblks); in dmu_zfetch_prepare()
373 zs->zs_ranges[j].start = zs->zs_ranges[i].start - nblks; in dmu_zfetch_prepare()
374 zs->zs_ranges[j].end = zs->zs_ranges[i].end - nblks; in dmu_zfetch_prepare()
382 zs->zs_blkid += nblks; in dmu_zfetch_prepare()
327 dmu_zfetch_prepare(zfetch_t * zf,uint64_t blkid,uint64_t nblks,boolean_t fetch_data,boolean_t have_lock) dmu_zfetch_prepare() argument
563 dmu_zfetch(zfetch_t * zf,uint64_t blkid,uint64_t nblks,boolean_t fetch_data,boolean_t missed,boolean_t have_lock) dmu_zfetch() argument
[all...]
H A Ddmu.c521 uint64_t blkid, nblks, i; in dmu_buf_hold_array_by_dnode() local
543 nblks = (P2ROUNDUP(offset + length, 1ULL << blkshift) - in dmu_buf_hold_array_by_dnode()
557 nblks = 1; in dmu_buf_hold_array_by_dnode()
559 dbp = kmem_zalloc(sizeof (dmu_buf_t *) * nblks, KM_SLEEP); in dmu_buf_hold_array_by_dnode()
571 zs = dmu_zfetch_prepare(&dn->dn_zfetch, blkid, nblks, read, in dmu_buf_hold_array_by_dnode()
574 for (i = 0; i < nblks; i++) { in dmu_buf_hold_array_by_dnode()
582 dmu_buf_rele_array(dbp, nblks, tag); in dmu_buf_hold_array_by_dnode()
597 if (i == nblks - 1 && blkid + i < dn->dn_maxblkid && in dmu_buf_hold_array_by_dnode()
621 zfs_racct_write(dn->dn_objset->os_spa, length, nblks, flags); in dmu_buf_hold_array_by_dnode()
631 dmu_buf_rele_array(dbp, nblks, tag); in dmu_buf_hold_array_by_dnode()
[all …]
H A Ddnode.c2270 uint64_t blkoff, blkid, nblks; in dnode_free_range() local
2299 nblks = 1; in dnode_free_range()
2356 nblks = len >> blkshift; in dnode_free_range()
2358 nblks += 1; in dnode_free_range()
2389 last = (blkid + nblks - 1) >> epbs; in dnode_free_range()
2441 range_tree_clear(dn->dn_free_ranges[txgoff], blkid, nblks); in dnode_free_range()
2442 range_tree_add(dn->dn_free_ranges[txgoff], blkid, nblks); in dnode_free_range()
2445 (u_longlong_t)blkid, (u_longlong_t)nblks, in dnode_free_range()
2449 dbuf_free_range(dn, blkid, blkid + nblks - 1, tx); in dnode_free_range()
H A Ddsl_prop.c1039 int nblks = 0; in dsl_props_set() local
1050 nblks = 2 * fnvlist_num_pairs(props); in dsl_props_set()
1053 &dpsa, nblks, ZFS_SPACE_CHECK_RESERVED)); in dsl_props_set()
H A Ddmu_send.c1882 uint64_t nblks = (offset / datablksz) - in send_reader_thread() local
1885 nblks, NULL, datablksz); in send_reader_thread()
1886 blkid += nblks; in send_reader_thread()
/freebsd/usr.bin/mkimg/
H A Dvhd.c277 lba_t blk, blkcnt, nblks; in vhd_dyn_write() local
332 nblks = rawsz / secsz; in vhd_dyn_write()
333 while (blk < nblks) { in vhd_dyn_write()
343 if (blk + blkcnt > nblks) in vhd_dyn_write()
344 blkcnt = nblks - blk; in vhd_dyn_write()
/freebsd/sys/kern/
H A Dvfs_cluster.c178 int nblks; in cluster_read() local
199 nblks = howmany(totread, size); in cluster_read()
200 if (nblks > racluster) in cluster_read()
201 nblks = racluster; in cluster_read()
206 if (nblks > 1) { in cluster_read()
222 ncontig = min(ncontig + 1, nblks); in cluster_read()
223 if (ncontig < nblks) in cluster_read()
224 nblks = ncontig; in cluster_read()
226 blkno, size, nblks, gbflags, bp); in cluster_read()
H A Dsubr_blist.c969 daddr_t nblks; in blst_leaf_fill() local
975 nblks = bitcount64(scan->bm_bitmap & mask); in blst_leaf_fill()
978 return (nblks); in blst_leaf_fill()
992 daddr_t blk, endBlk, i, nblks, skip; in blst_meta_fill() local
1008 nblks = 0; in blst_meta_fill()
1014 nblks += blst_meta_fill(&scan[i], allocBlk, count, in blst_meta_fill()
1020 return (nblks); in blst_meta_fill()
H A Dvfs_aio.c2447 int opcode, nblks; in aio_biowakeup() local
2457 nblks = btodb(nbytes); in aio_biowakeup()
2466 atomic_add_int(&job->outblock, nblks); in aio_biowakeup()
2468 atomic_add_int(&job->inblock, nblks); in aio_biowakeup()
/freebsd/sys/vm/
H A Dswap_pager.c2735 swaponsomething(struct vnode *vp, void *id, u_long nblks, in swaponsomething() argument
2747 nblks &= ~(ctodb(1) - 1); in swaponsomething()
2748 nblks = dbtoc(nblks); in swaponsomething()
2751 sp->sw_blist = blist_create(nblks, M_WAITOK); in swaponsomething()
2755 sp->sw_nblks = nblks; in swaponsomething()
2766 nblks - howmany(BBSIZE, PAGE_SIZE)); in swaponsomething()
2781 sp->sw_end = dvbase + nblks; in swaponsomething()
2784 swap_pager_avail += nblks - howmany(BBSIZE, PAGE_SIZE); in swaponsomething()
2785 swap_total += nblks; in swaponsomething()
2859 u_long nblks; in swapoff_one() local
[all …]
/freebsd/contrib/tcsh/
H A Dtc.alloc.c256 int nblks; /* become nblks blocks of the desired size */ in morecore() local
276 nblks = 1 << (rnu - (bucket + 3)); /* how many blocks to get */ in morecore()
289 nblks--; in morecore()
296 while (--nblks > 0) { in morecore()
/freebsd/usr.sbin/pstat/
H A Dpstat.c475 print_swap_line(const char *swdevname, intmax_t nblks, intmax_t bused, in print_swap_line() argument
490 CONVERT_BLOCKS(nblks), "", in print_swap_line()
502 (intmax_t)CONVERT(nblks), in print_swap_line()
/freebsd/stand/efi/libefi/
H A Defipart.c1005 efipart_readwrite(EFI_BLOCK_IO *blkio, int rw, daddr_t blk, daddr_t nblks, in efipart_readwrite() argument
1016 if ((blk + nblks - 1) > blkio->Media->LastBlock) in efipart_readwrite()
1022 nblks * blkio->Media->BlockSize, buf); in efipart_readwrite()
1028 nblks * blkio->Media->BlockSize, buf); in efipart_readwrite()
1036 blk, nblks, EFI_ERROR_CODE(status)); in efipart_readwrite()
/freebsd/stand/common/
H A Dbcache.c98 bcache_init(size_t nblks, size_t bsize) in bcache_init() argument
101 bcache_total_nblks = nblks; in bcache_init()
H A Dbootstrap.h80 void bcache_init(size_t nblks, size_t bsize);
/freebsd/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) in vhba_rwparm() argument
224 if (lba + cnt > nblks) { in vhba_rwparm()