| /linux/drivers/scsi/fnic/ |
| H A D | cq_exch_desc.h | 16 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 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()
|
| H 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()
|
| H A D | nf_tables.h | 752 static inline void nft_set_ext_prepare(struct nft_set_ext_tmpl *tmpl) in nft_set_ext_prepare() argument 754 memset(tmpl, 0, sizeof(*tmpl)); in nft_set_ext_prepare() 755 tmpl->len = sizeof(struct nft_set_ext); in nft_set_ext_prepare() 758 static inline int nft_set_ext_add_length(struct nft_set_ext_tmpl *tmpl, u8 id, in nft_set_ext_add_length() argument 761 tmpl->len = ALIGN(tmpl->len, nft_set_ext_types[id].align); in nft_set_ext_add_length() 762 if (tmpl->len > U8_MAX) in nft_set_ext_add_length() 765 tmpl->offset[id] = tmpl->len; in nft_set_ext_add_length() 766 tmpl->ext_len[id] = nft_set_ext_types[id].len + len; in nft_set_ext_add_length() 767 tmpl->len += tmpl->ext_len[id]; in nft_set_ext_add_length() 772 static inline int nft_set_ext_add(struct nft_set_ext_tmpl *tmpl, u8 id) in nft_set_ext_add() argument [all …]
|
| /linux/drivers/s390/net/ |
| H A D | fsm.c | 19 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 D | nf_conntrack_core.c | 524 struct nf_conn *tmpl, *p; in nf_ct_tmpl_alloc() local 527 tmpl = kzalloc(sizeof(*tmpl) + NFCT_INFOMASK, flags); in nf_ct_tmpl_alloc() 528 if (!tmpl) in nf_ct_tmpl_alloc() 531 p = tmpl; in nf_ct_tmpl_alloc() 532 tmpl = (struct nf_conn *)NFCT_ALIGN((unsigned long)p); in nf_ct_tmpl_alloc() 533 if (tmpl != p) in nf_ct_tmpl_alloc() 534 tmpl->proto.tmpl_padto = (char *)tmpl - (char *)p; in nf_ct_tmpl_alloc() 536 tmpl = kzalloc_obj(*tmpl, flags); in nf_ct_tmpl_alloc() 537 if (!tmpl) in nf_ct_tmpl_alloc() 541 tmpl->status = IPS_TEMPLATE; in nf_ct_tmpl_alloc() [all …]
|
| H A D | nft_dynset.c | 17 struct nft_set_ext_tmpl tmpl; member 69 elem_priv = nft_set_elem_init(set, &priv->tmpl, in nft_dynset_new() 131 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_EXPRESSIONS, in nft_dynset_ext_add_expr() 319 nft_set_ext_prepare(&priv->tmpl); in nft_dynset_init() 320 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); in nft_dynset_init() 322 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_DATA, set->dlen); in nft_dynset_init() 329 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_TIMEOUT); in nft_dynset_init()
|
| H A D | nf_conntrack_proto.c | 221 struct nf_conn *tmpl; in ipv4_conntrack_local() local 223 tmpl = nf_ct_get(skb, &ctinfo); in ipv4_conntrack_local() 224 if (tmpl && nf_ct_is_template(tmpl)) { in ipv4_conntrack_local() 229 nf_ct_put(tmpl); in ipv4_conntrack_local()
|
| /linux/crypto/ |
| H 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()
|
| H A D | ccm.c | 442 static int crypto_ccm_create_common(struct crypto_template *tmpl, in crypto_ccm_create_common() argument 517 err = aead_register_instance(tmpl, inst); in crypto_ccm_create_common() 525 static int crypto_ccm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ccm_create() argument 543 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_create() 546 static int crypto_ccm_base_create(struct crypto_template *tmpl, in crypto_ccm_base_create() argument 560 return crypto_ccm_create_common(tmpl, tb, ctr_name, mac_name); in crypto_ccm_base_create() 700 static int crypto_rfc4309_create(struct crypto_template *tmpl, in crypto_rfc4309_create() argument 764 err = aead_register_instance(tmpl, inst); in crypto_rfc4309_create() 847 static int cbcmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cbcmac_create() argument 870 err = crypto_inst_setname(shash_crypto_instance(inst), tmpl->name, alg); in cbcmac_create() [all …]
|
| H A D | seqiv.c | 126 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/include/crypto/ |
| H A D | algapi.h | 62 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 D | l2tp.sh | 230 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 D | vrf-xfrm-tests.sh | 218 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
|
| H A D | xfrm_policy.sh | 38 …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 D | ipsec.c | 1110 struct xfrm_user_tmpl tmpl; in xfrm_policy_add() 1113 memset(&tmpl, 0, sizeof(tmpl)); in xfrm_policy_add() 1134 /* Fill tmpl */ in xfrm_policy_add() 1135 memcpy(&tmpl.id.daddr, &dst, sizeof(dst)); in xfrm_policy_add() 1137 tmpl.id.spi = spi; in xfrm_policy_add() 1138 tmpl.id.proto = proto; in xfrm_policy_add() 1139 tmpl.family = AF_INET; in xfrm_policy_add() 1140 memcpy(&tmpl.saddr, &src, sizeof(src)); in xfrm_policy_add() 1141 tmpl in xfrm_policy_add() 1106 struct xfrm_user_tmpl tmpl; xfrm_policy_add() local [all...] |
| /linux/drivers/net/wireless/ti/wlcore/ |
| H A D | init.c | 147 struct wl12xx_disconn_template *tmpl; in wl1271_ap_init_deauth_template() local 151 tmpl = kzalloc_obj(*tmpl); 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 D | atomic-tbl.sh | 239 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 D | gen-atomic-fallback.sh | 38 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 D | scsi_sas_internal.h | 41 #define to_sas_internal(tmpl) container_of(tmpl, struct sas_internal, t) argument
|
| /linux/net/sched/ |
| H A D | act_ct.c | 897 if (params->tmpl) { in tcf_ct_params_free() 899 nf_connlabels_put(nf_ct_net(params->tmpl)); in tcf_ct_params_free() 901 nf_ct_put(params->tmpl); in tcf_ct_params_free() 985 struct nf_conn *tmpl = NULL; in tcf_ct_act() local 1001 tmpl = p->tmpl; in tcf_ct_act() 1069 if (tmpl) { in tcf_ct_act() 1071 nf_conntrack_get(&tmpl->ct_general); in tcf_ct_act() 1072 nf_ct_set(skb, tmpl, IP_CT_NEW); in tcf_ct_act() 1095 err = __nf_ct_try_assign_helper(ct, p->tmpl, GFP_ATOMI in tcf_ct_act() 1286 struct nf_conn *tmpl; tcf_ct_fill_params() local [all...] |
| /linux/net/xfrm/ |
| H A D | xfrm_state.c | 1078 const struct xfrm_tmpl *tmpl, in xfrm_init_tempstate() argument 1091 x->id = tmpl->id; in xfrm_init_tempstate() 1093 switch (tmpl->encap_family) { in xfrm_init_tempstate() 1097 x->props.saddr = tmpl->saddr; in xfrm_init_tempstate() 1104 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); in xfrm_init_tempstate() 1110 x->props.mode = tmpl->mode; in xfrm_init_tempstate() 1111 x->props.reqid = tmpl->reqid; in xfrm_init_tempstate() 1112 x->props.family = tmpl->encap_family; in xfrm_init_tempstate() 1362 const struct flowi *fl, struct xfrm_tmpl *tmpl, in xfrm_state_find() argument 1375 unsigned short encap_family = tmpl->encap_family; in xfrm_state_find() [all …]
|
| /linux/mm/ |
| H A D | hugetlb_cgroup.c | 809 struct cftype *tmpl, int tmpl_size) in hugetlb_cgroup_cfttypes_init() argument 817 for (i = 0; i < tmpl_size; cft++, tmpl++, i++) { in hugetlb_cgroup_cfttypes_init() 818 *cft = *tmpl; in hugetlb_cgroup_cfttypes_init() 820 scnprintf(cft->name, MAX_CFTYPE_NAME, "%s.%s", buf, tmpl->name); in hugetlb_cgroup_cfttypes_init() 822 cft->private = MEMFILE_PRIVATE(idx, tmpl->private); in hugetlb_cgroup_cfttypes_init() 824 if (tmpl->file_offset) { in hugetlb_cgroup_cfttypes_init() 825 unsigned int offset = tmpl->file_offset; in hugetlb_cgroup_cfttypes_init()
|
| /linux/net/bridge/netfilter/ |
| H A D | ebtables.c | 328 struct ebt_template *tmpl; in find_inlist_lock_noload() local 337 list_for_each_entry(tmpl, &template_tables, list) { in find_inlist_lock_noload() 338 if (strcmp(name, tmpl->name) == 0) { in find_inlist_lock_noload() 339 struct module *owner = tmpl->owner; in find_inlist_lock_noload() 346 *error = tmpl->table_init(net); in find_inlist_lock_noload() 1297 struct ebt_template *tmpl; in ebt_register_template() local 1300 list_for_each_entry(tmpl, &template_tables, list) { in ebt_register_template() 1301 if (WARN_ON_ONCE(strcmp(t->name, tmpl->name) == 0)) { in ebt_register_template() 1307 tmpl = kzalloc_obj(*tmpl); in ebt_register_template() 1308 if (!tmpl) { in ebt_register_template() [all …]
|
| /linux/drivers/irqchip/ |
| H A D | irq-mvebu-icu.c | 262 const struct msi_domain_template *tmpl; in mvebu_icu_subset_probe() local 287 tmpl = sei ? &mvebu_icu_sei_msi_template : &mvebu_icu_nsr_msi_template; in mvebu_icu_subset_probe() 289 if (!msi_create_device_irq_domain(dev, MSI_DEFAULT_DOMAIN, tmpl, in mvebu_icu_subset_probe()
|