Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 25 of 527) sorted by relevance

12345678910>>...22

/freebsd-12-stable/contrib/subversion/subversion/libsvn_delta/
Dxdelta.c121 struct blocks struct
172 add_block(struct blocks *blocks, apr_uint32_t adlersum, apr_uint32_t pos) in add_block() argument
174 apr_uint32_t h = hash_func(adlersum) & blocks->max; in add_block()
177 for (; blocks->slots[h].pos != NO_POSITION; h = (h + 1) & blocks->max) in add_block()
178 if (blocks->slots[h].adlersum == adlersum) in add_block()
179 if (memcmp(blocks->data + blocks->slots[h].pos, blocks->data + pos, in add_block()
183 blocks->slots[h].adlersum = adlersum; in add_block()
184 blocks->slots[h].pos = pos; in add_block()
185 blocks->flags[hash_flags(adlersum)] |= 1 << (adlersum & 7); in add_block()
192 find_block(const struct blocks *blocks, in find_block() argument
[all …]
/freebsd-12-stable/contrib/xz/src/liblzma/common/
Dindex_hash.c49 lzma_index_hash_info blocks; member
83 index_hash->blocks.blocks_size = 0; in lzma_index_hash_init()
84 index_hash->blocks.uncompressed_size = 0; in lzma_index_hash_init()
85 index_hash->blocks.count = 0; in lzma_index_hash_init()
86 index_hash->blocks.index_list_size = 0; in lzma_index_hash_init()
97 (void)lzma_check_init(&index_hash->blocks.check, LZMA_CHECK_BEST); in lzma_index_hash_init()
119 return index_size(index_hash->blocks.count, in lzma_index_hash_size()
120 index_hash->blocks.index_list_size); in lzma_index_hash_size()
155 hash_append(&index_hash->blocks, unpadded_size, uncompressed_size); in lzma_index_hash_append()
158 if (index_hash->blocks.blocks_size > LZMA_VLI_MAX in lzma_index_hash_append()
[all …]
/freebsd-12-stable/crypto/openssl/crypto/evp/
De_aes_cbc_hmac_sha1.c53 void aesni_cbc_sha1_enc(const void *inp, void *out, size_t blocks,
57 void aesni256_cbc_sha1_dec(const void *inp, void *out, size_t blocks,
140 int blocks; member
148 int blocks; member
166 } blocks[8]; in tls1_1_multi_block_encrypt() local
177 if (RAND_bytes((IVs = blocks[0].c), 16 * x4) <= 0) in tls1_1_multi_block_encrypt()
209 memcpy(blocks[0].c, key->md.data, 8); in tls1_1_multi_block_encrypt()
210 seqnum = BSWAP8(blocks[0].q[0]); in tls1_1_multi_block_encrypt()
226 blocks[i].q[0] = BSWAP8(seqnum + i); in tls1_1_multi_block_encrypt()
229 blocks[i].c[j] = ((u8 *)key->md.data)[j] + carry; in tls1_1_multi_block_encrypt()
[all …]
De_aes_cbc_hmac_sha256.c54 int aesni_cbc_sha256_enc(const void *inp, void *out, size_t blocks,
136 int blocks; member
144 int blocks; member
162 } blocks[8]; in tls1_1_multi_block_encrypt() local
173 if (RAND_bytes((IVs = blocks[0].c), 16 * x4) <= 0) in tls1_1_multi_block_encrypt()
206 memcpy(blocks[0].c, key->md.data, 8); in tls1_1_multi_block_encrypt()
207 seqnum = BSWAP8(blocks[0].q[0]); in tls1_1_multi_block_encrypt()
226 blocks[i].q[0] = BSWAP8(seqnum + i); in tls1_1_multi_block_encrypt()
229 blocks[i].c[j] = ((u8 *)key->md.data)[j] + carry; in tls1_1_multi_block_encrypt()
230 carry = (blocks[i].c[j] - carry) >> (sizeof(carry) * 8 - 1); in tls1_1_multi_block_encrypt()
[all …]
De_rc4_hmac_md5.c33 MD5_CTX *ctx, const void *inp, size_t blocks);
72 md5_off = MD5_CBLOCK - key->md.num, blocks; in rc4_hmac_md5_cipher() local
89 if (plen > md5_off && (blocks = (plen - md5_off) / MD5_CBLOCK) && in rc4_hmac_md5_cipher()
95 &key->md, in + md5_off, blocks); in rc4_hmac_md5_cipher()
96 blocks *= MD5_CBLOCK; in rc4_hmac_md5_cipher()
97 rc4_off += blocks; in rc4_hmac_md5_cipher()
98 md5_off += blocks; in rc4_hmac_md5_cipher()
99 key->md.Nh += blocks >> 29; in rc4_hmac_md5_cipher()
100 key->md.Nl += blocks <<= 3; in rc4_hmac_md5_cipher()
101 if (key->md.Nl < (unsigned int)blocks) in rc4_hmac_md5_cipher()
[all …]
De_chacha20_poly1305.c85 size_t blocks = len / CHACHA_BLK_SIZE; in chacha_cipher() local
91 if (sizeof(size_t)>sizeof(unsigned int) && blocks>(1U<<28)) in chacha_cipher()
92 blocks = (1U<<28); in chacha_cipher()
100 ctr32 += (unsigned int)blocks; in chacha_cipher()
101 if (ctr32 < blocks) { in chacha_cipher()
102 blocks -= ctr32; in chacha_cipher()
105 blocks *= CHACHA_BLK_SIZE; in chacha_cipher()
106 ChaCha20_ctr32(out, inp, blocks, key->key.d, key->counter); in chacha_cipher()
107 len -= blocks; in chacha_cipher()
108 inp += blocks; in chacha_cipher()
[all …]
/freebsd-12-stable/crypto/openssl/crypto/modes/
Dctr128.c172 size_t blocks = len / 16; in CRYPTO_ctr128_encrypt_ctr32() local
178 if (sizeof(size_t) > sizeof(unsigned int) && blocks > (1U << 28)) in CRYPTO_ctr128_encrypt_ctr32()
179 blocks = (1U << 28); in CRYPTO_ctr128_encrypt_ctr32()
186 ctr32 += (u32)blocks; in CRYPTO_ctr128_encrypt_ctr32()
187 if (ctr32 < blocks) { in CRYPTO_ctr128_encrypt_ctr32()
188 blocks -= ctr32; in CRYPTO_ctr128_encrypt_ctr32()
191 (*func) (in, out, blocks, key, ivec); in CRYPTO_ctr128_encrypt_ctr32()
197 blocks *= 16; in CRYPTO_ctr128_encrypt_ctr32()
198 len -= blocks; in CRYPTO_ctr128_encrypt_ctr32()
199 out += blocks; in CRYPTO_ctr128_encrypt_ctr32()
[all …]
/freebsd-12-stable/contrib/wpa/src/crypto/
Dcrypto_internal-cipher.c106 size_t i, j, blocks; in crypto_cipher_encrypt() local
119 blocks = len / AES_BLOCK_SIZE; in crypto_cipher_encrypt()
120 for (i = 0; i < blocks; i++) { in crypto_cipher_encrypt()
133 blocks = len / 8; in crypto_cipher_encrypt()
134 for (i = 0; i < blocks; i++) { in crypto_cipher_encrypt()
147 blocks = len / 8; in crypto_cipher_encrypt()
148 for (i = 0; i < blocks; i++) { in crypto_cipher_encrypt()
169 size_t i, j, blocks; in crypto_cipher_decrypt() local
183 blocks = len / AES_BLOCK_SIZE; in crypto_cipher_decrypt()
184 for (i = 0; i < blocks; i++) { in crypto_cipher_decrypt()
[all …]
Daes-cbc.c29 int i, j, blocks; in aes_128_cbc_encrypt() local
39 blocks = data_len / AES_BLOCK_SIZE; in aes_128_cbc_encrypt()
40 for (i = 0; i < blocks; i++) { in aes_128_cbc_encrypt()
65 int i, j, blocks; in aes_128_cbc_decrypt() local
75 blocks = data_len / AES_BLOCK_SIZE; in aes_128_cbc_decrypt()
76 for (i = 0; i < blocks; i++) { in aes_128_cbc_decrypt()
/freebsd-12-stable/contrib/subversion/subversion/libsvn_subr/
Dbit_array.c58 unsigned char **blocks; member
93 array->blocks = apr_pcalloc(pool, in svn_bit_array__create()
94 array->block_count * sizeof(*array->blocks)); in svn_bit_array__create()
136 memcpy(new_blocks, array->blocks, in svn_bit_array__set()
138 array->blocks = new_blocks; in svn_bit_array__set()
145 block = array->blocks[block_idx]; in svn_bit_array__set()
157 array->blocks[block_idx] = block; in svn_bit_array__set()
187 block = array->blocks[block_idx]; in svn_bit_array__get()
/freebsd-12-stable/contrib/apr-util/buckets/
Dapr_buckets_alloc.c42 apr_memnode_t *blocks; member
49 apr_allocator_free(list->allocator, list->blocks); in alloc_cleanup()
104 list->blocks = block; in apr_bucket_alloc_create_ex()
116 apr_allocator_free(list->allocator, list->blocks); in apr_bucket_alloc_destroy()
160 apr_memnode_t *active = list->blocks; in apr_bucket_alloc()
172 list->blocks = apr_allocator_alloc(list->allocator, ALLOC_AMT); in apr_bucket_alloc()
173 if (!list->blocks) { in apr_bucket_alloc()
174 list->blocks = active; in apr_bucket_alloc()
177 list->blocks->next = active; in apr_bucket_alloc()
178 active = list->blocks; in apr_bucket_alloc()
/freebsd-12-stable/contrib/gcc/
Dgcov.c176 block_t *blocks; member
223 block_t *blocks; /* blocks which start on this line. Used member
592 for (ix = fn->num_blocks, block = fn->blocks; ix--; block++) in release_structures()
602 free (fn->blocks); in release_structures()
778 if (fn->blocks) in read_graph_file()
786 fn->blocks = XCNEWVEC (block_t, fn->num_blocks); in read_graph_file()
788 fn->blocks[ix].flags = gcov_read_unsigned (); in read_graph_file()
796 if (src >= fn->num_blocks || fn->blocks[src].succ) in read_graph_file()
809 arc->dst = &fn->blocks[dest]; in read_graph_file()
810 arc->src = &fn->blocks[src]; in read_graph_file()
[all …]
Dtracer.c202 fibnode_t *blocks = XCNEWVEC (fibnode_t, last_basic_block); in tail_duplicate() local
225 blocks[bb->index] = fibheap_insert (heap, -bb->frequency, in tail_duplicate()
249 blocks[bb->index] = NULL; in tail_duplicate()
259 if (blocks[bb->index]) in tail_duplicate()
261 fibheap_delete_node (heap, blocks[bb->index]); in tail_duplicate()
262 blocks[bb->index] = NULL; in tail_duplicate()
269 if (blocks[bb2->index]) in tail_duplicate()
271 fibheap_delete_node (heap, blocks[bb2->index]); in tail_duplicate()
272 blocks[bb2->index] = NULL; in tail_duplicate()
289 blocks[old->index] = in tail_duplicate()
[all …]
Dtree-ssa-sink.c218 bitmap blocks = BITMAP_ALLOC (NULL); in nearest_common_dominator_of_uses() local
227 bitmap_clear (blocks); in nearest_common_dominator_of_uses()
249 BITMAP_FREE (blocks); in nearest_common_dominator_of_uses()
252 bitmap_set_bit (blocks, useblock->index); in nearest_common_dominator_of_uses()
255 commondom = BASIC_BLOCK (bitmap_first_set_bit (blocks)); in nearest_common_dominator_of_uses()
256 EXECUTE_IF_SET_IN_BITMAP (blocks, 0, j, bi) in nearest_common_dominator_of_uses()
259 BITMAP_FREE (blocks); in nearest_common_dominator_of_uses()
/freebsd-12-stable/tools/diag/prtblknos/
DREADME4 of blocks used by a requested list of inodes.
6 For example, to list the blocks referenced by your kernel:
9 Filesystem 1K-blocks Used Avail Capacity Mounted on
25 Each contiguous range of blocks is printed on a line.
27 previous set of blocks to the beginning of the next set of blocks.
31 size blocks which by today's default is 32Kb.
36 physical block numbers reference 4Kb blocks. The distances listed
44 half the block size (say 32Kb blocks with 16Kb fragments) then the
/freebsd-12-stable/contrib/llvm-project/llvm/lib/ProfileData/
DGCOV.cpp57 SmallVector<const GCOVBlock *, 1> blocks; member
151 fn->blocks.push_back(std::make_unique<GCOVBlock>(i)); in readGCNO()
156 fn->blocks.push_back(std::make_unique<GCOVBlock>(i)); in readGCNO()
160 if (srcNo >= fn->blocks.size()) { in readGCNO()
162 << fn->blocks.size() << ")\n"; in readGCNO()
165 GCOVBlock *src = fn->blocks[srcNo].get(); in readGCNO()
170 GCOVBlock *dst = fn->blocks[dstNo].get(); in readGCNO()
181 if (srcNo >= fn->blocks.size()) { in readGCNO()
183 << fn->blocks.size() << ")\n"; in readGCNO()
186 GCOVBlock &Block = *fn->blocks[srcNo]; in readGCNO()
[all …]
/freebsd-12-stable/sys/dev/drm2/radeon/
Dradeon_mem.c139 struct mem_block *blocks = malloc(sizeof(*blocks), in init_heap() local
142 if (!blocks) in init_heap()
147 free(blocks, DRM_MEM_DRIVER); in init_heap()
151 blocks->start = start; in init_heap()
152 blocks->size = size; in init_heap()
153 blocks->file_priv = NULL; in init_heap()
154 blocks->next = blocks->prev = *heap; in init_heap()
157 (*heap)->next = (*heap)->prev = blocks; in init_heap()
/freebsd-12-stable/contrib/libxo/doc/
Dformatting.rst92 xo_emit("{:blocks/%d}\t{:path/%s}\n", num_blocks, path);
107 <blocks>36</blocks>
111 <blocks>40</blocks>
115 <blocks>90</blocks>
133 { "blocks": 36, "path" : "./src" },
134 { "blocks": 40, "path" : "./bin" },
135 { "blocks": 90, "path" : "./" }
152 <div class="data" data-tag="blocks">36</div>
157 <div class="data" data-tag="blocks">40</div>
162 <div class="data" data-tag="blocks">90</div>
/freebsd-12-stable/sbin/newfs_nandfs/
Dnewfs_nandfs.c81 uint32_t *blocks; member
336 user_files[i].blocks = malloc(user_files[i].nblocks * sizeof(uint32_t)); in count_seg_blocks()
341 ifile.blocks = malloc(ifile.nblocks * sizeof(uint32_t)); in count_seg_blocks()
347 cpfile.blocks = malloc(cpfile.nblocks * sizeof(uint32_t)); in count_seg_blocks()
359 sufile.blocks = malloc(sufile.nblocks * sizeof(uint32_t)); in count_seg_blocks()
364 datfile.blocks = malloc(datfile.nblocks * sizeof(uint32_t)); in count_seg_blocks()
377 user_files[i].blocks[j] = start_block++; in assign_file_blocks()
382 ifile.blocks[j] = start_block++; in assign_file_blocks()
387 cpfile.blocks[j] = start_block++; in assign_file_blocks()
392 sufile.blocks[j] = start_block++; in assign_file_blocks()
[all …]
/freebsd-12-stable/contrib/jemalloc/include/jemalloc/internal/
Dhash.h84 const uint32_t *blocks = (const uint32_t *) (data + nblocks*4); in hash_x86_32() local
88 uint32_t k1 = hash_get_block_32(blocks, i); in hash_x86_32()
140 const uint32_t *blocks = (const uint32_t *) (data + nblocks*16); in hash_x86_128() local
144 uint32_t k1 = hash_get_block_32(blocks, i*4 + 0); in hash_x86_128()
145 uint32_t k2 = hash_get_block_32(blocks, i*4 + 1); in hash_x86_128()
146 uint32_t k3 = hash_get_block_32(blocks, i*4 + 2); in hash_x86_128()
147 uint32_t k4 = hash_get_block_32(blocks, i*4 + 3); in hash_x86_128()
237 const uint64_t *blocks = (const uint64_t *) (data); in hash_x64_128() local
241 uint64_t k1 = hash_get_block_64(blocks, i*2 + 0); in hash_x64_128()
242 uint64_t k2 = hash_get_block_64(blocks, i*2 + 1); in hash_x64_128()
/freebsd-12-stable/sys/dev/drm/
Dsis_ds.c166 PMemBlock blocks; in mmInit() local
171 blocks = (TMemBlock *) drm_calloc(1, sizeof(TMemBlock), DRM_MEM_DRIVER); in mmInit()
172 if (blocks != NULL) { in mmInit()
173 blocks->ofs = ofs; in mmInit()
174 blocks->size = size; in mmInit()
175 blocks->free = 1; in mmInit()
176 return (memHeap_t *) blocks; in mmInit()
/freebsd-12-stable/contrib/ofed/opensm/opensm/
Dosm_pkey.c62 cl_ptr_vector_construct(&p_pkey_tbl->blocks); in osm_pkey_tbl_construct()
72 num_blocks = (uint16_t) (cl_ptr_vector_get_size(&p_pkey_tbl->blocks)); in osm_pkey_tbl_destroy()
74 if ((p_block = cl_ptr_vector_get(&p_pkey_tbl->blocks, i))) in osm_pkey_tbl_destroy()
76 cl_ptr_vector_destroy(&p_pkey_tbl->blocks); in osm_pkey_tbl_destroy()
95 cl_ptr_vector_init(&p_pkey_tbl->blocks, 0, 1); in osm_pkey_tbl_init()
127 if (cl_ptr_vector_get_size(&p_pkey_tbl->blocks) > block) in osm_pkey_tbl_set()
129 (ib_pkey_table_t *) cl_ptr_vector_get(&p_pkey_tbl->blocks, in osm_pkey_tbl_set()
140 cl_ptr_vector_set(&p_pkey_tbl->blocks, block, p_pkey_block); in osm_pkey_tbl_set()
155 for (b = 0; b < cl_ptr_vector_get_size(&p_pkey_tbl->blocks); b++) { in osm_pkey_tbl_set()
157 p_pkey_block = cl_ptr_vector_get(&p_pkey_tbl->blocks, b); in osm_pkey_tbl_set()
[all …]
/freebsd-12-stable/contrib/serf/buckets/
Dallocator.c99 apr_memnode_t *blocks; /* blocks we allocated for subdividing */ member
112 if (allocator->blocks) { in allocator_cleanup()
113 apr_allocator_free(allocator->allocator, allocator->blocks); in allocator_cleanup()
194 apr_memnode_t *active = allocator->blocks; in serf_bucket_mem_alloc()
198 apr_memnode_t *head = allocator->blocks; in serf_bucket_mem_alloc()
208 allocator->blocks = active; in serf_bucket_mem_alloc()
/freebsd-12-stable/contrib/ofed/opensm/include/opensm/
Dosm_pkey.h86 cl_ptr_vector_t blocks; member
244 return ((uint16_t) (cl_ptr_vector_get_size(&p_pkey_tbl->blocks))); in osm_pkey_tbl_get_num_blocks()
271 return ((block < cl_ptr_vector_get_size(&p_pkey_tbl->blocks)) ? in osm_pkey_tbl_block_get()
273 &p_pkey_tbl->blocks, block) : NULL); in osm_pkey_tbl_block_get()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblySortRegion.h39 virtual iterator_range<block_iterator> blocks() const = 0;
53 iterator_range<block_iterator> blocks() const override { in blocks() function
54 return Unit->blocks(); in blocks()

12345678910>>...22