Home
last modified time | relevance | path

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

123456

/OK3568_Linux_fs/kernel/drivers/crypto/marvell/cesa/
H A Dcipher.c413 struct mv_cesa_op_ctx *tmpl) in mv_cesa_skcipher_req_init() argument
434 mv_cesa_update_op_cfg(tmpl, CESA_SA_DESC_CFG_OP_CRYPT_ONLY, in mv_cesa_skcipher_req_init()
438 ret = mv_cesa_skcipher_dma_req_init(req, tmpl); in mv_cesa_skcipher_req_init()
440 ret = mv_cesa_skcipher_std_req_init(req, tmpl); in mv_cesa_skcipher_req_init()
446 struct mv_cesa_op_ctx *tmpl) in mv_cesa_skcipher_queue_req() argument
452 ret = mv_cesa_skcipher_req_init(req, tmpl); in mv_cesa_skcipher_queue_req()
468 struct mv_cesa_op_ctx *tmpl) in mv_cesa_des_op() argument
472 mv_cesa_update_op_cfg(tmpl, CESA_SA_DESC_CFG_CRYPTM_DES, in mv_cesa_des_op()
475 memcpy(tmpl->ctx.skcipher.key, ctx->key, DES_KEY_SIZE); in mv_cesa_des_op()
477 return mv_cesa_skcipher_queue_req(req, tmpl); in mv_cesa_des_op()
[all …]
H A Dhash.c417 struct mv_cesa_op_ctx *tmpl, bool algo_le) in mv_cesa_ahash_init() argument
422 mv_cesa_update_op_cfg(tmpl, in mv_cesa_ahash_init()
427 mv_cesa_set_mac_op_total_len(tmpl, 0); in mv_cesa_ahash_init()
428 mv_cesa_set_mac_op_frag_len(tmpl, 0); in mv_cesa_ahash_init()
429 creq->op_tmpl = *tmpl; in mv_cesa_ahash_init()
469 struct mv_cesa_op_ctx *tmpl, unsigned int frag_len, in mv_cesa_dma_add_frag() argument
475 op = mv_cesa_dma_add_op(chain, tmpl, false, flags); in mv_cesa_dma_add_frag()
487 if (mv_cesa_mac_op_is_first_frag(tmpl)) in mv_cesa_dma_add_frag()
488 mv_cesa_update_op_cfg(tmpl, in mv_cesa_dma_add_frag()
795 struct mv_cesa_op_ctx *tmpl = &creq->op_tmpl; in mv_cesa_ahash_final() local
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/qce/
H A Dsha.c36 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_done() local
37 struct qce_device *qce = tmpl->qce; in qce_ahash_done()
66 qce->async_req_done(tmpl->qce, error); in qce_ahash_done()
74 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_async_req_handle() local
75 struct qce_device *qce = tmpl->qce; in qce_ahash_async_req_handle()
110 ret = qce_start(async_req, tmpl->crypto_alg_type, 0, 0); in qce_ahash_async_req_handle()
128 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_init() local
129 const u32 *std_iv = tmpl->std_iv; in qce_ahash_init()
134 rctx->flags = tmpl->alg_flags; in qce_ahash_init()
239 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_update() local
[all …]
H A Dskcipher.c31 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req)); in qce_skcipher_done() local
32 struct qce_device *qce = tmpl->qce; in qce_skcipher_done()
59 qce->async_req_done(tmpl->qce, error); in qce_skcipher_done()
68 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req)); in qce_skcipher_async_req_handle() local
69 struct qce_device *qce = tmpl->qce; in qce_skcipher_async_req_handle()
151 ret = qce_start(async_req, tmpl->crypto_alg_type, req->cryptlen, 0); in qce_skcipher_async_req_handle()
228 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); in qce_skcipher_crypt() local
232 rctx->flags = tmpl->alg_flags; in qce_skcipher_crypt()
256 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_skcipher_crypt()
388 struct qce_alg_template *tmpl; in qce_skcipher_register_one() local
[all …]
/OK3568_Linux_fs/kernel/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 Dfips140-alg-registration.c276 int fips140_aead_register_instance(struct crypto_template *tmpl, in fips140_aead_register_instance() argument
280 aead_register_instance(tmpl, inst); in fips140_aead_register_instance()
283 int fips140_ahash_register_instance(struct crypto_template *tmpl, in fips140_ahash_register_instance() argument
287 ahash_register_instance(tmpl, inst); in fips140_ahash_register_instance()
290 int fips140_shash_register_instance(struct crypto_template *tmpl, in fips140_shash_register_instance() argument
294 shash_register_instance(tmpl, inst); in fips140_shash_register_instance()
297 int fips140_skcipher_register_instance(struct crypto_template *tmpl, in fips140_skcipher_register_instance() argument
301 skcipher_register_instance(tmpl, inst); in fips140_skcipher_register_instance()
H A Dalgapi.c74 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance() local
77 crypto_tmpl_put(tmpl); in crypto_destroy_instance()
116 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local
123 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance()
496 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument
503 crypto_check_module_sig(tmpl->module); in crypto_register_template()
506 if (q == tmpl) in crypto_register_template()
510 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
536 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument
545 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
[all …]
H A Dalgboss.c60 struct crypto_template *tmpl; in cryptomgr_probe() local
63 tmpl = crypto_lookup_template(param->template); in cryptomgr_probe()
64 if (!tmpl) in cryptomgr_probe()
68 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe()
71 crypto_tmpl_put(tmpl); in cryptomgr_probe()
H A Dinternal.h111 static inline int crypto_tmpl_get(struct crypto_template *tmpl) in crypto_tmpl_get() argument
113 return try_module_get(tmpl->module); in crypto_tmpl_get()
116 static inline void crypto_tmpl_put(struct crypto_template *tmpl) in crypto_tmpl_put() argument
118 module_put(tmpl->module); in crypto_tmpl_put()
H A Decb.c62 static int crypto_ecb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ecb_create() argument
67 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_ecb_create()
76 err = skcipher_register_instance(tmpl, inst); in crypto_ecb_create()
H A Dofb.c53 static int crypto_ofb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ofb_create() argument
59 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_ofb_create()
77 err = skcipher_register_instance(tmpl, inst); in crypto_ofb_create()
/OK3568_Linux_fs/kernel/drivers/scsi/fnic/
H A 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()
/OK3568_Linux_fs/kernel/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.h581 static inline void nft_set_ext_prepare(struct nft_set_ext_tmpl *tmpl) in nft_set_ext_prepare() argument
583 memset(tmpl, 0, sizeof(*tmpl)); in nft_set_ext_prepare()
584 tmpl->len = sizeof(struct nft_set_ext); in nft_set_ext_prepare()
587 static inline void nft_set_ext_add_length(struct nft_set_ext_tmpl *tmpl, u8 id, in nft_set_ext_add_length() argument
590 tmpl->len = ALIGN(tmpl->len, nft_set_ext_types[id].align); in nft_set_ext_add_length()
591 BUG_ON(tmpl->len > U8_MAX); in nft_set_ext_add_length()
592 tmpl->offset[id] = tmpl->len; in nft_set_ext_add_length()
593 tmpl->len += nft_set_ext_types[id].len + len; in nft_set_ext_add_length()
596 static inline void nft_set_ext_add(struct nft_set_ext_tmpl *tmpl, u8 id) in nft_set_ext_add() argument
598 nft_set_ext_add_length(tmpl, id, 0); in nft_set_ext_add()
[all …]
/OK3568_Linux_fs/buildroot/package/libopenssl/
H A D0001-Dont-waste-time-building-manpages-if-we-re-not-going.patch15 Configurations/unix-Makefile.tmpl | 2 +-
18 diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
20 --- a/Configurations/unix-Makefile.tmpl
21 +++ b/Configurations/unix-Makefile.tmpl
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/net/netfilter/
H A Dnf_conntrack_core.c546 struct nf_conn *tmpl, *p; in nf_ct_tmpl_alloc() local
549 tmpl = kzalloc(sizeof(*tmpl) + NFCT_INFOMASK, flags); in nf_ct_tmpl_alloc()
550 if (!tmpl) in nf_ct_tmpl_alloc()
553 p = tmpl; in nf_ct_tmpl_alloc()
554 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc()
555 if (tmpl != p) { in nf_ct_tmpl_alloc()
556 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc()
557 tmpl->proto.tmpl_padto = (char *)tmpl - (char *)p; in nf_ct_tmpl_alloc()
560 tmpl = kzalloc(sizeof(*tmpl), flags); in nf_ct_tmpl_alloc()
561 if (!tmpl) in nf_ct_tmpl_alloc()
[all …]
H A Dnft_dynset.c17 struct nft_set_ext_tmpl tmpl; member
39 elem = nft_set_elem_init(set, &priv->tmpl, in nft_dynset_new()
190 nft_set_ext_prepare(&priv->tmpl); in nft_dynset_init()
191 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); in nft_dynset_init()
193 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_DATA, set->dlen); in nft_dynset_init()
195 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_EXPR, in nft_dynset_init()
199 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_TIMEOUT); in nft_dynset_init()
200 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_EXPIRATION); in nft_dynset_init()
/OK3568_Linux_fs/kernel/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()
349 regmap_read(r_s, BERVRDL_S, &tmpl); in mn88443x_s_read_status()
350 bit_err = (tmpu << 8) | tmpl; in mn88443x_s_read_status()
475 u32 seqrd, st, flg, tmpu, tmpm, tmpl; in mn88443x_t_read_status() local
495 regmap_read(r_t, AGCRDL_T, &tmpl); in mn88443x_t_read_status()
496 agc = (tmpu << 8) | tmpl; in mn88443x_t_read_status()
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/xmlsec1/xmlsec1/
H A Drun-ptest13 ./sign1 sign1-tmpl.xml rsakey.pem > sign1-res.xml
15 check_return sign-tmpl
53 ./encrypt1 encrypt1-tmpl.xml deskey.bin > encrypt1-res.xml
55 check_return encrypt-tmpl
61 check_return encrypt-dynamic-tmpl
/OK3568_Linux_fs/kernel/include/crypto/
H A Dalgapi.h49 struct crypto_template *tmpl; member
66 int (*create)(struct crypto_template *tmpl, struct rtattr **tb);
101 int crypto_register_template(struct crypto_template *tmpl);
103 void crypto_unregister_template(struct crypto_template *tmpl);
107 int crypto_register_instance(struct crypto_template *tmpl,
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
H A Dl2tp.sh236 tmpl proto esp mode transport
240 tmpl proto esp mode transport
244 tmpl proto esp mode transport
248 tmpl proto esp mode transport
275 tmpl proto esp mode transport
279 tmpl proto esp mode transport
283 tmpl proto esp mode transport
287 tmpl proto esp mode transport
/OK3568_Linux_fs/u-boot/doc/DocBook/
H A D.gitignore14 media-indices.tmpl
15 media-entities.tmpl
/OK3568_Linux_fs/kernel/drivers/net/wireless/ti/wlcore/
H A Dinit.c147 struct wl12xx_disconn_template *tmpl; in wl1271_ap_init_deauth_template() local
151 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in wl1271_ap_init_deauth_template()
152 if (!tmpl) { in wl1271_ap_init_deauth_template()
157 tmpl->header.frame_ctl = cpu_to_le16(IEEE80211_FTYPE_MGMT | in wl1271_ap_init_deauth_template()
163 tmpl, sizeof(*tmpl), 0, rate); in wl1271_ap_init_deauth_template()
166 kfree(tmpl); in wl1271_ap_init_deauth_template()

123456