Home
last modified time | relevance | path

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

1234567

/freebsd-12.1/usr.sbin/nandtool/
H A Dnand_erase.c48 int block_size, mult; in nand_erase() local
71 block_size = chip_params.page_size * chip_params.pages_per_block; in nand_erase()
77 pos = block_size * param_get_intx(params, "block"); in nand_erase()
78 mult = block_size; in nand_erase()
93 if (pos % block_size) { in nand_erase()
100 start = pos / block_size; in nand_erase()
101 nblocks = count / block_size; in nand_erase()
104 if (g_delete(fd, (start + i) * block_size, block_size) == -1) { in nand_erase()
H A Dnand_info.c45 int block_size; in nand_info() local
72 block_size = chip_params.page_size * chip_params.pages_per_block; in nand_info()
73 chip_size = block_size * chip_params.blocks; in nand_info()
77 printf("Block size:\t\t%d bytes (%d KB)\n", block_size, in nand_info()
78 block_size / 1024); in nand_info()
H A Dnand_write.c46 int fd, block_size, mult, pos, count; in nand_write() local
76 block_size = chip_params.page_size * chip_params.pages_per_block; in nand_write()
82 pos = block_size * param_get_int(params, "block"); in nand_write()
83 mult = block_size; in nand_write()
H A Dnand_read.c46 int pos, count, mult, block_size; in nand_read() local
74 block_size = chip_params.page_size * chip_params.pages_per_block; in nand_read()
80 pos = block_size * param_get_int(params, "block"); in nand_read()
81 mult = block_size; in nand_read()
/freebsd-12.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()
78 alloc_size = (block_size + sizeof(struct usb_mbuf)) * nblocks; in usb_alloc_mbufs()
94 m_ptr->max_data_len = block_size; in usb_alloc_mbufs()
99 data_ptr += block_size; in usb_alloc_mbufs()
/freebsd-12.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-12.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-12.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()
353 while (new_block_size < mine->block_size in file_open()
356 mine->block_size = new_block_size; in file_open()
358 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
237 data->block_size = bkmap[0]; in archive_filter_lz4_open()
266 data->in_buffer_size = data->block_size; in archive_filter_lz4_open()
273 data->in_buffer_size = data->block_size; in archive_filter_lz4_open()
451 r = (ssize_t)data->block_size; in lz4_write_one_block()
460 data->block_size); in lz4_write_one_block()
508 (int)length, (int)data->block_size, in drive_compressor_independence()
574 (int)data->block_size); in drive_compressor_dependence()
598 (int)data->block_size, 1); in drive_compressor_dependence()
602 (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-12.1/tests/sys/cddl/zfs/bin/
H A Dfile_write.c59 int block_size = BLOCKSZ; in main() local
75 block_size = atoi(optarg); in main()
121 if (block_size > BIGBUFFERSIZE) { in main()
135 for (i = 0; i < block_size; i++) { in main()
190 "offset = %lld, data = %s%d\n", filename, block_size, in main()
199 if ((n = write(bigfd, &bigbuffer, block_size)) == -1) { in main()
211 good_writes, (good_writes * block_size)); in main()
/freebsd-12.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-12.1/crypto/openssl/crypto/include/internal/
H A Devp_int.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-12.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-12.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()
H A Dcmeth_lib.c16 EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len) in EVP_CIPHER_meth_new() argument
22 cipher->block_size = block_size; in EVP_CIPHER_meth_new()
30 EVP_CIPHER *to = EVP_CIPHER_meth_new(cipher->nid, cipher->block_size, in EVP_CIPHER_meth_dup()
/freebsd-12.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-12.1/stand/ofw/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-12.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()
/freebsd-12.1/sys/dev/drm2/i915/
H A Dintel_bios.c71 u16 *block_ptr, block_size; in get_blocksize() local
74 block_size = *block_ptr; in get_blocksize()
75 return block_size; in get_blocksize()
376 u16 block_size = get_blocksize(general); in parse_general_definitions() local
377 if (block_size >= sizeof(*general)) { in parse_general_definitions()
384 block_size); in parse_general_definitions()
397 u16 block_size; in parse_sdvo_device_mapping() local
415 block_size = get_blocksize(p_defs); in parse_sdvo_device_mapping()
417 child_device_num = (block_size - sizeof(*p_defs)) / in parse_sdvo_device_mapping()
581 u16 block_size; in parse_device_mapping() local
[all …]
/freebsd-12.1/stand/libsa/
H A Dufs.c320 size_t block_size; local
344 if (*size_p > block_size - off)
345 *size_p = block_size - off;
351 if (((off > 0) || (*size_p + off < block_size)) &&
360 block_size, fp->f_buf, &fp->f_buf_size);
379 block_size, fp->f_buf, &fp->f_buf_size);
398 size_t block_size; local
414 bzero(fp->f_buf, block_size);
415 fp->f_buf_size = block_size;
420 block_size, fp->f_buf, &fp->f_buf_size);
[all …]
/freebsd-12.1/crypto/openssl/doc/man3/
H A DSSL_CTX_set_record_padding_callback.pod27 int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);
28 int SSL_set_block_padding(SSL *ssl, size_t block_size);
44 of the B<block_size>. A B<block_size> of 0 or 1 disables block padding. The limit of
45 B<block_size> is SSL3_RT_MAX_PLAIN_LENGTH.
60 or 0 if B<block_size> is too large.

1234567