Home
last modified time | relevance | path

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

12345

/Linux-v4.19/drivers/crypto/marvell/
Dcipher.c426 struct mv_cesa_op_ctx *tmpl) in mv_cesa_skcipher_req_init() argument
447 mv_cesa_update_op_cfg(tmpl, CESA_SA_DESC_CFG_OP_CRYPT_ONLY, in mv_cesa_skcipher_req_init()
451 ret = mv_cesa_skcipher_dma_req_init(req, tmpl); in mv_cesa_skcipher_req_init()
453 ret = mv_cesa_skcipher_std_req_init(req, tmpl); in mv_cesa_skcipher_req_init()
459 struct mv_cesa_op_ctx *tmpl) in mv_cesa_skcipher_queue_req() argument
465 ret = mv_cesa_skcipher_req_init(req, tmpl); in mv_cesa_skcipher_queue_req()
481 struct mv_cesa_op_ctx *tmpl) in mv_cesa_des_op() argument
485 mv_cesa_update_op_cfg(tmpl, CESA_SA_DESC_CFG_CRYPTM_DES, in mv_cesa_des_op()
488 memcpy(tmpl->ctx.blkcipher.key, ctx->key, DES_KEY_SIZE); in mv_cesa_des_op()
490 return mv_cesa_skcipher_queue_req(req, tmpl); in mv_cesa_des_op()
[all …]
Dhash.c413 struct mv_cesa_op_ctx *tmpl, bool algo_le) in mv_cesa_ahash_init() argument
418 mv_cesa_update_op_cfg(tmpl, in mv_cesa_ahash_init()
423 mv_cesa_set_mac_op_total_len(tmpl, 0); in mv_cesa_ahash_init()
424 mv_cesa_set_mac_op_frag_len(tmpl, 0); in mv_cesa_ahash_init()
425 creq->op_tmpl = *tmpl; in mv_cesa_ahash_init()
464 struct mv_cesa_op_ctx *tmpl, unsigned int frag_len, in mv_cesa_dma_add_frag() argument
470 op = mv_cesa_dma_add_op(chain, tmpl, false, flags); in mv_cesa_dma_add_frag()
482 if (mv_cesa_mac_op_is_first_frag(tmpl)) in mv_cesa_dma_add_frag()
483 mv_cesa_update_op_cfg(tmpl, in mv_cesa_dma_add_frag()
789 struct mv_cesa_op_ctx *tmpl = &creq->op_tmpl; in mv_cesa_ahash_final() local
[all …]
/Linux-v4.19/drivers/crypto/qce/
Dsha.c43 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_done() local
44 struct qce_device *qce = tmpl->qce; in qce_ahash_done()
73 qce->async_req_done(tmpl->qce, error); in qce_ahash_done()
81 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_async_req_handle() local
82 struct qce_device *qce = tmpl->qce; in qce_ahash_async_req_handle()
117 ret = qce_start(async_req, tmpl->crypto_alg_type, 0, 0); in qce_ahash_async_req_handle()
135 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_init() local
136 const u32 *std_iv = tmpl->std_iv; in qce_ahash_init()
141 rctx->flags = tmpl->alg_flags; in qce_ahash_init()
238 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_update() local
[all …]
Dablkcipher.c30 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_done() local
31 struct qce_device *qce = tmpl->qce; in qce_ablkcipher_done()
56 qce->async_req_done(tmpl->qce, error); in qce_ablkcipher_done()
65 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_async_req_handle() local
66 struct qce_device *qce = tmpl->qce; in qce_ablkcipher_async_req_handle()
142 ret = qce_start(async_req, tmpl->crypto_alg_type, req->nbytes, 0); in qce_ablkcipher_async_req_handle()
207 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); in qce_ablkcipher_crypt() local
210 rctx->flags = tmpl->alg_flags; in qce_ablkcipher_crypt()
228 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_ablkcipher_crypt()
349 struct qce_alg_template *tmpl; in qce_ablkcipher_register_one() local
[all …]
/Linux-v4.19/drivers/scsi/fnic/
Dcq_exch_desc.h28 u8 tmpl; member
62 u16 tmpl; member
95 u16 *tmpl, in cq_fcp_rq_desc_dec() argument
116 *tmpl = desc_ptr->tmpl & CQ_FCP_RQ_DESC_TMPL_MASK; in cq_fcp_rq_desc_dec()
141 u16 tmpl; member
169 u16 *tmpl, in cq_sgl_desc_dec() argument
178 *tmpl = desc_ptr->tmpl & CQ_SGL_TMPL_MASK; in cq_sgl_desc_dec()
/Linux-v4.19/crypto/
Dalgboss.c65 struct crypto_template *tmpl; in cryptomgr_probe() local
69 tmpl = crypto_lookup_template(param->template); in cryptomgr_probe()
70 if (!tmpl) in cryptomgr_probe()
74 if (tmpl->create) { in cryptomgr_probe()
75 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe()
79 inst = tmpl->alloc(param->tb); in cryptomgr_probe()
82 else if ((err = crypto_register_instance(tmpl, inst))) in cryptomgr_probe()
83 tmpl->free(inst); in cryptomgr_probe()
86 crypto_tmpl_put(tmpl); in cryptomgr_probe()
Dxor.c68 do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) in do_xor_speed() argument
74 tmpl->next = template_list; in do_xor_speed()
75 template_list = tmpl; in do_xor_speed()
92 tmpl->do_2(BENCH_SIZE, b1, b2); in do_xor_speed()
104 tmpl->speed = speed; in do_xor_speed()
106 printk(KERN_INFO " %-10s: %5d.%03d MB/sec\n", tmpl->name, in do_xor_speed()
Dalgapi.c83 inst->tmpl->free(inst); in crypto_free_instance()
93 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance() local
96 crypto_tmpl_put(tmpl); in crypto_destroy_instance()
124 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local
133 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance()
466 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument
473 crypto_check_module_sig(tmpl->module); in crypto_register_template()
476 if (q == tmpl) in crypto_register_template()
480 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
488 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument
[all …]
Dinternal.h114 static inline int crypto_tmpl_get(struct crypto_template *tmpl) in crypto_tmpl_get() argument
116 return try_module_get(tmpl->module); in crypto_tmpl_get()
119 static inline void crypto_tmpl_put(struct crypto_template *tmpl) in crypto_tmpl_put() argument
121 module_put(tmpl->module); in crypto_tmpl_put()
Dseqiv.c144 static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_aead_create() argument
149 inst = aead_geniv_alloc(tmpl, tb, 0, 0); in seqiv_aead_create()
167 err = aead_register_instance(tmpl, inst); in seqiv_aead_create()
179 static int seqiv_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_create() argument
190 return seqiv_aead_create(tmpl, tb); in seqiv_create()
Daead.c164 inst->tmpl->free(inst); in crypto_aead_free_instance()
201 struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl, in aead_geniv_alloc() argument
249 "%s(%s)", tmpl->name, alg->base.cra_name) >= in aead_geniv_alloc()
253 "%s(%s)", tmpl->name, alg->base.cra_driver_name) >= in aead_geniv_alloc()
421 int aead_register_instance(struct crypto_template *tmpl, in aead_register_instance() argument
430 return crypto_register_instance(tmpl, aead_crypto_instance(inst)); in aead_register_instance()
Dechainiv.c117 static int echainiv_aead_create(struct crypto_template *tmpl, in echainiv_aead_create() argument
123 inst = aead_geniv_alloc(tmpl, tb, 0, 0); in echainiv_aead_create()
143 err = aead_register_instance(tmpl, inst); in echainiv_aead_create()
/Linux-v4.19/include/net/netfilter/
Dnf_conntrack_zones.h31 nf_ct_zone_tmpl(const struct nf_conn *tmpl, const struct sk_buff *skb, in nf_ct_zone_tmpl() argument
35 if (!tmpl) in nf_ct_zone_tmpl()
38 if (tmpl->zone.flags & NF_CT_FLAG_MARK) in nf_ct_zone_tmpl()
39 return nf_ct_zone_init(tmp, skb->mark, tmpl->zone.dir, 0); in nf_ct_zone_tmpl()
41 return nf_ct_zone(tmpl); in nf_ct_zone_tmpl()
Dnf_conntrack_synproxy.h32 const struct nf_conn *tmpl) in nf_ct_add_synproxy() argument
34 if (tmpl && nfct_synproxy(tmpl)) { in nf_ct_add_synproxy()
54 struct nf_conn *tmpl; member
Dnf_tables.h536 static inline void nft_set_ext_prepare(struct nft_set_ext_tmpl *tmpl) in nft_set_ext_prepare() argument
538 memset(tmpl, 0, sizeof(*tmpl)); in nft_set_ext_prepare()
539 tmpl->len = sizeof(struct nft_set_ext); in nft_set_ext_prepare()
542 static inline void nft_set_ext_add_length(struct nft_set_ext_tmpl *tmpl, u8 id, in nft_set_ext_add_length() argument
545 tmpl->len = ALIGN(tmpl->len, nft_set_ext_types[id].align); in nft_set_ext_add_length()
546 BUG_ON(tmpl->len > U8_MAX); in nft_set_ext_add_length()
547 tmpl->offset[id] = tmpl->len; in nft_set_ext_add_length()
548 tmpl->len += nft_set_ext_types[id].len + len; in nft_set_ext_add_length()
551 static inline void nft_set_ext_add(struct nft_set_ext_tmpl *tmpl, u8 id) in nft_set_ext_add() argument
553 nft_set_ext_add_length(tmpl, id, 0); in nft_set_ext_add()
[all …]
/Linux-v4.19/drivers/s390/net/
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-v4.19/net/ipv4/
Dxfrm4_state.c44 xfrm4_init_temprop(struct xfrm_state *x, const struct xfrm_tmpl *tmpl, in xfrm4_init_temprop() argument
47 x->id = tmpl->id; in xfrm4_init_temprop()
50 x->props.saddr = tmpl->saddr; in xfrm4_init_temprop()
53 x->props.mode = tmpl->mode; in xfrm4_init_temprop()
54 x->props.reqid = tmpl->reqid; in xfrm4_init_temprop()
/Linux-v4.19/net/netfilter/
Dnf_conntrack_core.c489 struct nf_conn *tmpl, *p; in nf_ct_tmpl_alloc() local
492 tmpl = kzalloc(sizeof(*tmpl) + NFCT_INFOMASK, flags); in nf_ct_tmpl_alloc()
493 if (!tmpl) in nf_ct_tmpl_alloc()
496 p = tmpl; in nf_ct_tmpl_alloc()
497 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc()
498 if (tmpl != p) { in nf_ct_tmpl_alloc()
499 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc()
500 tmpl->proto.tmpl_padto = (char *)tmpl - (char *)p; in nf_ct_tmpl_alloc()
503 tmpl = kzalloc(sizeof(*tmpl), flags); in nf_ct_tmpl_alloc()
504 if (!tmpl) in nf_ct_tmpl_alloc()
[all …]
Dnft_dynset.c21 struct nft_set_ext_tmpl tmpl; member
43 elem = nft_set_elem_init(set, &priv->tmpl, in nft_dynset_new()
208 nft_set_ext_prepare(&priv->tmpl); in nft_dynset_init()
209 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); in nft_dynset_init()
211 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_DATA, set->dlen); in nft_dynset_init()
213 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_EXPR, in nft_dynset_init()
217 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_EXPIRATION); in nft_dynset_init()
Dnf_conntrack_proto_icmpv6.c133 icmpv6_error_message(struct net *net, struct nf_conn *tmpl, in icmpv6_error_message() argument
167 h = nf_conntrack_find_get(net, nf_ct_zone_tmpl(tmpl, skb, &tmp), in icmpv6_error_message()
189 icmpv6_error(struct net *net, struct nf_conn *tmpl, in icmpv6_error() argument
220 return icmpv6_error_message(net, tmpl, skb, dataoff); in icmpv6_error()
/Linux-v4.19/drivers/media/dvb-frontends/
Dmn88443x.c264 u32 cpmon, tmpu, tmpl, flg; in mn88443x_s_read_status() local
298 regmap_read(r_s, CNRDXL_S, &tmpl); in mn88443x_s_read_status()
299 x = (tmpu << 8) | tmpl; in mn88443x_s_read_status()
301 regmap_read(r_s, CNRDYL_S, &tmpl); in mn88443x_s_read_status()
302 y = (tmpu << 8) | tmpl; in mn88443x_s_read_status()
340 regmap_read(r_s, BERVRDL_S, &tmpl); in mn88443x_s_read_status()
341 bit_err = (tmpu << 8) | tmpl; in mn88443x_s_read_status()
466 u32 seqrd, st, flg, tmpu, tmpm, tmpl; in mn88443x_t_read_status() local
486 regmap_read(r_t, AGCRDL_T, &tmpl); in mn88443x_t_read_status()
487 agc = (tmpu << 8) | tmpl; in mn88443x_t_read_status()
[all …]
/Linux-v4.19/net/ipv6/
Dxfrm6_state.c45 xfrm6_init_temprop(struct xfrm_state *x, const struct xfrm_tmpl *tmpl, in xfrm6_init_temprop() argument
48 x->id = tmpl->id; in xfrm6_init_temprop()
51 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); in xfrm6_init_temprop()
54 x->props.mode = tmpl->mode; in xfrm6_init_temprop()
55 x->props.reqid = tmpl->reqid; in xfrm6_init_temprop()
/Linux-v4.19/drivers/scsi/
Dscsi_sas_internal.h41 #define to_sas_internal(tmpl) container_of(tmpl, struct sas_internal, t) argument
/Linux-v4.19/drivers/net/wireless/ti/wlcore/
Dinit.c161 struct wl12xx_disconn_template *tmpl; in wl1271_ap_init_deauth_template() local
165 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in wl1271_ap_init_deauth_template()
166 if (!tmpl) { in wl1271_ap_init_deauth_template()
171 tmpl->header.frame_ctl = cpu_to_le16(IEEE80211_FTYPE_MGMT | in wl1271_ap_init_deauth_template()
177 tmpl, sizeof(*tmpl), 0, rate); in wl1271_ap_init_deauth_template()
180 kfree(tmpl); in wl1271_ap_init_deauth_template()
/Linux-v4.19/include/crypto/
Dalgapi.h52 struct crypto_template *tmpl; member
65 int (*create)(struct crypto_template *tmpl, struct rtattr **tb);
143 int crypto_register_template(struct crypto_template *tmpl);
144 void crypto_unregister_template(struct crypto_template *tmpl);
147 int crypto_register_instance(struct crypto_template *tmpl,

12345