/illumos-gate/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 | 1293 int nblks, part, unit; in fd_ioctl() local 1363 nblks = fjp->fj_chars->fdc_nhead * fjp->fj_chars->fdc_secptrack; in fd_ioctl() 1372 if ((fdp->d_part[part].p_start % nblks) != 0) in fd_ioctl() 1375 fdp->d_part[part].p_start / nblks; in fd_ioctl() 1392 if ((fdp->d_part[part].p_start % nblks) != 0) in fd_ioctl() 1395 fdp->d_part[part].p_start / nblks; in fd_ioctl() 1450 nblks = fjp->fj_chars->fdc_nhead * in fd_ioctl() 1459 nblks; in fd_ioctl() 1887 int nblks; in fd_build_label_vtoc() local 1908 nblks = (fjp->fj_chars->fdc_nhead * fjp->fj_chars->fdc_secptrack * in fd_build_label_vtoc() [all …]
|
H A D | cmlb.c | 4202 uint32_t nblks; local 4234 nblks = cl->cl_g.dkg_nsect * cl->cl_g.dkg_nhead; 4239 vpart->p_start = lmap->dkl_cylno * nblks; 4547 uint_t nblks; local 4565 nblks = cl->cl_g.dkg_nsect * cl->cl_g.dkg_nhead; 4566 if (nblks == 0) { 4575 if (((unsigned)vpart->p_start % nblks) != 0) { 4579 vpart->p_start, nblks); 4582 ncyl = (unsigned)vpart->p_start / nblks; 4583 ncyl += (unsigned)vpart->p_size / nblks; [all …]
|
/illumos-gate/usr/src/cmd/format/ |
H A D | menu_partition.c | 543 blkaddr_t nblks; in print_partition() local 559 nblks = (uint_t)pinfo->pinfo_map[i].dkl_nblk; in print_partition() 561 cyl2 = cyl1 + (nblks / spc()) - 1; in print_partition() 562 if (nblks > 0) { in print_partition() 564 maxnblks = max(nblks, maxnblks); in print_partition() 586 nblks = pinfo->pinfo_map[partnum].dkl_nblk; in print_partition() 588 cyl2 = cyl1 + (nblks / spc()) - 1; in print_partition() 612 if (nblks == 0) { in print_partition() 620 scaled = bn2mb(nblks); in print_partition() 631 pr_dblock(fmt_print, nblks); in print_partition() [all …]
|
H A D | misc.c | 855 bn2mb(uint64_t nblks) in bn2mb() argument 859 n = (float)nblks / 1024.0; in bn2mb() 874 bn2gb(uint64_t nblks) in bn2gb() argument 878 n = (float)nblks / (1024.0 * 1024.0); in bn2gb() 884 bn2tb(uint64_t nblks) in bn2tb() argument 888 n = (float)nblks / (1024.0 * 1024.0 * 1024.0); in bn2tb()
|
H A D | label.c | 741 ulong_t nblks; in vtoc_to_label() local 836 nblks = label->dkl_nsect * label->dkl_nhead; in vtoc_to_label() 840 if ((vpart->p_start % nblks) != 0 || in vtoc_to_label() 841 (vpart->p_size % nblks) != 0) { in vtoc_to_label() 846 lmap->dkl_cylno = (blkaddr32_t)(vpart->p_start / nblks); in vtoc_to_label() 880 ulong_t nblks; in label_to_vtoc() local 955 nblks = label->dkl_nsect * label->dkl_nhead; in label_to_vtoc() 957 vpart->p_start = (diskaddr_t)(lmap->dkl_cylno * nblks); in label_to_vtoc()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_zfetch.c | 271 dmu_zfetch(zfetch_t *zf, uint64_t blkid, uint64_t nblks, boolean_t fetch_data, in dmu_zfetch() argument 278 uint64_t end_of_access_blkid = blkid + nblks; in dmu_zfetch() 333 nblks--; in dmu_zfetch() 334 if (nblks == 0) { in dmu_zfetch() 389 pf_ahead_blks = zs->zs_pf_blkid - blkid + nblks; in dmu_zfetch() 412 pf_ahead_blks = zs->zs_ipf_blkid - blkid + nblks + pf_nblks; in dmu_zfetch()
|
H A D | dnode_sync.c | 268 free_children(dmu_buf_impl_t *db, uint64_t blkid, uint64_t nblks, in free_children() argument 322 end = (blkid + nblks - 1) >> shift; in free_children() 343 free_children(subdb, blkid, nblks, free_indirects, tx); in free_children() 366 dnode_sync_free_range_impl(dnode_t *dn, uint64_t blkid, uint64_t nblks, in dnode_sync_free_range_impl() argument 377 if (blkid + nblks > dn->dn_phys->dn_maxblkid) { in dnode_sync_free_range_impl() 378 nblks = dn->dn_phys->dn_maxblkid - blkid + 1; in dnode_sync_free_range_impl() 388 ASSERT3U(blkid + nblks, <=, dn->dn_phys->dn_nblkptr); in dnode_sync_free_range_impl() 389 free_blocks(dn, bp + blkid, nblks, tx); in dnode_sync_free_range_impl() 394 int end = (blkid + nblks - 1) >> shift; in dnode_sync_free_range_impl() 406 free_children(db, blkid, nblks, free_indirects, tx); in dnode_sync_free_range_impl() [all …]
|
H A D | dmu.c | 553 uint64_t blkid, nblks, i; in dmu_buf_hold_array_by_dnode() local 571 nblks = (P2ROUNDUP(offset + length, 1ULL << blkshift) - in dmu_buf_hold_array_by_dnode() 584 nblks = 1; in dmu_buf_hold_array_by_dnode() 586 dbp = kmem_zalloc(sizeof (dmu_buf_t *) * nblks, KM_SLEEP); in dmu_buf_hold_array_by_dnode() 590 for (i = 0; i < nblks; i++) { in dmu_buf_hold_array_by_dnode() 594 dmu_buf_rele_array(dbp, nblks, tag); in dmu_buf_hold_array_by_dnode() 607 dmu_zfetch(&dn->dn_zfetch, blkid, nblks, in dmu_buf_hold_array_by_dnode() 615 dmu_buf_rele_array(dbp, nblks, tag); in dmu_buf_hold_array_by_dnode() 621 for (i = 0; i < nblks; i++) { in dmu_buf_hold_array_by_dnode() 631 dmu_buf_rele_array(dbp, nblks, tag); in dmu_buf_hold_array_by_dnode() [all …]
|
H A D | dnode.c | 2010 uint64_t blkoff, blkid, nblks; in dnode_free_range() local 2039 nblks = 1; in dnode_free_range() 2135 nblks = len >> blkshift; in dnode_free_range() 2137 nblks += 1; in dnode_free_range() 2168 last = (blkid + nblks - 1) >> epbs; in dnode_free_range() 2219 range_tree_clear(dn->dn_free_ranges[txgoff], blkid, nblks); in dnode_free_range() 2220 range_tree_add(dn->dn_free_ranges[txgoff], blkid, nblks); in dnode_free_range() 2222 blkid, nblks, tx->tx_txg); in dnode_free_range() 2225 dbuf_free_range(dn, blkid, blkid + nblks - 1, tx); in dnode_free_range()
|
/illumos-gate/usr/src/lib/libbsdmalloc/common/ |
H A D | malloc.bsd43.c | 180 long nblks; /* how many blocks we get */ in morecore() local 187 nblks = amt / sz; in morecore() 190 nblks = 1; in morecore() 224 while (--nblks > 0) { in morecore()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/fmthard/ |
H A D | fmthard.c | 544 uint64_t nblks; in load() local 563 nblks = geom->dkg_nsect * geom->dkg_nhead; in load() 581 if (!eflag && ((start % nblks) != 0 || (size % nblks) != 0)) { in load() 714 uint64_t nblks; in validate() local 716 nblks = geom->dkg_nsect * geom->dkg_nhead; in validate() 742 if ((vtoc->v_part[i].p_start % nblks) || in validate() 743 (vtoc->v_part[i].p_size % nblks)) { in validate()
|
/illumos-gate/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
|
/illumos-gate/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()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | device.h | 47 uint_t nblks, uchar_t *buf);
|
H A D | misc_scsi.h | 107 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()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | efipart.c | 984 efipart_readwrite(pdinfo_t *pd, int rw, daddr_t blk, daddr_t nblks, in efipart_readwrite() argument 994 if ((blk + nblks - 1) > blkio->Media->LastBlock) in efipart_readwrite() 1000 nblks * blkio->Media->BlockSize, buf); in efipart_readwrite() 1006 nblks * blkio->Media->BlockSize, buf); in efipart_readwrite() 1022 blk, nblks, DECODE_ERROR(status)); in efipart_readwrite()
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | vtoc.h | 97 uint32_t nblks; member
|
/illumos-gate/usr/src/boot/common/ |
H A D | bcache.c | 97 bcache_init(size_t nblks, size_t bsize) in bcache_init() argument 100 bcache_total_nblks = nblks; in bcache_init()
|
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd_scsi.c | 237 uint_t nblks; in sbd_do_sgl_read_xfer() local 313 nblks = sbd_zvol_numsegs(sl, offset, xfer_len); in sbd_do_sgl_read_xfer() 316 (nblks * sizeof (stmf_sglist_ent_t)); in sbd_do_sgl_read_xfer() 333 pad = (uintptr_t)&dbuf->db_sglist[nblks]; in sbd_do_sgl_read_xfer() 339 dbuf->db_sglist_length = (uint16_t)nblks; in sbd_do_sgl_read_xfer() 1162 uint_t nblks; in sbd_do_sgl_write_xfer() local 1235 nblks = sbd_zvol_numsegs(sl, offset, xfer_len); in sbd_do_sgl_write_xfer() 1237 (nblks * sizeof (stmf_sglist_ent_t)); in sbd_do_sgl_write_xfer() 1255 pad = (uintptr_t)&dbuf->db_sglist[nblks]; in sbd_do_sgl_write_xfer() 1261 dbuf->db_sglist_length = (uint16_t)nblks; in sbd_do_sgl_write_xfer()
|
/illumos-gate/usr/src/uts/common/fs/dcfs/ |
H A D | dc_vnops.c | 547 int nblks, error; in dc_getpage() local 572 nblks = (vp_bend - vp_boff) / bsize; in dc_getpage() 573 while (nblks--) { in dc_getpage()
|