/illumos-gate/usr/src/lib/libbsdmalloc/common/ |
H A D | malloc.bsd43.c | 181 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 D | sda_mem.c | 99 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 D | dmu_zfetch.c | 200 * 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 D | dnode_sync.c | 233 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 D | fmthard.c | 541 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 D | menu_partition.c | 555 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 D | misc.c | 898 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 D | label.c | 759 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 D | layout_concat.c | 643 uint64_t nblks = 0; local 655 nblks += comp_nblks; 660 error = devconfig_set_size_in_blocks(*concat, nblks);
|
H A D | layout.c | 931 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 D | efipart.c | 262 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 D | meta_set_tkr.c | 53 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 D | meta_trans.c | 267 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 D | meta_db_balance.c | 605 daddr_t nblks; local 610 if ((nblks = meta_db_minreplica(sp, ep)) < 0) { 622 min_dbsize = nblks;
|
H A D | meta_hotspares.c | 277 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 D | metadb.c | 432 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 D | metainit.c | 422 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 D | metaset.c | 422 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 D | pkgobjmap.c | 481 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 D | bcache.c | 95 * 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 D | misc_scsi.c | 743 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 D | udf_alloc.c | 1402 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 D | vm_swap.c | 1073 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 D | eib_data.c | 867 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 D | hotspares.c | 1466 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
|