| /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 | 745 static inline void nft_set_ext_prepare(struct nft_set_ext_tmpl *tmpl) in nft_set_ext_prepare() argument 747 memset(tmpl, 0, sizeof(*tmpl)); in nft_set_ext_prepare() 748 tmpl->len = sizeof(struct nft_set_ext); in nft_set_ext_prepare() 751 static inline int nft_set_ext_add_length(struct nft_set_ext_tmpl *tmpl, u8 id, in nft_set_ext_add_length() argument 754 tmpl->len = ALIGN(tmpl->len, nft_set_ext_types[id].align); in nft_set_ext_add_length() 755 if (tmpl->len > U8_MAX) in nft_set_ext_add_length() 758 tmpl->offset[id] = tmpl->len; in nft_set_ext_add_length() 759 tmpl->ext_len[id] = nft_set_ext_types[id].len + len; in nft_set_ext_add_length() 760 tmpl->len += tmpl->ext_len[id]; in nft_set_ext_add_length() 765 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 68 elem_priv = nft_set_elem_init(set, &priv->tmpl, in nft_dynset_new() 130 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_EXPRESSIONS, in nft_dynset_ext_add_expr() 317 nft_set_ext_prepare(&priv->tmpl); in nft_dynset_init() 318 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_KEY, set->klen); in nft_dynset_init() 320 nft_set_ext_add_length(&priv->tmpl, NFT_SET_EXT_DATA, set->dlen); in nft_dynset_init() 327 nft_set_ext_add(&priv->tmpl, NFT_SET_EXT_TIMEOUT); in nft_dynset_init()
|
| /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 | 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/drivers/mtd/nand/spi/ |
| H A D | core.c | 1431 struct spinand_mem_ops *tmpl = &spinand->ssdr_op_templates; in spinand_init_ssdr_templates() local 1433 tmpl->reset = (struct spi_mem_op)SPINAND_RESET_1S_0_0_OP; in spinand_init_ssdr_templates() 1434 tmpl->readid = (struct spi_mem_op)SPINAND_READID_1S_1S_1S_OP(0, 0, NULL, 0); in spinand_init_ssdr_templates() 1435 tmpl->wr_en = (struct spi_mem_op)SPINAND_WR_EN_1S_0_0_OP; in spinand_init_ssdr_templates() 1436 tmpl->wr_dis = (struct spi_mem_op)SPINAND_WR_DIS_1S_0_0_OP; in spinand_init_ssdr_templates() 1437 tmpl->set_feature = (struct spi_mem_op)SPINAND_SET_FEATURE_1S_1S_1S_OP(0, NULL); in spinand_init_ssdr_templates() 1438 tmpl->get_feature = (struct spi_mem_op)SPINAND_GET_FEATURE_1S_1S_1S_OP(0, NULL); in spinand_init_ssdr_templates() 1439 tmpl->blk_erase = (struct spi_mem_op)SPINAND_BLK_ERASE_1S_1S_0_OP(0); in spinand_init_ssdr_templates() 1440 tmpl->page_read = (struct spi_mem_op)SPINAND_PAGE_READ_1S_1S_0_OP(0); in spinand_init_ssdr_templates() 1441 tmpl->prog_exec = (struct spi_mem_op)SPINAND_PROG_EXEC_1S_1S_0_OP(0); in spinand_init_ssdr_templates() [all …]
|
| /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 | 886 if (params->tmpl) { in tcf_ct_params_free() 888 nf_connlabels_put(nf_ct_net(params->tmpl)); in tcf_ct_params_free() 890 nf_ct_put(params->tmpl); in tcf_ct_params_free() 973 struct nf_conn *tmpl = NULL; in tcf_ct_act() local 989 tmpl = p->tmpl; in tcf_ct_act() 1035 if (tmpl) { in tcf_ct_act() 1037 nf_conntrack_get(&tmpl->ct_general); in tcf_ct_act() 1038 nf_ct_set(skb, tmpl, IP_CT_NEW); in tcf_ct_act() 1061 err = __nf_ct_try_assign_helper(ct, p->tmpl, GFP_ATOMIC); in tcf_ct_act() 1246 struct nf_conn *tmpl; in tcf_ct_fill_params() local [all …]
|
| /linux/net/xfrm/ |
| H A D | xfrm_state.c | 1073 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 …]
|
| H A D | xfrm_policy.c | 2500 struct xfrm_tmpl *tmpl = &policy->xfrm_vec[i]; in xfrm_tmpl_resolve_one() local 2502 if (tmpl->mode == XFRM_MODE_TUNNEL || in xfrm_tmpl_resolve_one() 2503 tmpl->mode == XFRM_MODE_IPTFS || in xfrm_tmpl_resolve_one() 2504 tmpl->mode == XFRM_MODE_BEET) { in xfrm_tmpl_resolve_one() 2505 remote = &tmpl->id.daddr; in xfrm_tmpl_resolve_one() 2506 local = &tmpl->saddr; in xfrm_tmpl_resolve_one() 2507 if (xfrm_addr_any(local, tmpl->encap_family)) { in xfrm_tmpl_resolve_one() 2514 error = xfrm_get_saddr(tmpl->encap_family, &tmp, in xfrm_tmpl_resolve_one() 2522 x = xfrm_state_find(remote, local, fl, tmpl, policy, &error, in xfrm_tmpl_resolve_one() 2545 if (!tmpl->optional) in xfrm_tmpl_resolve_one() [all …]
|
| /linux/net/bridge/netfilter/ |
| H A D | ebtables.c | 326 struct ebt_template *tmpl; in find_inlist_lock_noload() local 335 list_for_each_entry(tmpl, &template_tables, list) { in find_inlist_lock_noload() 336 if (strcmp(name, tmpl->name) == 0) { in find_inlist_lock_noload() 337 struct module *owner = tmpl->owner; in find_inlist_lock_noload() 344 *error = tmpl->table_init(net); in find_inlist_lock_noload() 1294 struct ebt_template *tmpl; in ebt_register_template() local 1297 list_for_each_entry(tmpl, &template_tables, list) { in ebt_register_template() 1298 if (WARN_ON_ONCE(strcmp(t->name, tmpl->name) == 0)) { in ebt_register_template() 1304 tmpl = kzalloc_obj(*tmpl); in ebt_register_template() 1305 if (!tmpl) { in ebt_register_template() [all …]
|
| /linux/mm/ |
| H A D | hugetlb_cgroup.c | 806 struct cftype *tmpl, int tmpl_size) in hugetlb_cgroup_cfttypes_init() argument 814 for (i = 0; i < tmpl_size; cft++, tmpl++, i++) { in hugetlb_cgroup_cfttypes_init() 815 *cft = *tmpl; in hugetlb_cgroup_cfttypes_init() 817 scnprintf(cft->name, MAX_CFTYPE_NAME, "%s.%s", buf, tmpl->name); in hugetlb_cgroup_cfttypes_init() 819 cft->private = MEMFILE_PRIVATE(idx, tmpl->private); in hugetlb_cgroup_cfttypes_init() 821 if (tmpl->file_offset) { in hugetlb_cgroup_cfttypes_init() 822 unsigned int offset = tmpl->file_offset; in hugetlb_cgroup_cfttypes_init()
|
| /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()
|