Home
last modified time | relevance | path

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

/net/iucv/
Diucv.c323 static inline int __iucv_call_b2f0(int command, union iucv_param *parm) in __iucv_call_b2f0() argument
330 reg1 = (unsigned long)parm; in __iucv_call_b2f0()
335 : "=d" (ccode), "=m" (*parm), "+d" (reg0), "+a" (reg1) in __iucv_call_b2f0()
336 : "m" (*parm) : "cc"); in __iucv_call_b2f0()
340 static inline int iucv_call_b2f0(int command, union iucv_param *parm) in iucv_call_b2f0() argument
344 ccode = __iucv_call_b2f0(command, parm); in iucv_call_b2f0()
345 return ccode == 1 ? parm->ctrl.iprcode : ccode; in iucv_call_b2f0()
398 union iucv_param *parm; in iucv_allow_cpu() local
409 parm = iucv_param_irq[cpu]; in iucv_allow_cpu()
410 memset(parm, 0, sizeof(union iucv_param)); in iucv_allow_cpu()
[all …]
/net/sched/
Dact_pedit.c145 struct tc_pedit *parm; in tcf_pedit_init() local
165 parm = nla_data(pattr); in tcf_pedit_init()
166 if (!parm->nkeys) in tcf_pedit_init()
169 ksize = parm->nkeys * sizeof(struct tc_pedit_key); in tcf_pedit_init()
170 if (nla_len(pattr) < sizeof(*parm) + ksize) in tcf_pedit_init()
173 keys_ex = tcf_pedit_keys_ex_parse(tb[TCA_PEDIT_KEYS_EX], parm->nkeys); in tcf_pedit_init()
177 if (!tcf_idr_check(tn, parm->index, a, bind)) { in tcf_pedit_init()
178 ret = tcf_idr_create(tn, parm->index, est, a, in tcf_pedit_init()
197 if (p->tcfp_nkeys && p->tcfp_nkeys != parm->nkeys) { in tcf_pedit_init()
207 p->tcfp_flags = parm->flags; in tcf_pedit_init()
[all …]
Dact_police.c81 struct tc_police *parm; in tcf_act_police_init() local
98 if (size != sizeof(*parm) && size != sizeof(struct tc_police_compat)) in tcf_act_police_init()
101 parm = nla_data(tb[TCA_POLICE_TBF]); in tcf_act_police_init()
102 exists = tcf_idr_check(tn, parm->index, a, bind); in tcf_act_police_init()
107 ret = tcf_idr_create(tn, parm->index, NULL, a, in tcf_act_police_init()
119 if (parm->rate.rate) { in tcf_act_police_init()
121 R_tab = qdisc_get_rtab(&parm->rate, tb[TCA_POLICE_RATE]); in tcf_act_police_init()
125 if (parm->peakrate.rate) { in tcf_act_police_init()
126 P_tab = qdisc_get_rtab(&parm->peakrate, in tcf_act_police_init()
149 police->tcfp_mtu = parm->mtu; in tcf_act_police_init()
[all …]
Dact_mirred.c81 struct tc_mirred *parm; in tcf_mirred_init() local
94 parm = nla_data(tb[TCA_MIRRED_PARMS]); in tcf_mirred_init()
96 exists = tcf_idr_check(tn, parm->index, a, bind); in tcf_mirred_init()
100 switch (parm->eaction) { in tcf_mirred_init()
111 if (parm->ifindex) { in tcf_mirred_init()
112 dev = __dev_get_by_index(net, parm->ifindex); in tcf_mirred_init()
126 ret = tcf_idr_create(tn, parm->index, est, a, in tcf_mirred_init()
139 m->tcf_action = parm->action; in tcf_mirred_init()
140 m->tcfm_eaction = parm->eaction; in tcf_mirred_init()
142 m->tcfm_ifindex = parm->ifindex; in tcf_mirred_init()
Dact_connmark.c104 struct tc_connmark *parm; in tcf_connmark_init() local
118 parm = nla_data(tb[TCA_CONNMARK_PARMS]); in tcf_connmark_init()
120 if (!tcf_idr_check(tn, parm->index, a, bind)) { in tcf_connmark_init()
121 ret = tcf_idr_create(tn, parm->index, est, a, in tcf_connmark_init()
127 ci->tcf_action = parm->action; in tcf_connmark_init()
129 ci->zone = parm->zone; in tcf_connmark_init()
141 ci->tcf_action = parm->action; in tcf_connmark_init()
142 ci->zone = parm->zone; in tcf_connmark_init()
Dact_nat.c44 struct tc_nat *parm; in tcf_nat_init() local
57 parm = nla_data(tb[TCA_NAT_PARMS]); in tcf_nat_init()
59 if (!tcf_idr_check(tn, parm->index, a, bind)) { in tcf_nat_init()
60 ret = tcf_idr_create(tn, parm->index, est, a, in tcf_nat_init()
75 p->old_addr = parm->old_addr; in tcf_nat_init()
76 p->new_addr = parm->new_addr; in tcf_nat_init()
77 p->mask = parm->mask; in tcf_nat_init()
78 p->flags = parm->flags; in tcf_nat_init()
80 p->tcf_action = parm->action; in tcf_nat_init()
Dact_vlan.c110 struct tc_vlan *parm; in tcf_vlan_init() local
128 parm = nla_data(tb[TCA_VLAN_PARMS]); in tcf_vlan_init()
129 exists = tcf_idr_check(tn, parm->index, a, bind); in tcf_vlan_init()
133 switch (parm->v_action) { in tcf_vlan_init()
173 action = parm->v_action; in tcf_vlan_init()
176 ret = tcf_idr_create(tn, parm->index, est, a, in tcf_vlan_init()
197 v->tcf_action = parm->action; in tcf_vlan_init()
Dact_simple.c86 struct tc_defact *parm; in tcf_simp_init() local
101 parm = nla_data(tb[TCA_DEF_PARMS]); in tcf_simp_init()
102 exists = tcf_idr_check(tn, parm->index, a, bind); in tcf_simp_init()
113 ret = tcf_idr_create(tn, parm->index, est, a, in tcf_simp_init()
124 d->tcf_action = parm->action; in tcf_simp_init()
133 reset_policy(d, tb[TCA_DEF_DATA], parm); in tcf_simp_init()
Dact_tunnel_key.c80 struct tc_tunnel_key *parm; in tunnel_key_init() local
100 parm = nla_data(tb[TCA_TUNNEL_KEY_PARMS]); in tunnel_key_init()
101 exists = tcf_idr_check(tn, parm->index, a, bind); in tunnel_key_init()
105 switch (parm->t_action) { in tunnel_key_init()
161 ret = tcf_idr_create(tn, parm->index, est, a, in tunnel_key_init()
185 t->tcf_action = parm->action; in tunnel_key_init()
186 params_new->tcft_action = parm->t_action; in tunnel_key_init()
Dact_skbmod.c92 struct tc_skbmod *parm; in tcf_skbmod_init() local
126 parm = nla_data(tb[TCA_SKBMOD_PARMS]); in tcf_skbmod_init()
127 if (parm->flags & SKBMOD_F_SWAPMAC) in tcf_skbmod_init()
130 exists = tcf_idr_check(tn, parm->index, a, bind); in tcf_skbmod_init()
141 ret = tcf_idr_create(tn, parm->index, est, a, in tcf_skbmod_init()
164 d->tcf_action = parm->action; in tcf_skbmod_init()
Dact_gact.c63 struct tc_gact *parm; in tcf_gact_init() local
80 parm = nla_data(tb[TCA_GACT_PARMS]); in tcf_gact_init()
93 if (!tcf_idr_check(tn, parm->index, a, bind)) { in tcf_gact_init()
94 ret = tcf_idr_create(tn, parm->index, est, a, in tcf_gact_init()
110 gact->tcf_action = parm->action; in tcf_gact_init()
Dact_sample.c45 struct tc_sample *parm; in tcf_sample_init() local
60 parm = nla_data(tb[TCA_SAMPLE_PARMS]); in tcf_sample_init()
62 exists = tcf_idr_check(tn, parm->index, a, bind); in tcf_sample_init()
67 ret = tcf_idr_create(tn, parm->index, est, a, in tcf_sample_init()
85 s->tcf_action = parm->action; in tcf_sample_init()
Dact_skbedit.c73 struct tc_skbedit *parm; in tcf_skbedit_init() local
117 parm = nla_data(tb[TCA_SKBEDIT_PARMS]); in tcf_skbedit_init()
119 exists = tcf_idr_check(tn, parm->index, a, bind); in tcf_skbedit_init()
130 ret = tcf_idr_create(tn, parm->index, est, a, in tcf_skbedit_init()
160 d->tcf_action = parm->action; in tcf_skbedit_init()
Dact_bpf.c284 struct tc_act_bpf *parm; in tcf_bpf_init() local
299 parm = nla_data(tb[TCA_ACT_BPF_PARMS]); in tcf_bpf_init()
301 if (!tcf_idr_check(tn, parm->index, act, bind)) { in tcf_bpf_init()
302 ret = tcf_idr_create(tn, parm->index, est, act, in tcf_bpf_init()
345 prog->tcf_action = parm->action; in tcf_bpf_init()
Dact_ife.c455 struct tc_ife *parm; in tcf_ife_init() local
472 parm = nla_data(tb[TCA_IFE_PARMS]); in tcf_ife_init()
474 exists = tcf_idr_check(tn, parm->index, a, bind); in tcf_ife_init()
479 ret = tcf_idr_create(tn, parm->index, est, a, &act_ife_ops, in tcf_ife_init()
491 ife->flags = parm->flags; in tcf_ife_init()
493 if (parm->flags & IFE_ENCODE) { in tcf_ife_init()
504 ife->tcf_action = parm->action; in tcf_ife_init()
508 if (parm->flags & IFE_ENCODE) { in tcf_ife_init()
Dact_csum.c53 struct tc_csum *parm; in tcf_csum_init() local
66 parm = nla_data(tb[TCA_CSUM_PARMS]); in tcf_csum_init()
68 if (!tcf_idr_check(tn, parm->index, a, bind)) { in tcf_csum_init()
69 ret = tcf_idr_create(tn, parm->index, est, a, in tcf_csum_init()
84 p->tcf_action = parm->action; in tcf_csum_init()
85 p->update_flags = parm->update_flags; in tcf_csum_init()
/net/core/
Dgen_estimator.c135 struct gnet_estimator *parm = nla_data(opt); in gen_new_estimator() local
140 if (nla_len(opt) < sizeof(*parm)) in gen_new_estimator()
147 if (parm->interval < -2 || parm->interval > 3) in gen_new_estimator()
155 intvl_log = parm->interval + 2; in gen_new_estimator()
159 est->ewma_log = parm->ewma_log; in gen_new_estimator()
/net/ipv4/
Dipip.c580 struct ip_tunnel_parm *parm = &tunnel->parms; in ipip_fill_info() local
582 if (nla_put_u32(skb, IFLA_IPTUN_LINK, parm->link) || in ipip_fill_info()
583 nla_put_in_addr(skb, IFLA_IPTUN_LOCAL, parm->iph.saddr) || in ipip_fill_info()
584 nla_put_in_addr(skb, IFLA_IPTUN_REMOTE, parm->iph.daddr) || in ipip_fill_info()
585 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) || in ipip_fill_info()
586 nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) || in ipip_fill_info()
587 nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) || in ipip_fill_info()
589 !!(parm->iph.frag_off & htons(IP_DF))) || in ipip_fill_info()
/net/ipv6/
Dip6_vti.c1049 struct __ip6_tnl_parm *parm = &tunnel->parms; in vti6_fill_info() local
1051 if (nla_put_u32(skb, IFLA_VTI_LINK, parm->link) || in vti6_fill_info()
1052 nla_put_in6_addr(skb, IFLA_VTI_LOCAL, &parm->laddr) || in vti6_fill_info()
1053 nla_put_in6_addr(skb, IFLA_VTI_REMOTE, &parm->raddr) || in vti6_fill_info()
1054 nla_put_be32(skb, IFLA_VTI_IKEY, parm->i_key) || in vti6_fill_info()
1055 nla_put_be32(skb, IFLA_VTI_OKEY, parm->o_key) || in vti6_fill_info()
1056 nla_put_u32(skb, IFLA_VTI_FWMARK, parm->fwmark)) in vti6_fill_info()
Dip6_tunnel.c2110 struct __ip6_tnl_parm *parm = &tunnel->parms; in ip6_tnl_fill_info() local
2112 if (nla_put_u32(skb, IFLA_IPTUN_LINK, parm->link) || in ip6_tnl_fill_info()
2113 nla_put_in6_addr(skb, IFLA_IPTUN_LOCAL, &parm->laddr) || in ip6_tnl_fill_info()
2114 nla_put_in6_addr(skb, IFLA_IPTUN_REMOTE, &parm->raddr) || in ip6_tnl_fill_info()
2115 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->hop_limit) || in ip6_tnl_fill_info()
2116 nla_put_u8(skb, IFLA_IPTUN_ENCAP_LIMIT, parm->encap_limit) || in ip6_tnl_fill_info()
2117 nla_put_be32(skb, IFLA_IPTUN_FLOWINFO, parm->flowinfo) || in ip6_tnl_fill_info()
2118 nla_put_u32(skb, IFLA_IPTUN_FLAGS, parm->flags) || in ip6_tnl_fill_info()
2119 nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->proto) || in ip6_tnl_fill_info()
2120 nla_put_u32(skb, IFLA_IPTUN_FWMARK, parm->fwmark)) in ip6_tnl_fill_info()
[all …]
Dsit.c1687 struct ip_tunnel_parm *parm = &tunnel->parms; in ipip6_fill_info() local
1689 if (nla_put_u32(skb, IFLA_IPTUN_LINK, parm->link) || in ipip6_fill_info()
1690 nla_put_in_addr(skb, IFLA_IPTUN_LOCAL, parm->iph.saddr) || in ipip6_fill_info()
1691 nla_put_in_addr(skb, IFLA_IPTUN_REMOTE, parm->iph.daddr) || in ipip6_fill_info()
1692 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) || in ipip6_fill_info()
1693 nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) || in ipip6_fill_info()
1695 !!(parm->iph.frag_off & htons(IP_DF))) || in ipip6_fill_info()
1696 nla_put_u8(skb, IFLA_IPTUN_PROTO, parm->iph.protocol) || in ipip6_fill_info()
1697 nla_put_be16(skb, IFLA_IPTUN_FLAGS, parm->i_flags) || in ipip6_fill_info()
/net/xfrm/
Dxfrm_interface.c734 struct xfrm_if_parms *parm = &xi->p; in xfrmi_fill_info() local
736 if (nla_put_u32(skb, IFLA_XFRM_LINK, parm->link) || in xfrmi_fill_info()
737 nla_put_u32(skb, IFLA_XFRM_IF_ID, parm->if_id)) in xfrmi_fill_info()
/net/mac80211/
Dcfg.c1802 static inline bool _chg_mesh_attr(enum nl80211_meshconf_params parm, u32 mask) in _chg_mesh_attr() argument
1804 return (mask >> (parm-1)) & 0x1; in _chg_mesh_attr()