Home
last modified time | relevance | path

Searched refs:tmpl (Results 1 – 25 of 127) sorted by relevance

123456

/linux/drivers/crypto/marvell/cesa/
H A Dcipher.c492 struct mv_cesa_op_ctx tmpl; in mv_cesa_ecb_des_encrypt() local
494 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_ecb_des_encrypt()
503 struct mv_cesa_op_ctx tmpl; in mv_cesa_ecb_des_decrypt() local
505 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_ecb_des_decrypt()
546 struct mv_cesa_op_ctx tmpl; in mv_cesa_cbc_des_encrypt() local
601 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_ecb_des3_ede_encrypt()
613 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_ecb_des3_ede_decrypt()
654 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_cbc_des3_ede_encrypt()
666 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_cbc_des3_ede_decrypt()
730 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_ecb_aes_encrypt()
[all …]
H A Dhash.c446 mv_cesa_update_op_cfg(tmpl, in mv_cesa_ahash_init()
451 mv_cesa_set_mac_op_total_len(tmpl, 0); in mv_cesa_ahash_init()
452 mv_cesa_set_mac_op_frag_len(tmpl, 0); in mv_cesa_ahash_init()
453 creq->op_tmpl = *tmpl; in mv_cesa_ahash_init()
512 mv_cesa_update_op_cfg(tmpl, in mv_cesa_dma_add_frag()
895 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_md5_init() local
965 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_sha1_init() local
1036 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_sha256_init() local
1249 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_md5_init() local
1320 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_sha1_init() local
[all …]
/linux/drivers/crypto/qce/
H A Dsha.c142 rctx->flags = tmpl->alg_flags; in qce_ahash_init()
283 if (tmpl->hash_zero) in qce_ahash_final()
320 if (tmpl->hash_zero) in qce_ahash_digest()
460 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_ahash_register_one()
461 if (!tmpl) in qce_ahash_register_one()
464 tmpl->std_iv = def->std_iv; in qce_ahash_register_one()
466 alg = &tmpl->alg.ahash; in qce_ahash_register_one()
499 tmpl->qce = qce; in qce_ahash_register_one()
504 kfree(tmpl); in qce_ahash_register_one()
519 list_del(&tmpl->entry); in qce_ahash_unregister()
[all …]
H A Dskcipher.c266 rctx->flags = tmpl->alg_flags; in qce_skcipher_crypt()
307 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_skcipher_crypt()
443 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_skcipher_register_one()
444 if (!tmpl) in qce_skcipher_register_one()
447 alg = &tmpl->alg.skcipher; in qce_skcipher_register_one()
480 INIT_LIST_HEAD(&tmpl->entry); in qce_skcipher_register_one()
482 tmpl->alg_flags = def->flags; in qce_skcipher_register_one()
483 tmpl->qce = qce; in qce_skcipher_register_one()
488 kfree(tmpl); in qce_skcipher_register_one()
503 list_del(&tmpl->entry); in qce_skcipher_unregister()
[all …]
H A Daead.c30 struct qce_device *qce = tmpl->qce; in qce_aead_done()
552 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_aead_crypt()
765 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_aead_register_one()
766 if (!tmpl) in qce_aead_register_one()
769 alg = &tmpl->alg.aead; in qce_aead_register_one()
798 INIT_LIST_HEAD(&tmpl->entry); in qce_aead_register_one()
800 tmpl->alg_flags = def->flags; in qce_aead_register_one()
801 tmpl->qce = qce; in qce_aead_register_one()
806 kfree(tmpl); in qce_aead_register_one()
821 list_del(&tmpl->entry); in qce_aead_unregister()
[all …]
/linux/crypto/
H A Dxor.c58 static void __init do_xor_register(struct xor_block_template *tmpl) in do_xor_register() argument
60 tmpl->next = template_list; in do_xor_register()
61 template_list = tmpl; in do_xor_register()
83 do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) in do_xor_speed() argument
89 tmpl->next = template_list; in do_xor_speed()
90 template_list = tmpl; in do_xor_speed()
99 tmpl->do_2(BENCH_SIZE, b1, b2); in do_xor_speed()
113 tmpl->speed = speed; in do_xor_speed()
115 pr_info(" %-16s: %5d MB/sec\n", tmpl->name, speed); in do_xor_speed()
H A Decb.c98 struct crypto_template *tmpl, struct rtattr **tb) in lskcipher_alloc_instance_simple2() argument
121 err = crypto_inst_setname(lskcipher_crypto_instance(inst), tmpl->name, in lskcipher_alloc_instance_simple2()
149 static int crypto_ecb_create2(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ecb_create2() argument
154 inst = lskcipher_alloc_instance_simple2(tmpl, tb); in crypto_ecb_create2()
164 err = lskcipher_register_instance(tmpl, inst); in crypto_ecb_create2()
171 static int crypto_ecb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ecb_create() argument
178 inst = lskcipher_alloc_instance_simple(tmpl, tb); in crypto_ecb_create()
180 err = crypto_ecb_create2(tmpl, tb); in crypto_ecb_create()
199 err = lskcipher_register_instance(tmpl, inst); in crypto_ecb_create()
H A Dalgapi.c82 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance_workfn() local
85 crypto_tmpl_put(tmpl); in crypto_destroy_instance_workfn()
134 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local
141 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance()
556 if (q == tmpl) in crypto_register_template()
595 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
596 list_del_init(&tmpl->list); in crypto_unregister_template()
598 list = &tmpl->instances; in crypto_unregister_template()
635 tmpl = q; in __crypto_lookup_template()
640 return tmpl; in __crypto_lookup_template()
[all …]
H A Ddh.c552 struct crypto_template *tmpl, struct rtattr **tb, in __dh_safe_prime_create() argument
589 tmpl->name, &dh_alg->base); in __dh_safe_prime_create()
605 err = kpp_register_instance(tmpl, inst); in __dh_safe_prime_create()
833 static int dh_ffdhe2048_create(struct crypto_template *tmpl, in dh_ffdhe2048_create() argument
836 return __dh_safe_prime_create(tmpl, tb, &ffdhe2048_prime); in dh_ffdhe2048_create()
839 static int dh_ffdhe3072_create(struct crypto_template *tmpl, in dh_ffdhe3072_create() argument
842 return __dh_safe_prime_create(tmpl, tb, &ffdhe3072_prime); in dh_ffdhe3072_create()
845 static int dh_ffdhe4096_create(struct crypto_template *tmpl, in dh_ffdhe4096_create() argument
848 return __dh_safe_prime_create(tmpl, tb, &ffdhe4096_prime); in dh_ffdhe4096_create()
851 static int dh_ffdhe6144_create(struct crypto_template *tmpl, in dh_ffdhe6144_create() argument
[all …]
H A Dalgboss.c53 struct crypto_template *tmpl; in cryptomgr_probe() local
56 tmpl = crypto_lookup_template(param->template); in cryptomgr_probe()
57 if (!tmpl) in cryptomgr_probe()
61 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe()
64 crypto_tmpl_put(tmpl); in cryptomgr_probe()
H A Dinternal.h173 static inline int crypto_tmpl_get(struct crypto_template *tmpl) in crypto_tmpl_get() argument
175 return try_module_get(tmpl->module); in crypto_tmpl_get()
178 static inline void crypto_tmpl_put(struct crypto_template *tmpl) in crypto_tmpl_put() argument
180 module_put(tmpl->module); in crypto_tmpl_put()
/linux/drivers/scsi/fnic/
H A Dcq_exch_desc.h16 u8 tmpl; member
50 u16 tmpl; member
83 u16 *tmpl, in cq_fcp_rq_desc_dec() argument
104 *tmpl = desc_ptr->tmpl & CQ_FCP_RQ_DESC_TMPL_MASK; in cq_fcp_rq_desc_dec()
129 u16 tmpl; member
157 u16 *tmpl, in cq_sgl_desc_dec() argument
166 *tmpl = desc_ptr->tmpl & CQ_SGL_TMPL_MASK; in cq_sgl_desc_dec()
/linux/include/net/netfilter/
H A Dnf_conntrack_zones.h29 nf_ct_zone_tmpl(const struct nf_conn *tmpl, const struct sk_buff *skb, in nf_ct_zone_tmpl() argument
33 if (!tmpl) in nf_ct_zone_tmpl()
36 if (tmpl->zone.flags & NF_CT_FLAG_MARK) in nf_ct_zone_tmpl()
37 return nf_ct_zone_init(tmp, skb->mark, tmpl->zone.dir, 0); in nf_ct_zone_tmpl()
39 return nf_ct_zone(tmpl); in nf_ct_zone_tmpl()
H A Dnf_conntrack_synproxy.h33 const struct nf_conn *tmpl) in nf_ct_add_synproxy() argument
36 if (tmpl && nfct_synproxy(tmpl)) { in nf_ct_add_synproxy()
H A Dnf_tables.h741 memset(tmpl, 0, sizeof(*tmpl)); in nft_set_ext_prepare()
742 tmpl->len = sizeof(struct nft_set_ext); in nft_set_ext_prepare()
748 tmpl->len = ALIGN(tmpl->len, nft_set_ext_types[id].align); in nft_set_ext_add_length()
749 if (tmpl->len > U8_MAX) in nft_set_ext_add_length()
752 tmpl->offset[id] = tmpl->len; in nft_set_ext_add_length()
753 tmpl->ext_len[id] = nft_set_ext_types[id].len + len; in nft_set_ext_add_length()
754 tmpl->len += tmpl->ext_len[id]; in nft_set_ext_add_length()
761 return nft_set_ext_add_length(tmpl, id, 0); in nft_set_ext_add()
765 const struct nft_set_ext_tmpl *tmpl) in nft_set_ext_init() argument
767 memcpy(ext->offset, tmpl->offset, sizeof(ext->offset)); in nft_set_ext_init()
[all …]
/linux/drivers/s390/net/
H A Dfsm.c18 int nr_events, const fsm_node *tmpl, int tmpl_len, gfp_t order) in init_fsm() argument
57 if ((tmpl[i].cond_state >= nr_states) || in init_fsm()
58 (tmpl[i].cond_event >= nr_events) ) { in init_fsm()
61 name, i, (long)tmpl[i].cond_state, (long)f->nr_states, in init_fsm()
62 (long)tmpl[i].cond_event, (long)f->nr_events); in init_fsm()
66 m[nr_states * tmpl[i].cond_event + tmpl[i].cond_state] = in init_fsm()
67 tmpl[i].function; in init_fsm()
/linux/net/netfilter/
H A Dnf_conntrack_core.c528 tmpl = kzalloc(sizeof(*tmpl) + NFCT_INFOMASK, flags); in nf_ct_tmpl_alloc()
529 if (!tmpl) in nf_ct_tmpl_alloc()
532 p = tmpl; in nf_ct_tmpl_alloc()
536 tmpl->proto.tmpl_padto = (char *)tmpl - (char *)p; in nf_ct_tmpl_alloc()
539 tmpl = kzalloc(sizeof(*tmpl), flags); in nf_ct_tmpl_alloc()
540 if (!tmpl) in nf_ct_tmpl_alloc()
549 return tmpl; in nf_ct_tmpl_alloc()
558 kfree((char *)tmpl - tmpl->proto.tmpl_padto); in nf_ct_tmpl_free()
1743 ecache = tmpl ? nf_ct_ecache_find(tmpl) : NULL; in init_conntrack()
1968 if ((tmpl && !nf_ct_is_template(tmpl)) || in nf_conntrack_in()
[all …]
H A Dnft_dynset.c17 struct nft_set_ext_tmpl tmpl; member
60 elem_priv = nft_set_elem_init(set, &priv->tmpl, in nft_dynset_new()
121 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_EXPRESSIONS, in nft_dynset_ext_add_expr()
307 nft_set_ext_prepare(&priv->tmpl); in nft_dynset_init()
308 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); in nft_dynset_init()
310 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_DATA, set->dlen); in nft_dynset_init()
317 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_TIMEOUT); in nft_dynset_init()
318 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_EXPIRATION); in nft_dynset_init()
/linux/drivers/media/dvb-frontends/
H A Dmn88443x.c273 u32 cpmon, tmpu, tmpl, flg; in mn88443x_s_read_status() local
307 regmap_read(r_s, CNRDXL_S, &tmpl); in mn88443x_s_read_status()
308 x = (tmpu << 8) | tmpl; in mn88443x_s_read_status()
310 regmap_read(r_s, CNRDYL_S, &tmpl); in mn88443x_s_read_status()
311 y = (tmpu << 8) | tmpl; in mn88443x_s_read_status()
350 bit_err = (tmpu << 8) | tmpl; in mn88443x_s_read_status()
495 regmap_read(r_t, AGCRDL_T, &tmpl); in mn88443x_t_read_status()
496 agc = (tmpu << 8) | tmpl; in mn88443x_t_read_status()
510 regmap_read(r_t, CNRDL_T, &tmpl); in mn88443x_t_read_status()
512 if (tmpu || tmpl) { in mn88443x_t_read_status()
[all …]
/linux/include/crypto/
H A Dalgapi.h74 struct crypto_template *tmpl; member
93 int (*create)(struct crypto_template *tmpl, struct rtattr **tb);
145 int crypto_register_template(struct crypto_template *tmpl);
147 void crypto_unregister_template(struct crypto_template *tmpl);
151 int crypto_register_instance(struct crypto_template *tmpl,
/linux/tools/testing/selftests/net/
H A Dl2tp.sh230 tmpl proto esp mode transport
234 tmpl proto esp mode transport
238 tmpl proto esp mode transport
242 tmpl proto esp mode transport
269 tmpl proto esp mode transport
273 tmpl proto esp mode transport
277 tmpl proto esp mode transport
281 tmpl proto esp mode transport
/linux/drivers/scsi/
H A Dscsi_sas_internal.h41 #define to_sas_internal(tmpl) container_of(tmpl, struct sas_internal, t) argument
/linux/scripts/atomic/
H A Datomic-tbl.sh239 local tmpl="$(find_kerneldoc_template "${pfx}" "${name}" "${sfx}" "${order}")"
240 if [ -z "${tmpl}" ]; then
245 gen_template_kerneldoc "${tmpl}" "${class}" "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "$@"
H A Dgen-atomic-fallback.sh38 local tmpl="${ATOMICDIR}/fallbacks/${tmpl_order:-fence}"
39 gen_template_fallback "${tmpl}" "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "$@"
51 local tmpl="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")"
52 gen_template_fallback "${tmpl}" "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "$@"
/linux/net/sched/
H A Dact_ct.c874 if (params->tmpl) { in tcf_ct_params_free()
878 nf_ct_put(params->tmpl); in tcf_ct_params_free()
959 struct nf_conn *tmpl = NULL; in tcf_ct_act() local
975 tmpl = p->tmpl; in tcf_ct_act()
1021 if (tmpl) { in tcf_ct_act()
1024 nf_ct_set(skb, tmpl, IP_CT_NEW); in tcf_ct_act()
1208 struct nf_conn *tmpl; in tcf_ct_fill_params() local
1271 if (!tmpl) { in tcf_ct_fill_params()
1275 p->tmpl = tmpl; in tcf_ct_fill_params()
1303 nf_ct_put(p->tmpl); in tcf_ct_fill_params()
[all …]

123456