Searched refs:block_size (Results 1 - 25 of 121) sorted by relevance

12345

/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmmap_seek.c82 off_t block_size = atoi(argv[3]); local
84 if (block_size * 2 > file_size) {
115 seek_data(fd, block_size, -1);
116 seek_hole(fd, 0, block_size);
117 seek_hole(fd, block_size, block_size);
122 seek_data(fd, block_size, block_size);
123 seek_hole(fd, 0, P2ROUNDUP(file_size / 2, block_size));
124 seek_hole(fd, block_size, P2ROUNDU
[all...]
/freebsd-current/sys/contrib/dev/iwlwifi/fw/api/
H A Dpaging.h18 * @block_size: the block size in powers of 2
24 __le32 block_size; member in struct:iwl_fw_paging_cmd
/freebsd-current/sys/dev/usb/
H A Dusb_mbuf.c65 usb_size_t block_size, uint16_t nblocks)
73 block_size += ((-block_size) & (USB_HOST_ALIGN - 1));
75 if (nblocks && block_size) {
76 alloc_size = (block_size + sizeof(struct usb_mbuf)) * nblocks;
87 m_ptr->max_data_len = block_size;
92 data_ptr += block_size;
64 usb_alloc_mbufs(struct malloc_type *type, struct usb_ifqueue *ifq, usb_size_t block_size, uint16_t nblocks) argument
/freebsd-current/sys/contrib/openzfs/module/icp/algs/modes/
H A Dcbc.c36 crypto_data_t *out, size_t block_size,
52 if (length + ctx->cbc_remainder_len < block_size) {
68 need = block_size - ctx->cbc_remainder_len;
88 &out_data_1_len, &out_data_2, block_size);
91 if (out_data_1_len == block_size) {
98 block_size - out_data_1_len);
102 out->cd_offset += block_size;
109 datap += block_size;
115 if (remainder > 0 && remainder < block_size) {
142 crypto_data_t *out, size_t block_size,
35 cbc_encrypt_contiguous_blocks(cbc_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*encrypt)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
141 cbc_decrypt_contiguous_blocks(cbc_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*decrypt)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
242 cbc_init_ctx(cbc_ctx_t *cbc_ctx, char *param, size_t param_len, size_t block_size, void (*copy_block)(uint8_t *, uint64_t *)) argument
[all...]
H A Decb.c36 crypto_data_t *out, size_t block_size,
50 if (length + ctx->ecb_remainder_len < block_size) {
66 need = block_size - ctx->ecb_remainder_len;
81 &out_data_1_len, &out_data_2, block_size);
87 block_size - out_data_1_len);
90 out->cd_offset += block_size;
97 datap += block_size;
103 if (remainder > 0 && remainder < block_size) {
35 ecb_cipher_contiguous_blocks(ecb_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*cipher)(const void *ks, const uint8_t *pt, uint8_t *ct)) argument
H A Dgcm.c90 crypto_data_t *out, size_t block_size,
98 ctx, data, length, out, block_size));
115 if (length + ctx->gcm_remainder_len < block_size) {
133 need = block_size - ctx->gcm_remainder_len;
161 ctx->gcm_processed_data_len += block_size;
164 &out_data_1_len, &out_data_2, block_size);
167 if (out_data_1_len == block_size) {
174 block_size - out_data_1_len);
178 out->cd_offset += block_size;
188 datap += block_size;
89 gcm_mode_encrypt_contiguous_blocks(gcm_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
208 gcm_encrypt_final(gcm_ctx_t *ctx, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
294 gcm_decrypt_incomplete_block(gcm_ctx_t *ctx, size_t block_size, size_t index, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
333 gcm_mode_decrypt_contiguous_blocks(gcm_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
376 gcm_decrypt_final(gcm_ctx_t *ctx, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
487 gcm_format_initial_blocks(const uint8_t *iv, ulong_t iv_len, gcm_ctx_t *ctx, size_t block_size, void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
536 gcm_init(gcm_ctx_t *ctx, const uint8_t *iv, size_t iv_len, const uint8_t *auth_data, size_t auth_data_len, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
598 gcm_init_ctx(gcm_ctx_t *gcm_ctx, char *param, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
612 gmac_init_ctx(gcm_ctx_t *gcm_ctx, char *param, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
626 gcm_init_ctx_impl(boolean_t gmac_mode, gcm_ctx_t *gcm_ctx, char *param, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
1140 gcm_mode_encrypt_contiguous_blocks_avx(gcm_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size) argument
1291 gcm_encrypt_final_avx(gcm_ctx_t *ctx, crypto_data_t *out, size_t block_size) argument
1327 GHASH_AVX(ctx, (const uint8_t *)ctx->gcm_len_a_len_c, block_size); local
1355 gcm_decrypt_final_avx(gcm_ctx_t *ctx, crypto_data_t *out, size_t block_size) argument
1438 GHASH_AVX(ctx, (uint8_t *)ctx->gcm_len_a_len_c, block_size); local
1466 gcm_init_avx(gcm_ctx_t *ctx, const uint8_t *iv, size_t iv_len, const uint8_t *auth_data, size_t auth_data_len, size_t block_size) argument
[all...]
H A Dccm.c42 crypto_data_t *out, size_t block_size,
60 if (length + ctx->ccm_remainder_len < block_size) {
77 need = block_size - ctx->ccm_remainder_len;
125 ctx->ccm_processed_data_len += block_size;
128 &out_data_1_len, &out_data_2, block_size);
131 if (out_data_1_len == block_size) {
138 block_size - out_data_1_len);
142 out->cd_offset += block_size;
149 datap += block_size;
155 if (remainder > 0 && remainder < block_size) {
41 ccm_mode_encrypt_contiguous_blocks(ccm_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
193 ccm_encrypt_final(ccm_ctx_t *ctx, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
343 ccm_mode_decrypt_contiguous_blocks(ccm_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
517 ccm_decrypt_final(ccm_ctx_t *ctx, crypto_data_t *out, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
758 ccm_init(ccm_ctx_t *ctx, unsigned char *nonce, size_t nonce_len, unsigned char *auth_data, size_t auth_data_len, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
846 ccm_init_ctx(ccm_ctx_t *ccm_ctx, char *param, int kmflag, boolean_t is_encrypt_init, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
[all...]
H A Dctr.c37 crypto_data_t *out, size_t block_size,
53 if (length + ctx->ctr_remainder_len < block_size) {
68 need = block_size - ctx->ctr_remainder_len;
113 &out_data_1_len, &out_data_2, block_size);
119 block_size - out_data_1_len);
122 out->cd_offset += block_size;
129 datap += block_size;
135 if (remainder > 0 && remainder < block_size) {
36 ctr_mode_contiguous_blocks(ctr_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*cipher)(const void *ks, const uint8_t *pt, uint8_t *ct), void (*xor_block)(uint8_t *, uint8_t *)) argument
/freebsd-current/tests/sys/cddl/zfs/bin/
H A Dfile_write.c58 int block_size = BLOCKSZ; local
74 block_size = atoi(optarg);
120 if (block_size > BIGBUFFERSIZE) {
121 (void) printf("block_size is too large max==%d.\n",
134 for (i = 0; i < block_size; i++) {
189 (void) printf("%s: block_size = %d, write_count = %d, "
190 "offset = %"PRId64", data = %s%d\n", filename, block_size,
199 if ((n = write(bigfd, &bigbuffer, block_size)) == -1) {
211 good_writes, (good_writes * block_size));
229 " [-b block_size]\
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Dfile_write.c49 static void randomize_buffer(int block_size) { argument
52 for (i = 0; i < block_size; i++)
73 int block_size = BLOCKSZ; local
87 block_size = atoi(optarg);
136 if (block_size > BIGBUFFERSIZE) {
137 (void) printf("block_size is too large max==%d.\n",
156 for (i = 0; i < block_size; i++) {
210 (void) printf("%s: block_size = %d, write_count = %d, "
211 "offset = %lld, ", filename, block_size,
225 randomize_buffer(block_size);
[all...]
/freebsd-current/stand/libofw/
H A Dofw_disk.c165 int block_size; local
170 block_size = OF_block_size(dev->d_handle);
171 *(u_int *)data = block_size;
174 block_size = OF_block_size(dev->d_handle);
176 *(uint64_t *)data = ((uint64_t)n * block_size);
187 uintmax_t block_size, n; local
199 block_size = OF_block_size(kdp->d_handle);
203 kdp->d_path, n, block_size, n * block_size);
/freebsd-current/contrib/xz/src/liblzma/common/
H A Dfilter_encoder.c38 uint64_t (*block_size)(const void *options); member in struct:__anon48
66 .block_size = NULL, // Not needed for LZMA1
75 .block_size = NULL, // Not needed for LZMA1
86 .block_size = &lzma_lzma2_block_size,
97 .block_size = NULL,
107 .block_size = NULL,
117 .block_size = NULL,
127 .block_size = NULL,
137 .block_size = NULL,
147 .block_size
[all...]
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_read_open_fd.c54 size_t block_size; member in struct:read_fd_data
65 archive_read_open_fd(struct archive *a, int fd, size_t block_size) argument
78 b = malloc(block_size);
85 mine->block_size = block_size;
119 bytes_read = read(mine->fd, mine->buffer, mine->block_size);
149 /* Reduce request to the next smallest multiple of block_size */
150 request = (request / mine->block_size) * mine->block_size;
H A Darchive_read_open_file.c54 size_t block_size; member in struct:read_FILE_data
68 size_t block_size = 128 * 1024; local
73 b = malloc(block_size);
80 mine->block_size = block_size;
114 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f);
115 if (bytes_read < mine->block_size && ferror(mine->f)) {
H A Darchive_read_open_filename.c74 size_t block_size; member in struct:read_file_data
96 size_t block_size)
98 return (archive_read_open_filename(a, filename, block_size));
103 size_t block_size)
108 return archive_read_open_filenames(a, filenames, block_size);
113 size_t block_size)
130 mine->block_size = block_size;
166 size_t block_size)
182 mine->block_size
95 archive_read_open_file(struct archive *a, const char *filename, size_t block_size) argument
102 archive_read_open_filename(struct archive *a, const char *filename, size_t block_size) argument
112 archive_read_open_filenames(struct archive *a, const char **filenames, size_t block_size) argument
165 archive_read_open_filenames_w(struct archive *a, const wchar_t **wfilenames, size_t block_size) argument
238 archive_read_open_filename_w(struct archive *a, const wchar_t *wfilename, size_t block_size) argument
[all...]
H A Darchive_write_add_filter_lz4.c73 size_t block_size; member in struct:private_data
230 data->block_size = bkmap[0];
232 data->block_size = bkmap[data->block_maximum_size - 4];
234 required_size = 4 + 15 + 4 + data->block_size + 4 + 4;
257 if (data->in_buffer_size < data->block_size + pre_block_size) {
259 data->in_buffer_size = data->block_size;
266 data->in_buffer_size = data->block_size;
439 data->in_buffer == data->in && length >= data->block_size) {
440 r = drive_compressor(f, p, data->block_size);
442 r = (ssize_t)data->block_size;
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/
H A Dremoval.kshlib94 typeset block_size=$2
96 typeset nblocks=$((file_size / block_size))
101 bs=$block_size count=1 seek=$((RANDOM % nblocks)) >/dev/null 2>&1
/freebsd-current/crypto/openssl/ssl/record/
H A Dtls_pad.c29 size_t block_size,
39 size_t block_size, size_t mac_size,
47 size_t block_size, size_t mac_size,
60 * block_size: the block size of the cipher used to encrypt the record.
73 size_t block_size, size_t mac_size,
89 good &= constant_time_ge_s(block_size, padding_length + 1);
93 block_size, mac_size, good, libctx);
105 * block_size: the block size of the cipher used to encrypt the record.
118 size_t block_size, size_t mac_size,
124 size_t overhead = ((block_size
68 ssl3_cbc_remove_padding_and_mac(size_t *reclen, size_t origreclen, unsigned char *recdata, unsigned char **mac, int *alloced, size_t block_size, size_t mac_size, OSSL_LIB_CTX *libctx) argument
113 tls1_cbc_remove_padding_and_mac(size_t *reclen, size_t origreclen, unsigned char *recdata, unsigned char **mac, int *alloced, size_t block_size, size_t mac_size, int aead, OSSL_LIB_CTX *libctx) argument
197 ssl3_cbc_copy_mac(size_t *reclen, size_t origreclen, unsigned char *recdata, unsigned char **mac, int *alloced, size_t block_size, size_t mac_size, size_t good, OSSL_LIB_CTX *libctx) argument
[all...]
/freebsd-current/tools/tools/nvmf/nvmfdd/
H A Dnvmfdd.c194 validate_namespace(struct nvmf_qpair *qp, u_int nsid, u_int *block_size) argument
235 *block_size = 1 << lbads;
236 fprintf(stderr, "Detected block size %u\n", *block_size);
294 nvmf_io(struct nvmf_qpair *qp, u_int nsid, u_int block_size, enum rw command, argument
302 if (offset % block_size != 0) {
306 if (length % block_size != 0 && command == WRITE)
309 buf = malloc(block_size);
313 if (todo > block_size)
314 todo = block_size;
328 if (todo < block_size)
365 u_int block_size, cntlid, nsid, queues; local
[all...]
/freebsd-current/crypto/openssl/test/recipes/
H A D70-test_sslcbcpadding.t93 my $block_size = 16;
97 my $plaintext_len = $block_size - ($mac_len % $block_size);
100 my $data = "B" x $block_size; # Explicit IV.
/freebsd-current/contrib/bearssl/src/mac/
H A Dhmac.c28 block_size(const br_hash_class *dig) function
44 blen = block_size(*hc);
65 if (key_len > block_size(dig)) {
85 blen = block_size(dig);
114 blen = block_size(dig);
/freebsd-current/tools/tools/usbtest/
H A Dusb_msc_test.c97 static uint32_t block_size = 512; variable
294 len /= block_size;
304 retval = do_msc_cmd(cmd, 10, buf, len * block_size, 1, 0, lun, 0);
324 len /= block_size;
334 retval = do_msc_cmd(cmd, 10, buf, (len * block_size), 0, 0, lun, abort);
447 retval = do_read_10(io_offset, io_size * block_size,
448 buffer + (io_offset * block_size), lun);
451 if (bcmp(buffer + (io_offset * block_size),
452 reference + (io_offset * block_size),
453 io_size * block_size)) {
[all...]
/freebsd-current/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-current/crypto/openssl/crypto/sha/
H A Dsha3.c27 ctx->block_size = bsz;
48 size_t bsz = ctx->block_size;
89 size_t bsz = ctx->block_size;
/freebsd-current/contrib/wpa/src/eap_common/
H A Deap_eke_common.c587 size_t block_size, icv_len, pad; local
591 block_size = AES_BLOCK_SIZE;
602 pad = data_len % block_size;
604 pad = block_size - pad;
606 if (*prot_len < block_size + data_len + pad + icv_len) {
612 if (random_get_bytes(pos, block_size))
615 wpa_hexdump(MSG_DEBUG, "EAP-EKE: IV for Prot()", iv, block_size);
616 pos += block_size;
641 size_t block_size, icv_len; local
645 block_size
[all...]

Completed in 484 milliseconds

12345