Home
last modified time | relevance | path

Searched refs:chunk (Results 1 – 25 of 254) sorted by relevance

1234567891011

/freebsd/contrib/libucl/src/
H A Ducl_parser.c48 #define ucl_chunk_skipc(chunk, p) \ argument
51 (chunk)->line ++; \
52 (chunk)->column = 0; \
54 else (chunk)->column ++; \
56 (chunk)->pos ++; \
57 (chunk)->remain --; \
64 struct ucl_chunk *chunk = parser->chunks; in ucl_set_err() local
73 if (chunk->pos < chunk->end) { in ucl_set_err()
74 if (isgraph (*chunk->pos)) { in ucl_set_err()
83 filename, chunk->line, chunk->column, in ucl_set_err()
[all …]
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_icm.c55 static void mlx4_free_icm_pages(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk) in mlx4_free_icm_pages() argument
59 if (chunk->nsg > 0) in mlx4_free_icm_pages()
60 pci_unmap_sg(dev->persist->pdev, chunk->mem, chunk->npages, in mlx4_free_icm_pages()
63 for (i = 0; i < chunk->npages; ++i) in mlx4_free_icm_pages()
64 __free_pages(sg_page(&chunk->mem[i]), in mlx4_free_icm_pages()
65 get_order(chunk->mem[i].length)); in mlx4_free_icm_pages()
68 static void mlx4_free_icm_coherent(struct mlx4_dev *dev, struct mlx4_icm_chunk *chunk) in mlx4_free_icm_coherent() argument
72 for (i = 0; i < chunk->npages; ++i) in mlx4_free_icm_coherent()
74 chunk->mem[i].length, in mlx4_free_icm_coherent()
75 lowmem_page_address(sg_page(&chunk->mem[i])), in mlx4_free_icm_coherent()
[all …]
H A Dicm.h63 struct mlx4_icm_chunk *chunk; member
90 iter->chunk = list_empty(&icm->chunk_list) ? in mlx4_icm_first()
98 return !iter->chunk; in mlx4_icm_last()
103 if (++iter->page_idx >= iter->chunk->nsg) { in mlx4_icm_next()
104 if (iter->chunk->list.next == &iter->icm->chunk_list) { in mlx4_icm_next()
105 iter->chunk = NULL; in mlx4_icm_next()
109 iter->chunk = list_entry(iter->chunk->list.next, in mlx4_icm_next()
117 return sg_dma_address(&iter->chunk->mem[iter->page_idx]); in mlx4_icm_addr()
122 return sg_dma_len(&iter->chunk->mem[iter->page_idx]); in mlx4_icm_size()
/freebsd/crypto/openssl/engines/asm/
H A De_padlock-x86_64.pl47 $chunk="%rbx";
318 mov \$$PADLOCK_CHUNK,$chunk
321 cmp $chunk,$len
322 cmovc $len,$chunk # chunk=len>PADLOCK_CHUNK?PADLOCK_CHUNK:len
323 and $chunk,%rax # out_misaligned?chunk:0
324 mov $len,$chunk
326 and \$$PADLOCK_CHUNK-1,$chunk # chunk%=PADLOCK_CHUNK
329 cmovz %rax,$chunk # chunk=chunk?:PADLOCK_CHUNK
337 mov \$$PADLOCK_CHUNK,$chunk
339 cmovz $chunk,%rax
[all …]
H A De_padlock-x86.pl56 $chunk="ebx";
221 &mov ($chunk,$PADLOCK_CHUNK);
224 &cmp ($len,$chunk);
225 &cmovc ($chunk,$len); # chunk=len>PADLOCK_CHUNK?PADLOCK_CHUNK:len
226 &and ("eax",$chunk); # out_misaligned?chunk:0
227 &mov ($chunk,$len);
229 &and ($chunk,$PADLOCK_CHUNK-1); # chunk=len%PADLOCK_CHUNK
232 &cmovz ($chunk,"eax"); # chunk=chunk?:PADLOCK_CHUNK
238 &cmp ($len,$chunk);
248 &cmovae ("eax",$chunk); # mask=distance<prefetch?-prefetch:-1
[all …]
/freebsd/sys/cddl/dev/kinst/
H A Dtrampoline.c75 struct trampchunk *chunk; in kinst_trampchunk_alloc() local
112 chunk = malloc(sizeof(*chunk), M_KINST, M_WAITOK); in kinst_trampchunk_alloc()
113 chunk->addr = (void *)trampaddr; in kinst_trampchunk_alloc()
114 BIT_FILL(KINST_TRAMPS_PER_CHUNK, &chunk->free); in kinst_trampchunk_alloc()
116 TAILQ_INSERT_HEAD(&kinst_trampchunks, chunk, next); in kinst_trampchunk_alloc()
118 return (chunk); in kinst_trampchunk_alloc()
122 kinst_trampchunk_free(struct trampchunk *chunk) in kinst_trampchunk_free() argument
126 TAILQ_REMOVE(&kinst_trampchunks, chunk, next); in kinst_trampchunk_free()
127 kmem_unback(kernel_object, (vm_offset_t)chunk->addr, in kinst_trampchunk_free()
129 (void)vm_map_remove(kernel_map, (vm_offset_t)chunk->addr, in kinst_trampchunk_free()
[all …]
/freebsd/usr.sbin/makefs/zfs/
H A Dobjset.c79 struct objset_dnode_chunk *chunk; in objset_alloc() local
91 chunk = ecalloc(1, sizeof(*chunk)); in objset_alloc()
92 chunk->nextfree = 1; in objset_alloc()
93 STAILQ_INSERT_HEAD(&os->dnodechunks, chunk, next); in objset_alloc()
113 struct objset_dnode_chunk *chunk, *tmp; in _objset_write() local
121 STAILQ_FOREACH_SAFE(chunk, &os->dnodechunks, next, tmp) { in _objset_write()
124 assert(chunk->nextfree > 0); in _objset_write()
125 assert(chunk->nextfree <= os->dnodecount); in _objset_write()
126 assert(chunk->nextfree <= DNODES_PER_CHUNK); in _objset_write()
128 for (i = 0; i < chunk->nextfree; i += DNODES_PER_BLOCK) { in _objset_write()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzap_leaf.c179 uint_t chunk = zap_leaf_phys(l)->l_hdr.lh_freelist; in zap_leaf_chunk_alloc() local
180 ASSERT3U(chunk, <, ZAP_LEAF_NUMCHUNKS(l)); in zap_leaf_chunk_alloc()
181 ASSERT3U(ZAP_LEAF_CHUNK(l, chunk).l_free.lf_type, ==, ZAP_CHUNK_FREE); in zap_leaf_chunk_alloc()
184 ZAP_LEAF_CHUNK(l, chunk).l_free.lf_next; in zap_leaf_chunk_alloc()
188 return (chunk); in zap_leaf_chunk_alloc()
192 zap_leaf_chunk_free(zap_leaf_t *l, uint16_t chunk) in zap_leaf_chunk_free() argument
194 struct zap_leaf_free *zlf = &ZAP_LEAF_CHUNK(l, chunk).l_free; in zap_leaf_chunk_free()
196 ASSERT3U(chunk, <, ZAP_LEAF_NUMCHUNKS(l)); in zap_leaf_chunk_free()
202 zap_leaf_phys(l)->l_hdr.lh_freelist = chunk; in zap_leaf_chunk_free()
227 uint16_t chunk = zap_leaf_chunk_alloc(l); in zap_leaf_array_create() local
[all …]
/freebsd/sys/dev/irdma/
H A Dirdma_pble.c51 struct irdma_chunk *chunk; in irdma_destroy_pble_prm() local
55 chunk = (struct irdma_chunk *)(&pinfo->clist)->next; in irdma_destroy_pble_prm()
56 list_del(&chunk->list); in irdma_destroy_pble_prm()
57 if (chunk->type == PBLE_SD_PAGED) in irdma_destroy_pble_prm()
58 irdma_pble_free_paged_mem(chunk); in irdma_destroy_pble_prm()
59 bitmap_free(chunk->bitmapbuf); in irdma_destroy_pble_prm()
60 kfree(chunk->chunkmem.va); in irdma_destroy_pble_prm()
128 struct irdma_chunk *chunk = info->chunk; in add_sd_direct() local
141 chunk->type = PBLE_SD_CONTIGOUS; in add_sd_direct()
145 chunk->size = info->pages << HMC_PAGED_BP_SHIFT; in add_sd_direct()
[all …]
/freebsd/sys/dev/mthca/
H A Dmthca_memfree.c63 static void mthca_free_icm_pages(struct mthca_dev *dev, struct mthca_icm_chunk *chunk) in mthca_free_icm_pages() argument
67 if (chunk->nsg > 0) in mthca_free_icm_pages()
68 pci_unmap_sg(dev->pdev, chunk->mem, chunk->npages, in mthca_free_icm_pages()
71 for (i = 0; i < chunk->npages; ++i) in mthca_free_icm_pages()
72 __free_pages(sg_page(&chunk->mem[i]), in mthca_free_icm_pages()
73 get_order(chunk->mem[i].length)); in mthca_free_icm_pages()
76 static void mthca_free_icm_coherent(struct mthca_dev *dev, struct mthca_icm_chunk *chunk) in mthca_free_icm_coherent() argument
80 for (i = 0; i < chunk->npages; ++i) { in mthca_free_icm_coherent()
81 dma_free_coherent(&dev->pdev->dev, chunk->mem[i].length, in mthca_free_icm_coherent()
82 lowmem_page_address(sg_page(&chunk->mem[i])), in mthca_free_icm_coherent()
[all …]
H A Dmthca_memfree.h74 struct mthca_icm_chunk *chunk; member
101 iter->chunk = list_empty(&icm->chunk_list) ? in mthca_icm_first()
109 return !iter->chunk; in mthca_icm_last()
114 if (++iter->page_idx >= iter->chunk->nsg) { in mthca_icm_next()
115 if (iter->chunk->list.next == &iter->icm->chunk_list) { in mthca_icm_next()
116 iter->chunk = NULL; in mthca_icm_next()
120 iter->chunk = list_entry(iter->chunk->list.next, in mthca_icm_next()
128 return sg_dma_address(&iter->chunk->mem[iter->page_idx]); in mthca_icm_addr()
133 return sg_dma_len(&iter->chunk->mem[iter->page_idx]); in mthca_icm_size()
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_des_hw.c111 size_t chunk = MAXCHUNK; in cipher_hw_des_cfb64_cipher() local
115 if (len < chunk) in cipher_hw_des_cfb64_cipher()
116 chunk = len; in cipher_hw_des_cfb64_cipher()
117 while (len > 0 && len >= chunk) { in cipher_hw_des_cfb64_cipher()
118 DES_cfb64_encrypt(in, out, (long)chunk, key, (DES_cblock *)ctx->iv, in cipher_hw_des_cfb64_cipher()
120 len -= chunk; in cipher_hw_des_cfb64_cipher()
121 in += chunk; in cipher_hw_des_cfb64_cipher()
122 out += chunk; in cipher_hw_des_cfb64_cipher()
123 if (len < chunk) in cipher_hw_des_cfb64_cipher()
124 chunk = len; in cipher_hw_des_cfb64_cipher()
[all …]
H A Dciphercommon_hw.c149 size_t chunk = MAXCHUNK; in ossl_cipher_hw_chunked_cfb8() local
151 if (inl < chunk) in ossl_cipher_hw_chunked_cfb8()
152 chunk = inl; in ossl_cipher_hw_chunked_cfb8()
153 while (inl > 0 && inl >= chunk) { in ossl_cipher_hw_chunked_cfb8()
155 inl -= chunk; in ossl_cipher_hw_chunked_cfb8()
156 in += chunk; in ossl_cipher_hw_chunked_cfb8()
157 out += chunk; in ossl_cipher_hw_chunked_cfb8()
158 if (inl < chunk) in ossl_cipher_hw_chunked_cfb8()
159 chunk = inl; in ossl_cipher_hw_chunked_cfb8()
167 size_t chunk = MAXCHUNK; in ossl_cipher_hw_chunked_cfb128() local
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_sched.cpp79 typename traits_t<T>::signed_t chunk in __kmp_for_static_init() argument
145 *pstride, incr, chunk)); in __kmp_for_static_init()
364 KMP_DEBUG_ASSERT(chunk != 0); in __kmp_for_static_init()
365 if (chunk < 1) in __kmp_for_static_init()
366 chunk = 1; in __kmp_for_static_init()
367 else if ((UT)chunk > trip_count) in __kmp_for_static_init()
368 chunk = trip_count; in __kmp_for_static_init()
369 nchunks = (trip_count) / (UT)chunk + (trip_count % (UT)chunk ? 1 : 0); in __kmp_for_static_init()
370 span = chunk * incr; in __kmp_for_static_init()
395 chunk = (span + chunk - 1) & ~(chunk - 1); in __kmp_for_static_init()
[all …]
/freebsd/crypto/openssl/engines/
H A De_padlock.c338 size_t chunk; in padlock_cfb_cipher() local
340 if ((chunk = EVP_CIPHER_CTX_get_num(ctx))) { /* borrow chunk variable */ in padlock_cfb_cipher()
343 if (chunk >= AES_BLOCK_SIZE) in padlock_cfb_cipher()
347 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { in padlock_cfb_cipher()
348 ivp[chunk] = *(out_arg++) = *(in_arg++) ^ ivp[chunk]; in padlock_cfb_cipher()
349 chunk++, nbytes--; in padlock_cfb_cipher()
351 while (chunk < AES_BLOCK_SIZE && nbytes != 0) { in padlock_cfb_cipher()
353 *(out_arg++) = c ^ ivp[chunk]; in padlock_cfb_cipher()
354 ivp[chunk++] = c, nbytes--; in padlock_cfb_cipher()
357 EVP_CIPHER_CTX_set_num(ctx, chunk % AES_BLOCK_SIZE); in padlock_cfb_cipher()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_common.cpp313 uptr chunk = PointsIntoChunk(p); in ScanRangeForPointers() local
314 if (!chunk) in ScanRangeForPointers()
317 if (chunk == begin) in ScanRangeForPointers()
319 LsanMetadata m(chunk); in ScanRangeForPointers()
328 (void *)pp, p, (void *)chunk, (void *)(chunk + m.requested_size()), in ScanRangeForPointers()
335 (void *)pp, p, (void *)chunk, in ScanRangeForPointers()
336 (void *)(chunk + m.requested_size()), m.requested_size()); in ScanRangeForPointers()
338 frontier->push_back(chunk); in ScanRangeForPointers()
387 uptr chunk = PointsIntoChunk(ptr); in ProcessThreadRegistry() local
388 if (!chunk) in ProcessThreadRegistry()
[all …]
H A Dlsan_allocator.cpp281 uptr chunk = reinterpret_cast<uptr>(allocator.GetBlockBeginFastLocked(p)); in PointsIntoChunk() local
282 if (!chunk) return 0; in PointsIntoChunk()
285 if (addr < chunk) return 0; in PointsIntoChunk()
286 ChunkMetadata *m = Metadata(reinterpret_cast<void *>(chunk)); in PointsIntoChunk()
290 if (addr < chunk + m->requested_size) in PointsIntoChunk()
291 return chunk; in PointsIntoChunk()
292 if (IsSpecialCaseOfOperatorNew0(chunk, m->requested_size, addr)) in PointsIntoChunk()
293 return chunk; in PointsIntoChunk()
297 uptr GetUserBegin(uptr chunk) { in GetUserBegin() argument
298 return chunk; in GetUserBegin()
[all …]
/freebsd/crypto/openssl/apps/
H A Drand.c118 int chunk; in rand_main() local
120 chunk = num; in rand_main()
121 if (chunk > (int)sizeof(buf)) in rand_main()
122 chunk = sizeof(buf); in rand_main()
123 r = RAND_bytes(buf, chunk); in rand_main()
127 if (BIO_write(out, buf, chunk) != chunk) in rand_main()
130 for (i = 0; i < chunk; i++) in rand_main()
134 num -= chunk; in rand_main()
/freebsd/contrib/llvm-project/llvm/lib/Support/BLAKE3/
H A Dblake3.c370 chunk_state_init(&self->chunk, key, flags); in hasher_init_base()
414 output_t output = parent_output(parent_node, self->key, self->chunk.flags); in hasher_merge_cv_stack()
474 if (chunk_state_len(&self->chunk) > 0) { in llvm_blake3_hasher_update()
475 size_t take = BLAKE3_CHUNK_LEN - chunk_state_len(&self->chunk); in llvm_blake3_hasher_update()
479 chunk_state_update(&self->chunk, input_bytes, take); in llvm_blake3_hasher_update()
485 output_t output = chunk_state_output(&self->chunk); in llvm_blake3_hasher_update()
488 hasher_push_cv(self, chunk_cv, self->chunk.chunk_counter); in llvm_blake3_hasher_update()
489 chunk_state_reset(&self->chunk, self->key, self->chunk.chunk_counter + 1); in llvm_blake3_hasher_update()
510 uint64_t count_so_far = self->chunk.chunk_counter * BLAKE3_CHUNK_LEN; in llvm_blake3_hasher_update()
534 chunk_state_init(&chunk_state, self->key, self->chunk.flags); in llvm_blake3_hasher_update()
[all …]
/freebsd/crypto/openssl/crypto/md2/
H A Dmd2_one.c39 unsigned long chunk; in MD2() local
42 chunk = (n > sizeof(temp)) ? sizeof(temp) : n; in MD2()
43 ebcdic2ascii(temp, d, chunk); in MD2()
44 MD2_Update(&c, temp, chunk); in MD2()
45 n -= chunk; in MD2()
46 d += chunk; in MD2()
/freebsd/crypto/openssl/crypto/md4/
H A Dmd4_one.c39 unsigned long chunk; in MD4() local
42 chunk = (n > sizeof(temp)) ? sizeof(temp) : n; in MD4()
43 ebcdic2ascii(temp, d, chunk); in MD4()
44 MD4_Update(&c, temp, chunk); in MD4()
45 n -= chunk; in MD4()
46 d += chunk; in MD4()
/freebsd/crypto/openssl/crypto/md5/
H A Dmd5_one.c39 unsigned long chunk; in MD5() local
42 chunk = (n > sizeof(temp)) ? sizeof(temp) : n; in MD5()
43 ebcdic2ascii(temp, d, chunk); in MD5()
44 MD5_Update(&c, temp, chunk); in MD5()
45 n -= chunk; in MD5()
46 d += chunk; in MD5()
/freebsd/sys/contrib/openzfs/module/icp/algs/blake3/
H A Dblake3.c434 chunk_state_init(&ctx->chunk, key, flags); in hasher_init_base()
459 parent_output(parent_node, ctx->key, ctx->chunk.flags); in hasher_merge_cv_stack()
541 if (chunk_state_len(&ctx->chunk) > 0) { in Blake3_Update2()
542 size_t take = BLAKE3_CHUNK_LEN - chunk_state_len(&ctx->chunk); in Blake3_Update2()
546 chunk_state_update(ctx->ops, &ctx->chunk, input_bytes, take); in Blake3_Update2()
555 output_t output = chunk_state_output(&ctx->chunk); in Blake3_Update2()
558 hasher_push_cv(ctx, chunk_cv, ctx->chunk.chunk_counter); in Blake3_Update2()
559 chunk_state_reset(&ctx->chunk, ctx->key, in Blake3_Update2()
560 ctx->chunk.chunk_counter + 1); in Blake3_Update2()
585 ctx->chunk.chunk_counter * BLAKE3_CHUNK_LEN; in Blake3_Update2()
[all …]
/freebsd/sbin/nvmecontrol/
H A Dtelemetry.c101 ssize_t chunk; in telemetry_log() local
155 chunk = 4096; in telemetry_log()
159 if (chunk > size) in telemetry_log()
160 chunk = size; in telemetry_log()
162 off, 0, 0, 0, &buf, chunk); in telemetry_log()
173 if (write(fdout, &buf, chunk) != chunk) in telemetry_log()
175 off += chunk; in telemetry_log()
176 size -= chunk; in telemetry_log()
/freebsd/sys/dev/firewire/
H A Dfwcrom.c391 crom_add_quad(struct crom_chunk *chunk, uint32_t entry) in crom_add_quad() argument
395 index = chunk->data.crc_len; in crom_add_quad()
400 chunk->data.buf[index] = entry; in crom_add_quad()
401 chunk->data.crc_len++; in crom_add_quad()
406 crom_add_entry(struct crom_chunk *chunk, int key, int val) in crom_add_entry() argument
416 return (crom_add_quad(chunk, foo.i)); in crom_add_entry()
443 struct crom_chunk *chunk, char *buf) in crom_add_simple_text() argument
456 tl = (struct csrtext *) &chunk->data; in crom_add_simple_text()
466 return (crom_add_chunk(src, parent, chunk, CROM_TEXTLEAF)); in crom_add_simple_text()
484 struct crom_chunk *chunk, *parent; in crom_load() local
[all …]

1234567891011