/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | sa.c | 2109 sa_object_size(sa_handle_t *hdl, uint32_t *blksize, u_longlong_t *nblocks) in sa_object_size() argument 2112 blksize, nblocks); in sa_object_size()
|
H A D | dmu.c | 2528 dmu_object_size_from_db(dmu_buf_t *db_fake, uint32_t *blksize, in dmu_object_size_from_db() argument 2537 *blksize = dn->dn_datablksz; in dmu_object_size_from_db()
|
H A D | zfs_vfsops.c | 1589 uint32_t blksize; in zfs_statfs_project() local 1596 sa_object_size(zp->z_sa_hdl, &blksize, &nblocks); in zfs_statfs_project() 1598 blksize = zfsvfs->z_max_blksz; in zfs_statfs_project() 1600 used = blksize * nblocks; in zfs_statfs_project()
|
H A D | zvol.c | 1516 zvol_get_volume_params(minor_t minor, uint64_t *blksize, in zvol_get_volume_params() argument 1528 ASSERT(blksize && max_xfer_len && minor_hdl && in zvol_get_volume_params() 1531 *blksize = zv->zv_volblocksize; in zvol_get_volume_params()
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_fdio.c | 192 size_t blksize; in fdio_bdev_read() local 202 blksize = fdio_bdev_info(fdp->fd_fd); in fdio_bdev_read() 205 off64_t devoff = off & ~(blksize - 1); in fdio_bdev_read() 206 size_t blkoff = off & (blksize - 1); in fdio_bdev_read() 209 if (pread64(fdp->fd_fd, blk, blksize, devoff) != blksize) in fdio_bdev_read() 236 size_t blksize; in fdio_bdev_write() local 246 blksize = fdio_bdev_info(fdp->fd_fd); in fdio_bdev_write() 249 off64_t devoff = off & ~(blksize - 1); in fdio_bdev_write() 250 size_t blkoff = off & (blksize - 1); in fdio_bdev_write() 253 if (pread64(fdp->fd_fd, blk, blksize, devoff) != blksize) in fdio_bdev_write() [all …]
|
/illumos-gate/usr/src/cmd/boot/fiocompress/ |
H A D | fiocompress.c | 68 size_t blksize = 8192; in main() local 91 blksize = atoi(optarg); in main() 92 if (blksize == 0 || (blksize & (blksize-1))) { in main() 113 do_comp(blksize); in main() 173 do_comp(size_t blksize) in do_comp() argument 193 hdr->ch_blksize = blksize; in do_comp() 249 size_t blks, blksize; in do_decomp() local 273 dstbuf = malloc(blksize); in do_decomp() 282 dlen = blksize; in do_decomp() 290 if (dlen != blksize) { in do_decomp() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | fakebop.c | 3000 cbp->blksize = MAXBSIZE; in boot_compinfo()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | scsi_vhci.c | 3812 size_t blksize; in vhci_update_pathstates() local 3827 blksize = vhci_get_blocksize(dip); in vhci_update_pathstates() 3951 blksize, B_READ, NULL, NULL); in vhci_update_pathstates() 6856 size_t blksize; in vhci_failover() local 6868 blksize = vhci_get_blocksize(cdip); in vhci_failover() 6972 (struct buf *)NULL, blksize, B_READ, NULL, NULL); in vhci_failover()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/ |
H A D | tpgs.c | 239 size_t blksize; in std_path_activate() local 245 blksize = vhci_get_blocksize(sd->sd_dev); in std_path_activate() 275 bp = scsi_alloc_consistent_buf(ap, (struct buf *)NULL, blksize, B_READ, in std_path_activate()
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_dataset.c | 5354 uint64_t blksize) in vdev_raidz_asize() argument 5360 asize = ((blksize - 1) >> ashift) + 1; in vdev_raidz_asize() 5373 volsize_from_vdevs(zpool_handle_t *zhp, uint64_t nblocks, uint64_t blksize) in volsize_from_vdevs() argument 5383 return (nblocks * blksize); in volsize_from_vdevs() 5408 asize = vdev_raidz_asize(ndisks, nparity, ashift, blksize); in volsize_from_vdevs() 5421 ret = nblocks * blksize; in volsize_from_vdevs()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | queue.c | 5794 long blksize; local 5802 &blksize); 6478 long avail, blksize; in filesys_update() local 6500 avail = freediskspace(FILE_SYS_NAME(i), &blksize); in filesys_update() 6501 if (avail < 0 || blksize <= 0) in filesys_update() 6507 FILE_SYS_NAME(i), avail, blksize); in filesys_update() 6515 fs->fs_blksize = blksize; in filesys_update() 6573 long avail, blksize; local 6578 avail = freediskspace(FILE_SYS_NAME(i), &blksize); 6579 if (avail >= 0 && blksize > 0) [all …]
|
/illumos-gate/usr/src/boot/sys/ufs/ffs/ |
H A D | fs.h | 610 #define blksize(fs, ip, lbn) \ macro
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop.h | 78 int blksize; member
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk_common.c | 764 uint_t blksize; in dev_di_node_add() local 1026 blksize = (uint_t)*blksizep; in dev_di_node_add() 1028 blksize = DEV_BSIZE; /* default value */ in dev_di_node_add() 1030 "%" PRIu64, nblocks * blksize); in dev_di_node_add()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | sunddi.h | 829 uint64_t size64, uint_t blksize); 841 uint64_t nblocks64, uint_t blksize);
|
H A D | bootstat.h | 74 size_t blksize; member
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | sunddi.c | 1442 uint64_t nblocks64, uint_t blksize) in ddi_prop_op_nblocks_blksize() argument 1448 ASSERT(BIT_ONLYONESET(blksize)); in ddi_prop_op_nblocks_blksize() 1449 blkshift = highbit(blksize) - 1; in ddi_prop_op_nblocks_blksize() 1461 name, valuep, lengthp, size64, blksize)); in ddi_prop_op_nblocks_blksize() 1491 uint_t blksize) in ddi_prop_op_size_blksize() argument 1514 ASSERT(BIT_ONLYONESET(blksize)); in ddi_prop_op_size_blksize() 1515 blkshift = highbit(blksize) - 1; in ddi_prop_op_size_blksize() 1531 else if ((strcmp(name, "blksize") == 0) && (blksize < UINT_MAX)) in ddi_prop_op_size_blksize() 1575 *((uint32_t *)buffer) = (uint32_t)blksize; in ddi_prop_op_size_blksize()
|
H A D | driver_lyr.c | 1839 uint_t blksize; in ldi_get_size() local 1865 blksize = ldi_prop_get_int(lh, in ldi_get_size() 1868 if (blksize == DEV_BSIZE) in ldi_get_size() 1869 blksize = ldi_prop_get_int(lh, LDI_DEV_T_ANY | in ldi_get_size() 1874 ASSERT(BIT_ONLYONESET(blksize)); in ldi_get_size() 1875 blkshift = highbit(blksize) - 1; in ldi_get_size() 1895 blksize = ldi_prop_get_int(lh, in ldi_get_size() 1898 if (blksize == DEV_BSIZE) in ldi_get_size() 1899 blksize = ldi_prop_get_int(lh, LDI_DEV_T_ANY | in ldi_get_size() 1904 ASSERT(BIT_ONLYONESET(blksize)); in ldi_get_size() [all …]
|
H A D | driver.c | 475 uint_t blksize; in bdev_size() local 482 if ((blksize = e_ddi_getprop(dev, VBLK, "blksize", in bdev_size() 484 blksize = e_ddi_getprop(DDI_DEV_T_ANY, VBLK, "device-blksize", in bdev_size() 487 if (blksize >= DEV_BSIZE) in bdev_size() 488 return (nblocks * (blksize / DEV_BSIZE)); in bdev_size() 490 return (nblocks / (DEV_BSIZE / blksize)); in bdev_size() 500 uint_t blksize; in bdev_Size() local 507 if ((blksize = e_ddi_getprop(dev, VBLK, "blksize", in bdev_Size() 512 if (blksize >= DEV_BSIZE) in bdev_Size() 513 return (nblocks * (blksize / DEV_BSIZE)); in bdev_Size() [all …]
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | ufs_fs.h | 699 #define blksize(fs, ip, lbn) \ macro
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj.c | 3770 file->_base = kobj_zalloc(cbuf.blksize, KM_WAIT|KM_TMP); in kobj_open_file() 3771 file->_bsize = cbuf.blksize; in kobj_open_file()
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | sd.c | 1171 static int sr_sector_mode(dev_t dev, uint32_t blksize); 27862 sr_sector_mode(dev_t dev, uint32_t blksize) argument 27890 select[10] = ((blksize >> 8) & 0xff); 27891 select[11] = (blksize & 0xff); 27896 if (blksize == SD_MODE2_BLKSIZE) { 27913 sd_update_block_info(un, blksize, 0);
|
/illumos-gate/usr/src/uts/common/io/ib/clients/ibd/ |
H A D | ibd.c | 6759 size_t blksize; in ibd_prepare_sgl() local 6854 bufp += blksize; in ibd_prepare_sgl() 6886 if (blksize > avail) { in ibd_prepare_sgl() 6893 avail -= blksize; in ibd_prepare_sgl() 6894 bufp += blksize; in ibd_prepare_sgl() 7158 size_t blksize; in ibd_send() local 7188 blksize = MBLKL(nmp); in ibd_send() 7190 bufp += blksize; in ibd_send() 7279 if (blksize != 0) { in ibd_send() 7281 blksize); in ibd_send() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_vnops.c | 3717 uint_t blksize; in nfs_getapage() local 3839 blksize = off + PAGESIZE - blkoff; in nfs_getapage() 3841 blksize = rp->r_size - blkoff; in nfs_getapage() 3844 blksize = PAGESIZE; in nfs_getapage() 3847 blksize = bsize; in nfs_getapage() 3851 &io_len, blkoff, blksize, 0); in nfs_getapage() 3975 uint_t bsize, blksize; in nfs_readahead() local 3988 blksize = rp->r_size - blkoff; in nfs_readahead() 3990 blksize = bsize; in nfs_readahead() 3994 &io_off, &io_len, blkoff, blksize, 1); in nfs_readahead()
|
H A D | nfs4_vnops.c | 9836 uint_t blksize; in nfs4_getapage() local 9959 blksize = off + PAGESIZE - blkoff; in nfs4_getapage() 9961 blksize = rp->r_size - blkoff; in nfs4_getapage() 9964 blksize = PAGESIZE; in nfs4_getapage() 9967 blksize = bsize; in nfs4_getapage() 9971 &io_len, blkoff, blksize, 0); in nfs4_getapage() 10100 uint_t bsize, blksize; in nfs4_readahead() local 10114 blksize = rp->r_size - blkoff; in nfs4_readahead() 10116 blksize = bsize; in nfs4_readahead() 10120 &io_off, &io_len, blkoff, blksize, 1); in nfs4_readahead()
|