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/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddmu_zfetch.c216 * specified with blkid and nblks arguments with prefetch stream, predicts
223 dmu_zfetch(zfetch_t *zf, uint64_t blkid, uint64_t nblks, boolean_t fetch_data) argument
229 uint64_t end_of_access_blkid = blkid + nblks;
271 nblks--;
272 if (nblks == 0) {
321 pf_ahead_blks = zs->zs_pf_blkid - blkid + nblks;
344 pf_ahead_blks = zs->zs_ipf_blkid - blkid + nblks + pf_nblks;
H A Ddnode_sync.c248 free_children(dmu_buf_impl_t *db, uint64_t blkid, uint64_t nblks, argument
300 end = (blkid + nblks - 1) >> shift;
319 free_children(subdb, blkid, nblks, free_indirects, tx);
340 dnode_sync_free_range_impl(dnode_t *dn, uint64_t blkid, uint64_t nblks, argument
351 if (blkid + nblks > dn->dn_phys->dn_maxblkid) {
352 nblks = dn->dn_phys->dn_maxblkid - blkid + 1;
362 ASSERT3U(blkid + nblks, <=, dn->dn_phys->dn_nblkptr);
363 free_blocks(dn, bp + blkid, nblks, tx);
368 int end = (blkid + nblks - 1) >> shift;
381 free_children(db, blkid, nblks, free_indirect
404 dnode_sync_free_range(void *arg, uint64_t blkid, uint64_t nblks) argument
[all...]
H A Ddmu.c466 uint64_t blkid, nblks, i; local
484 nblks = (P2ROUNDUP(offset + length, 1ULL << blkshift) -
497 nblks = 1;
499 dbp = kmem_zalloc(sizeof (dmu_buf_t *) * nblks, KM_SLEEP);
505 racct_add_force(curproc, RACCT_WRITEIOPS, nblks);
512 for (i = 0; i < nblks; i++) {
516 dmu_buf_rele_array(dbp, nblks, tag);
533 dmu_zfetch(&dn->dn_zfetch, blkid, nblks,
541 dmu_buf_rele_array(dbp, nblks, tag);
547 for (i = 0; i < nblks;
636 int nblks, err; local
[all...]
H A Ddnode.c1927 uint64_t blkoff, blkid, nblks; local
1957 nblks = 1;
2036 nblks = len >> blkshift;
2038 nblks += 1;
2068 last = (blkid + nblks - 1) >> epbs;
2117 range_tree_clear(dn->dn_free_ranges[txgoff], blkid, nblks);
2118 range_tree_add(dn->dn_free_ranges[txgoff], blkid, nblks);
2119 dprintf_dnode(dn, "blkid=%llu nblks=%llu txg=%llu\n",
2120 blkid, nblks, tx->tx_txg);
2123 dbuf_free_range(dn, blkid, blkid + nblks
[all...]
H A Ddsl_prop.c909 int nblks = 0; local
920 nblks = 2 * fnvlist_num_pairs(props);
923 &dpsa, nblks, ZFS_SPACE_CHECK_RESERVED));
/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);
249 be32enc(&table->vtoc.map[VTOC_RAW_PART].nblks, msize);
346 be32enc(&table->vtoc.map[VTOC_RAW_PART].nblks, msize);
380 be32enc(&table->vtoc.map[entry->gpe_index - 1].nblks, size);
513 size = be32dec(&table->vtoc.map[index].nblks);
587 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.c1031 daddr_t nblks; local
1037 nblks = bitcount64(scan->bm_bitmap & mask);
1040 return (nblks);
1054 daddr_t blk, endBlk, i, nblks, skip; local
1064 nblks = 0;
1070 nblks += blst_meta_fill(&scan[i], allocBlk, count, radix);
1075 return (nblks);
H A Dvfs_aio.c2340 int error, nblks; local
2363 nblks = btodb(nbytes);
2365 job->outblock += nblks;
2367 job->inblock += nblks;
/freebsd-head/sys/vm/
H A Dswap_pager.c2306 swaponsomething(struct vnode *vp, void *id, u_long nblks, argument
2314 * nblks is in DEV_BSIZE'd chunks, convert to PAGE_SIZE'd chunks.
2315 * First chop nblks off to page-align it, then convert.
2319 nblks &= ~(ctodb(1) - 1);
2320 nblks = dbtoc(nblks);
2327 if (nblks > mblocks) {
2331 nblks = mblocks;
2338 sp->sw_nblks = nblks;
2344 sp->sw_blist = blist_create(nblks, M_WAITO
2436 u_long nblks; local
2874 u_long nblks; local
2971 swaponvp(struct thread *td, struct vnode *vp, u_long nblks) argument
[all...]
/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.h77 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.c1002 efipart_readwrite(EFI_BLOCK_IO *blkio, int rw, daddr_t blk, daddr_t nblks, argument
1011 if ((blk + nblks - 1) > blkio->Media->LastBlock)
1017 nblks * blkio->Media->BlockSize, buf);
1023 nblks * blkio->Media->BlockSize, buf);
1031 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/usr.sbin/pstat/
H A Dpstat.c482 print_swap_line(const char *swdevname, intmax_t nblks, intmax_t bused, argument
493 printf("%-15s %*jd ", swdevname, hlen, CONVERT(nblks));
/freebsd-head/sys/dev/twe/
H A Dtwevar.h157 u_int32_t lba, void *data, int nblks);
H A Dtwe.c482 twe_dump_blocks(struct twe_softc *sc, int unit, u_int32_t lba, void *data, int nblks) argument
493 tr->tr_length = nblks * TWE_BLOCK_SIZE;
500 cmd->io.block_count = nblks;
/freebsd-head/sys/dev/sound/sbus/
H A Dcs4231.c1265 int nblks, error; local
1272 nblks = sc->sc_bufsz / blocksize;
1273 error = sndbuf_resize(ch->buffer, nblks, blocksize);

Completed in 483 milliseconds