/titanic_44/usr/src/uts/common/io/ |
H A D | emul64_bsd.c | 434 int nblks; in bsd_scsi_io() local 439 nblks = GETG0COUNT(cdb); in bsd_scsi_io() 442 lblkno, nblks, sp->cmd_addr); in bsd_scsi_io() 446 emul64_name, lblkno, lblkno, nblks); in bsd_scsi_io() 451 nblks = GETG0COUNT(cdb); in bsd_scsi_io() 454 lblkno, nblks, sp->cmd_addr); in bsd_scsi_io() 458 emul64_name, lblkno, lblkno, nblks); in bsd_scsi_io() 463 nblks = GETG1COUNT(cdb); in bsd_scsi_io() 466 lblkno, nblks, sp->cmd_addr); in bsd_scsi_io() 470 emul64_name, lblkno, lblkno, nblks); in bsd_scsi_io() [all …]
|
H A D | fd.c | 1287 int nblks, part, unit; in fd_ioctl() local 1357 nblks = fjp->fj_chars->fdc_nhead * fjp->fj_chars->fdc_secptrack; in fd_ioctl() 1366 if ((fdp->d_part[part].p_start % nblks) != 0) in fd_ioctl() 1369 fdp->d_part[part].p_start / nblks; in fd_ioctl() 1386 if ((fdp->d_part[part].p_start % nblks) != 0) in fd_ioctl() 1389 fdp->d_part[part].p_start / nblks; in fd_ioctl() 1444 nblks = fjp->fj_chars->fdc_nhead * in fd_ioctl() 1453 nblks; in fd_ioctl() 1881 int nblks; in fd_build_label_vtoc() local 1902 nblks = (fjp->fj_chars->fdc_nhead * fjp->fj_chars->fdc_secptrack * in fd_build_label_vtoc() [all …]
|
H A D | cmlb.c | 4167 uint32_t nblks; local 4199 nblks = cl->cl_g.dkg_nsect * cl->cl_g.dkg_nhead; 4204 vpart->p_start = lmap->dkl_cylno * nblks; 4503 uint_t nblks; local 4521 nblks = cl->cl_g.dkg_nsect * cl->cl_g.dkg_nhead; 4522 if (nblks == 0) { 4531 if (((unsigned)vpart->p_start % nblks) != 0) { 4535 vpart->p_start, nblks); 4538 ncyl = (unsigned)vpart->p_start / nblks; 4539 ncyl += (unsigned)vpart->p_size / nblks; [all …]
|
/titanic_44/usr/src/cmd/format/ |
H A D | menu_partition.c | 555 blkaddr_t nblks; in print_partition() local 571 nblks = (uint_t)pinfo->pinfo_map[i].dkl_nblk; in print_partition() 573 cyl2 = cyl1 + (nblks / spc()) - 1; in print_partition() 574 if (nblks > 0) { in print_partition() 576 maxnblks = max(nblks, maxnblks); in print_partition() 598 nblks = pinfo->pinfo_map[partnum].dkl_nblk; in print_partition() 600 cyl2 = cyl1 + (nblks / spc()) - 1; in print_partition() 626 if (nblks == 0) { in print_partition() 634 scaled = bn2mb(nblks); in print_partition() 645 pr_dblock(fmt_print, nblks); in print_partition() [all …]
|
H A D | misc.c | 898 bn2mb(uint64_t nblks) in bn2mb() argument 902 n = (float)nblks / 1024.0; in bn2mb() 917 bn2gb(uint64_t nblks) in bn2gb() argument 921 n = (float)nblks / (1024.0 * 1024.0); in bn2gb() 927 bn2tb(uint64_t nblks) in bn2tb() argument 931 n = (float)nblks / (1024.0 * 1024.0 * 1024.0); in bn2tb()
|
H A D | label.c | 759 ulong_t nblks; in vtoc_to_label() local 854 nblks = label->dkl_nsect * label->dkl_nhead; in vtoc_to_label() 858 if ((vpart->p_start % nblks) != 0 || in vtoc_to_label() 859 (vpart->p_size % nblks) != 0) { in vtoc_to_label() 864 lmap->dkl_cylno = (blkaddr32_t)(vpart->p_start / nblks); in vtoc_to_label() 898 ulong_t nblks; in label_to_vtoc() local 973 nblks = label->dkl_nsect * label->dkl_nhead; in label_to_vtoc() 975 vpart->p_start = (diskaddr_t)(lmap->dkl_cylno * nblks); in label_to_vtoc()
|
/titanic_44/usr/src/uts/common/fs/cachefs/ |
H A D | cachefs_filegrp.c | 886 blkcnt64_t nblks; in filegrp_write_metadata() local 908 nblks = slot + sizeof (struct cfs_cachefs_metadata); in filegrp_write_metadata() 909 nblks = (nblks + MAXBSIZE - 1) / MAXBSIZE; in filegrp_write_metadata() 910 nblks -= fgp->fg_header->ach_nblks; in filegrp_write_metadata() 911 if (nblks > 0) { in filegrp_write_metadata() 912 error = cachefs_allocblocks(fscp->fs_cache, nblks, in filegrp_write_metadata() 918 nblks * MAXBSIZE); in filegrp_write_metadata() 920 cachefs_freeblocks(fscp->fs_cache, nblks, in filegrp_write_metadata() 925 nblks = 0; in filegrp_write_metadata() 946 cachefs_freeblocks(fscp->fs_cache, nblks, in filegrp_write_metadata() [all …]
|
H A D | cachefs_resource.c | 469 cachefs_allocblocks(cachefscache_t *cachep, size_t nblks, in cachefs_allocblocks() argument 486 blocks = cachep->c_usage.cu_blksused + nblks; in cachefs_allocblocks() 498 cachep->c_usage.cu_blksused += (uint_t)nblks; in cachefs_allocblocks() 500 RL_HEAD(cachep, type)->rli_blkcnt += nblks; in cachefs_allocblocks() 517 cachefs_freeblocks(cachefscache_t *cachep, size_t nblks, in cachefs_freeblocks() argument 522 cachep->c_usage.cu_blksused -= (uint_t)nblks; in cachefs_freeblocks() 526 RL_HEAD(cachep, type)->rli_blkcnt -= nblks; in cachefs_freeblocks()
|
H A D | cachefs_subr.c | 2826 size_t nblks, blkdelta; in cachefs_frontfile_size() local 2838 nblks = (length + MAXBSIZE - 1) / MAXBSIZE; in cachefs_frontfile_size() 2839 if (nblks > cp->c_metadata.md_frontblks) { in cachefs_frontfile_size() 2840 blkdelta = nblks - cp->c_metadata.md_frontblks; in cachefs_frontfile_size() 2870 nblks = (length + MAXBSIZE - 1) / MAXBSIZE; in cachefs_frontfile_size() 2871 if (nblks < cp->c_metadata.md_frontblks) { in cachefs_frontfile_size() 2872 blkdelta = cp->c_metadata.md_frontblks - nblks; in cachefs_frontfile_size() 2875 cp->c_metadata.md_frontblks = (uint_t)nblks; in cachefs_frontfile_size()
|
/titanic_44/usr/src/lib/libbsdmalloc/common/ |
H A D | malloc.bsd43.c | 181 long nblks; /* how many blocks we get */ in morecore() local 188 nblks = amt / sz; in morecore() 191 nblks = 1; in morecore() 225 while (--nblks > 0) { in morecore()
|
/titanic_44/usr/src/uts/common/fs/zfs/ |
H A D | dnode_sync.c | 239 free_children(dmu_buf_impl_t *db, uint64_t blkid, uint64_t nblks, in free_children() argument 272 end = (blkid + nblks - 1) >> shift; in free_children() 291 free_children(subdb, blkid, nblks, tx); in free_children() 322 dnode_sync_free_range_impl(dnode_t *dn, uint64_t blkid, uint64_t nblks, in dnode_sync_free_range_impl() argument 333 if (blkid + nblks > dn->dn_phys->dn_maxblkid) { in dnode_sync_free_range_impl() 334 nblks = dn->dn_phys->dn_maxblkid - blkid + 1; in dnode_sync_free_range_impl() 344 ASSERT3U(blkid + nblks, <=, dn->dn_phys->dn_nblkptr); in dnode_sync_free_range_impl() 345 free_blocks(dn, bp + blkid, nblks, tx); in dnode_sync_free_range_impl() 350 int end = (blkid + nblks - 1) >> shift; in dnode_sync_free_range_impl() 363 free_children(db, blkid, nblks, tx); in dnode_sync_free_range_impl() [all …]
|
H A D | dmu_tx.c | 430 uint64_t blkid, nblks, lastblk; in dmu_tx_count_free() local 452 nblks = 1; in dmu_tx_count_free() 459 nblks = (len + dn->dn_datablksz - 1) >> dn->dn_datablkshift; in dmu_tx_count_free() 465 if (blkid + nblks > dn->dn_maxblkid) in dmu_tx_count_free() 466 nblks = dn->dn_maxblkid - blkid + 1; in dmu_tx_count_free() 469 l0span = nblks; /* save for later use to calc level > 1 overhead */ in dmu_tx_count_free() 472 for (i = 0; i < nblks; i++) { in dmu_tx_count_free() 483 nblks = 0; in dmu_tx_count_free() 486 lastblk = blkid + nblks - 1; in dmu_tx_count_free() 487 while (nblks) { in dmu_tx_count_free() [all …]
|
H A D | dmu.c | 392 uint64_t blkid, nblks, i; in dmu_buf_hold_array_by_dnode() local 406 nblks = (P2ROUNDUP(offset+length, 1ULL<<blkshift) - in dmu_buf_hold_array_by_dnode() 419 nblks = 1; in dmu_buf_hold_array_by_dnode() 421 dbp = kmem_zalloc(sizeof (dmu_buf_t *) * nblks, KM_SLEEP); in dmu_buf_hold_array_by_dnode() 425 for (i = 0; i < nblks; i++) { in dmu_buf_hold_array_by_dnode() 429 dmu_buf_rele_array(dbp, nblks, tag); in dmu_buf_hold_array_by_dnode() 444 dmu_buf_rele_array(dbp, nblks, tag); in dmu_buf_hold_array_by_dnode() 450 for (i = 0; i < nblks; i++) { in dmu_buf_hold_array_by_dnode() 460 dmu_buf_rele_array(dbp, nblks, tag); in dmu_buf_hold_array_by_dnode() 466 *numbufsp = nblks; in dmu_buf_hold_array_by_dnode() [all …]
|
H A D | dmu_zfetch.c | 286 dmu_zfetch_fetch(dnode_t *dn, uint64_t blkid, uint64_t nblks) in dmu_zfetch_fetch() argument 291 fetchsz = dmu_zfetch_fetchsz(dn, blkid, nblks); in dmu_zfetch_fetch() 309 dmu_zfetch_fetchsz(dnode_t *dn, uint64_t blkid, uint64_t nblks) in dmu_zfetch_fetchsz() argument 318 if (blkid + nblks + 1 > dn->dn_maxblkid) { in dmu_zfetch_fetchsz() 322 fetchsz = nblks; in dmu_zfetch_fetchsz()
|
H A D | dnode.c | 1533 uint64_t blkoff, blkid, nblks; in dnode_free_range() local 1567 nblks = 1; in dnode_free_range() 1644 nblks = len >> blkshift; in dnode_free_range() 1646 nblks += 1; in dnode_free_range() 1676 last = (blkid + nblks - 1) >> epbs; in dnode_free_range() 1724 range_tree_clear(dn->dn_free_ranges[txgoff], blkid, nblks); in dnode_free_range() 1725 range_tree_add(dn->dn_free_ranges[txgoff], blkid, nblks); in dnode_free_range() 1727 blkid, nblks, tx->tx_txg); in dnode_free_range() 1730 dbuf_free_range(dn, blkid, blkid + nblks - 1, tx); in dnode_free_range()
|
/titanic_44/usr/src/uts/common/io/sdcard/impl/ |
H A D | sda_mem.c | 99 uint64_t nblks; in sda_mem_rw() local 104 nblks = xfer->x_nblks; in sda_mem_rw() 106 ASSERT(nblks != 0); in sda_mem_rw() 108 if ((blkno + nblks) > slot->s_nblks) { in sda_mem_rw() 132 cmdp->sc_nblks = (uint16_t)nblks; in sda_mem_rw()
|
/titanic_44/usr/src/test/zfs-tests/tests/functional/holes/ |
H A D | holes_sanity.ksh | 79 nblks=$((len / bs)) 81 verify_holes_and_data_blocks $testfile $nblks 1
|
/titanic_44/usr/src/cmd/fmthard/ |
H A D | fmthard.c | 541 uint64_t nblks; in load() local 560 nblks = geom->dkg_nsect * geom->dkg_nhead; in load() 578 if (!eflag && ((start % nblks) != 0 || (size % nblks) != 0)) { in load() 711 uint64_t nblks; in validate() local 713 nblks = geom->dkg_nsect * geom->dkg_nhead; in validate() 739 if ((vtoc->v_part[i].p_start % nblks) || in validate() 740 (vtoc->v_part[i].p_size % nblks)) { in validate()
|
/titanic_44/usr/src/uts/common/io/sdcard/adapters/sdhost/ |
H A D | sdhost.c | 1408 uint16_t nblks; in sdhost_cmd() local 1411 nblks = cmdp->sc_nblks; in sdhost_cmd() 1439 ((blksz * nblks) <= SDHOST_BOUNCESZ)) { in sdhost_cmd() 1447 nblks * blksz); in sdhost_cmd() 1451 ss->ss_rcnt = nblks * blksz; in sdhost_cmd() 1461 ss->ss_resid = nblks; in sdhost_cmd() 1465 if (nblks > 1) { in sdhost_cmd() 1474 ss->ss_ibytes += nblks * blksz; in sdhost_cmd() 1477 ss->ss_obytes += nblks * blksz; in sdhost_cmd() 1483 PUT16(ss, REG_BLOCK_COUNT, nblks); in sdhost_cmd()
|
/titanic_44/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_data.c | 867 uint_t nblks; in eib_data_prepare_sgl() local 902 nblks = 1; in eib_data_prepare_sgl() 905 nblks = 0; in eib_data_prepare_sgl() 910 nblks++; in eib_data_prepare_sgl() 923 (nblks < ss->ei_caps->cp_hiwm_sgl)) { in eib_data_prepare_sgl() 928 iov_attr.iov_list_len = nblks; in eib_data_prepare_sgl() 939 for (nmp = data_mp; i < nblks; i++, nmp = nmp->b_cont) { in eib_data_prepare_sgl() 956 "attempting to use copy path", nblks, ret); in eib_data_prepare_sgl()
|
/titanic_44/usr/src/cmd/cdrw/ |
H A D | device.h | 49 uint_t nblks, uchar_t *buf);
|
H A D | misc_scsi.h | 109 int read_audio_through_read_cd(cd_device *dev, uint_t start_lba, uint_t nblks,
|
H A D | misc_scsi.c | 743 read_audio_through_read_cd(cd_device *dev, uint_t start_lba, uint_t nblks, in read_audio_through_read_cd() argument 750 ret = read_cd(dev->d_fd, (uint32_t)start_lba, (uint16_t)nblks, in read_audio_through_read_cd() 751 1, buf, (uint32_t)(nblks * 2352)); in read_audio_through_read_cd()
|
/titanic_44/usr/src/cmd/svr4pkg/libinst/ |
H A D | pkgobjmap.c | 481 nblks(short fsys_entry, struct cfextra *ext) in nblks() function 526 bused -= nblks(fsys_entry, ext1); in size_xchng() 527 bused += nblks(fsys_entry, ext2); in size_xchng()
|
/titanic_44/usr/src/uts/sun4u/vm/ |
H A D | zulu_hat.c | 1185 int nblks = 0; in zulu_hat_swapout() local 1205 nblks++; in zulu_hat_swapout() 1219 tnf_int, nblks, nblks); in zulu_hat_swapout()
|