Home
last modified time | relevance | path

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

123

/linux/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()
101 tmpl->do_2(BENCH_SIZE, b1, b2); in do_xor_speed()
110 tmpl->speed = speed; in do_xor_speed()
112 pr_info(" %-16s: %5d MB/sec\n", tmpl->name, speed); in do_xor_speed()
H A Dhctr2.c325 static int hctr2_create_common(struct crypto_template *tmpl, struct rtattr **tb, in hctr2_create_common() argument
407 err = skcipher_register_instance(tmpl, inst); in hctr2_create_common()
415 static int hctr2_create_base(struct crypto_template *tmpl, struct rtattr **tb) in hctr2_create_base() argument
431 return hctr2_create_common(tmpl, tb, xctr_name); in hctr2_create_base()
434 static int hctr2_create(struct crypto_template *tmpl, struct rtattr **tb) in hctr2_create() argument
447 return hctr2_create_common(tmpl, tb, xctr_name); in hctr2_create()
H A Dseqiv.c126 static int seqiv_aead_create(struct crypto_template *tmpl, struct rtattr **tb) in seqiv_aead_create() argument
131 inst = aead_geniv_alloc(tmpl, tb); in seqiv_aead_create()
149 err = aead_register_instance(tmpl, inst); in seqiv_aead_create()
/linux/drivers/scsi/fnic/
H A Dcq_exch_desc.h16 u8 tmpl; member
50 u16 tmpl; member
83 u16 *tmpl, in cq_fcp_rq_desc_dec() argument
104 *tmpl = desc_ptr->tmpl & CQ_FCP_RQ_DESC_TMPL_MASK; in cq_fcp_rq_desc_dec()
129 u16 tmpl; member
157 u16 *tmpl, in cq_sgl_desc_dec() argument
166 *tmpl = desc_ptr->tmpl & CQ_SGL_TMPL_MASK; in cq_sgl_desc_dec()
/linux/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.h751 static inline void nft_set_ext_prepare(struct nft_set_ext_tmpl *tmpl) in nft_set_ext_prepare() argument
753 memset(tmpl, 0, sizeof(*tmpl)); in nft_set_ext_prepare()
754 tmpl->len = sizeof(struct nft_set_ext); in nft_set_ext_prepare()
757 static inline int nft_set_ext_add_length(struct nft_set_ext_tmpl *tmpl, u8 id, in nft_set_ext_add_length() argument
760 tmpl->len = ALIGN(tmpl->len, nft_set_ext_types[id].align); in nft_set_ext_add_length()
761 if (tmpl->len > U8_MAX) in nft_set_ext_add_length()
764 tmpl->offset[id] = tmpl in nft_set_ext_add_length()
771 nft_set_ext_add(struct nft_set_ext_tmpl * tmpl,u8 id) nft_set_ext_add() argument
777 nft_set_ext_init(struct nft_set_ext * ext,const struct nft_set_ext_tmpl * tmpl) nft_set_ext_init() argument
[all...]
H A Dnf_conntrack_l4proto.h79 int nf_conntrack_inet_error(struct nf_conn *tmpl, struct sk_buff *skb,
85 int nf_conntrack_icmpv4_error(struct nf_conn *tmpl,
90 int nf_conntrack_icmpv6_error(struct nf_conn *tmpl,
/linux/drivers/s390/net/
H A Dfsm.c19 int nr_events, const fsm_node *tmpl, int tmpl_len, gfp_t order) in init_fsm() argument
58 if ((tmpl[i].cond_state >= nr_states) || in init_fsm()
59 (tmpl[i].cond_event >= nr_events) ) { in init_fsm()
62 name, i, (long)tmpl[i].cond_state, (long)f->nr_states, in init_fsm()
63 (long)tmpl[i].cond_event, (long)f->nr_events); in init_fsm()
67 m[nr_states * tmpl[i].cond_event + tmpl[i].cond_state] = in init_fsm()
68 tmpl[i].function; in init_fsm()
/linux/net/netfilter/
H A Dnf_conntrack_core.c527 struct nf_conn *tmpl, *p; in nf_ct_tmpl_alloc() local
530 tmpl = kzalloc(sizeof(*tmpl) + NFCT_INFOMASK, flags); in nf_ct_tmpl_alloc()
531 if (!tmpl) in nf_ct_tmpl_alloc()
534 p = tmpl; in nf_ct_tmpl_alloc()
535 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc()
536 if (tmpl != p) in nf_ct_tmpl_alloc()
537 tmpl->proto.tmpl_padto = (char *)tmpl - (char *)p; in nf_ct_tmpl_alloc()
539 tmpl in nf_ct_tmpl_alloc()
553 nf_ct_tmpl_free(struct nf_conn * tmpl) nf_ct_tmpl_free() argument
1759 init_conntrack(struct net * net,struct nf_conn * tmpl,const struct nf_conntrack_tuple * tuple,struct sk_buff * skb,unsigned int dataoff,u32 hash) init_conntrack() argument
1864 resolve_normal_ct(struct nf_conn * tmpl,struct sk_buff * skb,unsigned int dataoff,u_int8_t protonum,const struct nf_hook_state * state) resolve_normal_ct() argument
1935 nf_conntrack_handle_icmp(struct nf_conn * tmpl,struct sk_buff * skb,unsigned int dataoff,u8 protonum,const struct nf_hook_state * state) nf_conntrack_handle_icmp() argument
2014 struct nf_conn *ct, *tmpl; nf_conntrack_in() local
[all...]
H A Dnft_dynset.c17 struct nft_set_ext_tmpl tmpl; member
60 elem_priv = nft_set_elem_init(set, &priv->tmpl, in nft_dynset_new()
122 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_EXPRESSIONS, in nft_dynset_ext_add_expr()
308 nft_set_ext_prepare(&priv->tmpl); in nft_dynset_init()
309 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); in nft_dynset_init()
311 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_DATA, set->dlen); in nft_dynset_init()
318 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_TIMEOUT); in nft_dynset_init()
H A Dnf_conntrack_proto_icmpv6.c135 nf_conntrack_icmpv6_redirect(struct nf_conn *tmpl, struct sk_buff *skb, in nf_conntrack_icmpv6_redirect() argument
180 return nf_conntrack_inet_error(tmpl, skb, dataoff, state, in nf_conntrack_icmpv6_redirect()
184 int nf_conntrack_icmpv6_error(struct nf_conn *tmpl, in nf_conntrack_icmpv6_error() argument
215 return nf_conntrack_icmpv6_redirect(tmpl, skb, dataoff, state); in nf_conntrack_icmpv6_error()
224 return nf_conntrack_inet_error(tmpl, skb, dataoff, state, in nf_conntrack_icmpv6_error()
H A Dnf_conntrack_proto_icmp.c106 int nf_conntrack_inet_error(struct nf_conn *tmpl, struct sk_buff *skb, in nf_conntrack_inet_error() argument
121 zone = nf_ct_zone_tmpl(tmpl, skb, &tmp); in nf_conntrack_inet_error()
204 int nf_conntrack_icmpv4_error(struct nf_conn *tmpl, in nf_conntrack_icmpv4_error() argument
246 return nf_conntrack_inet_error(tmpl, skb, dataoff, state, in nf_conntrack_icmpv4_error()
H A Dnf_conntrack_proto.c213 struct nf_conn *tmpl; in ipv4_conntrack_local() local
215 tmpl = nf_ct_get(skb, &ctinfo); in ipv4_conntrack_local()
216 if (tmpl && nf_ct_is_template(tmpl)) { in ipv4_conntrack_local()
221 nf_ct_put(tmpl); in ipv4_conntrack_local()
/linux/include/crypto/
H A Dalgapi.h62 struct crypto_template *tmpl; member
82 int (*create)(struct crypto_template *tmpl, struct rtattr **tb);
141 int crypto_register_template(struct crypto_template *tmpl);
143 void crypto_unregister_template(struct crypto_template *tmpl);
147 int crypto_register_instance(struct crypto_template *tmpl,
/linux/tools/testing/selftests/net/
H A Dl2tp.sh230 tmpl proto esp mode transport
234 tmpl proto esp mode transport
238 tmpl proto esp mode transport
242 tmpl proto esp mode transport
269 tmpl proto esp mode transport
273 tmpl proto esp mode transport
277 tmpl proto esp mode transport
281 tmpl proto esp mode transport
H A Dvrf-xfrm-tests.sh218 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel
223 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel
228 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel
233 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel
239 tmpl src ${HOST1_6} dst ${HOST2_6} proto esp mode tunnel
244 tmpl src ${HOST1_6} dst ${HOST2_6} proto esp mode tunnel
249 tmpl src ${HOST2_6} dst ${HOST1_6} proto esp mode tunnel
254 tmpl src ${HOST2_6} dst ${HOST1_6} proto esp mode tunnel
/linux/include/crypto/internal/
H A Dskcipher.h204 int skcipher_register_instance(struct crypto_template *tmpl,
211 int lskcipher_register_instance(struct crypto_template *tmpl,
278 struct crypto_template *tmpl, struct rtattr **tb);
297 struct crypto_template *tmpl, struct rtattr **tb);
/linux/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()
/linux/scripts/atomic/
H A Datomic-tbl.sh239 local tmpl="$(find_kerneldoc_template "${pfx}" "${name}" "${sfx}" "${order}")"
240 if [ -z "${tmpl}" ]; then
245 gen_template_kerneldoc "${tmpl}" "${class}" "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "$@"
H A Dgen-atomic-fallback.sh38 local tmpl="${ATOMICDIR}/fallbacks/${tmpl_order:-fence}"
39 gen_template_fallback "${tmpl}" "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "$@"
51 local tmpl="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")"
52 gen_template_fallback "${tmpl}" "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "$@"
/linux/drivers/scsi/
H A Dscsi_sas_internal.h41 #define to_sas_internal(tmpl) container_of(tmpl, struct sas_internal, t) argument
/linux/net/sched/
H A Dact_ct.c880 if (params->tmpl) { in tcf_ct_params_free()
882 nf_connlabels_put(nf_ct_net(params->tmpl)); in tcf_ct_params_free()
884 nf_ct_put(params->tmpl); in tcf_ct_params_free()
967 struct nf_conn *tmpl = NULL; in tcf_ct_act() local
983 tmpl = p->tmpl; in tcf_ct_act()
1029 if (tmpl) { in tcf_ct_act()
1031 nf_conntrack_get(&tmpl->ct_general); in tcf_ct_act()
1032 nf_ct_set(skb, tmpl, IP_CT_NEW); in tcf_ct_act()
1055 err = __nf_ct_try_assign_helper(ct, p->tmpl, GFP_ATOMI in tcf_ct_act()
1240 struct nf_conn *tmpl; tcf_ct_fill_params() local
[all...]
/linux/net/xfrm/
H A Dxfrm_state.c1073 const struct xfrm_tmpl *tmpl, in xfrm_init_tempstate() argument
1086 x->id = tmpl->id; in xfrm_init_tempstate()
1088 switch (tmpl->encap_family) { in xfrm_init_tempstate()
1092 x->props.saddr = tmpl->saddr; in xfrm_init_tempstate()
1099 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); in xfrm_init_tempstate()
1105 x->props.mode = tmpl->mode; in xfrm_init_tempstate()
1106 x->props.reqid = tmpl->reqid; in xfrm_init_tempstate()
1107 x->props.family = tmpl->encap_family; in xfrm_init_tempstate()
1350 const struct flowi *fl, struct xfrm_tmpl *tmpl, in xfrm_state_find() argument
1363 unsigned short encap_family = tmpl->encap_family; in xfrm_state_find()
[all …]
/linux/drivers/crypto/qce/
H A Dcommon.c152 struct qce_alg_template *tmpl = to_ahash_tmpl(async_req->tfm); in qce_setup_regs_ahash() local
153 struct qce_device *qce = tmpl->qce; in qce_setup_regs_ahash()
319 struct qce_alg_template *tmpl = to_cipher_tmpl(crypto_skcipher_reqtfm(req)); in qce_setup_regs_skcipher() local
320 struct qce_device *qce = tmpl->qce; in qce_setup_regs_skcipher()
425 struct qce_alg_template *tmpl = to_aead_tmpl(crypto_aead_reqtfm(req)); in qce_setup_regs_aead() local
426 struct qce_device *qce = tmpl->qce; in qce_setup_regs_aead()

123