Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 - 25 of 170) sorted by relevance

1234567

/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
H A Dciphercommon_block.c38 * of data remaining in the input that is a multiple of the blocksize. The buffer
42 * buf: a buffer of blocksize bytes
45 * less than the blocksize
46 * blocksize: size of a block. Must be greater than 0 and a power of 2
54 * which is a multiple of the blocksize.
57 size_t blocksize, in ossl_cipher_fillblock()
60 size_t blockmask = ~(blocksize - 1); in ossl_cipher_fillblock()
61 size_t bufremain = blocksize - *buflen; in ossl_cipher_fillblock()
63 assert(*buflen <= blocksize); in ossl_cipher_fillblock()
64 assert(blocksize > in ossl_cipher_fillblock()
56 ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, size_t blocksize, const unsigned char **in, size_t *inlen) ossl_cipher_fillblock() argument
80 ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, const unsigned char **in, size_t *inlen) ossl_cipher_trailingdata() argument
99 ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize) ossl_cipher_padblock() argument
108 ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize) ossl_cipher_unpadblock() argument
158 ossl_cipher_tlsunpadblock(OSSL_LIB_CTX *libctx, unsigned int tlsversion, unsigned char *buf, size_t *buflen, size_t blocksize, unsigned char **mac, int *alloced, size_t macsize, int aead) ossl_cipher_tlsunpadblock() argument
[all...]
/third_party/openssl/providers/implementations/ciphers/
H A Dciphercommon_block.c38 * of data remaining in the input that is a multiple of the blocksize. The buffer
42 * buf: a buffer of blocksize bytes
45 * less than the blocksize
46 * blocksize: size of a block. Must be greater than 0 and a power of 2
54 * which is a multiple of the blocksize.
57 size_t blocksize, in ossl_cipher_fillblock()
60 size_t blockmask = ~(blocksize - 1); in ossl_cipher_fillblock()
61 size_t bufremain = blocksize - *buflen; in ossl_cipher_fillblock()
63 assert(*buflen <= blocksize); in ossl_cipher_fillblock()
64 assert(blocksize > in ossl_cipher_fillblock()
56 ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, size_t blocksize, const unsigned char **in, size_t *inlen) ossl_cipher_fillblock() argument
80 ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, const unsigned char **in, size_t *inlen) ossl_cipher_trailingdata() argument
99 ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize) ossl_cipher_padblock() argument
108 ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize) ossl_cipher_unpadblock() argument
158 ossl_cipher_tlsunpadblock(OSSL_LIB_CTX *libctx, unsigned int tlsversion, unsigned char *buf, size_t *buflen, size_t blocksize, unsigned char **mac, int *alloced, size_t macsize, int aead) ossl_cipher_tlsunpadblock() argument
[all...]
/third_party/toybox/toys/pending/
H A Dmke2fs.c79 long blocksize;
254 uint32_t dblocks = (uint32_t)((size+(TT.blocksize-1))/TT.blocksize); in file_blocks_used()
255 uint32_t idx=TT.blocksize/4, iblocks=0, diblocks=0, tiblocks=0; in file_blocks_used()
365 inodes = TT.blocksize/sizeof(struct ext2_inode); in get_inodespg()
377 for (temp = 0; temp < 4; temp++) if (TT.blocksize == 1024<<temp) break; in init_superblock()
378 if (temp==4) error_exit("bad blocksize"); in init_superblock()
388 sb->first_data_block = SWAP_LE32(TT.blocksize == 1024 ? 1 : 0); in init_superblock()
449 used += TT.blocksize - 1; in group_superblock_overhead()
450 used /= TT.blocksize; in group_superblock_overhead()
[all...]
/third_party/python/Lib/
H A Dhmac.py32 blocksize = 64 # 512-bit HMAC; can be changed in subclasses. variable in HMAC
85 blocksize = self._inner.block_size
86 if blocksize < 16:
88 'default of %d.' % (blocksize, self.blocksize),
90 blocksize = self.blocksize
93 'Assuming %d.' % (self.blocksize),
95 blocksize = self.blocksize
[all...]
/third_party/libsnd/src/G72x/
H A Dg72x.c41 static int unpack_bytes (int bits, int blocksize, const unsigned char * block, short * samples) ;
134 struct g72x_state * g72x_reader_init (int codec, int *blocksize, int *samplesperblock) in g72x_reader_init() argument
147 *blocksize = G723_16_BYTES_PER_BLOCK ; in g72x_reader_init()
150 pstate->blocksize = G723_16_BYTES_PER_BLOCK ; in g72x_reader_init()
156 *blocksize = G723_24_BYTES_PER_BLOCK ; in g72x_reader_init()
159 pstate->blocksize = G723_24_BYTES_PER_BLOCK ; in g72x_reader_init()
165 *blocksize = G721_32_BYTES_PER_BLOCK ; in g72x_reader_init()
168 pstate->blocksize = G721_32_BYTES_PER_BLOCK ; in g72x_reader_init()
174 *blocksize = G721_40_BYTES_PER_BLOCK ; in g72x_reader_init()
177 pstate->blocksize in g72x_reader_init()
189 g72x_writer_init(int codec, int *blocksize, int *samplesperblock) g72x_writer_init() argument
605 unpack_bytes(int bits, int blocksize, const unsigned char * block, short * samples) unpack_bytes() argument
[all...]
/third_party/ffmpeg/libavcodec/
H A Dshorten.c109 int blocksize; member
137 if (s->blocksize + (uint64_t)s->nwrap >= UINT_MAX / sizeof(int32_t)) { in allocate_buffers()
139 "s->blocksize + s->nwrap too large\n"); in allocate_buffers()
148 if ((err = av_reallocp_array(&s->decoded_base[chan], (s->blocksize + s->nwrap), in allocate_buffers()
177 for (i = 0; i < s->blocksize; i++) in fix_bitshift()
180 for (i = 0; i < s->blocksize; i++) in fix_bitshift()
390 for (i = 0; i < s->blocksize; i++) { in decode_subframe_lpc()
400 for (i = 0; i < s->blocksize; i++) in decode_subframe_lpc()
417 s->blocksize = DEFAULT_BLOCK_SIZE; in read_header()
438 /* get blocksize i in read_header()
441 unsigned blocksize; read_header() local
650 unsigned blocksize = get_uint(s, av_log2(s->blocksize)); shorten_decode_frame() local
[all...]
H A Dlpc.c165 s->lpc_apply_welch_window(samples, s->blocksize, s->windowed_samples); in ff_lpc_calc_ref_coefs()
166 s->lpc_compute_autocorr(s->windowed_samples, s->blocksize, order, autoc); in ff_lpc_calc_ref_coefs()
202 const int32_t *samples, int blocksize, int min_order, in ff_lpc_calc_coefs()
219 if (blocksize != s->blocksize || max_order != s->max_order || in ff_lpc_calc_coefs()
222 ff_lpc_init(s, blocksize, max_order, lpc_type); in ff_lpc_calc_coefs()
229 s->lpc_apply_welch_window(samples, blocksize, s->windowed_samples); in ff_lpc_calc_coefs()
231 s->lpc_compute_autocorr(s->windowed_samples, blocksize, max_order, autoc); in ff_lpc_calc_coefs()
254 for(i=max_order; i<blocksize; i++){ in ff_lpc_calc_coefs()
278 ref[i]= sqrt(m[(pass-1)&1].variance[i] / weight) * (blocksize in ff_lpc_calc_coefs()
201 ff_lpc_calc_coefs(LPCContext *s, const int32_t *samples, int blocksize, int min_order, int max_order, int precision, int32_t coefs[][MAX_LPC_ORDER], int *shift, enum FFLPCType lpc_type, int lpc_passes, int omethod, int min_shift, int max_shift, int zero_shift) ff_lpc_calc_coefs() argument
301 ff_lpc_init(LPCContext *s, int blocksize, int max_order, enum FFLPCType lpc_type) ff_lpc_init() argument
[all...]
H A Dflacdec.c58 int blocksize; ///< number of samples in the current frame member
231 samples = s->blocksize >> rice_order; in decode_residuals()
244 if (samples << rice_order != s->blocksize) { in decode_residuals()
245 av_log(s->avctx, AV_LOG_ERROR, "invalid rice order: %i blocksize %i\n", in decode_residuals()
246 rice_order, s->blocksize); in decode_residuals()
285 const int blocksize = s->blocksize; in decode_subframe_fixed() local
311 for (i = pred_order; i < blocksize; i++) in decode_subframe_fixed()
315 for (i = pred_order; i < blocksize; i++) in decode_subframe_fixed()
319 for (i = pred_order; i < blocksize; in decode_subframe_fixed()
[all...]
/third_party/ltp/testcases/kernel/syscalls/fallocate/
H A Dfallocate05.c34 static blksize_t blocksize; variable
49 blocksize = statbuf.st_blksize; in setup()
50 bufsize = FALLOCATE_BLOCKS * blocksize; in setup()
87 for (TST_RET = 0, extsize = 0; !TST_RET; extsize += blocksize) in run()
88 TEST(fallocate(fd, 0, bufsize + extsize, blocksize)); in run()
101 extsize -= blocksize; in run()
103 extsize / blocksize); in run()
120 tmp = DEALLOCATE_BLOCKS * blocksize; in run()
H A Dfallocate06.c62 static blksize_t blocksize; variable
97 blocksize = statbuf.st_blksize; in setup()
98 block_offset = MIN(blocksize / 2, (blksize_t)512); in setup()
99 wbuf_size = MAX(WRITE_BLOCKS, FALLOCATE_BLOCKS) * blocksize; in setup()
100 rbuf_size = (DEALLOCATE_BLOCKS + 1) * blocksize; in setup()
104 if (blocksize < 2) in setup()
105 tst_brk(TCONF, "Block size %ld too small for test", blocksize); in setup()
186 size = WRITE_BLOCKS * blocksize; in run()
191 size = FALLOCATE_BLOCKS * blocksize; in run()
213 size = DEALLOCATE_BLOCKS * blocksize; in run()
[all...]
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
H A Dmemory_pool.c55 unsigned int blocksize = pool->total_allocated; in refill_pool() local
58 if (!blocksize) in refill_pool()
59 blocksize = 2*POOL_LARGE_ALLOC; in refill_pool()
61 newblock = malloc(blocksize); in refill_pool()
66 pool->end = ((unsigned char*)newblock) + blocksize; in refill_pool()
67 pool->total_allocated += blocksize; in refill_pool()
/third_party/mesa3d/src/panfrost/shared/test/
H A Dtest-tiling.cpp54 tiled_offset(unsigned x, unsigned y, unsigned stride, unsigned tilesize, unsigned blocksize)
65 unsigned col_offset = (tile_x * tilesize * tilesize) * blocksize;
66 unsigned block_offset = index_in_tile * blocksize;
72 linear_offset(unsigned x, unsigned y, unsigned stride, unsigned blocksize)
74 return (stride * y) + (x * blocksize);
89 unsigned blocksize = (desc->block.bits / 8);
106 dst_offset = tiled_offset(tiled_x_block, tiled_y_block, dst_stride, tilesize, blocksize);
107 src_offset = linear_offset(linear_x_block, linear_y_block, src_stride, blocksize);
109 dst_offset = linear_offset(linear_x_block, linear_y_block, dst_stride, blocksize);
110 src_offset = tiled_offset(tiled_x_block, tiled_y_block, src_stride, tilesize, blocksize);
[all...]
/third_party/pcre2/pcre2/src/
H A Dpcre2_serialize.c105 total_size += re->blocksize; in pcre2_serialize_encode()
130 (void)memcpy(dst_bytes, (char *)re, re->blocksize); in pcre2_serialize_encode()
149 dst_bytes += re->blocksize; in pcre2_serialize_encode()
202 of the blocksize field is given its own name to ensure that it is the same here in pcre2_serialize_decode()
207 CODE_BLOCKSIZE_TYPE blocksize; in pcre2_serialize_decode() local
208 memcpy(&blocksize, src_bytes + offsetof(pcre2_real_code, blocksize), in pcre2_serialize_decode()
210 if (blocksize <= sizeof(pcre2_real_code)) in pcre2_serialize_decode()
215 dst_re = (pcre2_real_code *)PRIV(memctl_malloc)(blocksize, in pcre2_serialize_decode()
231 src_bytes + sizeof(pcre2_memctl), blocksize in pcre2_serialize_decode()
[all...]
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c246 * N-fold(K) where blocksize is N, and constant_len is K
265 static void n_fold(unsigned char *block, unsigned int blocksize, in n_fold() argument
271 if (constant_len == blocksize) { in n_fold()
277 gcd = blocksize; in n_fold()
286 lcm = blocksize * constant_len / gcd; in n_fold()
289 memset(block, 0, blocksize); in n_fold()
297 b = l % blocksize; in n_fold()
319 for (b = blocksize - 1; b >= 0 && carry != 0; b--) { in n_fold()
363 size_t blocksize; in KRB5KDF() local
396 blocksize in KRB5KDF()
[all...]
/third_party/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c246 * N-fold(K) where blocksize is N, and constant_len is K
265 static void n_fold(unsigned char *block, unsigned int blocksize, in n_fold() argument
271 if (constant_len == blocksize) { in n_fold()
277 gcd = blocksize; in n_fold()
286 lcm = blocksize * constant_len / gcd; in n_fold()
289 memset(block, 0, blocksize); in n_fold()
297 b = l % blocksize; in n_fold()
319 for (b = blocksize - 1; b >= 0 && carry != 0; b--) { in n_fold()
363 size_t blocksize; in KRB5KDF() local
396 blocksize in KRB5KDF()
[all...]
/third_party/ltp/lib/
H A Dtst_memutils.c21 size_t i, map_count = 0, safety = 0, blocksize = BLOCKSIZE; in tst_pollute_memory() local
59 blocksize = MIN(maxsize, blocksize); in tst_pollute_memory()
60 map_count = maxsize / blocksize; in tst_pollute_memory()
68 map_blocks[i] = mmap(NULL, blocksize, PROT_READ | PROT_WRITE, in tst_pollute_memory()
76 memset(map_blocks[i], fillchar, blocksize); in tst_pollute_memory()
80 SAFE_MUNMAP(map_blocks[i], blocksize); in tst_pollute_memory()
/third_party/ffmpeg/libavformat/
H A Dshortendec.c31 int version, internal_ftype, channels, blocksize; in shn_probe() local
41 blocksize = 256; in shn_probe()
55 blocksize = get_ur_golomb_shorten(&gb, k); in shn_probe()
62 if (blocksize < 1 || blocksize > 65535) in shn_probe()
H A Dwv.c37 wv->blocksize = AV_RL32(data + 4); in ff_wv_parse_header()
38 if (wv->blocksize < 24 || wv->blocksize > WV_BLOCK_LIMIT) in ff_wv_parse_header()
40 wv->blocksize -= 24; in ff_wv_parse_header()
H A Dwvdec.c125 int64_t block_end = avio_tell(pb) + wc->header.blocksize; in wv_read_block_header()
201 avio_seek(pb, block_end - wc->header.blocksize, SEEK_SET); in wv_read_block_header()
245 avio_skip(pb, wc->header.blocksize); in wv_read_header()
294 if ((ret = av_new_packet(pkt, wc->header.blocksize + WV_HEADER_SIZE)) < 0) in wv_read_packet()
297 ret = avio_read(s->pb, pkt->data + WV_HEADER_SIZE, wc->header.blocksize); in wv_read_packet()
298 if (ret != wc->header.blocksize) { in wv_read_packet()
307 if ((ret = av_grow_packet(pkt, WV_HEADER_SIZE + wc->header.blocksize)) < 0) { in wv_read_packet()
312 ret = avio_read(s->pb, pkt->data + off + WV_HEADER_SIZE, wc->header.blocksize); in wv_read_packet()
313 if (ret != wc->header.blocksize) { in wv_read_packet()
/third_party/mesa3d/src/asahi/lib/
H A Dtiling.h39 agx_select_tile_shift(unsigned width, unsigned height, unsigned level, unsigned blocksize) in agx_select_tile_shift() argument
49 if (blocksize > 4) in agx_select_tile_shift()
56 agx_select_tile_size(unsigned width, unsigned height, unsigned level, unsigned blocksize) in agx_select_tile_size() argument
58 return 1 << agx_select_tile_shift(width, height, level, blocksize); in agx_select_tile_size()
/third_party/libsnd/src/
H A Dg72x.c40 int blocksize, samplesperblock, bytesperblock ; member
124 { pg72x->private = g72x_reader_init (codec, &(pg72x->blocksize), &(pg72x->samplesperblock)) ; in g72x_init()
137 if (psf->datalength % pg72x->blocksize) in g72x_init()
138 { psf_log_printf (psf, "*** Odd psf->datalength (%D) should be a multiple of %d\n", psf->datalength, pg72x->blocksize) ; in g72x_init()
139 pg72x->blocks_total = (psf->datalength / pg72x->blocksize) + 1 ; in g72x_init()
142 pg72x->blocks_total = psf->datalength / pg72x->blocksize ; in g72x_init()
149 { pg72x->private = g72x_writer_init (codec, &(pg72x->blocksize), &(pg72x->samplesperblock)) ; in g72x_init()
160 if (psf->datalength % pg72x->blocksize) in g72x_init()
161 pg72x->blocks_total = (psf->datalength / pg72x->blocksize) + 1 ; in g72x_init()
163 pg72x->blocks_total = psf->datalength / pg72x->blocksize ; in g72x_init()
[all...]
H A Dima_adpcm.c34 int channels, blocksize, samplesperblock, blocks ; member
201 pima->blocksize = blockalign ; in ima_reader_init()
208 if (pima->blocksize <= 0) in ima_reader_init()
209 { psf_log_printf (psf, "*** Error : pima->blocksize should be > 0.\n") ; in ima_reader_init()
218 if (psf->datalength % pima->blocksize) in ima_reader_init()
219 pima->blocks = psf->datalength / pima->blocksize + 1 ; in ima_reader_init()
221 pima->blocks = psf->datalength / pima->blocksize ; in ima_reader_init()
226 count = 2 * (pima->blocksize - 4 * pima->channels) / pima->channels + 1 ; in ima_reader_init()
276 if ((k = (int) psf_fread (pima->block, 1, pima->blocksize * pima->channels, psf)) != pima->blocksize * pim in aiff_ima_decode_block()
[all...]
/third_party/node/deps/openssl/openssl/crypto/ec/
H A Dec_mult.c39 size_t blocksize; /* block size for wNAF splitting */ member
65 ret->blocksize = 8; /* default */ in ec_pre_comp_new()
417 size_t blocksize = 0, numblocks = 0; /* for wNAF splitting */ in ossl_ec_wNAF_mul() local
481 blocksize = pre_comp->blocksize; in ossl_ec_wNAF_mul()
487 numblocks = (BN_num_bits(scalar) / blocksize) + 1; in ossl_ec_wNAF_mul()
600 if (tmp_len < numblocks * blocksize) { in ossl_ec_wNAF_mul()
604 numblocks = (tmp_len + blocksize - 1) / blocksize; in ossl_ec_wNAF_mul()
619 wNAF_len[i] = blocksize; in ossl_ec_wNAF_mul()
835 size_t i, bits, w, pre_points_per_block, blocksize, numblocks, num; ossl_ec_wNAF_precompute_mult() local
[all...]
/third_party/openssl/crypto/ec/
H A Dec_mult.c39 size_t blocksize; /* block size for wNAF splitting */ member
65 ret->blocksize = 8; /* default */ in ec_pre_comp_new()
417 size_t blocksize = 0, numblocks = 0; /* for wNAF splitting */ in ossl_ec_wNAF_mul() local
481 blocksize = pre_comp->blocksize; in ossl_ec_wNAF_mul()
487 numblocks = (BN_num_bits(scalar) / blocksize) + 1; in ossl_ec_wNAF_mul()
600 if (tmp_len < numblocks * blocksize) { in ossl_ec_wNAF_mul()
604 numblocks = (tmp_len + blocksize - 1) / blocksize; in ossl_ec_wNAF_mul()
619 wNAF_len[i] = blocksize; in ossl_ec_wNAF_mul()
835 size_t i, bits, w, pre_points_per_block, blocksize, numblocks, num; ossl_ec_wNAF_precompute_mult() local
[all...]
/third_party/ffmpeg/libavcodec/x86/
H A Dmlpdsp_init.c138 int blocksize, int32_t *sample_buffer) in mlp_filter_channel_x86()
143 blocksize = -blocksize; in mlp_filter_channel_x86()
180 /* 3*/"+r"(blocksize) in mlp_filter_channel_x86()
186 /* 3*/"+m"(blocksize) in mlp_filter_channel_x86()
135 mlp_filter_channel_x86(int32_t *state, const int32_t *coeff, int firorder, int iirorder, unsigned int filter_shift, int32_t mask, int blocksize, int32_t *sample_buffer) mlp_filter_channel_x86() argument

Completed in 14 milliseconds

1234567