Home
last modified time | relevance | path

Searched refs:tmpl (Results 51 – 75 of 127) sorted by relevance

123456

/linux/crypto/
H A Dcryptd.c373 static int cryptd_create_skcipher(struct crypto_template *tmpl, in cryptd_create_skcipher() argument
422 err = skcipher_register_instance(tmpl, inst); in cryptd_create_skcipher()
658 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, in cryptd_create_hash() argument
711 err = ahash_register_instance(tmpl, inst); in cryptd_create_hash()
866 static int cryptd_create_aead(struct crypto_template *tmpl, in cryptd_create_aead() argument
913 err = aead_register_instance(tmpl, inst); in cryptd_create_aead()
923 static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) in cryptd_create() argument
933 return cryptd_create_skcipher(tmpl, tb, algt, &queue); in cryptd_create()
935 return cryptd_create_hash(tmpl, tb, algt, &queue); in cryptd_create()
937 return cryptd_create_aead(tmpl, tb, algt, &queue); in cryptd_create()
H A Dchacha20poly1305.c555 static int chachapoly_create(struct crypto_template *tmpl, struct rtattr **tb, in chachapoly_create() argument
628 err = aead_register_instance(tmpl, inst); in chachapoly_create()
636 static int rfc7539_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539_create() argument
638 return chachapoly_create(tmpl, tb, "rfc7539", 12); in rfc7539_create()
641 static int rfc7539esp_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539esp_create() argument
643 return chachapoly_create(tmpl, tb, "rfc7539esp", 8); in rfc7539esp_create()
H A Dcmac.c232 static int cmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cmac_create() argument
264 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in cmac_create()
286 err = shash_register_instance(tmpl, inst); in cmac_create()
H A Dhmac.c177 static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) in hmac_create() argument
215 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in hmac_create()
238 err = shash_register_instance(tmpl, inst); in hmac_create()
H A Dakcipher.c151 int akcipher_register_instance(struct crypto_template *tmpl, in akcipher_register_instance() argument
157 return crypto_register_instance(tmpl, akcipher_crypto_instance(inst)); in akcipher_register_instance()
H A Daead.c277 int aead_register_instance(struct crypto_template *tmpl, in aead_register_instance() argument
289 return crypto_register_instance(tmpl, aead_crypto_instance(inst)); in aead_register_instance()
/linux/net/xfrm/
H A Dxfrm_state.c999 const struct xfrm_tmpl *tmpl, in xfrm_init_tempstate() argument
1012 x->id = tmpl->id; in xfrm_init_tempstate()
1014 switch (tmpl->encap_family) { in xfrm_init_tempstate()
1018 x->props.saddr = tmpl->saddr; in xfrm_init_tempstate()
1025 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); in xfrm_init_tempstate()
1031 x->props.mode = tmpl->mode; in xfrm_init_tempstate()
1032 x->props.reqid = tmpl->reqid; in xfrm_init_tempstate()
1033 x->props.family = tmpl->encap_family; in xfrm_init_tempstate()
1197 const struct flowi *fl, struct xfrm_tmpl *tmpl, in xfrm_state_find() argument
1209 unsigned short encap_family = tmpl->encap_family; in xfrm_state_find()
[all …]
H A Dxfrm_policy.c2465 struct xfrm_tmpl *tmpl = &policy->xfrm_vec[i]; in xfrm_tmpl_resolve_one() local
2467 if (tmpl->mode == XFRM_MODE_TUNNEL || in xfrm_tmpl_resolve_one()
2468 tmpl->mode == XFRM_MODE_BEET) { in xfrm_tmpl_resolve_one()
2469 remote = &tmpl->id.daddr; in xfrm_tmpl_resolve_one()
2470 local = &tmpl->saddr; in xfrm_tmpl_resolve_one()
2471 if (xfrm_addr_any(local, tmpl->encap_family)) { in xfrm_tmpl_resolve_one()
2474 tmpl->encap_family, 0); in xfrm_tmpl_resolve_one()
2481 x = xfrm_state_find(remote, local, fl, tmpl, policy, &error, in xfrm_tmpl_resolve_one()
2504 if (!tmpl->optional) in xfrm_tmpl_resolve_one()
3335 xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, in xfrm_state_ok() argument
[all …]
/linux/net/netfilter/
H A Dnf_conntrack_proto.c216 struct nf_conn *tmpl; in ipv4_conntrack_local() local
218 tmpl = nf_ct_get(skb, &ctinfo); in ipv4_conntrack_local()
219 if (tmpl && nf_ct_is_template(tmpl)) { in ipv4_conntrack_local()
224 nf_ct_put(tmpl); in ipv4_conntrack_local()
H A Dnf_conntrack_helper.c191 int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl, in __nf_ct_try_assign_helper() argument
201 if (WARN_ON_ONCE(!tmpl)) in __nf_ct_try_assign_helper()
204 help = nfct_help(tmpl); in __nf_ct_try_assign_helper()
/linux/drivers/irqchip/
H A Dirq-mvebu-icu.c261 const struct msi_domain_template *tmpl; in mvebu_icu_subset_probe() local
286 tmpl = sei ? &mvebu_icu_sei_msi_template : &mvebu_icu_nsr_msi_template; in mvebu_icu_subset_probe()
288 if (!msi_create_device_irq_domain(dev, MSI_DEFAULT_DOMAIN, tmpl, in mvebu_icu_subset_probe()
/linux/tools/testing/selftests/net/
H A Dxfrm_policy.sh38 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
40 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
148 …ip -net $ns xfrm policy add dst $encryptip dir out tmpl src $me dst $remote proto esp mode tunnel …
272 …ip -net ${ns[1]} xfrm policy update src e000:0001::0000 dst ff01::0014:0000:0001 dir in tmpl src :…
275 …ip -net ${ns[1]} xfrm policy update src e000:0001::0000 dst ff01::01 dir in tmpl src :: dst :: pro…
H A Dipsec.c1105 struct xfrm_user_tmpl tmpl; in xfrm_policy_add() local
1108 memset(&tmpl, 0, sizeof(tmpl)); in xfrm_policy_add()
1130 memcpy(&tmpl.id.daddr, &dst, sizeof(dst)); in xfrm_policy_add()
1132 tmpl.id.spi = spi; in xfrm_policy_add()
1133 tmpl.id.proto = proto; in xfrm_policy_add()
1134 tmpl.family = AF_INET; in xfrm_policy_add()
1135 memcpy(&tmpl.saddr, &src, sizeof(src)); in xfrm_policy_add()
1136 tmpl.mode = XFRM_MODE_TUNNEL; in xfrm_policy_add()
1137 tmpl.aalgos = (~(uint32_t)0); in xfrm_policy_add()
1138 tmpl.ealgos = (~(uint32_t)0); in xfrm_policy_add()
[all …]
/linux/net/core/
H A Dfib_notifier.c143 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net) in fib_notifier_ops_register() argument
148 ops = kmemdup(tmpl, sizeof(*ops), GFP_KERNEL); in fib_notifier_ops_register()
/linux/include/crypto/internal/
H A Dgeniv.h22 struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl,
H A Dhash.h73 int ahash_register_instance(struct crypto_template *tmpl,
109 int shash_register_instance(struct crypto_template *tmpl,
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_policer.c309 const struct mlxsw_sp_policer_family *tmpl) in mlxsw_sp_policer_family_register() argument
314 family = kmemdup(tmpl, sizeof(*family), GFP_KERNEL); in mlxsw_sp_policer_family_register()
331 mlxsw_sp->policer_core->family_arr[tmpl->type] = family; in mlxsw_sp_policer_family_register()
/linux/include/net/
H A Dfib_notifier.h48 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net);
H A Dxfrm.h1128 __xfrm4_state_addr_cmp(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x) in __xfrm4_state_addr_cmp() argument
1130 return (tmpl->saddr.a4 && in __xfrm4_state_addr_cmp()
1131 tmpl->saddr.a4 != x->props.saddr.a4); in __xfrm4_state_addr_cmp()
1135 __xfrm6_state_addr_cmp(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x) in __xfrm6_state_addr_cmp() argument
1137 return (!ipv6_addr_any((struct in6_addr*)&tmpl->saddr) && in __xfrm6_state_addr_cmp()
1138 !ipv6_addr_equal((struct in6_addr *)&tmpl->saddr, (struct in6_addr*)&x->props.saddr)); in __xfrm6_state_addr_cmp()
1142 xfrm_state_addr_cmp(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, unsigned short family) in xfrm_state_addr_cmp() argument
1146 return __xfrm4_state_addr_cmp(tmpl, x); in xfrm_state_addr_cmp()
1148 return __xfrm6_state_addr_cmp(tmpl, x); in xfrm_state_addr_cmp()
1611 struct xfrm_tmpl *tmpl,
/linux/drivers/scsi/
H A Draid_class.c38 #define to_raid_internal(tmpl) container_of(tmpl, struct raid_internal, r) argument
/linux/drivers/crypto/ccree/
H A Dcc_cipher.c1375 static struct cc_crypto_alg *cc_create_alg(const struct cc_alg_template *tmpl, in cc_create_alg() argument
1387 memcpy(alg, &tmpl->template_skcipher, sizeof(*alg)); in cc_create_alg()
1390 tmpl->name) >= CRYPTO_MAX_ALG_NAME) in cc_create_alg()
1393 tmpl->driver_name) >= CRYPTO_MAX_ALG_NAME) in cc_create_alg()
1398 alg->base.cra_blocksize = tmpl->blocksize; in cc_create_alg()
1406 t_alg->cipher_mode = tmpl->cipher_mode; in cc_create_alg()
1407 t_alg->flow_mode = tmpl->flow_mode; in cc_create_alg()
/linux/drivers/pci/msi/
H A Dirqdomain.c259 static bool pci_create_device_domain(struct pci_dev *pdev, const struct msi_domain_template *tmpl, in pci_create_device_domain() argument
267 return msi_create_device_irq_domain(&pdev->dev, MSI_DEFAULT_DOMAIN, tmpl, in pci_create_device_domain()
/linux/include/net/netfilter/
H A Dnf_synproxy.h23 struct nf_conn *tmpl; member
/linux/include/net/tc_act/
H A Dtc_ct.h14 struct nf_conn *tmpl; member
/linux/drivers/net/wireless/ti/wlcore/
H A Dcmd.c1228 struct wl12xx_arp_rsp_template *tmpl; in wl1271_cmd_build_arp_rsp() local
1232 skb = dev_alloc_skb(sizeof(*hdr) + sizeof(__le16) + sizeof(*tmpl) + in wl1271_cmd_build_arp_rsp()
1241 tmpl = skb_put_zero(skb, sizeof(*tmpl)); in wl1271_cmd_build_arp_rsp()
1244 memcpy(tmpl->llc_hdr, rfc1042_header, sizeof(rfc1042_header)); in wl1271_cmd_build_arp_rsp()
1245 tmpl->llc_type = cpu_to_be16(ETH_P_ARP); in wl1271_cmd_build_arp_rsp()
1248 arp_hdr = &tmpl->arp_hdr; in wl1271_cmd_build_arp_rsp()
1256 memcpy(tmpl->sender_hw, vif->addr, ETH_ALEN); in wl1271_cmd_build_arp_rsp()
1257 tmpl->sender_ip = wlvif->ip_addr; in wl1271_cmd_build_arp_rsp()

123456