Home
last modified time | relevance | path

Searched refs:parm (Results 1 – 25 of 28) sorted by relevance

12

/net/iucv/
Diucv.c287 static inline int __iucv_call_b2f0(int command, union iucv_param *parm) in __iucv_call_b2f0() argument
297 : [cc] "=&d" (cc), "+m" (*parm) in __iucv_call_b2f0()
299 [reg1] "d" ((unsigned long)parm) in __iucv_call_b2f0()
304 static inline int iucv_call_b2f0(int command, union iucv_param *parm) in iucv_call_b2f0() argument
308 ccode = __iucv_call_b2f0(command, parm); in iucv_call_b2f0()
309 return ccode == 1 ? parm->ctrl.iprcode : ccode; in iucv_call_b2f0()
364 union iucv_param *parm; in iucv_allow_cpu() local
375 parm = iucv_param_irq[cpu]; in iucv_allow_cpu()
376 memset(parm, 0, sizeof(union iucv_param)); in iucv_allow_cpu()
377 parm->set_mask.ipmask = 0xf8; in iucv_allow_cpu()
[all …]
/net/core/
Dgen_estimator.c131 struct gnet_estimator *parm = nla_data(opt); in gen_new_estimator() local
136 if (nla_len(opt) < sizeof(*parm)) in gen_new_estimator()
143 if (parm->interval < -2 || parm->interval > 3) in gen_new_estimator()
146 if (parm->ewma_log == 0 || parm->ewma_log >= 31) in gen_new_estimator()
154 intvl_log = parm->interval + 2; in gen_new_estimator()
158 est->ewma_log = parm->ewma_log; in gen_new_estimator()
/net/sched/
Dact_connmark.c107 struct tc_connmark *parm; in tcf_connmark_init() local
122 parm = nla_data(tb[TCA_CONNMARK_PARMS]); in tcf_connmark_init()
123 index = parm->index; in tcf_connmark_init()
134 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, in tcf_connmark_init()
138 tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_connmark_init()
140 ci->zone = parm->zone; in tcf_connmark_init()
151 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, in tcf_connmark_init()
157 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_connmark_init()
158 ci->zone = parm->zone; in tcf_connmark_init()
Dact_nat.c44 struct tc_nat *parm; in tcf_nat_init() local
59 parm = nla_data(tb[TCA_NAT_PARMS]); in tcf_nat_init()
60 index = parm->index; in tcf_nat_init()
80 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_nat_init()
86 p->old_addr = parm->old_addr; in tcf_nat_init()
87 p->new_addr = parm->new_addr; in tcf_nat_init()
88 p->mask = parm->mask; in tcf_nat_init()
89 p->flags = parm->flags; in tcf_nat_init()
91 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_nat_init()
Dact_police.c58 struct tc_police *parm; in tcf_police_init() local
79 if (size != sizeof(*parm) && size != sizeof(struct tc_police_compat)) in tcf_police_init()
82 parm = nla_data(tb[TCA_POLICE_TBF]); in tcf_police_init()
83 index = parm->index; in tcf_police_init()
104 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_police_init()
109 if (parm->rate.rate) { in tcf_police_init()
111 R_tab = qdisc_get_rtab(&parm->rate, tb[TCA_POLICE_RATE], NULL); in tcf_police_init()
115 if (parm->peakrate.rate) { in tcf_police_init()
116 P_tab = qdisc_get_rtab(&parm->peakrate, in tcf_police_init()
171 new->tcfp_mtu = parm->mtu; in tcf_police_init()
[all …]
Dact_pedit.c162 struct tc_pedit *parm; in tcf_pedit_init() local
187 parm = nla_data(pattr); in tcf_pedit_init()
189 index = parm->index; in tcf_pedit_init()
210 if (!parm->nkeys) { in tcf_pedit_init()
215 ksize = parm->nkeys * sizeof(struct tc_pedit_key); in tcf_pedit_init()
216 if (nla_len(pattr) < sizeof(*parm) + ksize) { in tcf_pedit_init()
229 tcf_pedit_keys_ex_parse(tb[TCA_PEDIT_KEYS_EX], parm->nkeys); in tcf_pedit_init()
235 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_pedit_init()
242 nparms->tcfp_flags = parm->flags; in tcf_pedit_init()
243 nparms->tcfp_nkeys = parm->nkeys; in tcf_pedit_init()
[all …]
Dact_mirred.c102 struct tc_mirred *parm; in tcf_mirred_init() local
121 parm = nla_data(tb[TCA_MIRRED_PARMS]); in tcf_mirred_init()
122 index = parm->index; in tcf_mirred_init()
130 switch (parm->eaction) { in tcf_mirred_init()
146 if (!parm->ifindex) { in tcf_mirred_init()
167 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_mirred_init()
173 if (parm->ifindex) { in tcf_mirred_init()
174 dev = dev_get_by_index(net, parm->ifindex); in tcf_mirred_init()
186 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_mirred_init()
187 m->tcfm_eaction = parm->eaction; in tcf_mirred_init()
Dact_simple.c95 struct tc_defact *parm; in tcf_simp_init() local
112 parm = nla_data(tb[TCA_DEF_PARMS]); in tcf_simp_init()
113 index = parm->index; in tcf_simp_init()
138 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, in tcf_simp_init()
147 tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_simp_init()
155 err = reset_policy(*a, tb[TCA_DEF_DATA], parm, tp, extack); in tcf_simp_init()
Dact_skbmod.c112 struct tc_skbmod *parm; in tcf_skbmod_init() local
147 parm = nla_data(tb[TCA_SKBMOD_PARMS]); in tcf_skbmod_init()
148 index = parm->index; in tcf_skbmod_init()
149 if (parm->flags & SKBMOD_F_SWAPMAC) in tcf_skbmod_init()
151 if (parm->flags & SKBMOD_F_ECN) in tcf_skbmod_init()
182 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_skbmod_init()
199 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_skbmod_init()
Dact_vlan.c126 struct tc_vlan *parm; in tcf_vlan_init() local
146 parm = nla_data(tb[TCA_VLAN_PARMS]); in tcf_vlan_init()
147 index = parm->index; in tcf_vlan_init()
155 switch (parm->v_action) { in tcf_vlan_init()
215 action = parm->v_action; in tcf_vlan_init()
231 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_vlan_init()
257 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_vlan_init()
Dact_mpls.c169 struct tc_mpls *parm; in tcf_mpls_init() local
189 parm = nla_data(tb[TCA_MPLS_PARMS]); in tcf_mpls_init()
190 index = parm->index; in tcf_mpls_init()
214 switch (parm->m_action) { in tcf_mpls_init()
277 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_mpls_init()
289 p->tcfm_action = parm->m_action; in tcf_mpls_init()
302 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_mpls_init()
Dact_gact.c62 struct tc_gact *parm; in tcf_gact_init() local
81 parm = nla_data(tb[TCA_GACT_PARMS]); in tcf_gact_init()
82 index = parm->index; in tcf_gact_init()
120 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_gact_init()
126 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_gact_init()
Dact_sample.c47 struct tc_sample *parm; in tcf_sample_init() local
62 parm = nla_data(tb[TCA_SAMPLE_PARMS]); in tcf_sample_init()
63 index = parm->index; in tcf_sample_init()
90 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_sample_init()
110 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_sample_init()
Dact_ife.c493 struct tc_ife *parm; in tcf_ife_init() local
514 parm = nla_data(tb[TCA_IFE_PARMS]); in tcf_ife_init()
520 if (parm->flags & ~IFE_ENCODE) in tcf_ife_init()
542 index = parm->index; in tcf_ife_init()
573 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_ife_init()
577 p->flags = parm->flags; in tcf_ife_init()
579 if (parm->flags & IFE_ENCODE) { in tcf_ife_init()
588 if (parm->flags & IFE_ENCODE) { in tcf_ife_init()
621 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_ife_init()
Dact_skbedit.c107 struct tc_skbedit *parm; in tcf_skbedit_init() local
160 parm = nla_data(tb[TCA_SKBEDIT_PARMS]); in tcf_skbedit_init()
161 index = parm->index; in tcf_skbedit_init()
194 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_skbedit_init()
219 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_skbedit_init()
Dact_bpf.c286 struct tc_act_bpf *parm; in tcf_bpf_init() local
303 parm = nla_data(tb[TCA_ACT_BPF_PARMS]); in tcf_bpf_init()
304 index = parm->index; in tcf_bpf_init()
328 ret = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_bpf_init()
359 goto_ch = tcf_action_set_ctrlact(*act, parm->action, goto_ch); in tcf_bpf_init()
Dact_tunnel_key.c367 struct tc_tunnel_key *parm; in tunnel_key_init() local
396 parm = nla_data(tb[TCA_TUNNEL_KEY_PARMS]); in tunnel_key_init()
397 index = parm->index; in tunnel_key_init()
405 switch (parm->t_action) { in tunnel_key_init()
513 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tunnel_key_init()
528 params_new->tcft_action = parm->t_action; in tunnel_key_init()
532 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tunnel_key_init()
Dact_csum.c53 struct tc_csum *parm; in tcf_csum_init() local
68 parm = nla_data(tb[TCA_CSUM_PARMS]); in tcf_csum_init()
69 index = parm->index; in tcf_csum_init()
90 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_csum_init()
101 params_new->update_flags = parm->update_flags; in tcf_csum_init()
104 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_csum_init()
Dact_gate.c310 struct tc_gate *parm; in tcf_gate_init() local
348 parm = nla_data(tb[TCA_GATE_PARMS]); in tcf_gate_init()
349 index = parm->index; in tcf_gate_init()
385 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_gate_init()
431 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_gate_init()
Dact_ct.c1086 struct tc_ct *parm, in tcf_ct_fill_params_nat() argument
1166 struct tc_ct *parm, in tcf_ct_fill_params() argument
1185 err = tcf_ct_fill_params_nat(p, parm, tb, extack); in tcf_ct_fill_params()
1250 struct tc_ct *parm; in tcf_ct_init() local
1268 parm = nla_data(tb[TCA_CT_PARMS]); in tcf_ct_init()
1269 index = parm->index; in tcf_ct_init()
1291 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_ct_init()
1303 err = tcf_ct_fill_params(net, params, parm, tb, extack); in tcf_ct_init()
1312 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_ct_init()
/net/ipv6/
Dip6_icmp.c37 const struct inet6_skb_parm *parm) in __icmpv6_send() argument
44 send(skb, type, code, info, NULL, parm); in __icmpv6_send()
54 struct inet6_skb_parm parm = { 0 }; in icmpv6_ndo_send() local
62 __icmpv6_send(skb_in, type, code, info, &parm); in icmpv6_ndo_send()
77 __icmpv6_send(skb_in, type, code, info, &parm); in icmpv6_ndo_send()
Dip6_vti.c1082 struct __ip6_tnl_parm *parm = &tunnel->parms; in vti6_fill_info() local
1084 if (nla_put_u32(skb, IFLA_VTI_LINK, parm->link) || in vti6_fill_info()
1085 nla_put_in6_addr(skb, IFLA_VTI_LOCAL, &parm->laddr) || in vti6_fill_info()
1086 nla_put_in6_addr(skb, IFLA_VTI_REMOTE, &parm->raddr) || in vti6_fill_info()
1087 nla_put_be32(skb, IFLA_VTI_IKEY, parm->i_key) || in vti6_fill_info()
1088 nla_put_be32(skb, IFLA_VTI_OKEY, parm->o_key) || in vti6_fill_info()
1089 nla_put_u32(skb, IFLA_VTI_FWMARK, parm->fwmark)) in vti6_fill_info()
Dip6_tunnel.c2135 struct __ip6_tnl_parm *parm = &tunnel->parms; in ip6_tnl_fill_info() local
2137 if (nla_put_u32(skb, IFLA_IPTUN_LINK, parm->link) || in ip6_tnl_fill_info()
2138 nla_put_in6_addr(skb, IFLA_IPTUN_LOCAL, &parm->laddr) || in ip6_tnl_fill_info()
2139 nla_put_in6_addr(skb, IFLA_IPTUN_REMOTE, &parm->raddr) || in ip6_tnl_fill_info()
2140 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->hop_limit) || in ip6_tnl_fill_info()
2141 nla_put_u8(skb, IFLA_IPTUN_ENCAP_LIMIT, parm->encap_limit) || in ip6_tnl_fill_info()
2142 nla_put_be32(skb, IFLA_IPTUN_FLOWINFO, parm->flowinfo) || in ip6_tnl_fill_info()
2143 nla_put_u32(skb, IFLA_IPTUN_FLAGS, parm->flags) || in ip6_tnl_fill_info()
2144 nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->proto) || in ip6_tnl_fill_info()
2145 nla_put_u32(skb, IFLA_IPTUN_FWMARK, parm->fwmark)) in ip6_tnl_fill_info()
[all …]
Dsit.c1759 struct ip_tunnel_parm *parm = &tunnel->parms; in ipip6_fill_info() local
1761 if (nla_put_u32(skb, IFLA_IPTUN_LINK, parm->link) || in ipip6_fill_info()
1762 nla_put_in_addr(skb, IFLA_IPTUN_LOCAL, parm->iph.saddr) || in ipip6_fill_info()
1763 nla_put_in_addr(skb, IFLA_IPTUN_REMOTE, parm->iph.daddr) || in ipip6_fill_info()
1764 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) || in ipip6_fill_info()
1765 nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) || in ipip6_fill_info()
1767 !!(parm->iph.frag_off & htons(IP_DF))) || in ipip6_fill_info()
1768 nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) || in ipip6_fill_info()
1769 nla_put_be16(skb, IFLA_IPTUN_FLAGS, parm->i_flags) || in ipip6_fill_info()
/net/ipv4/
Dipip.c568 struct ip_tunnel_parm *parm = &tunnel->parms; in ipip_fill_info() local
570 if (nla_put_u32(skb, IFLA_IPTUN_LINK, parm->link) || in ipip_fill_info()
571 nla_put_in_addr(skb, IFLA_IPTUN_LOCAL, parm->iph.saddr) || in ipip_fill_info()
572 nla_put_in_addr(skb, IFLA_IPTUN_REMOTE, parm->iph.daddr) || in ipip_fill_info()
573 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) || in ipip_fill_info()
574 nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) || in ipip_fill_info()
575 nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) || in ipip_fill_info()
577 !!(parm->iph.frag_off & htons(IP_DF))) || in ipip_fill_info()

12