Home
last modified time | relevance | path

Searched refs:nblocks (Results 1 – 25 of 46) sorted by relevance

12

/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/
H A Daes_provider.c39 int nblocks, partialamount; in krb5int_aes_encrypt() local
77 nblocks = (input->length + BLOCK_SIZE - 1) / BLOCK_SIZE; in krb5int_aes_encrypt()
78 KRB5_LOG(KRB5_INFO, "nblocks = %d", nblocks); in krb5int_aes_encrypt()
83 if (nblocks == 1 || (partialamount == 0)) { in krb5int_aes_encrypt()
112 if (nblocks > 1) { in krb5int_aes_encrypt()
119 ((nblocks - 2) * BLOCK_SIZE)); in krb5int_aes_encrypt()
121 ((nblocks - 1) * BLOCK_SIZE)); in krb5int_aes_encrypt()
153 pt.cd_length = nblocks * BLOCK_SIZE; in krb5int_aes_encrypt()
186 ct.cd_length = nblocks * BLOCK_SIZE; in krb5int_aes_encrypt()
237 nlobp = (char *)(output->data + ((nblocks - 2) * BLOCK_SIZE)); in krb5int_aes_encrypt()
[all …]
/titanic_44/usr/src/cmd/format/
H A Dauto_sense.c968 diskaddr_t nblocks = 0; in generic_disk_sense() local
1001 nblocks = UINT32_MAX; in generic_disk_sense()
1003 nblocks = tblocks; in generic_disk_sense()
1048 compute_chs_values(tblocks, nblocks, &pcyl, &nhead, in generic_disk_sense()
1086 compute_chs_values(tblocks, nblocks, &pcyl, &nhead, &nsect); in generic_disk_sense()
1109 err_print(" nblocks: %llu\n", nblocks); in generic_disk_sense()
1132 ((diskaddr_t)pcyl * nhead * nsect) < (nblocks - nblocks/32) || in generic_disk_sense()
1133 ((diskaddr_t)pcyl * nhead * nsect) > (nblocks + nblocks/4)) { in generic_disk_sense()
1134 if (nblocks > (pcyl * nhead)) { in generic_disk_sense()
1137 nsect, nblocks / (pcyl * nhead)); in generic_disk_sense()
[all …]
/titanic_44/usr/src/uts/common/crypto/io/
H A Dswrand.c77 uint32_t nblocks; /* number of memory blocks */ member
608 if (entsrc->nblocks == 0) { in physmem_ent_init()
614 entsrc->parity = kmem_alloc(howmany(entsrc->nblocks, 8), in physmem_ent_init()
620 i = howmany(entsrc->nblocks, 8); in physmem_ent_init()
651 kmem_free(entsrc->parity, howmany(entsrc->nblocks, 8)); in physmem_ent_fini()
689 ASSERT(entsrc->nblocks > 0); in physmem_ent_gen()
692 block = oblock = srndpool[i] % entsrc->nblocks; in physmem_ent_gen()
834 entsrc.nblocks = 0; in physmem_count_blocks()
836 entsrc.nblocks += pmem->ml_size / MEMBLOCKSIZE; in physmem_count_blocks()
837 if (entsrc.nblocks > MAXMEMBLOCKS) { in physmem_count_blocks()
[all …]
/titanic_44/usr/src/uts/common/os/
H A Ddriver.c490 uint_t nblocks; in bdev_size() local
493 if ((nblocks = e_ddi_getprop(dev, VBLK, "nblocks", in bdev_size()
504 return (nblocks * (blksize / DEV_BSIZE)); in bdev_size()
506 return (nblocks / (DEV_BSIZE / blksize)); in bdev_size()
515 uint64_t nblocks; in bdev_Size() local
518 if ((nblocks = e_ddi_getprop_int64(dev, VBLK, "Nblocks", in bdev_Size()
529 return (nblocks * (blksize / DEV_BSIZE)); in bdev_Size()
531 return (nblocks / (DEV_BSIZE / blksize)); in bdev_Size()
/titanic_44/usr/src/man/man9p/
H A DMakefile33 device-nblocks.9p \
49 device-nblocks.9p := LINKSRC = size.9p
/titanic_44/usr/src/test/zfs-tests/tests/functional/reservation/
H A Dreservation.shlib162 typeset -i nblocks=$((volsize / volblocksize))
165 while ((nblocks > 1)); do
166 ((nblocks += DNODES_PER_LEVEL - 1))
167 ((nblocks /= DNODES_PER_LEVEL))
168 ((numdb += nblocks))
/titanic_44/usr/src/lib/libefi/common/
H A Drdwr_efi.c148 uint_t nblocks; in efi_alloc_and_init() local
160 nblocks = NBLOCKS(nparts, lbsize); in efi_alloc_and_init()
161 if ((nblocks * lbsize) < EFI_MIN_ARRAY_SIZE + lbsize) { in efi_alloc_and_init()
163 nblocks = EFI_MIN_ARRAY_SIZE / lbsize + 1; in efi_alloc_and_init()
191 vptr->efi_first_u_lba = nblocks + 1; in efi_alloc_and_init()
194 vptr->efi_last_u_lba = vptr->efi_last_lba - nblocks; in efi_alloc_and_init()
837 int nblocks; in efi_write() local
868 nblocks = dk_ioc.dki_length / vtoc->efi_lbasize - 1; in efi_write()
875 lba_backup_gpt_hdr = vtoc->efi_last_u_lba + 1 + nblocks; in efi_write()
/titanic_44/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c898 long nblocks; in create_cache() local
908 nblocks = cp->mt_span / cp->mt_size; in create_cache()
909 nblocks >>= 3; in create_cache()
910 if (nblocks == 0) { /* less than 8 free blocks in this pool */ in create_cache()
920 nblocks = numblocks; in create_cache()
929 nblocks, 32); in create_cache()
931 nblocks = (uintptr_t)((caddr_t)cp->mt_freelist + in create_cache()
933 cp->mt_nfree = ((nblocks >> 3) << 3); in create_cache()
935 (void) memset(cp->mt_freelist, 0xff, nblocks >> 3); in create_cache()
939 copy_pattern(FREEPATTERN, cp->mt_arena, cp->mt_size * nblocks); in create_cache()
/titanic_44/usr/src/uts/common/io/
H A Dcryptmod.c1250 int nblocks = 0, blockno; in aes_cbc_cts_encrypt() local
1263 nblocks = (length + DEFAULT_AES_BLOCKLEN - 1) / DEFAULT_AES_BLOCKLEN; in aes_cbc_cts_encrypt()
1268 if (nblocks == 1) { in aes_cbc_cts_encrypt()
1303 for (blockno = 0; blockno < nblocks - 2; blockno++) { in aes_cbc_cts_encrypt()
1328 xorblock(tmp, plain + (nblocks - 2) * DEFAULT_AES_BLOCKLEN); in aes_cbc_cts_encrypt()
1345 nleft = length - (nblocks - 1) * DEFAULT_AES_BLOCKLEN; in aes_cbc_cts_encrypt()
1349 bcopy(plain + (nblocks - 1) * DEFAULT_AES_BLOCKLEN, tmp3, in aes_cbc_cts_encrypt()
1353 bcopy(tmp2, plain + (nblocks - 1) * DEFAULT_AES_BLOCKLEN, in aes_cbc_cts_encrypt()
1377 bcopy(tmp2, plain + (nblocks - 2) * DEFAULT_AES_BLOCKLEN, in aes_cbc_cts_encrypt()
1410 int nblocks = 0, blockno; in aes_cbc_cts_decrypt() local
[all …]
/titanic_44/usr/src/uts/i86pc/i86hvm/io/
H A Dpv_cmdk.c614 diskaddr_t nblocks, blk; in xdfs_c_bb_check() local
623 &nblocks, &blk, NULL, &vtoctag, 0) != 0) { in xdfs_c_bb_check()
628 if ((vtoctag == V_ALTSCTR) && (nblocks > 1)) in xdfs_c_bb_check()
644 (altbase > altlast) || (altlast >= nblocks)) in xdfs_c_bb_check()
/titanic_44/usr/src/uts/sun4v/sys/
H A Dvdsk_common.h220 daddr_t nblocks; /* number of blocks in the slice */ member
254 uint64_t nblocks; /* number of blocks in partition */ member
400 (vtoc)->v_part[i].p_size = (vd_vtoc)->partition[i].nblocks; \
441 (vd_vtoc)->partition[i].nblocks = (vtoc)->v_part[i].p_size; \
/titanic_44/usr/src/cmd/rmformat/
H A Drmf_slice.c1644 diskaddr_t nblocks = size; in erase() local
1648 nblocks = (nblocks < 128) ? nblocks : 128; in erase()
1649 buf = (char *)malloc(nblocks * med_info.sm_blocksize); in erase()
1654 (void) memset(buf, 0, (size_t)nblocks * med_info.sm_blocksize); in erase()
1660 (size_t)nblocks * med_info.sm_blocksize); in erase()
1665 if (ret != (nblocks * med_info.sm_blocksize)) in erase()
H A Drmf_misc.c936 uint32_t nblocks, char *buf, in verify() argument
949 ret = smedia_raw_read(handle, start_sector, buf, nblocks * in verify()
955 if (ret != (nblocks * blocksize)) in verify()
964 ret = smedia_raw_write(handle, start_sector, buf, nblocks * in verify()
970 if (ret != (blocksize * nblocks)) in verify()
984 ret = read(fd, buf, nblocks * blocksize); in verify()
989 if (ret != nblocks * blocksize) { in verify()
1003 ret = write(fd, buf, nblocks * blocksize); in verify()
1008 if (ret != nblocks * blocksize) { in verify()
/titanic_44/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_pcu.h64 uint64_t nblocks; /* number of data blocks == bitmap dimension */ member
/titanic_44/usr/src/uts/common/fs/zfs/sys/
H A Dzvol.h49 extern int zvol_dump(dev_t dev, caddr_t addr, daddr_t offset, int nblocks);
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/
H A Ddk_encrypt.c288 int nblocks = (d2.length + blocksize - 1) / blocksize; in krb5int_aes_dk_encrypt() local
289 cn = (uchar_t *) d2.data + blocksize * (nblocks - 2); in krb5int_aes_dk_encrypt()
/titanic_44/usr/src/uts/common/avs/ns/sv/
H A Dsv.c909 nsc_size_t nblocks; in sv_enable() local
1070 nblocks = 0; in sv_enable()
1072 nblocks = svp->sv_nblocks; in sv_enable()
1077 svp->sv_dev, nblocks); in sv_enable()
1531 int *mode, *nblocks; in sv_list() local
1562 nblocks = &svn32->svn_nblocks; in sv_list()
1569 nblocks = &svn->svn_nblocks; in sv_list()
1578 *nblocks = svp->sv_nblocks; in sv_list()
1581 if (*nblocks == 0) { in sv_list()
1586 *nblocks = svp->sv_nblocks; in sv_list()
/titanic_44/usr/src/uts/common/fs/ufs/
H A Dufs_inode.c1053 int blocksreleased = 0, nblocks; in indirtrunc() local
1067 nblocks = btodb(fs->fs_bsize); in indirtrunc()
1129 blocksreleased += nblocks; in indirtrunc()
1166 long nblocks, blocksreleased = 0; in ufs_itrunc() local
1390 nblocks = btodb(fs->fs_bsize); in ufs_itrunc()
1430 blocksreleased += nblocks; in ufs_itrunc()
/titanic_44/usr/src/pkg/manifests/
H A Dsystem-kernel.man9p.inc28 link path=usr/share/man/man9p/device-nblocks.9p target=size.9p
/titanic_44/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk_common.c621 uint64_t nblocks; in dev_di_node_add() local
860 nblocks = (uint64_t)*nblocksp; in dev_di_node_add()
871 "%" PRIu64, nblocks * dblksize); in dev_di_node_add()
/titanic_44/usr/src/uts/common/sys/fs/
H A Dhsfs_node.h188 u_offset_t nblocks; /* # disk blocks */ member
/titanic_44/usr/src/uts/common/io/hxge/
H A Dhxge_txdma.c141 dest_p->nblocks = entries; in hxge_setup_dma_common()
1867 uint32_t nblocks, nmsgs; in hxge_map_txdma_channel_buf_ring() local
1880 nmsgs += tmp_bufp->nblocks; in hxge_map_txdma_channel_buf_ring()
1884 channel, tmp_bufp, tmp_bufp->nblocks, nmsgs)); in hxge_map_txdma_channel_buf_ring()
1959 nblocks = dma_bufp->nblocks; in hxge_map_txdma_channel_buf_ring()
1966 for (j = 0; j < nblocks; j++) { in hxge_map_txdma_channel_buf_ring()
/titanic_44/usr/src/uts/common/fs/hsfs/
H A Dhsfs_vnops.c1027 hsio->nblocks = howmany(hsio->bp->b_bcount, in hsfs_getpage_ra()
1414 hsio->nblocks = howmany(hsio->bp->b_bcount, in hsfs_getapage()
2095 (((io)->io_lblkno + (io)->nblocks == (nio)->io_lblkno) && \
2195 bsize = ldbtob(fio->nblocks); in hsched_invoke_strategy()
2204 bsize += ldbtob(nio->nblocks); in hsched_invoke_strategy()
/titanic_44/usr/src/uts/common/io/nxge/
H A Dnxge_txdma.c229 dest_p->nblocks = entries; in nxge_setup_dma_common()
2541 uint32_t nblocks, nmsgs; in nxge_map_txdma_channel_buf_ring() local
2555 nmsgs += tmp_bufp->nblocks; in nxge_map_txdma_channel_buf_ring()
2559 channel, tmp_bufp, tmp_bufp->nblocks, nmsgs)); in nxge_map_txdma_channel_buf_ring()
2643 nblocks = dma_bufp->nblocks; in nxge_map_txdma_channel_buf_ring()
2649 for (j = 0; j < nblocks; j++) { in nxge_map_txdma_channel_buf_ring()
/titanic_44/usr/src/uts/common/fs/zfs/
H A Ddmu_tx.c719 uint64_t nblocks; in dmu_tx_hold_zap() local
794 for (nblocks = dn->dn_maxblkid >> epbs; nblocks != 0; nblocks >>= epbs) in dmu_tx_hold_zap()

12