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

123456

/freebsd-11-stable/sys/dev/usb/
H A Dusb_mbuf.c64 usb_size_t block_size, uint16_t nblocks)
72 block_size += ((-block_size) & (USB_HOST_ALIGN - 1));
74 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;
63 usb_alloc_mbufs(struct malloc_type *type, struct usb_ifqueue *ifq, usb_size_t block_size, uint16_t nblocks) argument
H A Dusb_msctest.h54 uint32_t *block_size);
/freebsd-11-stable/usr.sbin/nandtool/
H A Dnand_erase.c48 int block_size, mult; local
71 block_size = chip_params.page_size * chip_params.pages_per_block;
77 pos = block_size * param_get_intx(params, "block");
78 mult = block_size;
93 if (pos % block_size) {
100 start = pos / block_size;
101 nblocks = count / block_size;
104 if (g_delete(fd, (start + i) * block_size, block_size) == -1) {
H A Dnand_info.c45 int block_size; local
72 block_size = chip_params.page_size * chip_params.pages_per_block;
73 chip_size = block_size * chip_params.blocks;
77 printf("Block size:\t\t%d bytes (%d KB)\n", block_size,
78 block_size / 1024);
H A Dnand_read.c46 int pos, count, mult, block_size; local
74 block_size = chip_params.page_size * chip_params.pages_per_block;
80 pos = block_size * param_get_int(params, "block");
81 mult = block_size;
H A Dnand_write.c46 int fd, block_size, mult, pos, count; local
76 block_size = chip_params.page_size * chip_params.pages_per_block;
82 pos = block_size * param_get_int(params, "block");
83 mult = block_size;
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-flash.h67 int block_size; member in struct:__anon8528
H A Dcvmx-fpa.c71 * @param block_size Size for each block controlled by the FPA
78 uint64_t block_size, uint64_t num_blocks)
92 if (block_size < CVMX_FPA_MIN_BLOCK_SIZE)
105 cvmx_fpa_pool_info[pool].size = block_size;
113 ptr += block_size;
77 cvmx_fpa_setup_pool(uint64_t pool, const char *name, void *buffer, uint64_t block_size, uint64_t num_blocks) argument
H A Dcvmx-flash.c233 rgn_ptr->block_size = 128;
235 rgn_ptr->block_size = 256u * size;
237 start_offset += rgn_ptr->block_size * rgn_ptr->num_blocks;
276 flash->region[region].block_size);
373 block * flash_info[chip_id].region[region].block_size;
495 block * flash_info[chip_id].region[region].block_size;
496 int len = flash_info[chip_id].region[region].block_size;
635 while (region_base + flash->region[region].num_blocks * flash->region[region].block_size <= address)
642 int block = (address - region_base) / flash->region[region].block_size;
645 if (address != region_base + block*flash->region[region].block_size)
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_open_fd.c55 size_t block_size; member in struct:read_fd_data
66 archive_read_open_fd(struct archive *a, int fd, size_t block_size) argument
79 b = malloc(block_size);
86 mine->block_size = block_size;
120 bytes_read = read(mine->fd, mine->buffer, mine->block_size);
150 /* Reduce request to the next smallest multiple of block_size */
151 request = (request / mine->block_size) * mine->block_size;
H A Darchive_read_open_file.c55 size_t block_size; member in struct:read_FILE_data
69 size_t block_size = 128 * 1024; local
74 b = malloc(block_size);
81 mine->block_size = block_size;
115 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f);
116 if (bytes_read < mine->block_size && ferror(mine->f)) {
H A Darchive_read_open_filename.c75 size_t block_size; member in struct:read_file_data
97 size_t block_size)
99 return (archive_read_open_filename(a, filename, block_size));
104 size_t block_size)
109 return archive_read_open_filenames(a, filenames, block_size);
114 size_t block_size)
131 mine->block_size = block_size;
160 size_t block_size)
170 mine->block_size
96 archive_read_open_file(struct archive *a, const char *filename, size_t block_size) argument
103 archive_read_open_filename(struct archive *a, const char *filename, size_t block_size) argument
113 archive_read_open_filenames(struct archive *a, const char **filenames, size_t block_size) argument
159 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.c75 size_t block_size; member in struct:private_data
232 data->block_size = bkmap[0];
234 data->block_size = bkmap[data->block_maximum_size - 4];
236 required_size = 4 + 15 + 4 + data->block_size + 4 + 4;
259 if (data->in_buffer_size < data->block_size + pre_block_size) {
261 data->in_buffer_size = data->block_size;
268 data->in_buffer_size = data->block_size;
441 data->in_buffer == data->in && length >= data->block_size) {
442 r = drive_compressor(f, p, data->block_size);
444 r = (ssize_t)data->block_size;
[all...]
/freebsd-11-stable/sys/sparc64/sparc64/
H A Dcam_machdep.c53 if (ccg->block_size == 0)
55 size_mb = (1024L * 1024L) / ccg->block_size;
/freebsd-11-stable/contrib/xz/src/liblzma/common/
H A Dfilter_encoder.c37 uint64_t (*block_size)(const void *options); member in struct:__anon5861
62 .block_size = NULL, // FIXME
73 .block_size = &lzma_lzma2_block_size, // 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
[all...]
/freebsd-11-stable/contrib/groff/src/libs/libgroff/
H A Dsymbol.cpp32 int symbol::block_size = 0; member in class:symbol
138 if (block == 0 || block_size < len) {
139 block_size = len > BLOCK_SIZE ? len : BLOCK_SIZE;
140 block = new char [block_size];
145 block_size -= len;
/freebsd-11-stable/stand/ofw/libofw/
H A Dofw_disk.c161 int block_size; local
166 block_size = OF_block_size(dev->d_handle);
167 *(u_int *)data = block_size;
170 block_size = OF_block_size(dev->d_handle);
172 *(uint64_t *)data = (uint64_t)(n * block_size);
/freebsd-11-stable/contrib/gcc/
H A Dalloc-pool.h45 size_t block_size; member in struct:alloc_pool_def
/freebsd-11-stable/sys/netgraph/bluetooth/include/
H A Dng_bt3c.h106 u_int16_t block_size; /* in words */ member in struct:__anon12387
/freebsd-11-stable/tools/tools/usbtest/
H A Dusb_msc_test.c98 static uint32_t block_size = 512; variable
295 len /= block_size;
305 retval = do_msc_cmd(cmd, 10, buf, len * block_size, 1, 0, lun, 0);
325 len /= block_size;
335 retval = do_msc_cmd(cmd, 10, buf, (len * block_size), 0, 0, lun, abort);
448 retval = do_read_10(io_offset, io_size * block_size,
449 buffer + (io_offset * block_size), lun);
452 if (bcmp(buffer + (io_offset * block_size),
453 reference + (io_offset * block_size),
454 io_size * block_size)) {
[all...]
/freebsd-11-stable/crypto/openssl/ssl/
H A Ds3_cbc.c79 * block_size: the block size of the cipher used to encrypt the record.
87 unsigned block_size, unsigned mac_size)
101 good &= constant_time_ge(block_size, padding_length + 1);
115 * block_size: the block size of the cipher used to encrypt the record.
123 unsigned block_size, unsigned mac_size)
133 if (overhead + block_size > rec->length)
136 rec->data += block_size;
137 rec->input += block_size;
138 rec->length -= block_size;
785 size_t block_size, digest_pa local
85 ssl3_cbc_remove_padding(const SSL *s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) argument
121 tls1_cbc_remove_padding(const SSL *s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) argument
[all...]
/freebsd-11-stable/crypto/openssl/crypto/evp/
H A Devp_locl.h66 bl = ctx->cipher->block_size;\
134 #define BLOCK_CIPHER_def1(cname, nmode, mode, MODE, kstruct, nid, block_size, \
138 nid##_##nmode, block_size, key_len, iv_len, \
150 #define BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, \
153 BLOCK_CIPHER_def1(cname, cbc, cbc, CBC, kstruct, nid, block_size, key_len, \
170 #define BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, \
173 BLOCK_CIPHER_def1(cname, ecb, ecb, ECB, kstruct, nid, block_size, key_len, \
177 nid, block_size, key_len, iv_len, cbits, flags, \
179 BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, iv_len, flags, \
185 BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_le
[all...]
/freebsd-11-stable/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...]
/freebsd-11-stable/contrib/groff/src/include/
H A Dsymbol.h30 static int block_size; member in class:symbol
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_fs/
H A Drev_file.h68 apr_off_t block_size; member in struct:svn_fs_fs__revision_file_t

Completed in 191 milliseconds

123456