Searched defs:nblks (Results 1 - 25 of 60) sorted by relevance

123

/illumos-gate/usr/src/lib/libbsdmalloc/common/
H A Dmalloc.bsd43.c181 long nblks; /* how many blocks we get */ local
188 nblks = amt / sz;
191 nblks = 1;
225 while (--nblks > 0) {
/illumos-gate/usr/src/uts/common/io/sdcard/impl/
H A Dsda_mem.c99 uint64_t nblks; local
104 nblks = xfer->x_nblks;
106 ASSERT(nblks != 0);
108 if ((blkno + nblks) > slot->s_nblks) {
132 cmdp->sc_nblks = (uint16_t)nblks;
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddmu_zfetch.c200 * specified with blkid and nblks arguments with prefetch stream, predicts
207 dmu_zfetch(zfetch_t *zf, uint64_t blkid, uint64_t nblks, boolean_t fetch_data) argument
213 uint64_t end_of_access_blkid = blkid + nblks;
280 pf_ahead_blks = zs->zs_pf_blkid - blkid + nblks;
303 pf_ahead_blks = zs->zs_ipf_blkid - blkid + nblks + pf_nblks;
H A Ddnode_sync.c233 free_children(dmu_buf_impl_t *db, uint64_t blkid, uint64_t nblks, argument
267 end = (blkid + nblks - 1) >> shift;
286 free_children(subdb, blkid, nblks, tx);
323 dnode_sync_free_range_impl(dnode_t *dn, uint64_t blkid, uint64_t nblks, argument
334 if (blkid + nblks > dn->dn_phys->dn_maxblkid) {
335 nblks = dn->dn_phys->dn_maxblkid - blkid + 1;
345 ASSERT3U(blkid + nblks, <=, dn->dn_phys->dn_nblkptr);
346 free_blocks(dn, bp + blkid, nblks, tx);
351 int end = (blkid + nblks - 1) >> shift;
364 free_children(db, blkid, nblks, t
386 dnode_sync_free_range(void *arg, uint64_t blkid, uint64_t nblks) argument
[all...]
/illumos-gate/usr/src/cmd/fmthard/
H A Dfmthard.c541 uint64_t nblks; local
560 nblks = geom->dkg_nsect * geom->dkg_nhead;
578 if (!eflag && ((start % nblks) != 0 || (size % nblks) != 0)) {
711 uint64_t nblks; local
713 nblks = geom->dkg_nsect * geom->dkg_nhead;
739 if ((vtoc->v_part[i].p_start % nblks) ||
740 (vtoc->v_part[i].p_size % nblks)) {
/illumos-gate/usr/src/cmd/format/
H A Dmenu_partition.c555 blkaddr_t nblks; local
571 nblks = (uint_t)pinfo->pinfo_map[i].dkl_nblk;
573 cyl2 = cyl1 + (nblks / spc()) - 1;
574 if (nblks > 0) {
576 maxnblks = max(nblks, maxnblks);
598 nblks = pinfo->pinfo_map[partnum].dkl_nblk;
600 cyl2 = cyl1 + (nblks / spc()) - 1;
626 if (nblks == 0) {
634 scaled = bn2mb(nblks);
645 pr_dblock(fmt_print, nblks);
[all...]
H A Dmisc.c898 bn2mb(uint64_t nblks) argument
902 n = (float)nblks / 1024.0;
917 bn2gb(uint64_t nblks) argument
921 n = (float)nblks / (1024.0 * 1024.0);
927 bn2tb(uint64_t nblks) argument
931 n = (float)nblks / (1024.0 * 1024.0 * 1024.0);
H A Dlabel.c759 ulong_t nblks; local
854 nblks = label->dkl_nsect * label->dkl_nhead;
858 if ((vpart->p_start % nblks) != 0 ||
859 (vpart->p_size % nblks) != 0) {
864 lmap->dkl_cylno = (blkaddr32_t)(vpart->p_start / nblks);
898 ulong_t nblks; local
973 nblks = label->dkl_nsect * label->dkl_nhead;
975 vpart->p_start = (diskaddr_t)(lmap->dkl_cylno * nblks);
/illumos-gate/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_concat.c643 uint64_t nblks = 0; local
655 nblks += comp_nblks;
660 error = devconfig_set_size_in_blocks(*concat, nblks);
H A Dlayout.c931 uint64_t nblks = 0; local
954 (error = devconfig_get_size_in_blocks(slice, &nblks)) ||
961 (error = devconfig_set_size_in_blocks(newslice, nblks));
/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Defipart.c262 efipart_readwrite(EFI_BLOCK_IO *blkio, int rw, daddr_t blk, daddr_t nblks, argument
271 if ((blk + nblks - 1) > blkio->Media->LastBlock)
277 nblks * blkio->Media->BlockSize, buf);
283 nblks * blkio->Media->BlockSize, buf);
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_set_tkr.c53 daddr_t nblks = 0; local
62 nblks = ((nblks == 0) ? r->r_nblk : min(r->r_nblk, nblks));
65 if (nblks <= 0)
66 nblks = (MD_MNSET_DESC(sd)) ? MD_MN_DBSIZE : MD_DBSIZE;
102 p->dd_dbsize = dbcnt > 0 ? nblks : 0;
H A Dmeta_trans.c267 diskaddr_t nblks,
286 (meta_check_overlap(transnp->cname, np, slblk, nblks,
308 nblks, lognp, log_start, -1, ep) != 0) {
327 diskaddr_t nblks,
345 if (in_trans(sp, transnp, np, options, slblk, nblks, ep) != 0) {
1261 daddr_t blksinuse, head, tail, nblks, eblk, sblk; local
1280 nblks = mt->un_l_nblks;
1281 eblk = sblk + nblks;
1287 percent = ((u_longlong_t)blksinuse * 100) / nblks;
1290 percent, blksinuse, nblks)
261 in_trans( mdsetname_t *sp, mdname_t *transnp, mdname_t *np, mdchkopts_t options, diskaddr_t slblk, diskaddr_t nblks, md_error_t *ep ) argument
322 meta_check_intrans( mdsetname_t *sp, mdname_t *np, mdchkopts_t options, diskaddr_t slblk, diskaddr_t nblks, md_error_t *ep ) argument
[all...]
H A Dmeta_db_balance.c605 daddr_t nblks; local
610 if ((nblks = meta_db_minreplica(sp, ep)) < 0) {
622 min_dbsize = nblks;
H A Dmeta_hotspares.c277 diskaddr_t nblks,
300 if (meta_check_overlap(hspnp->hspname, np, slblk, nblks,
317 diskaddr_t nblks,
335 if (in_hsp(sp, hspnp, np, slblk, nblks, ep) != 0) {
272 in_hsp( mdsetname_t *sp, mdhspname_t *hspnp, mdname_t *np, diskaddr_t slblk, diskaddr_t nblks, md_error_t *ep ) argument
313 meta_check_inhsp( mdsetname_t *sp, mdname_t *np, diskaddr_t slblk, diskaddr_t nblks, md_error_t *ep ) argument
/illumos-gate/usr/src/cmd/lvm/util/
H A Dmetadb.c432 daddr_t nblks = 0; local
442 if ((nblks = meta_db_minreplica(sp, ep)) < 0)
463 if (default_size && (nblks > 0))
464 dbsize = nblks; /* adjust replica size */
H A Dmetainit.c422 daddr_t nblks = 0; local
525 nblks = ((nblks == 0) ? r->r_nblk : min(r->r_nblk, nblks));
528 if (nblks <= 0)
529 nblks = MD_DBSIZE;
559 dr->dr_dbsize = dbcnt > 0 ? nblks : 0;
H A Dmetaset.c422 daddr_t dbsize, nblks; local
765 if ((nblks = meta_db_minreplica(sp, ep)) < 0)
768 dbsize = nblks; /* adjust replica size */
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dpkgobjmap.c481 nblks(short fsys_entry, struct cfextra *ext) function
526 bused -= nblks(fsys_entry, ext1);
527 bused += nblks(fsys_entry, ext2);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dbcache.c95 * Initialise the cache for (nblks) of (bsize).
98 bcache_init(u_int nblks, size_t bsize) argument
101 bcache_total_nblks = nblks;
/illumos-gate/usr/src/cmd/cdrw/
H A Dmisc_scsi.c743 read_audio_through_read_cd(cd_device *dev, uint_t start_lba, uint_t nblks, argument
750 ret = read_cd(dev->d_fd, (uint32_t)start_lba, (uint16_t)nblks,
751 1, buf, (uint32_t)(nblks * 2352));
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_alloc.c1402 uint32_t start, nblks; local
1410 nblks = part->udp_cache_count;
1415 part->udp_number, start, nblks);
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_swap.c1073 swapadd(struct vnode *vp, ulong_t lowblk, ulong_t nblks, char *swapname) argument
1086 SWAP_PRINT(SW_CTL, "swapadd: vp %p lowblk %ld nblks %ld swapname %s\n",
1087 vp, lowblk, nblks, swapname, 0);
1184 eoff = nblks ? soff + (nblks - (startblk - lowblk) << SCTRSHFT) :
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_data.c867 uint_t nblks; local
898 * packet with all the headers, and nblks to hold the number of
902 nblks = 1;
905 nblks = 0;
910 nblks++;
923 (nblks < ss->ei_caps->cp_hiwm_sgl)) {
928 iov_attr.iov_list_len = nblks;
939 for (nmp = data_mp; i < nblks; i++, nmp = nmp->b_cont) {
955 "ibt_map_mem_iov(nblks=0x%lx) failed, ret=%d ",
956 "attempting to use copy path", nblks, re
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/hotspares/
H A Dhotspares.c1466 diskaddr_t nblks,
1477 if (labeled && hs->hs_has_label && (hs->hs_number_blks >= nblks)) {
1480 } else if ((hs->hs_number_blks - hs->hs_start_blk) >= nblks) {
1463 usable_hs( set_t setno, mddb_recid_t hs_id, diskaddr_t nblks, int labeled, diskaddr_t *start) argument

Completed in 93 milliseconds

123