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

/freebsd-head/libexec/rtld-elf/
H A Drtld_malloc.c176 int nblks; /* how many blocks we get */ local
181 nblks = amt / sz;
184 nblks = 1;
197 while (--nblks > 0) {
/freebsd-head/sys/contrib/openzfs/module/zfs/
H A Ddmu_zfetch.c199 * specified with blkid and nblks arguments with prefetch stream, predicts
206 dmu_zfetch(zfetch_t *zf, uint64_t blkid, uint64_t nblks, boolean_t fetch_data, argument
214 end_of_access_blkid = blkid + nblks;
257 nblks--;
258 if (nblks == 0) {
313 pf_ahead_blks = zs->zs_pf_blkid - blkid + nblks;
336 pf_ahead_blks = zs->zs_ipf_blkid - blkid + nblks + pf_nblks;
H A Ddnode_sync.c265 free_children(dmu_buf_impl_t *db, uint64_t blkid, uint64_t nblks, argument
319 end = (blkid + nblks - 1) >> shift;
340 free_children(subdb, blkid, nblks, free_indirects, tx);
363 dnode_sync_free_range_impl(dnode_t *dn, uint64_t blkid, uint64_t nblks, argument
374 if (blkid + nblks > dn->dn_phys->dn_maxblkid) {
375 nblks = dn->dn_phys->dn_maxblkid - blkid + 1;
385 ASSERT3U(blkid + nblks, <=, dn->dn_phys->dn_nblkptr);
386 free_blocks(dn, bp + blkid, nblks, tx);
391 int end = (blkid + nblks - 1) >> shift;
403 free_children(db, blkid, nblks, free_indirect
441 dnode_sync_free_range(void *arg, uint64_t blkid, uint64_t nblks) argument
[all...]
H A Ddmu.c499 uint64_t blkid, nblks, i; local
517 nblks = (P2ROUNDUP(offset + length, 1ULL << blkshift) -
530 nblks = 1;
532 dbp = kmem_zalloc(sizeof (dmu_buf_t *) * nblks, KM_SLEEP);
536 for (i = 0; i < nblks; i++) {
540 dmu_buf_rele_array(dbp, nblks, tag);
553 dmu_zfetch(&dn->dn_zfetch, blkid, nblks,
561 dmu_buf_rele_array(dbp, nblks, tag);
567 for (i = 0; i < nblks; i++) {
577 dmu_buf_rele_array(dbp, nblks, ta
656 int nblks, err; local
[all...]
H A Ddnode.c2045 uint64_t blkoff, blkid, nblks; local
2074 nblks = 1;
2170 nblks = len >> blkshift;
2172 nblks += 1;
2203 last = (blkid + nblks - 1) >> epbs;
2255 range_tree_clear(dn->dn_free_ranges[txgoff], blkid, nblks);
2256 range_tree_add(dn->dn_free_ranges[txgoff], blkid, nblks);
2258 dprintf_dnode(dn, "blkid=%llu nblks=%llu txg=%llu\n",
2259 blkid, nblks, tx->tx_txg);
2262 dbuf_free_range(dn, blkid, blkid + nblks
[all...]
H A Ddsl_prop.c960 int nblks = 0; local
971 nblks = 2 * fnvlist_num_pairs(props);
974 &dpsa, nblks, ZFS_SPACE_CHECK_RESERVED));
H A Ddmu_send.c1863 uint64_t nblks = (offset / datablksz) - local
1866 nblks, NULL, datablksz);
1867 blkid += nblks;
/freebsd-head/usr.bin/mkimg/
H A Dvtoc8.c84 be32enc(&vtoc8.map[VTOC_RAW_PART].nblks, imgsz);
89 be32enc(&vtoc8.map[n].nblks, part->size);
H A Dvhd.c279 lba_t blk, blkcnt, nblks; local
334 nblks = rawsz / secsz;
335 while (blk < nblks) {
345 if (blk + blkcnt > nblks)
346 blkcnt = nblks - blk;
/freebsd-head/sys/sys/disk/
H A Dvtoc.h98 uint32_t nblks; member in struct:vtoc8::__anon44
/freebsd-head/sys/geom/part/
H A Dg_part_vtoc8.c198 be32enc(&table->vtoc.map[index].nblks, size);
250 be32enc(&table->vtoc.map[VTOC_RAW_PART].nblks, msize);
348 be32enc(&table->vtoc.map[VTOC_RAW_PART].nblks, msize);
382 be32enc(&table->vtoc.map[entry->gpe_index - 1].nblks, size);
515 size = be32dec(&table->vtoc.map[index].nblks);
589 be32enc(&table->vtoc.map[index].nblks, 0);
/freebsd-head/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-head/sys/kern/
H A Dvfs_cluster.c191 int nblks; local
212 nblks = howmany(totread, size);
213 if (nblks > racluster)
214 nblks = racluster;
219 if (nblks > 1) {
235 ncontig = min(ncontig + 1, nblks);
236 if (ncontig < nblks)
237 nblks = ncontig;
239 blkno, size, nblks, gbflags, bp);
H A Dsubr_blist.c992 daddr_t nblks; local
998 nblks = bitcount64(scan->bm_bitmap & mask);
1001 return (nblks);
1015 daddr_t blk, endBlk, i, nblks, skip; local
1031 nblks = 0;
1037 nblks += blst_meta_fill(&scan[i], allocBlk, count,
1043 return (nblks);
H A Dvfs_aio.c2339 int error, nblks; local
2362 nblks = btodb(nbytes);
2364 job->outblock += nblks;
2366 job->inblock += nblks;
/freebsd-head/sys/vm/
H A Dswap_pager.c2366 swaponsomething(struct vnode *vp, void *id, u_long nblks, argument
2373 * nblks is in DEV_BSIZE'd chunks, convert to PAGE_SIZE'd chunks.
2374 * First chop nblks off to page-align it, then convert.
2378 nblks &= ~(ctodb(1) - 1);
2379 nblks = dbtoc(nblks);
2382 sp->sw_blist = blist_create(nblks, M_WAITOK);
2386 sp->sw_nblks = nblks;
2397 nblks - howmany(BBSIZE, PAGE_SIZE));
2412 sp->sw_end = dvbase + nblks;
2483 u_long nblks; local
2914 u_long nblks; local
3010 swaponvp(struct thread *td, struct vnode *vp, u_long nblks) argument
[all...]
/freebsd-head/usr.sbin/pstat/
H A Dpstat.c489 print_swap_line(const char *swdevname, intmax_t nblks, intmax_t bused, argument
504 CONVERT_BLOCKS(nblks), "",
516 (intmax_t)CONVERT(nblks),
/freebsd-head/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.h78 void bcache_init(size_t nblks, size_t bsize);
H A Dpart.c588 entry->part.end = be32toh(dl->map[i].nblks) +
/freebsd-head/stand/efi/libefi/
H A Defipart.c1004 efipart_readwrite(EFI_BLOCK_IO *blkio, int rw, daddr_t blk, daddr_t nblks, argument
1013 if ((blk + nblks - 1) > blkio->Media->LastBlock)
1019 nblks * blkio->Media->BlockSize, buf);
1025 nblks * blkio->Media->BlockSize, buf);
1033 blk, nblks, EFI_ERROR_CODE(status));
/freebsd-head/tools/tools/vhba/
H A Dvhba.c168 vhba_rwparm(uint8_t *cdb, uint64_t *offset, uint32_t *tl, uint64_t nblks, uint32_t blk_shift) argument
225 if (lba + cnt > nblks) {
/freebsd-head/sys/dev/twe/
H A Dtwevar.h157 u_int32_t lba, void *data, int nblks);
H A Dtwe.c484 twe_dump_blocks(struct twe_softc *sc, int unit, u_int32_t lba, void *data, int nblks) argument
495 tr->tr_length = nblks * TWE_BLOCK_SIZE;
502 cmd->io.block_count = nblks;

Completed in 218 milliseconds