/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfsetbuf.c | 114 ssize_t bufsize, blksz; local 168 blksz = -1; 170 { blksz = (ssize_t)size; 241 f->blksz = (size_t)st.st_blksize; 417 if(blksz <= 0 || (blksz & (blksz-1)) != 0 ) 418 blksz = SF_GRAIN; 419 while(blksz > f->size/2) 420 blksz /= 2; 421 f->blksz = blksz;
|
H A D | sffilbuf.c | 76 if(f->blksz > 0 && (f->here%f->blksz) == 0 ) 77 { s = ((r + f->blksz-1)/f->blksz)*f->blksz;
|
H A D | sfseek.c | 225 f->iosz = ((f->iosz + f->blksz-1)/f->blksz)*f->blksz; 234 if(p < f->lpos && f->size > f->blksz && (p + f->blksz) > s) 239 else if(f->blksz > 0 && f->size >= 2*f->blksz) 240 r = p - (p%f->blksz);
|
/illumos-gate/usr/src/uts/common/sys/1394/targets/scsa1394/ |
H A D | impl.h | 257 #define SCSA1394_VALID_CDRW_BLKSZ(blksz) \ argument 258 (((blksz) == CDROM_BLK_2048) || ((blksz) == CDROM_BLK_2352) || \ 259 ((blksz) == CDROM_BLK_2336) || ((blksz) == CDROM_BLK_2324))
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_send.c | 357 int blksz, const blkptr_t *bp) in dump_write_embedded() argument 375 drrw->drr_length = blksz; in dump_write_embedded() 393 uint64_t blksz = BP_GET_LSIZE(bp); in dump_spill() local 394 uint64_t payload_size = blksz; in dump_spill() 406 drrs->drr_length = blksz; in dump_spill() 832 int blksz = dblkszsec << SPA_MINBLOCKSHIFT; in do_dump() local 835 zb->zb_blkid * blksz, blksz, bp); in do_dump() 840 int blksz = dblkszsec << SPA_MINBLOCKSHIFT; in do_dump() local 848 boolean_t split_large_blocks = blksz > SPA_OLD_MAXBLOCKSIZE && in do_dump() 878 zb->zb_blkid * blksz >= dsa->dsa_resume_offset)); in do_dump() [all …]
|
H A D | zfs_vnops.c | 689 int blksz = zp->z_blksz; in zfs_read() local 693 if ((ISP2(blksz))) { in zfs_read() 694 nblk = (P2ROUNDUP(offset + n, blksz) - P2ALIGN(offset, in zfs_read() 695 blksz)) / blksz; in zfs_read() 697 ASSERT(offset + n <= blksz); in zfs_read() 710 blksz), 0, blksz); in zfs_read() 4758 uint_t blksz; in zfs_putpage() local 4780 blksz = zp->z_blksz; in zfs_putpage() 4781 if (ISP2(blksz)) in zfs_putpage() 4782 io_off = P2ALIGN_TYPED(off, blksz, u_offset_t); in zfs_putpage() [all …]
|
H A D | dnode.c | 2011 int blksz, blkshift, head, tail; in dnode_free_range() local 2015 blksz = dn->dn_datablksz; in dnode_free_range() 2027 if (ISP2(blksz)) { in dnode_free_range() 2028 head = P2NPHASE(off, blksz); in dnode_free_range() 2029 blkoff = P2PHASE(off, blksz); in dnode_free_range() 2034 if (off == 0 && len >= blksz) { in dnode_free_range() 2046 } else if (off >= blksz) { in dnode_free_range() 2051 head = blksz - off; in dnode_free_range() 2059 ASSERT3U(blkoff + head, ==, blksz); in dnode_free_range() 2095 ASSERT(ISP2(blksz)); in dnode_free_range() [all …]
|
H A D | space_map.c | 91 uint64_t blksz = sm->sm_blksz; in space_map_iterate() local 93 ASSERT3U(blksz, !=, 0); in space_map_iterate() 102 block_base += blksz) { in space_map_iterate() 110 uint64_t block_length = MIN(end - block_base, blksz); in space_map_iterate() 116 ASSERT3U(blksz, ==, db->db_size); in space_map_iterate()
|
H A D | vdev_disk.c | 303 uint64_t capacity = 0, blksz = 0, pbsize; in vdev_disk_open() local 691 blksz = dkmext->dki_lbsize; in vdev_disk_open() 699 blksz = dkm->dki_lbsize; in vdev_disk_open() 700 pbsize = blksz; in vdev_disk_open() 720 *max_psize = capacity * blksz; in vdev_disk_open()
|
H A D | dsl_crypt.c | 1962 uint64_t intval, nlevels, blksz, ibs; in dsl_crypto_recv_raw_objset_check() local 1981 ret = nvlist_lookup_uint64(nvl, "mdn_blksz", &blksz); in dsl_crypto_recv_raw_objset_check() 1982 if (ret != 0 || blksz < SPA_MINBLOCKSIZE) in dsl_crypto_recv_raw_objset_check() 1984 else if (blksz > spa_maxblocksize(tx->tx_pool->dp_spa)) in dsl_crypto_recv_raw_objset_check() 2022 (mdn->dn_nlevels != nlevels || mdn->dn_datablksz != blksz || in dsl_crypto_recv_raw_objset_check() 2090 uint64_t compress, checksum, nlevels, blksz, ibs, maxblkid; in dsl_crypto_recv_raw_objset_sync() local 2104 blksz = fnvlist_lookup_uint64(nvl, "mdn_blksz"); in dsl_crypto_recv_raw_objset_sync() 2114 dsl_dataset_get_blkptr(ds), ostype, nlevels, blksz, in dsl_crypto_recv_raw_objset_sync()
|
/illumos-gate/usr/src/lib/libmalloc/common/ |
H A D | mallint.h | 101 long blksz; /* size of little blocks contained */ member 184 #define HOLDSZ(blksz) \ argument 185 (sizeof (struct holdblk) - sizeof (struct lblk *) + blksz*numlblks)
|
H A D | malloc.c | 438 newhold->blksz = nb-MINHEAD; in malloc_unlocked() 441 assert(((struct holdblk *)CLRALL(lblk->header.holder))->blksz >= in malloc_unlocked() 676 offset = holdblk->blksz / grain; in free_unlocked() 770 CLRALL(lblk->header.holder))->blksz; in realloc_unlocked() 1012 size = hblk->blksz + in mallinfo() 1053 size = holdblk->blksz + sizeof (struct lblk) - sizeof (int); in freespace()
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | efipart.c | 1071 size_t blkoff, blksz, bio_size; in efipart_realstrategy() local 1168 blksz = blkio->Media->BlockSize * x - blkoff; in efipart_realstrategy() 1169 if (size < blksz) in efipart_realstrategy() 1170 blksz = size; in efipart_realstrategy() 1177 bcopy(blkbuf + blkoff, buf, blksz); in efipart_realstrategy() 1187 blksz = blkio->Media->BlockSize - blkoff; in efipart_realstrategy() 1188 blksz = min(blksz, size); in efipart_realstrategy() 1197 blksz = size; in efipart_realstrategy() 1202 blksz = blkio->Media->BlockSize * x; in efipart_realstrategy() 1212 bcopy(buf, blkbuf + blkoff, blksz); in efipart_realstrategy() [all …]
|
/illumos-gate/usr/src/uts/common/sys/usb/scsa2usb/ |
H A D | scsa2usb.h | 667 #define SCSA2USB_VALID_CDRW_BLKSZ(blksz) \ argument 668 (((blksz) == CDROM_BLK_2048) || ((blksz) == CDROM_BLK_2352) || \ 669 ((blksz) == CDROM_BLK_2336) || ((blksz) == CDROM_BLK_2324) || \ 670 ((blksz) == 0))
|
/illumos-gate/usr/src/uts/common/io/sdcard/adapters/sdhost/ |
H A D | sdhost.c | 1407 uint16_t blksz; in sdhost_cmd() local 1410 blksz = cmdp->sc_blksz; in sdhost_cmd() 1416 if ((blksz < 1) || (blksz > 2048)) { in sdhost_cmd() 1422 ss->ss_blksz = blksz; 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() 1455 PUT16(ss, REG_BLKSZ, BLKSZ_BOUNDARY_512K | blksz); in sdhost_cmd() 1462 PUT16(ss, REG_BLKSZ, blksz); in sdhost_cmd() 1474 ss->ss_ibytes += nblks * blksz; in sdhost_cmd() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.c | 862 uint64_t blkid, blksz; /* the block id this object dnode is in */ in dnode_get() local 867 blksz = mdn->dn_datablkszsec << SPA_MINBLOCKSHIFT; in dnode_get() 868 epbs = zfs_log2(blksz) - DNODE_SHIFT; in dnode_get() 879 if (dnode_buf && blksz == 1<<DNODE_BLOCK_SHIFT) { in dnode_get() 886 stack += blksz; in dnode_get() 1828 int blksz, length, movesize; in zfs_read() local 1846 blksz = DNODE->dn_datablkszsec << SPA_MINBLOCKSHIFT; in zfs_read() 1854 if (blksz > SPA_MAXBLOCKSIZE) { in zfs_read() 1870 uint64_t blkid = filepos / blksz; in zfs_read() 1875 file_start = blkid * blksz; in zfs_read() [all …]
|
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd_zvol.c | 138 uint64_t blksz = sl->sl_blksize; in sbd_zvol_numsegs() local 142 numsegs = (P2ROUNDUP(endoff, blksz) - P2ALIGN(off, blksz)) / blksz; in sbd_zvol_numsegs()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_nfs.c | 557 int fltype, mode, nlinks, uid, gid, size, blksz; in detail_fattr() local 566 blksz = getxdr_long(); in detail_fattr() 581 size, blksz, blocks); in detail_fattr()
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | blkdev.shlib | 357 # $blksz can be either one of: < 512b | 512e | 4Kn > 359 function load_scsi_debug # dev_size_mb add_host num_tgts max_luns blksz 365 typeset blksz=$5 368 [[ -z $luns ]] || [[ -z $blksz ]] && \ 384 *) log_fail "Unsupported blksz value: $5" ;;
|
/illumos-gate/usr/src/uts/common/fs/specfs/ |
H A D | specvnops.c | 1840 size_t blksz; in spec_getapage() local 1897 blksz = PAGESIZE; in spec_getapage() 1900 blksz = adj_klustsize; in spec_getapage() 1902 blksz = in spec_getapage() 1907 &io_len1, blkoff, blksz, 0); in spec_getapage() 1946 blksz = adj_klustsize; in spec_getapage() 1948 blksz = MIN(size - off2, adj_klustsize); in spec_getapage() 1951 &io_len2, off2, blksz, 1); in spec_getapage() 2120 size_t blksz; in spec_putapage() local 2139 blksz = adj_klustsize; in spec_putapage() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk_nvme.c | 347 uint64_t cap, blksz, capblks; in disk_nvme_make_ns() local 417 blksz = nvme_nvm_lba_fmt_data_size(fmt); in disk_nvme_make_ns() 419 TOPO_STORAGE_LOG_BLOCK_SIZE, TOPO_PROP_IMMUTABLE, blksz, &err) != in disk_nvme_make_ns() 434 cap = blksz * capblks; in disk_nvme_make_ns()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | sfio_t.h | 49 size_t blksz; /* preferred block size */ \
|
/illumos-gate/usr/src/lib/libzutil/common/ |
H A D | zutil_import.c | 1016 diskaddr_t size, uint_t blksz) in check_one_slice() argument 1029 if (blksz == 0) in check_one_slice() 1030 blksz = DEV_BSIZE; in check_one_slice() 1032 if ((size < (SPA_MINDEVSIZE / blksz)) && in check_one_slice()
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | dmu_objset.h | 235 blkptr_t *bp, dmu_objset_type_t type, int levels, int blksz, int ibs,
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vop.c | 1408 int blksz = fake_xuio_blksz; in fop_reqzcbuf() local 1432 if (flen < blksz/2) in fop_reqzcbuf() 1445 poff = P2PHASE((int)foff, blksz); in fop_reqzcbuf()
|