| /linux/drivers/crypto/marvell/cesa/ |
| A D | cipher.c | 492 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() 655 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_cbc_des3_ede_encrypt() 667 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_cbc_des3_ede_decrypt() 731 mv_cesa_set_op_cfg(&tmpl, in mv_cesa_ecb_aes_encrypt() [all …]
|
| A D | hash.c | 446 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 1274 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_md5_init() local 1345 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_sha1_init() local [all …]
|
| /linux/drivers/crypto/qce/ |
| A D | sha.c | 140 rctx->flags = tmpl->alg_flags; in qce_ahash_init() 281 if (tmpl->hash_zero) in qce_ahash_final() 318 if (tmpl->hash_zero) in qce_ahash_digest() 458 tmpl = kzalloc(sizeof(*tmpl), GFP_KERNEL); in qce_ahash_register_one() 459 if (!tmpl) in qce_ahash_register_one() 462 tmpl->std_iv = def->std_iv; in qce_ahash_register_one() 464 alg = &tmpl->alg.ahash; in qce_ahash_register_one() 497 tmpl->qce = qce; in qce_ahash_register_one() 501 kfree(tmpl); in qce_ahash_register_one() 517 list_del(&tmpl->entry); in qce_ahash_unregister() [all …]
|
| A D | skcipher.c | 266 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() 487 kfree(tmpl); in qce_skcipher_register_one() 503 list_del(&tmpl->entry); in qce_skcipher_unregister() [all …]
|
| A D | aead.c | 30 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() 805 kfree(tmpl); in qce_aead_register_one() 821 list_del(&tmpl->entry); in qce_aead_unregister() [all …]
|
| /linux/crypto/ |
| A D | xor.c | 58 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()
|
| A D | algapi.c | 74 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() 508 if (q == tmpl) in crypto_register_template() 547 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template() 548 list_del_init(&tmpl->list); in crypto_unregister_template() 550 list = &tmpl->instances; in crypto_unregister_template() 587 tmpl = q; in __crypto_lookup_template() 592 return tmpl; in __crypto_lookup_template() [all …]
|
| A D | algboss.c | 53 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()
|
| A D | internal.h | 128 static inline int crypto_tmpl_get(struct crypto_template *tmpl) in crypto_tmpl_get() argument 130 return try_module_get(tmpl->module); in crypto_tmpl_get() 133 static inline void crypto_tmpl_put(struct crypto_template *tmpl) in crypto_tmpl_put() argument 135 module_put(tmpl->module); in crypto_tmpl_put()
|
| A D | ecb.c | 62 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()
|
| A D | ofb.c | 53 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()
|
| A D | ctr.c | 127 static int crypto_ctr_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ctr_create() argument 133 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_ctr_create() 160 err = skcipher_register_instance(tmpl, inst); in crypto_ctr_create() 257 static int crypto_rfc3686_create(struct crypto_template *tmpl, in crypto_rfc3686_create() argument 323 err = skcipher_register_instance(tmpl, inst); in crypto_rfc3686_create()
|
| /linux/drivers/scsi/fnic/ |
| A D | cq_exch_desc.h | 28 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/include/net/netfilter/ |
| A D | nf_conntrack_zones.h | 29 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()
|
| A D | nf_conntrack_synproxy.h | 33 const struct nf_conn *tmpl) in nf_ct_add_synproxy() argument 36 if (tmpl && nfct_synproxy(tmpl)) { in nf_ct_add_synproxy()
|
| A D | nf_tables.h | 639 static inline void nft_set_ext_prepare(struct nft_set_ext_tmpl *tmpl) in nft_set_ext_prepare() argument 641 memset(tmpl, 0, sizeof(*tmpl)); in nft_set_ext_prepare() 642 tmpl->len = sizeof(struct nft_set_ext); in nft_set_ext_prepare() 648 tmpl->len = ALIGN(tmpl->len, nft_set_ext_types[id].align); in nft_set_ext_add_length() 649 BUG_ON(tmpl->len > U8_MAX); in nft_set_ext_add_length() 650 tmpl->offset[id] = tmpl->len; in nft_set_ext_add_length() 651 tmpl->len += nft_set_ext_types[id].len + len; in nft_set_ext_add_length() 656 nft_set_ext_add_length(tmpl, id, 0); in nft_set_ext_add() 660 const struct nft_set_ext_tmpl *tmpl) in nft_set_ext_init() argument 662 memcpy(ext->offset, tmpl->offset, sizeof(ext->offset)); in nft_set_ext_init() [all …]
|
| /linux/drivers/s390/net/ |
| A D | fsm.c | 18 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/drivers/media/dvb-frontends/ |
| A D | mn88443x.c | 273 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/net/netfilter/ |
| A D | nf_conntrack_core.c | 569 tmpl = kzalloc(sizeof(*tmpl) + NFCT_INFOMASK, flags); in nf_ct_tmpl_alloc() 570 if (!tmpl) in nf_ct_tmpl_alloc() 573 p = tmpl; in nf_ct_tmpl_alloc() 577 tmpl->proto.tmpl_padto = (char *)tmpl - (char *)p; in nf_ct_tmpl_alloc() 580 tmpl = kzalloc(sizeof(*tmpl), flags); in nf_ct_tmpl_alloc() 581 if (!tmpl) in nf_ct_tmpl_alloc() 590 return tmpl; in nf_ct_tmpl_alloc() 599 kfree((char *)tmpl - tmpl->proto.tmpl_padto); in nf_ct_tmpl_free() 1655 ecache = tmpl ? nf_ct_ecache_find(tmpl) : NULL; in init_conntrack() 1874 if ((tmpl && !nf_ct_is_template(tmpl)) || in nf_conntrack_in() [all …]
|
| A D | nft_dynset.c | 17 struct nft_set_ext_tmpl tmpl; member 59 elem = nft_set_elem_init(set, &priv->tmpl, in nft_dynset_new() 120 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_EXPRESSIONS, in nft_dynset_ext_add_expr() 298 nft_set_ext_prepare(&priv->tmpl); in nft_dynset_init() 299 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); in nft_dynset_init() 301 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_DATA, set->dlen); in nft_dynset_init() 308 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_TIMEOUT); in nft_dynset_init() 309 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_EXPIRATION); in nft_dynset_init()
|
| /linux/include/crypto/ |
| A D | algapi.h | 49 struct crypto_template *tmpl; member 66 int (*create)(struct crypto_template *tmpl, struct rtattr **tb); 110 int crypto_register_template(struct crypto_template *tmpl); 112 void crypto_unregister_template(struct crypto_template *tmpl); 116 int crypto_register_instance(struct crypto_template *tmpl,
|
| /linux/tools/testing/selftests/net/ |
| A D | l2tp.sh | 236 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
|
| A D | vrf-xfrm-tests.sh | 223 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel 228 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel 233 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel 238 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel 244 tmpl src ${HOST1_6} dst ${HOST2_6} proto esp mode tunnel 249 tmpl src ${HOST1_6} dst ${HOST2_6} proto esp mode tunnel 254 tmpl src ${HOST2_6} dst ${HOST1_6} proto esp mode tunnel 259 tmpl src ${HOST2_6} dst ${HOST1_6} proto esp mode tunnel
|
| /linux/drivers/net/wireless/ti/wlcore/ |
| A D | init.c | 147 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()
|
| /linux/drivers/scsi/ |
| A D | scsi_sas_internal.h | 41 #define to_sas_internal(tmpl) container_of(tmpl, struct sas_internal, t) argument
|