Searched refs:tmpl (Results 1 - 14 of 14) sorted by relevance

/crypto/
H A Dxor.c64 do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) argument
70 tmpl->next = template_list;
71 template_list = tmpl;
88 tmpl->do_2(BENCH_SIZE, b1, b2);
100 tmpl->speed = speed;
102 printk(KERN_INFO " %-10s: %5d.%03d MB/sec\n", tmpl->name,
H A Dalgboss.c65 struct crypto_template *tmpl; local
69 tmpl = crypto_lookup_template(param->template);
70 if (!tmpl)
74 if (tmpl->create) {
75 err = tmpl->create(tmpl, param->tb);
79 inst = tmpl->alloc(param->tb);
82 else if ((err = crypto_register_instance(tmpl, inst)))
83 tmpl->free(inst);
86 crypto_tmpl_put(tmpl);
[all...]
H A Dalgapi.c61 struct crypto_template *tmpl = inst->tmpl; local
63 tmpl->free(inst);
64 crypto_tmpl_put(tmpl);
94 struct crypto_template *tmpl = inst->tmpl; local
103 if (!tmpl || !crypto_tmpl_get(tmpl))
426 int crypto_register_template(struct crypto_template *tmpl) argument
434 if (q == tmpl)
447 crypto_unregister_template(struct crypto_template *tmpl) argument
479 struct crypto_template *q, *tmpl = NULL; local
502 crypto_register_instance(struct crypto_template *tmpl, struct crypto_instance *inst) argument
543 struct crypto_template *tmpl = inst->tmpl; local
[all...]
H A Dinternal.h118 static inline int crypto_tmpl_get(struct crypto_template *tmpl) argument
120 return try_module_get(tmpl->module);
123 static inline void crypto_tmpl_put(struct crypto_template *tmpl) argument
125 module_put(tmpl->module);
H A Daead.c272 struct crypto_instance *aead_geniv_alloc(struct crypto_template *tmpl, argument
321 if (strcmp(tmpl->name, alg->cra_aead.geniv))
330 "%s(%s)", tmpl->name, alg->cra_name) >=
334 "%s(%s)", tmpl->name, alg->cra_driver_name) >=
407 struct crypto_template *tmpl; local
441 tmpl = crypto_lookup_template(geniv);
443 if (!tmpl)
446 inst = tmpl->alloc(tb);
451 if ((err = crypto_register_instance(tmpl, inst))) {
452 tmpl
[all...]
H A Dcryptd.c317 static int cryptd_create_blkcipher(struct crypto_template *tmpl, argument
362 err = crypto_register_instance(tmpl, inst);
573 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, argument
618 err = ahash_register_instance(tmpl, inst);
715 static int cryptd_create_aead(struct crypto_template *tmpl, argument
757 err = crypto_register_instance(tmpl, inst);
770 static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) argument
780 return cryptd_create_blkcipher(tmpl, tb, &queue);
782 return cryptd_create_hash(tmpl, tb, &queue);
784 return cryptd_create_aead(tmpl, t
[all...]
H A Dxcbc.c199 static int xcbc_create(struct crypto_template *tmpl, struct rtattr **tb) argument
256 err = shash_register_instance(tmpl, inst);
H A Dablkcipher.c545 struct crypto_template *tmpl; local
587 tmpl = crypto_lookup_template(geniv);
589 if (!tmpl)
592 inst = tmpl->alloc(tb);
597 if ((err = crypto_register_instance(tmpl, inst))) {
598 tmpl->free(inst);
606 crypto_tmpl_put(tmpl);
H A Dcmac.c225 static int cmac_create(struct crypto_template *tmpl, struct rtattr **tb) argument
283 err = shash_register_instance(tmpl, inst);
H A Dhmac.c184 static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) argument
241 err = shash_register_instance(tmpl, inst);
H A Dblkcipher.c580 struct crypto_instance *skcipher_geniv_alloc(struct crypto_template *tmpl, argument
667 if (strcmp(tmpl->name, balg.geniv))
676 "%s(%s)", tmpl->name, alg->cra_name) >=
680 "%s(%s)", tmpl->name, alg->cra_driver_name) >=
H A Dahash.c494 int ahash_register_instance(struct crypto_template *tmpl, argument
503 return crypto_register_instance(tmpl, ahash_crypto_instance(inst));
H A Dshash.c669 int shash_register_instance(struct crypto_template *tmpl, argument
678 return crypto_register_instance(tmpl, shash_crypto_instance(inst));
H A Dvmac.c643 static int vmac_create(struct crypto_template *tmpl, struct rtattr **tb) argument
683 err = shash_register_instance(tmpl, inst);

Completed in 122 milliseconds