| /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 in nf_ct_tmpl_alloc() 550 nf_ct_tmpl_free(struct nf_conn * tmpl) nf_ct_tmpl_free() argument 1754 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 1862 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 1933 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 2007 struct nf_conn *ct, *tmpl; nf_conntrack_in() local [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/drivers/mtd/nand/spi/ |
| H A D | core.c | 1472 struct spinand_mem_ops *tmpl = &spinand->ssdr_op_templates; in spinand_init_ssdr_templates() 1474 tmpl->reset = (struct spi_mem_op)SPINAND_RESET_1S_0_0_OP; in spinand_init_ssdr_templates() 1475 tmpl->readid = (struct spi_mem_op)SPINAND_READID_1S_1S_1S_OP(0, 0, NULL, 0); in spinand_init_ssdr_templates() 1476 tmpl->wr_en = (struct spi_mem_op)SPINAND_WR_EN_1S_0_0_OP; in spinand_init_ssdr_templates() 1477 tmpl->wr_dis = (struct spi_mem_op)SPINAND_WR_DIS_1S_0_0_OP; in spinand_init_ssdr_templates() 1478 tmpl->set_feature = (struct spi_mem_op)SPINAND_SET_FEATURE_1S_1S_1S_OP(0, NULL); in spinand_init_ssdr_templates() 1479 tmpl->get_feature = (struct spi_mem_op)SPINAND_GET_FEATURE_1S_1S_1S_OP(0, NULL); in spinand_init_ssdr_templates() 1480 tmpl->blk_erase = (struct spi_mem_op)SPINAND_BLK_ERASE_1S_1S_0_OP(0); in spinand_init_ssdr_templates() 1481 tmpl->page_read = (struct spi_mem_op)SPINAND_PAGE_READ_1S_1S_0_OP(0); in spinand_init_ssdr_templates() 1482 tmpl in spinand_init_ssdr_templates() 1471 struct spinand_mem_ops *tmpl = &spinand->ssdr_op_templates; spinand_init_ssdr_templates() local 1516 struct spinand_mem_ops *tmpl = &spinand->odtr_op_templates; spinand_init_odtr_instruction_set() local [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 | 214 tmpl proto esp mode transport 218 tmpl proto esp mode transport 222 tmpl proto esp mode transport 226 tmpl proto esp mode transport 253 tmpl proto esp mode transport 257 tmpl proto esp mode transport 261 tmpl proto esp mode transport 265 tmpl proto esp mode transport
|
| H A D | vrf-xfrm-tests.sh | 201 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel 206 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel 211 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel 216 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel 222 tmpl src ${HOST1_6} dst ${HOST2_6} proto esp mode tunnel 227 tmpl src ${HOST1_6} dst ${HOST2_6} proto esp mode tunnel 232 tmpl src ${HOST2_6} dst ${HOST1_6} proto esp mode tunnel 237 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 tunnel priority 100 action allow 40 ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tunnel priority 100 action allow 148 ip -net $ns xfrm policy add dst $encryptip dir out tmpl src $me dst $remote proto esp mode tunnel priority 1 action allow 272 ip -net ${ns[1]} xfrm policy update src e000:0001::0000 dst ff01::0014:0000:0001 dir in tmpl src :: dst :: proto esp mode tunnel priority 100 action allow || break 275 ip -net ${ns[1]} xfrm policy update src e000:0001::0000 dst ff01::01 dir in tmpl src :: dst :: proto esp mode tunnel priority 100 action allow || break
|
| /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() 1381 const struct flowi *fl, struct xfrm_tmpl *tmpl, in xfrm_state_find() 1394 unsigned short encap_family = tmpl in xfrm_state_find() 1362 xfrm_state_find(const xfrm_address_t * daddr,const xfrm_address_t * saddr,const struct flowi * fl,struct xfrm_tmpl * tmpl,struct xfrm_policy * pol,int * err,unsigned short family,u32 if_id) xfrm_state_find() argument [all...] |
| /linux/mm/ |
| H A D | hugetlb_cgroup.c | 839 struct cftype *tmpl, int tmpl_size) in __hugetlb_cgroup_file_dfl_init() 847 for (i = 0; i < tmpl_size; cft++, tmpl++, i++) { in __hugetlb_cgroup_file_legacy_init() 848 *cft = *tmpl; in __hugetlb_cgroup_file_legacy_init() 850 scnprintf(cft->name, MAX_CFTYPE_NAME, "%s.%s", buf, tmpl->name); 852 cft->private = MEMFILE_PRIVATE(idx, tmpl->private); in __hugetlb_cgroup_file_init() 854 if (tmpl->file_offset) { in __hugetlb_cgroup_file_init() 855 unsigned int offset = tmpl->file_offset; in __hugetlb_cgroup_file_init() 809 hugetlb_cgroup_cfttypes_init(struct hstate * h,struct cftype * cft,struct cftype * tmpl,int tmpl_size) hugetlb_cgroup_cfttypes_init() argument
|
| /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()
|