Home
last modified time | relevance | path

Searched refs:spawn (Results 1 – 25 of 42) sorted by relevance

12

/linux-6.6.21/crypto/
Dalgapi.c112 struct crypto_spawn *spawn, *n; in crypto_more_spawns() local
114 spawn = list_first_entry_or_null(stack, struct crypto_spawn, list); in crypto_more_spawns()
115 if (!spawn) in crypto_more_spawns()
118 n = list_prev_entry(spawn, list); in crypto_more_spawns()
119 list_move(&spawn->list, secondary_spawns); in crypto_more_spawns()
125 if (!spawn->dead) in crypto_more_spawns()
161 struct crypto_spawn *spawn, *n; in crypto_remove_spawns() local
168 list_for_each_entry_safe(spawn, n, spawns, list) { in crypto_remove_spawns()
169 if ((spawn->alg->cra_flags ^ new_type) & spawn->mask) in crypto_remove_spawns()
172 list_move(&spawn->list, &top); in crypto_remove_spawns()
[all …]
Dctr.c221 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in crypto_rfc3686_init_tfm() local
227 cipher = crypto_spawn_skcipher(spawn); in crypto_rfc3686_init_tfm()
251 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in crypto_rfc3686_free() local
253 crypto_drop_skcipher(spawn); in crypto_rfc3686_free()
262 struct crypto_skcipher_spawn *spawn; in crypto_rfc3686_create() local
270 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_rfc3686_create()
274 spawn = skcipher_instance_ctx(inst); in crypto_rfc3686_create()
276 err = crypto_grab_skcipher(spawn, skcipher_crypto_instance(inst), in crypto_rfc3686_create()
281 alg = crypto_spawn_skcipher_alg(spawn); in crypto_rfc3686_create()
Dgeniv.c44 struct crypto_aead_spawn *spawn; in aead_geniv_alloc() local
56 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in aead_geniv_alloc()
60 spawn = aead_instance_ctx(inst); in aead_geniv_alloc()
62 err = crypto_grab_aead(spawn, aead_crypto_instance(inst), in aead_geniv_alloc()
67 alg = crypto_spawn_aead_alg(spawn); in aead_geniv_alloc()
Dcmac.c205 struct crypto_cipher_spawn *spawn; in cmac_init_tfm() local
208 spawn = shash_instance_ctx(inst); in cmac_init_tfm()
209 cipher = crypto_spawn_cipher(spawn); in cmac_init_tfm()
242 struct crypto_cipher_spawn *spawn; in cmac_create() local
252 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in cmac_create()
255 spawn = shash_instance_ctx(inst); in cmac_create()
257 err = crypto_grab_cipher(spawn, shash_crypto_instance(inst), in cmac_create()
261 alg = crypto_spawn_cipher_alg(spawn); in cmac_create()
Dxcbc.c171 struct crypto_cipher_spawn *spawn = crypto_instance_ctx(inst); in xcbc_init_tfm() local
174 cipher = crypto_spawn_cipher(spawn); in xcbc_init_tfm()
192 struct crypto_cipher_spawn *spawn; in xcbc_create() local
202 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in xcbc_create()
205 spawn = shash_instance_ctx(inst); in xcbc_create()
207 err = crypto_grab_cipher(spawn, shash_crypto_instance(inst), in xcbc_create()
211 alg = crypto_spawn_cipher_alg(spawn); in xcbc_create()
Dhmac.c149 struct crypto_shash_spawn *spawn = shash_instance_ctx(inst); in hmac_init_tfm() local
152 hash = crypto_spawn_shash(spawn); in hmac_init_tfm()
187 struct crypto_shash_spawn *spawn; in hmac_create() local
199 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in hmac_create()
202 spawn = shash_instance_ctx(inst); in hmac_create()
204 err = crypto_grab_shash(spawn, shash_crypto_instance(inst), in hmac_create()
208 salg = crypto_spawn_shash_alg(spawn); in hmac_create()
Dlrw.c268 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in lrw_init_tfm() local
272 cipher = crypto_spawn_skcipher(spawn); in lrw_init_tfm()
301 struct crypto_skcipher_spawn *spawn; in lrw_create() local
317 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in lrw_create()
321 spawn = skcipher_instance_ctx(inst); in lrw_create()
323 err = crypto_grab_skcipher(spawn, skcipher_crypto_instance(inst), in lrw_create()
331 err = crypto_grab_skcipher(spawn, in lrw_create()
339 alg = crypto_skcipher_spawn_alg(spawn); in lrw_create()
Dcts.c286 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in crypto_cts_init_tfm() local
293 cipher = crypto_spawn_skcipher(spawn); in crypto_cts_init_tfm()
326 struct crypto_skcipher_spawn *spawn; in crypto_cts_create() local
336 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_cts_create()
340 spawn = skcipher_instance_ctx(inst); in crypto_cts_create()
342 err = crypto_grab_skcipher(spawn, skcipher_crypto_instance(inst), in crypto_cts_create()
347 alg = crypto_spawn_skcipher_alg(spawn); in crypto_cts_create()
Dcryptd.c50 struct crypto_spawn spawn; member
55 struct crypto_skcipher_spawn spawn; member
60 struct crypto_shash_spawn spawn; member
343 struct crypto_skcipher_spawn *spawn = &ictx->spawn; in cryptd_skcipher_init_tfm() local
347 cipher = crypto_spawn_skcipher(spawn); in cryptd_skcipher_init_tfm()
369 crypto_drop_skcipher(&ctx->spawn); in cryptd_skcipher_free()
394 err = crypto_grab_skcipher(&ctx->spawn, skcipher_crypto_instance(inst), in cryptd_create_skcipher()
399 alg = crypto_spawn_skcipher_alg(&ctx->spawn); in cryptd_create_skcipher()
434 struct crypto_shash_spawn *spawn = &ictx->spawn; in cryptd_hash_init_tfm() local
438 hash = crypto_spawn_shash(spawn); in cryptd_hash_init_tfm()
[all …]
Dccm.c670 struct crypto_aead_spawn *spawn = aead_instance_ctx(inst); in crypto_rfc4309_init_tfm() local
675 aead = crypto_spawn_aead(spawn); in crypto_rfc4309_init_tfm()
710 struct crypto_aead_spawn *spawn; in crypto_rfc4309_create() local
718 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_rfc4309_create()
722 spawn = aead_instance_ctx(inst); in crypto_rfc4309_create()
723 err = crypto_grab_aead(spawn, aead_crypto_instance(inst), in crypto_rfc4309_create()
728 alg = crypto_spawn_aead_alg(spawn); in crypto_rfc4309_create()
844 struct crypto_cipher_spawn *spawn = crypto_instance_ctx(inst); in cbcmac_init_tfm() local
847 cipher = crypto_spawn_cipher(spawn); in cbcmac_init_tfm()
865 struct crypto_cipher_spawn *spawn; in cbcmac_create() local
[all …]
Dkpp.c117 int crypto_grab_kpp(struct crypto_kpp_spawn *spawn, in crypto_grab_kpp() argument
121 spawn->base.frontend = &crypto_kpp_type; in crypto_grab_kpp()
122 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_kpp()
Dpcrypt.c25 struct crypto_aead_spawn spawn; member
190 cipher = crypto_spawn_aead(&ictx->spawn); in pcrypt_aead_init_tfm()
214 crypto_drop_aead(&ctx->spawn); in pcrypt_free()
260 err = crypto_grab_aead(&ctx->spawn, aead_crypto_instance(inst), in pcrypt_create_aead()
265 alg = crypto_spawn_aead_alg(&ctx->spawn); in pcrypt_create_aead()
Dxts.c30 struct crypto_skcipher_spawn spawn; member
303 child = crypto_spawn_skcipher(&ictx->spawn); in xts_init_tfm()
335 crypto_drop_skcipher(&ictx->spawn); in xts_free_instance()
364 err = crypto_grab_skcipher(&ctx->spawn, skcipher_crypto_instance(inst), in xts_create()
372 err = crypto_grab_skcipher(&ctx->spawn, in xts_create()
380 alg = crypto_skcipher_spawn_alg(&ctx->spawn); in xts_create()
Drsa-pkcs1pad.c97 struct crypto_akcipher_spawn spawn; member
570 child_tfm = crypto_spawn_akcipher(&ictx->spawn); in pkcs1pad_init_tfm()
592 struct crypto_akcipher_spawn *spawn = &ctx->spawn; in pkcs1pad_free() local
594 crypto_drop_akcipher(spawn); in pkcs1pad_free()
617 err = crypto_grab_akcipher(&ctx->spawn, akcipher_crypto_instance(inst), in pkcs1pad_create()
622 rsa_alg = crypto_spawn_akcipher_alg(&ctx->spawn); in pkcs1pad_create()
Dskcipher.c791 int crypto_grab_skcipher(struct crypto_skcipher_spawn *spawn, in crypto_grab_skcipher() argument
795 spawn->base.frontend = &crypto_skcipher_type; in crypto_grab_skcipher()
796 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_skcipher()
939 struct crypto_cipher_spawn *spawn = skcipher_instance_ctx(inst); in skcipher_init_tfm_simple() local
943 cipher = crypto_spawn_cipher(spawn); in skcipher_init_tfm_simple()
985 struct crypto_cipher_spawn *spawn; in skcipher_alloc_instance_simple() local
993 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in skcipher_alloc_instance_simple()
996 spawn = skcipher_instance_ctx(inst); in skcipher_alloc_instance_simple()
998 err = crypto_grab_cipher(spawn, skcipher_crypto_instance(inst), in skcipher_alloc_instance_simple()
1002 cipher_alg = crypto_spawn_cipher_alg(spawn); in skcipher_alloc_instance_simple()
Dakcipher.c116 int crypto_grab_akcipher(struct crypto_akcipher_spawn *spawn, in crypto_grab_akcipher() argument
120 spawn->base.frontend = &crypto_akcipher_type; in crypto_grab_akcipher()
121 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_akcipher()
Dvmac.c600 struct crypto_cipher_spawn *spawn = crypto_instance_ctx(inst); in vmac_init_tfm() local
604 cipher = crypto_spawn_cipher(spawn); in vmac_init_tfm()
622 struct crypto_cipher_spawn *spawn; in vmac_create() local
631 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in vmac_create()
634 spawn = shash_instance_ctx(inst); in vmac_create()
636 err = crypto_grab_cipher(spawn, shash_crypto_instance(inst), in vmac_create()
640 alg = crypto_spawn_cipher_alg(spawn); in vmac_create()
/linux-6.6.21/include/crypto/internal/
Dhash.h94 int crypto_grab_ahash(struct crypto_ahash_spawn *spawn,
98 static inline void crypto_drop_ahash(struct crypto_ahash_spawn *spawn) in crypto_drop_ahash() argument
100 crypto_drop_spawn(&spawn->base); in crypto_drop_ahash()
104 struct crypto_ahash_spawn *spawn) in crypto_spawn_ahash_alg() argument
106 return __crypto_hash_alg_common(spawn->base.alg); in crypto_spawn_ahash_alg()
117 int crypto_grab_shash(struct crypto_shash_spawn *spawn,
121 static inline void crypto_drop_shash(struct crypto_shash_spawn *spawn) in crypto_drop_shash() argument
123 crypto_drop_spawn(&spawn->base); in crypto_drop_shash()
127 struct crypto_shash_spawn *spawn) in crypto_spawn_shash_alg() argument
129 return __crypto_shash_alg(spawn->base.alg); in crypto_spawn_shash_alg()
[all …]
Dskcipher.h100 int crypto_grab_skcipher(struct crypto_skcipher_spawn *spawn,
104 static inline void crypto_drop_skcipher(struct crypto_skcipher_spawn *spawn) in crypto_drop_skcipher() argument
106 crypto_drop_spawn(&spawn->base); in crypto_drop_skcipher()
110 struct crypto_skcipher_spawn *spawn) in crypto_skcipher_spawn_alg() argument
112 return container_of(spawn->base.alg, struct skcipher_alg, base); in crypto_skcipher_spawn_alg()
116 struct crypto_skcipher_spawn *spawn) in crypto_spawn_skcipher_alg() argument
118 return crypto_skcipher_spawn_alg(spawn); in crypto_spawn_skcipher_alg()
122 struct crypto_skcipher_spawn *spawn) in crypto_spawn_skcipher() argument
124 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_skcipher()
247 struct crypto_cipher_spawn *spawn = skcipher_instance_ctx(inst); in skcipher_ialg_simple() local
[all …]
Dcipher.h185 static inline int crypto_grab_cipher(struct crypto_cipher_spawn *spawn, in crypto_grab_cipher() argument
192 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_cipher()
195 static inline void crypto_drop_cipher(struct crypto_cipher_spawn *spawn) in crypto_drop_cipher() argument
197 crypto_drop_spawn(&spawn->base); in crypto_drop_cipher()
201 struct crypto_cipher_spawn *spawn) in crypto_spawn_cipher_alg() argument
203 return spawn->base.alg; in crypto_spawn_cipher_alg()
207 struct crypto_cipher_spawn *spawn) in crypto_spawn_cipher() argument
212 return __crypto_cipher_cast(crypto_spawn_tfm(&spawn->base, type, mask)); in crypto_spawn_cipher()
Dkpp.h196 int crypto_grab_kpp(struct crypto_kpp_spawn *spawn,
204 static inline void crypto_drop_kpp(struct crypto_kpp_spawn *spawn) in crypto_drop_kpp() argument
206 crypto_drop_spawn(&spawn->base); in crypto_drop_kpp()
222 struct crypto_kpp_spawn *spawn) in crypto_spawn_kpp_alg() argument
224 return container_of(spawn->base.alg, struct kpp_alg, base); in crypto_spawn_kpp_alg()
240 struct crypto_kpp_spawn *spawn) in crypto_spawn_kpp() argument
242 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_kpp()
Dakcipher.h103 int crypto_grab_akcipher(struct crypto_akcipher_spawn *spawn,
108 struct crypto_akcipher_spawn *spawn) in crypto_spawn_akcipher() argument
110 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_akcipher()
113 static inline void crypto_drop_akcipher(struct crypto_akcipher_spawn *spawn) in crypto_drop_akcipher() argument
115 crypto_drop_spawn(&spawn->base); in crypto_drop_akcipher()
119 struct crypto_akcipher_spawn *spawn) in crypto_spawn_akcipher_alg() argument
121 return container_of(spawn->base.alg, struct akcipher_alg, base); in crypto_spawn_akcipher_alg()
Daead.h99 int crypto_grab_aead(struct crypto_aead_spawn *spawn,
103 static inline void crypto_drop_aead(struct crypto_aead_spawn *spawn) in crypto_drop_aead() argument
105 crypto_drop_spawn(&spawn->base); in crypto_drop_aead()
109 struct crypto_aead_spawn *spawn) in crypto_spawn_aead_alg() argument
111 return container_of(spawn->base.alg, struct aead_alg, base); in crypto_spawn_aead_alg()
115 struct crypto_aead_spawn *spawn) in crypto_spawn_aead() argument
117 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_aead()
/linux-6.6.21/include/crypto/
Dalgapi.h158 int crypto_grab_spawn(struct crypto_spawn *spawn, struct crypto_instance *inst,
160 void crypto_drop_spawn(struct crypto_spawn *spawn);
161 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type,
163 void *crypto_spawn_tfm2(struct crypto_spawn *spawn);
/linux-6.6.21/tools/perf/arch/x86/tests/
Dintel-cqm.c16 static pid_t spawn(void) in spawn() function
82 pid = spawn(); in test__intel_cqm_count_nmi_context()

12