Home
last modified time | relevance | path

Searched refs:ctx_fpu (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/crypto/blake2/
H A Dblake2_cryptodev.c60 static struct fpu_kern_ctx **ctx_fpu; variable
66 (ctx) = ctx_fpu[(i)]; \
106 if (ctx_fpu[i] != NULL) { in blake2_cleanctx()
108 fpu_kern_free_ctx(ctx_fpu[i]); in blake2_cleanctx()
110 ctx_fpu[i] = NULL; in blake2_cleanctx()
114 free(ctx_fpu, M_BLAKE2); in blake2_cleanctx()
115 ctx_fpu = NULL; in blake2_cleanctx()
137 ctx_fpu = malloc(sizeof(*ctx_fpu) * (mp_maxid + 1), M_BLAKE2, in blake2_attach()
142 ctx_fpu[i] = fpu_kern_alloc_ctx_domain( in blake2_attach()
145 ctx_fpu[i] = fpu_kern_alloc_ctx(FPU_KERN_NORMAL); in blake2_attach()
/f-stack/freebsd/crypto/aesni/
H A Daesni.c66 static struct fpu_kern_ctx **ctx_fpu; variable
78 (ctx) = ctx_fpu[(i)]; \
145 if (ctx_fpu[i] != NULL) { in aesni_cleanctx()
147 fpu_kern_free_ctx(ctx_fpu[i]); in aesni_cleanctx()
149 ctx_fpu[i] = NULL; in aesni_cleanctx()
153 free(ctx_fpu, M_AESNI); in aesni_cleanctx()
154 ctx_fpu = NULL; in aesni_cleanctx()
175 ctx_fpu = malloc(sizeof *ctx_fpu * (mp_maxid + 1), M_AESNI, in aesni_attach()
180 ctx_fpu[i] = fpu_kern_alloc_ctx_domain( in aesni_attach()
183 ctx_fpu[i] = fpu_kern_alloc_ctx(FPU_KERN_NORMAL); in aesni_attach()