| /openbsd-src/lib/libcrypto/evp/ |
| H A D | e_camellia.c | 110 size_t chunk = EVP_MAXCHUNK; in camellia_128_cfb128_cipher() local 112 if (inl < chunk) in camellia_128_cfb128_cipher() 113 chunk = inl; in camellia_128_cfb128_cipher() 115 while (inl && inl >= chunk) { in camellia_128_cfb128_cipher() 116 …Camellia_cfb128_encrypt(in, out, chunk, &((EVP_CAMELLIA_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx… in camellia_128_cfb128_cipher() 117 inl -= chunk; in camellia_128_cfb128_cipher() 118 in += chunk; in camellia_128_cfb128_cipher() 119 out += chunk; in camellia_128_cfb128_cipher() 120 if (inl < chunk) in camellia_128_cfb128_cipher() 121 chunk = inl; in camellia_128_cfb128_cipher() [all …]
|
| H A D | e_des.c | 120 size_t chunk = LONG_MAX & ~0xff; in des_ofb_cipher() local 122 while (inl >= chunk) { in des_ofb_cipher() 123 DES_ofb64_encrypt(in, out, (long)chunk, ctx->cipher_data, in des_ofb_cipher() 125 inl -= chunk; in des_ofb_cipher() 126 in += chunk; in des_ofb_cipher() 127 out += chunk; in des_ofb_cipher() 139 size_t chunk = LONG_MAX & ~0xff; in des_cbc_cipher() local 141 while (inl >= chunk) { in des_cbc_cipher() 142 DES_ncbc_encrypt(in, out, (long)chunk, ctx->cipher_data, in des_cbc_cipher() 144 inl -= chunk; in des_cbc_cipher() [all …]
|
| H A D | e_idea.c | 126 size_t chunk = LONG_MAX & ~0xff; in idea_cbc_cipher() local 128 while (inl >= chunk) { in idea_cbc_cipher() 129 …idea_cbc_encrypt(in, out, (long)chunk, &((EVP_IDEA_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encr… in idea_cbc_cipher() 130 inl -= chunk; in idea_cbc_cipher() 131 in += chunk; in idea_cbc_cipher() 132 out += chunk; in idea_cbc_cipher() 144 size_t chunk = LONG_MAX & ~0xff; in idea_ofb_cipher() local 146 while (inl >= chunk) { in idea_ofb_cipher() 147 …idea_ofb64_encrypt(in, out, (long)chunk, &((EVP_IDEA_KEY *)ctx->cipher_data)->ks, ctx->iv, &ctx->n… in idea_ofb_cipher() 148 inl -= chunk; in idea_ofb_cipher() [all …]
|
| H A D | e_cast.c | 89 size_t chunk = LONG_MAX & ~0xff; in cast5_cbc_cipher() local 91 while (inl >= chunk) { in cast5_cbc_cipher() 92 …CAST_cbc_encrypt(in, out, (long)chunk, &((EVP_CAST_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encr… in cast5_cbc_cipher() 93 inl -= chunk; in cast5_cbc_cipher() 94 in += chunk; in cast5_cbc_cipher() 95 out += chunk; in cast5_cbc_cipher() 107 size_t chunk = LONG_MAX & ~0xff; in cast5_cfb64_cipher() local 109 if (inl < chunk) in cast5_cfb64_cipher() 110 chunk = inl; in cast5_cfb64_cipher() 112 while (inl && inl >= chunk) { in cast5_cfb64_cipher() [all …]
|
| H A D | e_bf.c | 89 size_t chunk = LONG_MAX & ~0xff; in bf_cbc_cipher() local 91 while (inl >= chunk) { in bf_cbc_cipher() 92 …BF_cbc_encrypt(in, out, (long)chunk, &((EVP_BF_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encrypt); in bf_cbc_cipher() 93 inl -= chunk; in bf_cbc_cipher() 94 in += chunk; in bf_cbc_cipher() 95 out += chunk; in bf_cbc_cipher() 107 size_t chunk = LONG_MAX & ~0xff; in bf_cfb64_cipher() local 109 if (inl < chunk) in bf_cfb64_cipher() 110 chunk = inl; in bf_cfb64_cipher() 112 while (inl && inl >= chunk) { in bf_cfb64_cipher() [all …]
|
| H A D | e_rc2.c | 91 size_t chunk = LONG_MAX & ~0xff; in rc2_cbc_cipher() local 93 while (inl >= chunk) { in rc2_cbc_cipher() 94 …RC2_cbc_encrypt(in, out, (long)chunk, &((EVP_RC2_KEY *)ctx->cipher_data)->ks, ctx->iv, ctx->encryp… in rc2_cbc_cipher() 95 inl -= chunk; in rc2_cbc_cipher() 96 in += chunk; in rc2_cbc_cipher() 97 out += chunk; in rc2_cbc_cipher() 109 size_t chunk = LONG_MAX & ~0xff; in rc2_cfb64_cipher() local 111 if (inl < chunk) in rc2_cfb64_cipher() 112 chunk = inl; in rc2_cfb64_cipher() 114 while (inl && inl >= chunk) { in rc2_cfb64_cipher() [all …]
|
| H A D | e_des3.c | 151 size_t chunk = LONG_MAX & ~0xff; in des_ede_ofb_cipher() local 153 while (inl >= chunk) { in des_ede_ofb_cipher() 154 DES_ede3_ofb64_encrypt(in, out, (long)chunk, in des_ede_ofb_cipher() 157 inl -= chunk; in des_ede_ofb_cipher() 158 in += chunk; in des_ede_ofb_cipher() 159 out += chunk; in des_ede_ofb_cipher() 173 size_t chunk = LONG_MAX & ~0xff; in des_ede_cbc_cipher() local 175 while (inl >= chunk) { in des_ede_cbc_cipher() 176 DES_ede3_cbc_encrypt(in, out, (long)chunk, in des_ede_cbc_cipher() 179 inl -= chunk; in des_ede_cbc_cipher() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Encode/lib/Encode/JP/ |
| H A D | JIS7.pm | 78 my ( $esc, $esc_0212, $esc_asc, $esc_kana, $chunk ) = 81 unless ($chunk) { $esc or last; next; } 84 $chunk =~ tr/\x21-\x7e/\xa1-\xfe/; 86 $chunk =~ s/([\xa1-\xdf])/\x8e$1/og; 89 $chunk =~ s/([\xa1-\xfe][\xa1-\xfe])/\x8f$1/og; 91 $chunk = Encode::decode( 'euc-jp', $chunk, 0 ); 93 elsif ( ( my $npos = index( $chunk, $trm ) ) >= 0 ) { 94 $$rdst .= substr( $chunk, 0, $npos + length($trm) ); 99 $$rdst .= $chunk; 117 my ($esc_0212, $esc_asc, $esc_kana, $chunk) = [all …]
|
| /openbsd-src/sys/uvm/ |
| H A D | uvm_amap.c | 109 * amap_chunk_get: lookup a chunk for slot. if create is non-zero, 110 * the chunk is created if it does not yet exist. 112 * => returns the chunk on success or NULL on error 120 struct vm_amap_chunk *chunk, *newchunk, *pchunk = NULL; in amap_chunk_get() local 125 for (chunk = amap->am_buckets[bucket]; chunk != NULL; in amap_chunk_get() 126 chunk = TAILQ_NEXT(chunk, ac_list)) { in amap_chunk_get() 127 if (UVM_AMAP_BUCKET(amap, chunk->ac_baseslot) != bucket) in amap_chunk_get() 129 if (chunk in amap_chunk_get() 160 amap_chunk_free(struct vm_amap * amap,struct vm_amap_chunk * chunk) amap_chunk_free() argument 291 struct vm_amap_chunk *chunk, *tmp; amap_alloc1() local 447 struct vm_amap_chunk *chunk, *tmp; amap_free() local 484 struct vm_amap_chunk *chunk; amap_wipeout() local 552 struct vm_amap_chunk *chunk = NULL, *srcchunk = NULL; amap_copy() local 744 struct vm_amap_chunk *chunk; amap_cow_now() local 967 amap_wiperange_chunk(struct vm_amap * amap,struct vm_amap_chunk * chunk,int slotoff,int slots) amap_wiperange_chunk() argument 1020 struct vm_amap_chunk *chunk, *nchunk; amap_wiperange() local 1089 struct vm_amap_chunk *chunk; amap_swap_off() local 1156 struct vm_amap_chunk *chunk; amap_lookup() local 1181 struct vm_amap_chunk *chunk = NULL; amap_lookups() local 1213 struct vm_amap_chunk *chunk; amap_populate() local 1235 struct vm_amap_chunk *chunk; amap_add() local 1277 struct vm_amap_chunk *chunk; amap_unadd() local [all...] |
| /openbsd-src/usr.bin/mg/ |
| H A D | yank.c | 116 kchunk(char *cp1, RSIZE chunk, int kflag) in kchunk() argument 126 while (ksize - kused < chunk) in kchunk() 129 bcopy(cp1, &(kbufp[kused]), (int)chunk); in kchunk() 130 kused += chunk; in kchunk() 132 while (kstart < chunk) in kchunk() 135 bcopy(cp1, &(kbufp[kstart - chunk]), (int)chunk); in kchunk() 136 kstart -= chunk; in kchunk() 155 RSIZE chunk; in killline() local 167 chunk = llength(curwp->w_dotp) - curwp->w_doto + 1; in killline() 169 chunk = llength(curwp->w_dotp) - curwp->w_doto; in killline() [all …]
|
| /openbsd-src/sys/dev/pci/drm/amd/amdgpu/ |
| H A D | amdgpu_ring_mux.c | 79 struct amdgpu_mux_chunk *chunk; in amdgpu_mux_resubmit_chunks() local 103 list_for_each_entry(chunk, &e->list, entry) { in amdgpu_mux_resubmit_chunks() 104 if (chunk->sync_seq > last_seq && chunk->sync_seq <= seq) { in amdgpu_mux_resubmit_chunks() 106 chunk->sync_seq, in amdgpu_mux_resubmit_chunks() 108 if (chunk->sync_seq == in amdgpu_mux_resubmit_chunks() 110 if (chunk->cntl_offset <= e->ring->buf_mask) in amdgpu_mux_resubmit_chunks() 112 chunk->cntl_offset); in amdgpu_mux_resubmit_chunks() 113 if (chunk->ce_offset <= e->ring->buf_mask) in amdgpu_mux_resubmit_chunks() 114 amdgpu_ring_patch_ce(e->ring, chunk->ce_offset); in amdgpu_mux_resubmit_chunks() 115 if (chunk->de_offset <= e->ring->buf_mask) in amdgpu_mux_resubmit_chunks() [all …]
|
| /openbsd-src/gnu/llvm/lld/wasm/ |
| H A D | MapFile.cpp | 79 auto *chunk = syms[i]->getChunk(); in getSymbolStrings() local 80 if (chunk == nullptr) in getSymbolStrings() 82 uint64_t fileOffset = chunk->outputSec != nullptr in getSymbolStrings() 83 ? chunk->outputSec->getOffset() + chunk->outSecOff in getSymbolStrings() 129 for (auto *chunk : code->functions) { in writeMapFile() local 130 writeHeader(os, -1, chunk->outputSec->getOffset() + chunk->outSecOff, in writeMapFile() 131 chunk->getSize()); in writeMapFile() 132 os.indent(8) << toString(chunk) << '\n'; in writeMapFile() 133 for (Symbol *sym : sectionSyms[chunk]) in writeMapFile() 141 for (auto *chunk : oseg->inputSegments) { in writeMapFile() local [all …]
|
| /openbsd-src/gnu/lib/libiberty/src/ |
| H A D | objalloc.c | 89 struct objalloc_chunk *chunk; in objalloc_create() local 102 chunk = (struct objalloc_chunk *) ret->chunks; in objalloc_create() 103 chunk->next = NULL; in objalloc_create() 104 chunk->current_ptr = NULL; in objalloc_create() 106 ret->current_ptr = (char *) chunk + CHUNK_HEADER_SIZE; in objalloc_create() 141 struct objalloc_chunk *chunk; in _objalloc_alloc() local 147 chunk = (struct objalloc_chunk *) ret; in _objalloc_alloc() 148 chunk->next = (struct objalloc_chunk *) o->chunks; in _objalloc_alloc() 149 chunk->current_ptr = o->current_ptr; in _objalloc_alloc() 151 o->chunks = (PTR) chunk; in _objalloc_alloc() [all …]
|
| H A D | obstack.c | 145 register struct _obstack_chunk *chunk; /* points to new chunk */ in _obstack_begin() local 172 chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); in _obstack_begin() 173 if (!chunk) in _obstack_begin() 175 h->next_free = h->object_base = chunk->contents; in _obstack_begin() 176 h->chunk_limit = chunk->limit in _obstack_begin() 177 = (char *) chunk + h->chunk_size; in _obstack_begin() 178 chunk->prev = 0; in _obstack_begin() 190 register struct _obstack_chunk *chunk; /* points to new chunk */ in _obstack_begin_1() local 218 chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); in _obstack_begin_1() 219 if (!chunk) in _obstack_begin_1() [all …]
|
| /openbsd-src/sys/arch/mips64/mips64/ |
| H A D | sys_machdep.c | 93 size_t sz, chunk; in mips64_cacheflush() local 110 chunk = PAGE_SIZE - (va & PAGE_MASK); in mips64_cacheflush() 115 if (chunk > sz) in mips64_cacheflush() 116 chunk = sz; in mips64_cacheflush() 124 Mips_InvalidateICache(p->p_cpu, va, chunk); in mips64_cacheflush() 126 Mips_HitSyncDCache(p->p_cpu, va, chunk); in mips64_cacheflush() 135 va += chunk; in mips64_cacheflush() 136 sz -= chunk; in mips64_cacheflush() 137 chunk = PAGE_SIZE; in mips64_cacheflush()
|
| /openbsd-src/regress/usr.sbin/httpd/patterns/ |
| H A D | test-patterns-lua.out | 42 X_PATTERNS_TESTER_X:3: in main chunk 49 X_PATTERNS_TESTER_X:3: in main chunk 56 X_PATTERNS_TESTER_X:3: in main chunk 63 X_PATTERNS_TESTER_X:3: in main chunk 70 X_PATTERNS_TESTER_X:3: in main chunk 77 X_PATTERNS_TESTER_X:3: in main chunk 84 X_PATTERNS_TESTER_X:3: in main chunk 91 X_PATTERNS_TESTER_X:3: in main chunk 98 X_PATTERNS_TESTER_X:3: in main chunk 105 X_PATTERNS_TESTER_X:3: in main chunk [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/lsan/ |
| H A D | lsan_common.cpp | 310 uptr chunk = PointsIntoChunk(p); in ScanRangeForPointers() local 311 if (!chunk) in ScanRangeForPointers() 314 if (chunk == begin) in ScanRangeForPointers() 316 LsanMetadata m(chunk); in ScanRangeForPointers() 325 (void *)pp, p, (void *)chunk, (void *)(chunk + m.requested_size()), in ScanRangeForPointers() 332 (void *)pp, p, (void *)chunk, in ScanRangeForPointers() 333 (void *)(chunk + m.requested_size()), m.requested_size()); in ScanRangeForPointers() 335 frontier->push_back(chunk); in ScanRangeForPointers() 384 uptr chunk = PointsIntoChunk(ptr); in ProcessThreadRegistry() local 385 if (!chunk) in ProcessThreadRegistry() [all …]
|
| H A D | lsan_allocator.cpp | 258 uptr chunk = reinterpret_cast<uptr>(allocator.GetBlockBeginFastLocked(p)); in PointsIntoChunk() local 259 if (!chunk) return 0; in PointsIntoChunk() 262 if (addr < chunk) return 0; in PointsIntoChunk() 263 ChunkMetadata *m = Metadata(reinterpret_cast<void *>(chunk)); in PointsIntoChunk() 267 if (addr < chunk + m->requested_size) in PointsIntoChunk() 268 return chunk; in PointsIntoChunk() 269 if (IsSpecialCaseOfOperatorNew0(chunk, m->requested_size, addr)) in PointsIntoChunk() 270 return chunk; in PointsIntoChunk() 274 uptr GetUserBegin(uptr chunk) { in GetUserBegin() argument 275 return chunk; in GetUserBegin() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Test-Harness/lib/TAP/Parser/Iterator/ |
| H A D | Process.pm | 124 # Private. Used to frig with chunk size during testing. 247 my $got = sysread $fh, my ($chunk), $chunk_size; 253 print STDERR $chunk; # echo STDERR 256 $chunk = $partial . $chunk; 260 unless ( substr( $chunk, -1, 1 ) eq "\n" ) { 261 my $nl = rindex $chunk, "\n"; 263 $partial = $chunk; 267 $partial = substr( $chunk, $nl + 1 ); 268 $chunk [all...] |
| /openbsd-src/gnu/gcc/libgomp/ |
| H A D | iter.c | 151 long start, end, chunk, left; in gomp_iter_dynamic_next_locked() local 157 chunk = ws->chunk_size * ws->incr; in gomp_iter_dynamic_next_locked() 161 if (chunk < left) in gomp_iter_dynamic_next_locked() 162 chunk = left; in gomp_iter_dynamic_next_locked() 166 if (chunk > left) in gomp_iter_dynamic_next_locked() 167 chunk = left; in gomp_iter_dynamic_next_locked() 169 end = start + chunk; in gomp_iter_dynamic_next_locked() 187 long start, end, nend, chunk, incr; in gomp_iter_dynamic_next() local 192 chunk = ws->chunk_size * incr; in gomp_iter_dynamic_next() 204 if (chunk < left) in gomp_iter_dynamic_next() [all …]
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/lit/ |
| H A D | ShUtil.py | 33 chunk = self.data[self.pos - 1:].split(None, 1)[0] 36 if ('|' in chunk or '&' in chunk or 37 '<' in chunk or '>' in chunk or 38 "'" in chunk or '"' in chunk or 39 ';' in chunk or '\\' in chunk): 42 self.pos = self.pos - 1 + len(chunk) 43 return GlobItem(chunk) if '*' in chunk or '?' in chunk else chunk
|
| /openbsd-src/sys/arch/arm/arm/ |
| H A D | sys_machdep.c | 65 vsize_t sz, chunk; in arm32_sync_icache() local 87 chunk = PAGE_SIZE - (va & PAGE_MASK); in arm32_sync_icache() 89 if (chunk > sz) in arm32_sync_icache() 90 chunk = sz; in arm32_sync_icache() 93 cpu_icache_sync_range(va, chunk); in arm32_sync_icache() 95 va += chunk; in arm32_sync_icache() 96 sz -= chunk; in arm32_sync_icache() 97 chunk = PAGE_SIZE; in arm32_sync_icache()
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/BLAKE3/ |
| H A D | blake3.c | 372 chunk_state_init(&self->chunk, key, flags); in hasher_init_base() 416 output_t output = parent_output(parent_node, self->key, self->chunk.flags); in hasher_merge_cv_stack() 476 if (chunk_state_len(&self->chunk) > 0) { in llvm_blake3_hasher_update() 477 size_t take = BLAKE3_CHUNK_LEN - chunk_state_len(&self->chunk); in llvm_blake3_hasher_update() 481 chunk_state_update(&self->chunk, input_bytes, take); in llvm_blake3_hasher_update() 487 output_t output = chunk_state_output(&self->chunk); in llvm_blake3_hasher_update() 490 hasher_push_cv(self, chunk_cv, self->chunk.chunk_counter); in llvm_blake3_hasher_update() 491 chunk_state_reset(&self->chunk, self->key, self->chunk.chunk_counter + 1); in llvm_blake3_hasher_update() 512 uint64_t count_so_far = self->chunk.chunk_counter * BLAKE3_CHUNK_LEN; in llvm_blake3_hasher_update() 536 chunk_state_init(&chunk_state, self->key, self->chunk.flags); in llvm_blake3_hasher_update() [all …]
|
| /openbsd-src/usr.bin/openssl/ |
| H A D | rand.c | 157 int chunk; in rand_main() local 159 chunk = num; in rand_main() 160 if (chunk > (int) sizeof(buf)) in rand_main() 161 chunk = sizeof(buf); in rand_main() 162 arc4random_buf(buf, chunk); in rand_main() 164 for (i = 0; i < chunk; i++) in rand_main() 167 BIO_write(out, buf, chunk); in rand_main() 168 num -= chunk; in rand_main()
|
| /openbsd-src/lib/libcurses/base/ |
| H A D | vsscanf.c | 216 ChunkType chunk, ctest; in vsscanf() 235 chunk = cUnknown; in vsscanf() 265 chunk = cRange; in vsscanf() 274 chunk = ctest; in vsscanf() 279 chunk = cError; in vsscanf() 290 if (chunk == cUnknown in vsscanf() 291 || chunk == cError) { in vsscanf() 298 if (chunk != cAssigned) { in vsscanf() 302 switch (chunk) { in vsscanf() 336 assigned + 1, chunk, in vsscanf()
|