/Linux-v5.4/drivers/crypto/marvell/ |
D | cipher.c | 411 struct mv_cesa_op_ctx *tmpl) in mv_cesa_skcipher_req_init() argument 432 mv_cesa_update_op_cfg(tmpl, CESA_SA_DESC_CFG_OP_CRYPT_ONLY, in mv_cesa_skcipher_req_init() 436 ret = mv_cesa_skcipher_dma_req_init(req, tmpl); in mv_cesa_skcipher_req_init() 438 ret = mv_cesa_skcipher_std_req_init(req, tmpl); in mv_cesa_skcipher_req_init() 444 struct mv_cesa_op_ctx *tmpl) in mv_cesa_skcipher_queue_req() argument 450 ret = mv_cesa_skcipher_req_init(req, tmpl); in mv_cesa_skcipher_queue_req() 466 struct mv_cesa_op_ctx *tmpl) in mv_cesa_des_op() argument 470 mv_cesa_update_op_cfg(tmpl, CESA_SA_DESC_CFG_CRYPTM_DES, in mv_cesa_des_op() 473 memcpy(tmpl->ctx.blkcipher.key, ctx->key, DES_KEY_SIZE); in mv_cesa_des_op() 475 return mv_cesa_skcipher_queue_req(req, tmpl); in mv_cesa_des_op() [all …]
|
D | hash.c | 409 struct mv_cesa_op_ctx *tmpl, bool algo_le) in mv_cesa_ahash_init() argument 414 mv_cesa_update_op_cfg(tmpl, in mv_cesa_ahash_init() 419 mv_cesa_set_mac_op_total_len(tmpl, 0); in mv_cesa_ahash_init() 420 mv_cesa_set_mac_op_frag_len(tmpl, 0); in mv_cesa_ahash_init() 421 creq->op_tmpl = *tmpl; in mv_cesa_ahash_init() 460 struct mv_cesa_op_ctx *tmpl, unsigned int frag_len, in mv_cesa_dma_add_frag() argument 466 op = mv_cesa_dma_add_op(chain, tmpl, false, flags); in mv_cesa_dma_add_frag() 478 if (mv_cesa_mac_op_is_first_frag(tmpl)) in mv_cesa_dma_add_frag() 479 mv_cesa_update_op_cfg(tmpl, in mv_cesa_dma_add_frag() 785 struct mv_cesa_op_ctx *tmpl = &creq->op_tmpl; in mv_cesa_ahash_final() local [all …]
|
/Linux-v5.4/drivers/crypto/qce/ |
D | sha.c | 35 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_done() local 36 struct qce_device *qce = tmpl->qce; in qce_ahash_done() 65 qce->async_req_done(tmpl->qce, error); in qce_ahash_done() 73 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_ahash_async_req_handle() local 74 struct qce_device *qce = tmpl->qce; in qce_ahash_async_req_handle() 109 ret = qce_start(async_req, tmpl->crypto_alg_type, 0, 0); in qce_ahash_async_req_handle() 127 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_init() local 128 const u32 *std_iv = tmpl->std_iv; in qce_ahash_init() 133 rctx->flags = tmpl->alg_flags; in qce_ahash_init() 230 struct qce_alg_template *tmpl = to_ahash_tmpl(req->base.tfm); in qce_ahash_update() local [all …]
|
D | ablkcipher.c | 22 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_done() local 23 struct qce_device *qce = tmpl->qce; in qce_ablkcipher_done() 48 qce->async_req_done(tmpl->qce, error); in qce_ablkcipher_done() 57 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_async_req_handle() local 58 struct qce_device *qce = tmpl->qce; in qce_ablkcipher_async_req_handle() 134 ret = qce_start(async_req, tmpl->crypto_alg_type, req->nbytes, 0); in qce_ablkcipher_async_req_handle() 216 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); in qce_ablkcipher_crypt() local 219 rctx->flags = tmpl->alg_flags; in qce_ablkcipher_crypt() 237 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_ablkcipher_crypt() 357 struct qce_alg_template *tmpl; in qce_ablkcipher_register_one() local [all …]
|
/Linux-v5.4/drivers/scsi/fnic/ |
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-v5.4/crypto/ |
D | algboss.c | 60 struct crypto_template *tmpl; in cryptomgr_probe() local 64 tmpl = crypto_lookup_template(param->template); in cryptomgr_probe() 65 if (!tmpl) in cryptomgr_probe() 69 if (tmpl->create) { in cryptomgr_probe() 70 err = tmpl->create(tmpl, param->tb); in cryptomgr_probe() 74 inst = tmpl->alloc(param->tb); in cryptomgr_probe() 77 else if ((err = crypto_register_instance(tmpl, inst))) in cryptomgr_probe() 78 tmpl->free(inst); in cryptomgr_probe() 81 crypto_tmpl_put(tmpl); in cryptomgr_probe()
|
D | xor.c | 60 do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2) in do_xor_speed() argument 66 tmpl->next = template_list; in do_xor_speed() 67 template_list = tmpl; in do_xor_speed() 84 tmpl->do_2(BENCH_SIZE, b1, b2); in do_xor_speed() 96 tmpl->speed = speed; in do_xor_speed() 98 printk(KERN_INFO " %-10s: %5d.%03d MB/sec\n", tmpl->name, in do_xor_speed()
|
D | internal.h | 101 static inline int crypto_tmpl_get(struct crypto_template *tmpl) in crypto_tmpl_get() argument 103 return try_module_get(tmpl->module); in crypto_tmpl_get() 106 static inline void crypto_tmpl_put(struct crypto_template *tmpl) in crypto_tmpl_put() argument 108 module_put(tmpl->module); in crypto_tmpl_put()
|
D | algapi.c | 69 inst->tmpl->free(inst); in crypto_free_instance() 79 struct crypto_template *tmpl = inst->tmpl; in crypto_destroy_instance() local 82 crypto_tmpl_put(tmpl); in crypto_destroy_instance() 110 struct crypto_template *tmpl = inst->tmpl; in crypto_remove_instance() local 119 if (!tmpl || !crypto_tmpl_get(tmpl)) in crypto_remove_instance() 456 int crypto_register_template(struct crypto_template *tmpl) in crypto_register_template() argument 463 crypto_check_module_sig(tmpl->module); in crypto_register_template() 466 if (q == tmpl) in crypto_register_template() 470 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template() 496 void crypto_unregister_template(struct crypto_template *tmpl) in crypto_unregister_template() argument [all …]
|
D | cbc.c | 51 static int crypto_cbc_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_cbc_create() argument 57 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_cbc_create() 68 err = skcipher_register_instance(tmpl, inst); in crypto_cbc_create()
|
D | seqiv.c | 138 static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_aead_create() argument 143 inst = aead_geniv_alloc(tmpl, tb, 0, 0); in seqiv_aead_create() 161 err = aead_register_instance(tmpl, inst); in seqiv_aead_create() 173 static int seqiv_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_create() argument 184 return seqiv_aead_create(tmpl, tb); in seqiv_create()
|
D | ecb.c | 61 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, &alg); in crypto_ecb_create() 76 err = skcipher_register_instance(tmpl, inst); in crypto_ecb_create()
|
D | ofb.c | 52 static int crypto_ofb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ofb_create() argument 58 inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); in crypto_ofb_create() 74 err = skcipher_register_instance(tmpl, inst); in crypto_ofb_create()
|
/Linux-v5.4/include/net/netfilter/ |
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()
|
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()
|
D | nf_tables.h | 563 static inline void nft_set_ext_prepare(struct nft_set_ext_tmpl *tmpl) in nft_set_ext_prepare() argument 565 memset(tmpl, 0, sizeof(*tmpl)); in nft_set_ext_prepare() 566 tmpl->len = sizeof(struct nft_set_ext); in nft_set_ext_prepare() 569 static inline void nft_set_ext_add_length(struct nft_set_ext_tmpl *tmpl, u8 id, in nft_set_ext_add_length() argument 572 tmpl->len = ALIGN(tmpl->len, nft_set_ext_types[id].align); in nft_set_ext_add_length() 573 BUG_ON(tmpl->len > U8_MAX); in nft_set_ext_add_length() 574 tmpl->offset[id] = tmpl->len; in nft_set_ext_add_length() 575 tmpl->len += nft_set_ext_types[id].len + len; in nft_set_ext_add_length() 578 static inline void nft_set_ext_add(struct nft_set_ext_tmpl *tmpl, u8 id) in nft_set_ext_add() argument 580 nft_set_ext_add_length(tmpl, id, 0); in nft_set_ext_add() [all …]
|
/Linux-v5.4/drivers/s390/net/ |
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-v5.4/net/netfilter/ |
D | nf_conntrack_core.c | 545 struct nf_conn *tmpl, *p; in nf_ct_tmpl_alloc() local 548 tmpl = kzalloc(sizeof(*tmpl) + NFCT_INFOMASK, flags); in nf_ct_tmpl_alloc() 549 if (!tmpl) in nf_ct_tmpl_alloc() 552 p = tmpl; in nf_ct_tmpl_alloc() 553 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc() 554 if (tmpl != p) { in nf_ct_tmpl_alloc() 555 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc() 556 tmpl->proto.tmpl_padto = (char *)tmpl - (char *)p; in nf_ct_tmpl_alloc() 559 tmpl = kzalloc(sizeof(*tmpl), flags); in nf_ct_tmpl_alloc() 560 if (!tmpl) in nf_ct_tmpl_alloc() [all …]
|
D | nft_dynset.c | 17 struct nft_set_ext_tmpl tmpl; member 56 elem = nft_set_elem_init(set, &priv->tmpl, in nft_dynset_new() 226 nft_set_ext_prepare(&priv->tmpl); in nft_dynset_init() 227 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); in nft_dynset_init() 229 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_DATA, set->dlen); in nft_dynset_init() 231 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_EXPR, in nft_dynset_init() 235 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_EXPIRATION); in nft_dynset_init()
|
/Linux-v5.4/drivers/media/dvb-frontends/ |
D | mn88443x.c | 264 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-v5.4/net/sched/ |
D | act_ct.c | 210 if (params->tmpl) in tcf_ct_params_free() 211 nf_conntrack_put(¶ms->tmpl->ct_general); in tcf_ct_params_free() 375 struct nf_conn *tmpl = NULL; in tcf_ct_act() local 388 tmpl = p->tmpl; in tcf_ct_act() 429 if (tmpl) { in tcf_ct_act() 433 nf_conntrack_get(&tmpl->ct_general); in tcf_ct_act() 434 nf_ct_set(skb, tmpl, IP_CT_NEW); in tcf_ct_act() 584 struct nf_conn *tmpl; in tcf_ct_fill_params() local 644 tmpl = nf_ct_tmpl_alloc(net, &zone, GFP_KERNEL); in tcf_ct_fill_params() 645 if (!tmpl) { in tcf_ct_fill_params() [all …]
|
/Linux-v5.4/tools/testing/selftests/net/ |
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
|
/Linux-v5.4/drivers/scsi/ |
D | scsi_sas_internal.h | 41 #define to_sas_internal(tmpl) container_of(tmpl, struct sas_internal, t) argument
|
/Linux-v5.4/drivers/net/wireless/ti/wlcore/ |
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-v5.4/include/crypto/ |
D | algapi.h | 49 struct crypto_template *tmpl; member 62 int (*create)(struct crypto_template *tmpl, struct rtattr **tb); 140 int crypto_register_template(struct crypto_template *tmpl); 142 void crypto_unregister_template(struct crypto_template *tmpl); 146 int crypto_register_instance(struct crypto_template *tmpl,
|