Home
last modified time | relevance | path

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

12

/linux-4.19.296/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.h549 static inline void nft_set_ext_prepare(struct nft_set_ext_tmpl *tmpl) in nft_set_ext_prepare() argument
551 memset(tmpl, 0, sizeof(*tmpl)); in nft_set_ext_prepare()
552 tmpl->len = sizeof(struct nft_set_ext); in nft_set_ext_prepare()
555 static inline void nft_set_ext_add_length(struct nft_set_ext_tmpl *tmpl, u8 id, in nft_set_ext_add_length() argument
558 tmpl->len = ALIGN(tmpl->len, nft_set_ext_types[id].align); in nft_set_ext_add_length()
559 BUG_ON(tmpl->len > U8_MAX); in nft_set_ext_add_length()
560 tmpl->offset[id] = tmpl->len; in nft_set_ext_add_length()
561 tmpl->len += nft_set_ext_types[id].len + len; in nft_set_ext_add_length()
564 static inline void nft_set_ext_add(struct nft_set_ext_tmpl *tmpl, u8 id) in nft_set_ext_add() argument
566 nft_set_ext_add_length(tmpl, id, 0); in nft_set_ext_add()
[all …]
/linux-4.19.296/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.h113 static inline int crypto_tmpl_get(struct crypto_template *tmpl) in crypto_tmpl_get() argument
115 return try_module_get(tmpl->module); in crypto_tmpl_get()
118 static inline void crypto_tmpl_put(struct crypto_template *tmpl) in crypto_tmpl_put() argument
120 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.c166 inst->tmpl->free(inst); in crypto_aead_free_instance()
203 struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl, in aead_geniv_alloc() argument
251 "%s(%s)", tmpl->name, alg->base.cra_name) >= in aead_geniv_alloc()
255 "%s(%s)", tmpl->name, alg->base.cra_driver_name) >= in aead_geniv_alloc()
423 int aead_register_instance(struct crypto_template *tmpl, in aead_register_instance() argument
432 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()
Dakcipher.c140 int akcipher_register_instance(struct crypto_template *tmpl, in akcipher_register_instance() argument
144 return crypto_register_instance(tmpl, akcipher_crypto_instance(inst)); in akcipher_register_instance()
Dcryptd.c385 static int cryptd_create_blkcipher(struct crypto_template *tmpl, in cryptd_create_blkcipher() argument
436 err = crypto_register_instance(tmpl, inst); in cryptd_create_blkcipher()
592 static int cryptd_create_skcipher(struct crypto_template *tmpl, in cryptd_create_skcipher() argument
649 err = skcipher_register_instance(tmpl, inst); in cryptd_create_skcipher()
868 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, in cryptd_create_hash() argument
921 err = ahash_register_instance(tmpl, inst); in cryptd_create_hash()
1051 static int cryptd_create_aead(struct crypto_template *tmpl, in cryptd_create_aead() argument
1100 err = aead_register_instance(tmpl, inst); in cryptd_create_aead()
1112 static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) in cryptd_create() argument
1124 return cryptd_create_blkcipher(tmpl, tb, &queue); in cryptd_create()
[all …]
Dccm.c456 static int crypto_ccm_create_common(struct crypto_template *tmpl, in crypto_ccm_create_common() argument
549 err = aead_register_instance(tmpl, inst); in crypto_ccm_create_common()
566 static int crypto_ccm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ccm_create() argument
584 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_create()
593 static int crypto_ccm_base_create(struct crypto_template *tmpl, in crypto_ccm_base_create() argument
607 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_base_create()
758 static int crypto_rfc4309_create(struct crypto_template *tmpl, in crypto_rfc4309_create() argument
832 err = aead_register_instance(tmpl, inst); in crypto_rfc4309_create()
937 static int cbcmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cbcmac_create() argument
980 err = shash_register_instance(tmpl, inst); in cbcmac_create()
Dpcrypt.c284 static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, in pcrypt_create_aead() argument
335 err = aead_register_instance(tmpl, inst); in pcrypt_create_aead()
349 static int pcrypt_create(struct crypto_template *tmpl, struct rtattr **tb) in pcrypt_create() argument
359 return pcrypt_create_aead(tmpl, tb, algt->type, algt->mask); in pcrypt_create()
Dcbc.c109 static int crypto_cbc_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_cbc_create() argument
173 err = skcipher_register_instance(tmpl, inst); in crypto_cbc_create()
Dgcm.c598 static int crypto_gcm_create_common(struct crypto_template *tmpl, in crypto_gcm_create_common() argument
691 err = aead_register_instance(tmpl, inst); in crypto_gcm_create_common()
708 static int crypto_gcm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_gcm_create() argument
721 return crypto_gcm_create_common(tmpl, tb, ctr_name, "ghash"); in crypto_gcm_create()
730 static int crypto_gcm_base_create(struct crypto_template *tmpl, in crypto_gcm_base_create() argument
744 return crypto_gcm_create_common(tmpl, tb, ctr_name, ghash_name); in crypto_gcm_base_create()
892 static int crypto_rfc4106_create(struct crypto_template *tmpl, in crypto_rfc4106_create() argument
966 err = aead_register_instance(tmpl, inst); in crypto_rfc4106_create()
1132 static int crypto_rfc4543_create(struct crypto_template *tmpl, in crypto_rfc4543_create() argument
1208 err = aead_register_instance(tmpl, inst); in crypto_rfc4543_create()
Dchacha20poly1305.c585 static int chachapoly_create(struct crypto_template *tmpl, struct rtattr **tb, in chachapoly_create() argument
687 err = aead_register_instance(tmpl, inst); in chachapoly_create()
704 static int rfc7539_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539_create() argument
706 return chachapoly_create(tmpl, tb, "rfc7539", 12); in rfc7539_create()
709 static int rfc7539esp_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539esp_create() argument
711 return chachapoly_create(tmpl, tb, "rfc7539esp", 8); in rfc7539esp_create()
Dmcryptd.c485 static int mcryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, in mcryptd_create_hash() argument
540 err = ahash_register_instance(tmpl, inst); in mcryptd_create_hash()
554 static int mcryptd_create(struct crypto_template *tmpl, struct rtattr **tb) in mcryptd_create() argument
564 return mcryptd_create_hash(tmpl, tb, &mqueue); in mcryptd_create()
Dxcbc.c198 static int xcbc_create(struct crypto_template *tmpl, struct rtattr **tb) in xcbc_create() argument
255 err = shash_register_instance(tmpl, inst); in xcbc_create()
/linux-4.19.296/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-4.19.296/drivers/media/dvb-frontends/
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 …]
/linux-4.19.296/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,
/linux-4.19.296/include/crypto/internal/
Dgeniv.h27 struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl,
Dhash.h81 int ahash_register_instance(struct crypto_template *tmpl,
104 int shash_register_instance(struct crypto_template *tmpl,
/linux-4.19.296/include/net/
Dfib_notifier.h46 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net);

12