Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 25 of 148) sorted by relevance

123456

/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_seek/
H A Dmmap_seek.c82 off_t block_size = atoi(argv[3]); in main() local
84 if (block_size * 2 > file_size) { in main()
115 seek_data(fd, block_size, -1); in main()
116 seek_hole(fd, 0, block_size); in main()
117 seek_hole(fd, block_size, block_size); in main()
122 seek_data(fd, block_size, block_size); in main()
124 seek_hole(fd, block_size, P2ROUNDUP(file_size / 2, block_size)); in main()
135 memset(buf + block_size, 0, block_size); in main()
137 seek_data(fd, block_size, 2 * block_size); in main()
138 seek_hole(fd, 0, block_size); in main()
[all …]
/freebsd-13.1/sys/contrib/openzfs/module/icp/algs/modes/
H A Dgcm.c183 datap += block_size; in gcm_mode_encrypt_contiguous_blocks()
422 processed += block_size; in gcm_decrypt_final()
423 blockp += block_size; in gcm_decrypt_final()
424 remainder -= block_size; in gcm_decrypt_final()
502 bzero(cb, block_size); in gcm_format_initial_blocks()
545 bzero(authp, block_size); in gcm_init()
546 bzero(ghash, block_size); in gcm_init()
1289 datap += block_size; in gcm_mode_encrypt_contiguous_blocks_avx()
1290 bleft -= block_size; in gcm_mode_encrypt_contiguous_blocks_avx()
1442 datap += block_size; in gcm_decrypt_final_avx()
[all …]
H A Dcbc.c36 crypto_data_t *out, size_t block_size, in cbc_encrypt_contiguous_blocks() argument
68 need = block_size - ctx->cbc_remainder_len; in cbc_encrypt_contiguous_blocks()
91 if (out_data_1_len == block_size) { in cbc_encrypt_contiguous_blocks()
98 block_size - out_data_1_len); in cbc_encrypt_contiguous_blocks()
102 out->cd_offset += block_size; in cbc_encrypt_contiguous_blocks()
109 datap += block_size; in cbc_encrypt_contiguous_blocks()
143 crypto_data_t *out, size_t block_size, in cbc_decrypt_contiguous_blocks() argument
210 block_size - out_data_1_len); in cbc_decrypt_contiguous_blocks()
214 out->cd_offset += block_size; in cbc_decrypt_contiguous_blocks()
221 datap += block_size; in cbc_decrypt_contiguous_blocks()
[all …]
H A Dccm.c150 datap += block_size; in ccm_mode_encrypt_contiguous_blocks()
228 bzero(macp, block_size); in ccm_encrypt_final()
489 datap += block_size; in ccm_mode_decrypt_contiguous_blocks()
545 bzero(macp, block_size); in ccm_decrypt_final()
550 mac_remain -= block_size; in ccm_decrypt_final()
551 pt += block_size; in ccm_decrypt_final()
786 bzero(ivp, block_size); in ccm_init()
804 bzero(authp, block_size); in ccm_init()
827 bzero(authp, block_size); in ccm_init()
833 processed += block_size; in ccm_init()
[all …]
H A Decb.c36 crypto_data_t *out, size_t block_size, in ecb_cipher_contiguous_blocks() argument
50 if (length + ctx->ecb_remainder_len < block_size) { in ecb_cipher_contiguous_blocks()
66 need = block_size - ctx->ecb_remainder_len; in ecb_cipher_contiguous_blocks()
81 &out_data_1_len, &out_data_2, block_size); in ecb_cipher_contiguous_blocks()
87 block_size - out_data_1_len); in ecb_cipher_contiguous_blocks()
90 out->cd_offset += block_size; in ecb_cipher_contiguous_blocks()
97 datap += block_size; in ecb_cipher_contiguous_blocks()
103 if (remainder > 0 && remainder < block_size) { in ecb_cipher_contiguous_blocks()
H A Dctr.c37 crypto_data_t *out, size_t block_size, in ctr_mode_contiguous_blocks() argument
53 if (length + ctx->ctr_remainder_len < block_size) { in ctr_mode_contiguous_blocks()
69 need = block_size - ctx->ctr_remainder_len; in ctr_mode_contiguous_blocks()
114 &out_data_1_len, &out_data_2, block_size); in ctr_mode_contiguous_blocks()
120 block_size - out_data_1_len); in ctr_mode_contiguous_blocks()
123 out->cd_offset += block_size; in ctr_mode_contiguous_blocks()
130 datap += block_size; in ctr_mode_contiguous_blocks()
136 if (remainder > 0 && remainder < block_size) { in ctr_mode_contiguous_blocks()
/freebsd-13.1/sys/dev/usb/
H A Dusb_mbuf.c66 usb_size_t block_size, uint16_t nblocks) in usb_alloc_mbufs() argument
74 block_size += ((-block_size) & (USB_HOST_ALIGN - 1)); in usb_alloc_mbufs()
76 if (nblocks && block_size) { in usb_alloc_mbufs()
77 alloc_size = (block_size + sizeof(struct usb_mbuf)) * nblocks; in usb_alloc_mbufs()
88 m_ptr->max_data_len = block_size; in usb_alloc_mbufs()
93 data_ptr += block_size; in usb_alloc_mbufs()
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/file_write/
H A Dfile_write.c49 static void randomize_buffer(int block_size) { in randomize_buffer() argument
52 for (i = 0; i < block_size; i++) in randomize_buffer()
73 int block_size = BLOCKSZ; in main() local
87 block_size = atoi(optarg); in main()
136 if (block_size > BIGBUFFERSIZE) { in main()
156 for (i = 0; i < block_size; i++) { in main()
211 "offset = %lld, ", filename, block_size, in main()
225 randomize_buffer(block_size); in main()
227 if ((n = write(bigfd, &bigbuffer, block_size)) == -1) { in main()
240 PRId64 ")\n", good_writes, (good_writes * block_size)); in main()
/freebsd-13.1/contrib/xz/src/liblzma/common/
H A Dfilter_encoder.c37 uint64_t (*block_size)(const void *options); member
62 .block_size = NULL, // FIXME
84 .block_size = NULL,
94 .block_size = NULL,
104 .block_size = NULL,
114 .block_size = NULL,
124 .block_size = NULL,
134 .block_size = NULL,
144 .block_size = NULL,
237 if (fe->block_size != NULL) { in lzma_mt_block_size()
[all …]
H A Dstream_encoder_mt.c110 size_t block_size; member
569 &thr_in_size, coder->block_size); in stream_encode_in()
890 if (options->block_size > 0) { in get_options()
894 *block_size = options->block_size; in get_options()
898 if (*block_size == 0) in get_options()
901 assert(*block_size <= BLOCK_SIZE_MAX); in get_options()
948 uint64_t block_size; in stream_encoder_mt_init() local
951 &block_size, &outbuf_size_max)); in stream_encoder_mt_init()
954 if (block_size > SIZE_MAX) in stream_encoder_mt_init()
1014 coder->block_size = (size_t)(block_size); in stream_encoder_mt_init()
[all …]
/freebsd-13.1/tools/tools/usbtest/
H A Dusb_msc_test.c98 static uint32_t block_size = 512; variable
295 len /= block_size; in do_read_10()
325 len /= block_size; in do_write_10()
454 io_size * block_size)) { in do_io_test()
583 block_size = capacity_bs; in usb_msc_test()
673 (uint64_t)block_size) / 1000000ULL)); in usb_msc_test()
681 (uint64_t)block_size) / 1000000ULL)); in usb_msc_test()
709 buffer = malloc(block_size * lba_max); in usb_msc_test()
714 reference = malloc(block_size * lba_max); in usb_msc_test()
741 if (do_write_10(0, lba_max * block_size, in usb_msc_test()
[all …]
/freebsd-13.1/contrib/libarchive/libarchive/
H A Darchive_read_open_filename.c75 size_t block_size; member
97 size_t block_size) in archive_read_open_file() argument
104 size_t block_size) in archive_read_open_filename() argument
114 size_t block_size) in archive_read_open_filenames() argument
131 mine->block_size = block_size; in archive_read_open_filenames()
160 size_t block_size) in archive_read_open_filename_w() argument
170 mine->block_size = block_size; in archive_read_open_filename_w()
357 while (new_block_size < mine->block_size in file_open()
360 mine->block_size = new_block_size; in file_open()
362 buffer = malloc(mine->block_size); in file_open()
[all …]
H A Darchive_read_open_fd.c55 size_t block_size; member
66 archive_read_open_fd(struct archive *a, int fd, size_t block_size) in archive_read_open_fd() argument
79 b = malloc(block_size); in archive_read_open_fd()
86 mine->block_size = block_size; in archive_read_open_fd()
120 bytes_read = read(mine->fd, mine->buffer, mine->block_size); in file_read()
151 request = (request / mine->block_size) * mine->block_size; in file_skip()
H A Darchive_write_add_filter_lz4.c75 size_t block_size; member
232 data->block_size = bkmap[0]; in archive_filter_lz4_open()
261 data->in_buffer_size = data->block_size; in archive_filter_lz4_open()
268 data->in_buffer_size = data->block_size; in archive_filter_lz4_open()
444 r = (ssize_t)data->block_size; in lz4_write_one_block()
453 data->block_size); in lz4_write_one_block()
501 (int)length, (int)data->block_size, in drive_compressor_independence()
567 (int)data->block_size); in drive_compressor_dependence()
591 (int)data->block_size, 1); in drive_compressor_dependence()
595 (int)data->block_size); in drive_compressor_dependence()
[all …]
H A Darchive_read_open_file.c55 size_t block_size; member
69 size_t block_size = 128 * 1024; in archive_read_open_FILE() local
74 b = malloc(block_size); in archive_read_open_FILE()
81 mine->block_size = block_size; in archive_read_open_FILE()
115 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f); in file_read()
116 if (bytes_read < mine->block_size && ferror(mine->f)) { in file_read()
/freebsd-13.1/tests/sys/cddl/zfs/bin/
H A Dfile_write.c60 int block_size = BLOCKSZ; in main() local
76 block_size = atoi(optarg); in main()
122 if (block_size > BIGBUFFERSIZE) { in main()
136 for (i = 0; i < block_size; i++) { in main()
192 "offset = %"PRId64", data = %s%d\n", filename, block_size, in main()
201 if ((n = write(bigfd, &bigbuffer, block_size)) == -1) { in main()
213 good_writes, (good_writes * block_size)); in main()
/freebsd-13.1/sys/contrib/octeon-sdk/
H A Dcvmx-flash.c233 rgn_ptr->block_size = 128; in __cvmx_flash_queury_cfi()
235 rgn_ptr->block_size = 256u * size; in __cvmx_flash_queury_cfi()
237 start_offset += rgn_ptr->block_size * rgn_ptr->num_blocks; in __cvmx_flash_queury_cfi()
276 flash->region[region].block_size); in __cvmx_flash_queury_cfi()
373 block * flash_info[chip_id].region[region].block_size; in cvmx_flash_erase_block()
495 block * flash_info[chip_id].region[region].block_size; in cvmx_flash_write_block()
496 int len = flash_info[chip_id].region[region].block_size; in cvmx_flash_write_block()
642 int block = (address - region_base) / flash->region[region].block_size; in cvmx_flash_write()
645 if (address != region_base + block*flash->region[region].block_size) in cvmx_flash_write()
662 data += flash->region[region].block_size; in cvmx_flash_write()
[all …]
H A Dcvmx-fpa.c78 uint64_t block_size, uint64_t num_blocks) in cvmx_fpa_setup_pool() argument
92 if (block_size < CVMX_FPA_MIN_BLOCK_SIZE) in cvmx_fpa_setup_pool()
105 cvmx_fpa_pool_info[pool].size = block_size; in cvmx_fpa_setup_pool()
113 ptr += block_size; in cvmx_fpa_setup_pool()
/freebsd-13.1/crypto/openssl/include/crypto/
H A Devp.h125 int block_size; member
133 int block_size; member
168 bl = EVP_CIPHER_CTX_cipher(ctx)->block_size; \
251 nid##_##nmode, block_size, key_len, iv_len, \
263 #define BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, \ argument
266 BLOCK_CIPHER_def1(cname, cbc, cbc, CBC, kstruct, nid, block_size, key_len, \
283 #define BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, \ argument
286 BLOCK_CIPHER_def1(cname, ecb, ecb, ECB, kstruct, nid, block_size, key_len, \
290 nid, block_size, key_len, iv_len, cbits, flags, \ argument
298 BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, flags, \
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_006_pos.ksh96 typeset -l block_size
105 for block_size in 64 128 256; do
106 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS1/file$block_size \
107 bs=1M count=$block_size
108 log_must zfs snapshot $TESTPOOL/$TESTFS1@snap$block_size
109 log_must zfs bookmark $TESTPOOL/$TESTFS1@snap$block_size \
110 "$TESTPOOL/$TESTFS1#bmark$block_size"
/freebsd-13.1/contrib/wpa/src/eap_common/
H A Deap_eke_common.c587 size_t block_size, icv_len, pad; in eap_eke_prot() local
591 block_size = AES_BLOCK_SIZE; in eap_eke_prot()
602 pad = data_len % block_size; in eap_eke_prot()
604 pad = block_size - pad; in eap_eke_prot()
612 if (random_get_bytes(pos, block_size)) in eap_eke_prot()
616 pos += block_size; in eap_eke_prot()
641 size_t block_size, icv_len; in eap_eke_decrypt_prot() local
645 block_size = AES_BLOCK_SIZE; in eap_eke_decrypt_prot()
656 if (prot_len < 2 * block_size + icv_len || in eap_eke_decrypt_prot()
657 (prot_len - icv_len) % block_size) in eap_eke_decrypt_prot()
[all …]
/freebsd-13.1/crypto/openssl/crypto/evp/
H A Dm_sha3.c26 size_t block_size; /* cached ctx->digest->block_size */ member
36 size_t bsz = evp_ctx->digest->block_size; in init()
42 ctx->block_size = bsz; in init()
66 size_t bsz = ctx->block_size; in sha3_update()
108 size_t bsz = ctx->block_size; in sha3_final()
182 const size_t bsz = evp_ctx->digest->block_size; in s390x_sha3_init()
207 ctx->block_size = bsz; in s390x_sha3_init()
215 const size_t bsz = evp_ctx->digest->block_size; in s390x_shake_init()
234 ctx->block_size = bsz; in s390x_shake_init()
243 const size_t bsz = ctx->block_size; in s390x_sha3_update()
/freebsd-13.1/stand/libofw/
H A Dofw_disk.c161 int block_size; in ofwd_ioctl() local
166 block_size = OF_block_size(dev->d_handle); in ofwd_ioctl()
167 *(u_int *)data = block_size; in ofwd_ioctl()
170 block_size = OF_block_size(dev->d_handle); in ofwd_ioctl()
172 *(uint64_t *)data = (uint64_t)(n * block_size); in ofwd_ioctl()
/freebsd-13.1/contrib/subversion/subversion/libsvn_subr/
H A Dcrypto.c267 apr_size_t block_size; in svn_crypto__encrypt_password() local
304 &block_size, scratch_pool); in svn_crypto__encrypt_password()
320 if ((assembled_len % block_size) == 0) in svn_crypto__encrypt_password()
329 apr_size_t pad_len = block_size - (assembled_len % block_size) - 1; in svn_crypto__encrypt_password()
404 apr_size_t block_size, iv_len; in svn_crypto__decrypt_password() local
430 apr_err = apr_crypto_block_decrypt_init(&block_ctx, &block_size, in svn_crypto__decrypt_password()
503 apr_size_t block_size; in svn_crypto__generate_secret_checktext() local
549 if (MIN_STUFF_LEN % block_size) in svn_crypto__generate_secret_checktext()
550 stuff_len = MIN_STUFF_LEN + (block_size - (MIN_STUFF_LEN % block_size)); in svn_crypto__generate_secret_checktext()
623 apr_size_t block_size, iv_len; in svn_crypto__verify_secret() local
[all …]
/freebsd-13.1/contrib/bearssl/src/mac/
H A Dhmac.c28 block_size(const br_hash_class *dig) in block_size() function
44 blen = block_size(*hc); in process_key()
65 if (key_len > block_size(dig)) { in br_hmac_key_init()
85 blen = block_size(dig); in br_hmac_init()
114 blen = block_size(dig); in br_hmac_out()

123456