Home
last modified time | relevance | path

Searched refs:blake3_per_cpu_ctx (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/openzfs/module/icp/algs/blake3/
H A Dblake3_impl.c290 void **blake3_per_cpu_ctx; variable
298 blake3_per_cpu_ctx = kmem_alloc(max_ncpus * sizeof (void *), KM_SLEEP); in blake3_per_cpu_ctx_init()
300 blake3_per_cpu_ctx[i] = kmem_alloc(sizeof (BLAKE3_CTX), in blake3_per_cpu_ctx_init()
309 memset(blake3_per_cpu_ctx[i], 0, sizeof (BLAKE3_CTX)); in blake3_per_cpu_ctx_fini()
310 kmem_free(blake3_per_cpu_ctx[i], sizeof (BLAKE3_CTX)); in blake3_per_cpu_ctx_fini()
312 memset(blake3_per_cpu_ctx, 0, max_ncpus * sizeof (void *)); in blake3_per_cpu_ctx_fini()
313 kmem_free(blake3_per_cpu_ctx, max_ncpus * sizeof (void *)); in blake3_per_cpu_ctx_fini()
/freebsd/sys/contrib/openzfs/include/sys/
H A Dblake3.h96 extern void **blake3_per_cpu_ctx;
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dblake3_zfs.c54 BLAKE3_CTX *ctx = blake3_per_cpu_ctx[CPU_SEQID]; in abd_checksum_blake3_native()