| /NextBSD/crypto/heimdal/lib/krb5/ |
| HD | crypto-evp.c | 99 size_t i, blocksize; in _krb5_evp_encrypt_cts() local 107 blocksize = EVP_CIPHER_CTX_block_size(c); in _krb5_evp_encrypt_cts() 109 if (len < blocksize) { in _krb5_evp_encrypt_cts() 113 } else if (len == blocksize) { in _krb5_evp_encrypt_cts() 127 i = ((len - 1) / blocksize) * blocksize; in _krb5_evp_encrypt_cts() 129 p += i - blocksize; in _krb5_evp_encrypt_cts() 131 memcpy(ivec2, p, blocksize); in _krb5_evp_encrypt_cts() 134 tmp[i] = p[i + blocksize] ^ ivec2[i]; in _krb5_evp_encrypt_cts() 135 for (; i < blocksize; i++) in _krb5_evp_encrypt_cts() 139 EVP_Cipher(c, p, tmp, blocksize); in _krb5_evp_encrypt_cts() [all …]
|
| HD | mit_glue.c | 184 size_t *blocksize) in krb5_c_block_size() argument 198 ret = krb5_crypto_getblocksize(context, crypto, blocksize); in krb5_c_block_size() 220 size_t blocksize; in krb5_c_decrypt() local 222 ret = krb5_crypto_getblocksize(context, crypto, &blocksize); in krb5_c_decrypt() 228 if (blocksize > ivec->length) { in krb5_c_decrypt() 260 size_t blocksize; in krb5_c_encrypt() local 262 ret = krb5_crypto_getblocksize(context, crypto, &blocksize); in krb5_c_encrypt() 268 if (blocksize > ivec->length) { in krb5_c_encrypt()
|
| /NextBSD/contrib/libarchive/libarchive/test/ |
| HD | test_write_format_tar.c | 37 size_t blocksize; in DEFINE_TEST() local 40 for (blocksize = 1; blocksize < 100000; blocksize += blocksize + 3) { in DEFINE_TEST() 48 archive_write_set_bytes_per_block(a, (int)blocksize)); in DEFINE_TEST() 50 archive_write_set_bytes_in_last_block(a, (int)blocksize)); in DEFINE_TEST() 51 assertEqualInt(blocksize, in DEFINE_TEST() 55 assertEqualInt(blocksize, in DEFINE_TEST() 84 failure("blocksize=%d", blocksize); in DEFINE_TEST() 85 assertEqualInt(((2048 - 1)/blocksize+1)*blocksize, used); in DEFINE_TEST()
|
| HD | test_write_format_tar_sparse.c | 37 size_t blocksize; in test_1() local 46 for (blocksize = 1; blocksize < 100000; blocksize += blocksize + 3) { in test_1() 54 archive_write_set_bytes_per_block(a, (int)blocksize)); in test_1() 56 archive_write_set_bytes_in_last_block(a, (int)blocksize)); in test_1() 57 assertEqualInt(blocksize, in test_1() 61 assertEqualInt(blocksize, in test_1() 97 failure("blocksize=%d", blocksize); in test_1() 98 assertEqualInt(((11264 - 1)/blocksize+1)*blocksize, used); in test_1() 180 size_t blocksize = 20 * 512; in test_2() local 195 archive_write_set_bytes_per_block(a, (int)blocksize)); in test_2() [all …]
|
| HD | test_write_filter_program.c | 37 int blocksize = 1024; in DEFINE_TEST() local 51 blocksize = 1; in DEFINE_TEST() 65 assertA(0 == archive_write_set_bytes_per_block(a, blocksize)); in DEFINE_TEST() 66 assertA(0 == archive_write_set_bytes_in_last_block(a, blocksize)); in DEFINE_TEST() 67 assertA(blocksize == archive_write_get_bytes_in_last_block(a)); in DEFINE_TEST() 69 assertA(blocksize == archive_write_get_bytes_in_last_block(a)); in DEFINE_TEST()
|
| HD | test_write_open_memory.c | 49 size_t blocksize = 94; in DEFINE_TEST() local 56 archive_write_set_bytes_per_block(a, (int)blocksize)); in DEFINE_TEST() 61 if (i < (511/blocksize)*blocksize) in DEFINE_TEST()
|
| /NextBSD/sbin/newfs_nandfs/ |
| HD | newfs_nandfs.c | 119 static size_t blocksize = NANDFS_DEF_BLOCKSIZE; variable 135 #define SIZE_TO_BLOCK(size) (((size) + (blocksize - 1)) / blocksize) 226 new_block->data = malloc(blocksize); in get_block() 230 memset(new_block->data, 0, blocksize); in get_block() 248 *blk = off / blocksize; in nandfs_seg_usage_blk_offset() 249 *offset = (off % blocksize) / seg_size; in nandfs_seg_usage_blk_offset() 261 if (size > blocksize) in segment_size() 275 entries = blocksize / sizeof(struct nandfs_block_group_desc); in prepare_blockgrouped_file() 277 desc[i].bg_nfrees = blocksize * 8; in prepare_blockgrouped_file() 297 desc_nr = entry / (blocksize * 8); in alloc_blockgrouped_file() [all …]
|
| /NextBSD/crypto/heimdal/appl/rsh/ |
| HD | common.c | 48 size_t blocksize; in init_ivecs() local 50 krb5_crypto_getblocksize(context, crypto, &blocksize); in init_ivecs() 52 ivec_in[0] = malloc(blocksize); in init_ivecs() 53 memset(ivec_in[0], client, blocksize); in init_ivecs() 56 ivec_in[1] = malloc(blocksize); in init_ivecs() 57 memset(ivec_in[1], 2 | client, blocksize); in init_ivecs() 61 ivec_out[0] = malloc(blocksize); in init_ivecs() 62 memset(ivec_out[0], !client, blocksize); in init_ivecs() 65 ivec_out[1] = malloc(blocksize); in init_ivecs() 66 memset(ivec_out[1], 2 | !client, blocksize); in init_ivecs()
|
| /NextBSD/sys/fs/nandfs/ |
| HD | nandfs_dir.c | 60 uint32_t blocksize = dir_node->nn_nandfsdev->nd_blocksize; in nandfs_add_dirent() local 79 while (off < blocksize) { in nandfs_add_dirent() 92 rest = blocksize; in nandfs_add_dirent() 125 dirent->rec_len = blocksize - off; in nandfs_add_dirent() 158 uint32_t blocksize, limit, off; in nandfs_remove_dirent() local 177 blocksize = dir_node->nn_nandfsdev->nd_blocksize; in nandfs_remove_dirent() 178 blocknr = offset / blocksize; in nandfs_remove_dirent() 192 limit = offset % blocksize; in nandfs_remove_dirent() 227 filesize = blocknr * blocksize + in nandfs_remove_dirent() 267 uint32_t blocksize, off; in nandfs_update_dirent() local [all …]
|
| /NextBSD/contrib/subversion/subversion/libsvn_subr/ |
| HD | spillbuf.c | 45 apr_size_t blocksize; member 119 apr_size_t blocksize, in init_spillbuf_extended() argument 127 buf->blocksize = blocksize; in init_spillbuf_extended() 138 apr_size_t blocksize, in init_spillbuf() argument 142 init_spillbuf_extended(buf, blocksize, maxsize, in init_spillbuf() 148 svn_spillbuf__create(apr_size_t blocksize, in svn_spillbuf__create() argument 153 init_spillbuf(buf, blocksize, maxsize, result_pool); in svn_spillbuf__create() 159 svn_spillbuf__create_extended(apr_size_t blocksize, in svn_spillbuf__create_extended() argument 167 init_spillbuf_extended(buf, blocksize, maxsize, in svn_spillbuf__create_extended() 213 mem->data = apr_palloc(buf->pool, buf->blocksize); in get_buffer() [all …]
|
| /NextBSD/crypto/openssl/crypto/ec/ |
| HD | ec_mult.c | 80 size_t blocksize; /* block size for wNAF splitting */ member 109 ret->blocksize = 8; /* default */ in ec_pre_comp_new() 338 size_t blocksize = 0, numblocks = 0; /* for wNAF splitting */ in ec_wNAF_mul() local 397 blocksize = pre_comp->blocksize; in ec_wNAF_mul() 403 numblocks = (BN_num_bits(scalar) / blocksize) + 1; in ec_wNAF_mul() 518 if (tmp_len < numblocks * blocksize) { in ec_wNAF_mul() 522 numblocks = (tmp_len + blocksize - 1) / blocksize; in ec_wNAF_mul() 536 wNAF_len[i] = blocksize; in ec_wNAF_mul() 537 if (tmp_len < blocksize) { in ec_wNAF_mul() 541 tmp_len -= blocksize; in ec_wNAF_mul() [all …]
|
| /NextBSD/usr.bin/du/ |
| HD | du.c | 80 static long blocksize, cblocksize; variable 108 blocksize = 0; in main() 161 blocksize = 1073741824; in main() 168 blocksize = 1024; in main() 175 blocksize = 1048576; in main() 236 if (blocksize == 0) in main() 237 (void)getbsize(¬used, &blocksize); in main() 241 blocksize /= DEV_BSIZE; in main() 246 blocksize); in main() 273 cblocksize, blocksize)) { in main() [all …]
|
| /NextBSD/sys/boot/usb/storage/ |
| HD | umass_loader.c | 114 uint32_t blocksize; in umass_disk_open_sub() local 116 if (usb_msc_read_capacity(umass_uaa.device, 0, &nblock, &blocksize) != 0) in umass_disk_open_sub() 119 return (disk_open(dev, ((uint64_t)nblock + 1) * (uint64_t)blocksize, blocksize, 0)); in umass_disk_open_sub() 143 uint32_t blocksize; in umass_disk_ioctl() local 149 &nblock, &blocksize) != 0) in umass_disk_ioctl() 155 *(uint32_t*)buf = blocksize; in umass_disk_ioctl()
|
| /NextBSD/lib/libc/gen/ |
| HD | getbsize.c | 45 long n, max, mul, blocksize; in getbsize() local 92 if ((blocksize = n * mul) < 512) { in getbsize() 95 blocksize = n = 512; in getbsize() 98 blocksize = n = 512; in getbsize() 102 *blocksizep = blocksize; in getbsize()
|
| /NextBSD/usr.bin/hexdump/ |
| HD | display.c | 133 blocksize - address % blocksize); in print() 240 if ((curp = calloc(1, blocksize)) == NULL) in get() 242 if ((savp = calloc(1, blocksize)) == NULL) in get() 248 address += blocksize; in get() 251 for (need = blocksize, nread = 0;;) { in get() 260 if (need == blocksize) in get() 295 bcmp(curp, savp, blocksize) != 0) { in get() 303 address += blocksize; in get() 304 need = blocksize; in get()
|
| HD | hexdump.c | 52 int blocksize; /* data block size */ variable 70 for (blocksize = 0, tfs = fshead; tfs; tfs = tfs->nextfs) { in main() 72 if (blocksize < tfs->bcnt) in main() 73 blocksize = tfs->bcnt; in main()
|
| /NextBSD/sys/cam/ctl/ |
| HD | ctl_backend_block.c | 795 off = roff = ((off_t)lbalen->lba) * be_lun->cbe_lun.blocksize; in ctl_be_block_gls_file() 815 scsi_ulto4b(MIN(UINT32_MAX, off / be_lun->cbe_lun.blocksize - in ctl_be_block_gls_file() 837 val = vattr.va_bytes / be_lun->cbe_lun.blocksize; in ctl_be_block_getattr_file() 844 be_lun->cbe_lun.blocksize; in ctl_be_block_getattr_file() 974 off = roff = ((off_t)lbalen->lba) * be_lun->cbe_lun.blocksize; in ctl_be_block_gls_zvol() 994 scsi_ulto4b(MIN(UINT32_MAX, off / be_lun->cbe_lun.blocksize - in ctl_be_block_gls_zvol() 1058 maxlen = LONG_MAX - (LONG_MAX % be_lun->cbe_lun.blocksize); in ctl_be_block_unmap_dev_range() 1068 bio->bio_pblkno = off / be_lun->cbe_lun.blocksize; in ctl_be_block_unmap_dev_range() 1115 be_lun->cbe_lun.blocksize; in ctl_be_block_unmap_dev() 1118 scsi_8btou64(buf->lba) * be_lun->cbe_lun.blocksize, in ctl_be_block_unmap_dev() [all …]
|
| HD | ctl_backend_ramdisk.c | 282 lbalen->len * cbe_lun->blocksize; in ctl_backend_ramdisk_submit() 530 cbe_lun->blocksize = params->blocksize_bytes; in ctl_backend_ramdisk_create() 532 cbe_lun->blocksize = 2048; in ctl_backend_ramdisk_create() 534 cbe_lun->blocksize = 512; in ctl_backend_ramdisk_create() 535 if (params->lun_size_bytes < cbe_lun->blocksize) { in ctl_backend_ramdisk_create() 538 params->lun_size_bytes, cbe_lun->blocksize); in ctl_backend_ramdisk_create() 541 be_lun->size_blocks = params->lun_size_bytes / cbe_lun->blocksize; in ctl_backend_ramdisk_create() 542 be_lun->size_bytes = be_lun->size_blocks * cbe_lun->blocksize; in ctl_backend_ramdisk_create() 545 cbe_lun->opttxferlen = softc->rd_size / cbe_lun->blocksize; in ctl_backend_ramdisk_create() 549 params->blocksize_bytes = cbe_lun->blocksize; in ctl_backend_ramdisk_create() [all …]
|
| /NextBSD/contrib/apr/file_io/unix/ |
| HD | readwrite.c | 33 apr_uint64_t blocksize; in file_read_buffered() local 71 …blocksize = size > thefile->dataRead - thefile->bufpos ? thefile->dataRead - thefile->bufpos : siz… in file_read_buffered() 72 memcpy(pos, thefile->buffer + thefile->bufpos, blocksize); in file_read_buffered() 73 thefile->bufpos += blocksize; in file_read_buffered() 74 pos += blocksize; in file_read_buffered() 75 size -= blocksize; in file_read_buffered() 153 int blocksize; in apr_file_write() local 174 blocksize = size > thefile->bufsize - thefile->bufpos ? in apr_file_write() 176 memcpy(thefile->buffer + thefile->bufpos, pos, blocksize); in apr_file_write() 177 thefile->bufpos += blocksize; in apr_file_write() [all …]
|
| /NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| HD | dmu_object.c | 35 dmu_object_alloc(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc() argument 80 dnode_allocate(dn, ot, blocksize, 0, bonustype, bonuslen, tx); in dmu_object_alloc() 91 int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) in dmu_object_claim() argument 102 dnode_allocate(dn, ot, blocksize, 0, bonustype, bonuslen, tx); in dmu_object_claim() 111 int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) in dmu_object_reclaim() argument 124 dnode_reallocate(dn, ot, blocksize, bonustype, bonuslen, tx); in dmu_object_reclaim()
|
| /NextBSD/sbin/swapon/ |
| HD | swapon.c | 758 long blocksize) in sizetobuf() argument 767 snprintf(buf, bufsize, "%*lld", hlen, val / blocksize); in sizetobuf() 776 long blocksize; in swaplist() local 786 blocksize = 1024 * 1024 * 1024; in swaplist() 791 blocksize = -1; in swaplist() 796 blocksize = 1024; in swaplist() 801 blocksize = 1024 * 1024; in swaplist() 806 getbsize(&hlen, &blocksize); in swaplist() 807 snprintf(buf, sizeof(buf), "%ld-blocks", blocksize); in swaplist() 836 blocksize); in swaplist() [all …]
|
| /NextBSD/sys/gnu/fs/reiserfs/ |
| HD | reiserfs_stree.c | 359 is_leaf(char *buf, int blocksize, struct buf *bp) in is_leaf() argument 373 ((blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN))) { in is_leaf() 380 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih)); in is_leaf() 381 if (used_space != blocksize - blkh_free_space(blkh)) { in is_leaf() 395 prev_location = blocksize; in is_leaf() 402 if (ih_location(ih) >= blocksize || in is_leaf() 409 ih_item_len(ih) > MAX_ITEM_LEN(blocksize)) { in is_leaf() 427 is_internal(char *buf, int blocksize, struct buf *bp) in is_internal() argument 441 if (nr > (blocksize - BLKH_SIZE - DC_SIZE) / (KEY_SIZE + DC_SIZE)) { in is_internal() 451 if (used_space != blocksize - blkh_free_space(blkh)) { in is_internal()
|
| /NextBSD/bin/df/ |
| HD | df.c | 427 static long blocksize; in prtstat() local 448 header = getbsize(&headerlen, &blocksize); in prtstat() 494 sfsp->f_bsize, blocksize), in prtstat() 495 mwp->used, fsbtoblk(used, sfsp->f_bsize, blocksize), in prtstat() 497 sfsp->f_bsize, blocksize)); in prtstat() 547 static long blocksize = 0; in update_maxwidths() local 550 if (blocksize == 0) in update_maxwidths() 551 getbsize(&dummy, &blocksize); in update_maxwidths() 556 fsbtoblk((int64_t)sfsp->f_blocks, sfsp->f_bsize, blocksize))); in update_maxwidths() 559 (int64_t)sfsp->f_bfree, sfsp->f_bsize, blocksize))); in update_maxwidths() [all …]
|
| /NextBSD/usr.sbin/camdd/ |
| HD | camdd.c | 117 uint64_t blocksize; member 320 uint32_t blocksize; member 676 data_ptr = malloc(dev->blocksize); in camdd_alloc_buf() 678 warn("unable to allocate %u bytes", dev->blocksize); in camdd_alloc_buf() 701 data->alloc_len = dev->blocksize; in camdd_alloc_buf() 1042 uint64_t blocksize = io_opts->blocksize; in camdd_probe_file() local 1053 if (blocksize == 0) in camdd_probe_file() 1054 dev->blocksize = CAMDD_FILE_DEFAULT_BLOCK; in camdd_probe_file() 1056 dev->blocksize = blocksize; in camdd_probe_file() 1142 if (dev->blocksize > max_iosize) { in camdd_probe_file() [all …]
|
| /NextBSD/usr.sbin/pstat/ |
| HD | pstat.c | 462 #define CONVERT(v) ((int64_t)(v) * pagesize / blocksize) 471 long blocksize; in print_swap_header() local 474 header = getbsize(&hlen, &blocksize); in print_swap_header() 488 long blocksize; in print_swap_line() local 491 getbsize(&hlen, &blocksize); in print_swap_line() 525 long blocksize; in print_swap_total() local 528 getbsize(&hlen, &blocksize); in print_swap_total() 530 blocksize = 1024 * 1024; in print_swap_total()
|