Home
last modified time | relevance | path

Searched refs:bind (Results 1 – 25 of 83) sorted by relevance

1234

/net/sched/
Dact_ipt.c97 const struct tc_action_ops *ops, int ovr, int bind, in __tcf_ipt_init() argument
121 err = tcf_idr_check_alloc(tn, &index, a, bind); in __tcf_ipt_init()
125 if (exists && bind) in __tcf_ipt_init()
130 tcf_idr_release(*a, bind); in __tcf_ipt_init()
139 tcf_idr_release(*a, bind); in __tcf_ipt_init()
146 ret = tcf_idr_create(tn, index, est, a, ops, bind, in __tcf_ipt_init()
154 if (bind)/* dont override defaults */ in __tcf_ipt_init()
158 tcf_idr_release(*a, bind); in __tcf_ipt_init()
201 tcf_idr_release(*a, bind); in __tcf_ipt_init()
207 int bind, bool rtnl_held, struct tcf_proto *tp, in tcf_ipt_init() argument
[all …]
Dact_vlan.c104 int ovr, int bind, bool rtnl_held, in tcf_vlan_init() argument
133 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init()
137 if (exists && bind) in tcf_vlan_init()
147 tcf_idr_release(*a, bind); in tcf_vlan_init()
155 tcf_idr_release(*a, bind); in tcf_vlan_init()
169 tcf_idr_release(*a, bind); in tcf_vlan_init()
183 tcf_idr_release(*a, bind); in tcf_vlan_init()
192 &act_vlan_ops, bind, true); in tcf_vlan_init()
200 tcf_idr_release(*a, bind); in tcf_vlan_init()
238 tcf_idr_release(*a, bind); in tcf_vlan_init()
[all …]
Dact_simple.c88 int ovr, int bind, bool rtnl_held, in tcf_simp_init() argument
113 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_simp_init()
117 if (exists && bind) in tcf_simp_init()
122 tcf_idr_release(*a, bind); in tcf_simp_init()
130 &act_simp_ops, bind, false); in tcf_simp_init()
166 tcf_idr_release(*a, bind); in tcf_simp_init()
171 int bind, int ref) in tcf_simp_dump() argument
178 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_simp_dump()
Dact_connmark.c96 int ovr, int bind, bool rtnl_held, in tcf_connmark_init() argument
121 ret = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_connmark_init()
124 &act_connmark_ops, bind, false); in tcf_connmark_init()
143 if (bind) in tcf_connmark_init()
146 tcf_idr_release(*a, bind); in tcf_connmark_init()
165 tcf_idr_release(*a, bind); in tcf_connmark_init()
170 int bind, int ref) in tcf_connmark_dump() argument
177 .bindcnt = atomic_read(&ci->tcf_bindcnt) - bind, in tcf_connmark_dump()
Dact_skbmod.c81 int ovr, int bind, bool rtnl_held, in tcf_skbmod_init() argument
129 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbmod_init()
133 if (exists && bind) in tcf_skbmod_init()
138 tcf_idr_release(*a, bind); in tcf_skbmod_init()
146 &act_skbmod_ops, bind, true); in tcf_skbmod_init()
154 tcf_idr_release(*a, bind); in tcf_skbmod_init()
200 tcf_idr_release(*a, bind); in tcf_skbmod_init()
215 int bind, int ref) in tcf_skbmod_dump() argument
223 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_skbmod_dump()
Dact_api.c125 static int __tcf_action_put(struct tc_action *p, bool bind) in __tcf_action_put() argument
130 if (bind) in __tcf_action_put()
139 if (bind) in __tcf_action_put()
145 int __tcf_idr_release(struct tc_action *p, bool bind, bool strict) in __tcf_idr_release() argument
162 if (!bind && strict && atomic_read(&p->tcfa_bindcnt) > 0) in __tcf_idr_release()
165 if (__tcf_action_put(p, bind)) in __tcf_idr_release()
402 int bind, bool cpustats) in tcf_idr_create() argument
411 if (bind) in tcf_idr_create()
485 struct tc_action **a, int bind) in tcf_idr_check_alloc() argument
505 if (bind) in tcf_idr_check_alloc()
[all …]
Dact_gact.c55 int ovr, int bind, bool rtnl_held, in tcf_gact_init() argument
99 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_gact_init()
102 &act_gact_ops, bind, true); in tcf_gact_init()
109 if (bind)/* dont override defaults */ in tcf_gact_init()
112 tcf_idr_release(*a, bind); in tcf_gact_init()
146 tcf_idr_release(*a, bind); in tcf_gact_init()
193 int bind, int ref) in tcf_gact_dump() argument
200 .bindcnt = atomic_read(&gact->tcf_bindcnt) - bind, in tcf_gact_dump()
Dact_sample.c38 int bind, bool rtnl_held, struct tcf_proto *tp, in tcf_sample_init() argument
63 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_sample_init()
67 if (exists && bind) in tcf_sample_init()
72 &act_sample_ops, bind, true); in tcf_sample_init()
79 tcf_idr_release(*a, bind); in tcf_sample_init()
126 tcf_idr_release(*a, bind); in tcf_sample_init()
200 int bind, int ref) in tcf_sample_dump() argument
207 .bindcnt = atomic_read(&s->tcf_bindcnt) - bind, in tcf_sample_dump()
Dact_skbedit.c88 int ovr, int bind, bool rtnl_held, in tcf_skbedit_init() argument
151 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbedit_init()
155 if (exists && bind) in tcf_skbedit_init()
160 tcf_idr_release(*a, bind); in tcf_skbedit_init()
168 &act_skbedit_ops, bind, true); in tcf_skbedit_init()
179 tcf_idr_release(*a, bind); in tcf_skbedit_init()
224 tcf_idr_release(*a, bind); in tcf_skbedit_init()
229 int bind, int ref) in tcf_skbedit_dump() argument
237 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_skbedit_dump()
Dact_nat.c37 struct tc_action **a, int ovr, int bind, in tcf_nat_init() argument
61 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_nat_init()
64 &act_nat_ops, bind, false); in tcf_nat_init()
71 if (bind) in tcf_nat_init()
74 tcf_idr_release(*a, bind); in tcf_nat_init()
101 tcf_idr_release(*a, bind); in tcf_nat_init()
263 int bind, int ref) in tcf_nat_dump() argument
270 .bindcnt = atomic_read(&p->tcf_bindcnt) - bind, in tcf_nat_dump()
Dact_mirred.c94 int ovr, int bind, bool rtnl_held, in tcf_mirred_init() argument
123 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_mirred_init()
127 if (exists && bind) in tcf_mirred_init()
138 tcf_idr_release(*a, bind); in tcf_mirred_init()
152 &act_mirred_ops, bind, true); in tcf_mirred_init()
159 tcf_idr_release(*a, bind); in tcf_mirred_init()
206 tcf_idr_release(*a, bind); in tcf_mirred_init()
330 static int tcf_mirred_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_mirred_dump() argument
338 .bindcnt = atomic_read(&m->tcf_bindcnt) - bind, in tcf_mirred_dump()
Dact_bpf.c135 int bind, int ref) in tcf_bpf_dump() argument
142 .bindcnt = atomic_read(&prog->tcf_bindcnt) - bind, in tcf_bpf_dump()
277 int replace, int bind, bool rtnl_held, in tcf_bpf_init() argument
303 ret = tcf_idr_check_alloc(tn, &index, act, bind); in tcf_bpf_init()
306 &act_bpf_ops, bind, true); in tcf_bpf_init()
315 if (bind) in tcf_bpf_init()
319 tcf_idr_release(*act, bind); in tcf_bpf_init()
379 tcf_idr_release(*act, bind); in tcf_bpf_init()
Dact_ctinfo.c155 int ovr, int bind, bool rtnl_held, in tcf_ctinfo_init() argument
210 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_ctinfo_init()
213 &act_ctinfo_ops, bind, false); in tcf_ctinfo_init()
220 if (bind) /* don't override defaults */ in tcf_ctinfo_init()
223 tcf_idr_release(*a, bind); in tcf_ctinfo_init()
278 tcf_idr_release(*a, bind); in tcf_ctinfo_init()
283 int bind, int ref) in tcf_ctinfo_dump() argument
289 .bindcnt = atomic_read(&ci->tcf_bindcnt) - bind, in tcf_ctinfo_dump()
Dact_mpls.c136 int ovr, int bind, bool rtnl_held, in tcf_mpls_init() argument
221 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_mpls_init()
225 if (exists && bind) in tcf_mpls_init()
230 &act_mpls_ops, bind, true); in tcf_mpls_init()
238 tcf_idr_release(*a, bind); in tcf_mpls_init()
283 tcf_idr_release(*a, bind); in tcf_mpls_init()
298 int bind, int ref) in tcf_mpls_dump() argument
306 .bindcnt = atomic_read(&m->tcf_bindcnt) - bind, in tcf_mpls_dump()
Dact_police.c49 int ovr, int bind, bool rtnl_held, in tcf_police_init() argument
81 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_police_init()
85 if (exists && bind) in tcf_police_init()
90 &act_police_ops, bind, true); in tcf_police_init()
98 tcf_idr_release(*a, bind); in tcf_police_init()
214 tcf_idr_release(*a, bind); in tcf_police_init()
305 int bind, int ref) in tcf_police_dump() argument
313 .bindcnt = atomic_read(&police->tcf_bindcnt) - bind, in tcf_police_dump()
Dact_pedit.c139 int ovr, int bind, bool rtnl_held, in tcf_pedit_init() argument
188 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_pedit_init()
191 &act_pedit_ops, bind, false); in tcf_pedit_init()
198 if (bind) in tcf_pedit_init()
248 tcf_idr_release(*a, bind); in tcf_pedit_init()
412 int bind, int ref) in tcf_pedit_dump() argument
435 opt->bindcnt = atomic_read(&p->tcf_bindcnt) - bind; in tcf_pedit_dump()
Dact_csum.c45 int bind, bool rtnl_held, struct tcf_proto *tp, in tcf_csum_init() argument
69 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_csum_init()
72 &act_csum_ops, bind, true); in tcf_csum_init()
79 if (bind)/* dont override defaults */ in tcf_csum_init()
82 tcf_idr_release(*a, bind); in tcf_csum_init()
121 tcf_idr_release(*a, bind); in tcf_csum_init()
632 static int tcf_csum_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_csum_dump() argument
641 .bindcnt = atomic_read(&p->tcf_bindcnt) - bind, in tcf_csum_dump()
Dact_tunnel_key.c214 int ovr, int bind, bool rtnl_held, in tunnel_key_init() argument
254 err = tcf_idr_check_alloc(tn, &index, a, bind); in tunnel_key_init()
258 if (exists && bind) in tunnel_key_init()
355 &act_tunnel_key_ops, bind, true); in tunnel_key_init()
410 tcf_idr_release(*a, bind); in tunnel_key_init()
513 int bind, int ref) in tunnel_key_dump() argument
521 .bindcnt = atomic_read(&t->tcf_bindcnt) - bind, in tunnel_key_dump()
Dact_ife.c467 int ovr, int bind, bool rtnl_held, in tcf_ife_init() argument
512 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_ife_init()
518 if (exists && bind) { in tcf_ife_init()
525 bind, true); in tcf_ife_init()
533 tcf_idr_release(*a, bind); in tcf_ife_init()
614 tcf_idr_release(*a, bind); in tcf_ife_init()
618 static int tcf_ife_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_ife_dump() argument
627 .bindcnt = atomic_read(&ife->tcf_bindcnt) - bind, in tcf_ife_dump()
Dact_ct.c669 int replace, int bind, bool rtnl_held, in tcf_ct_init() argument
697 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_ct_init()
703 &act_ct_ops, bind, true); in tcf_ct_init()
710 if (bind) in tcf_ct_init()
714 tcf_idr_release(*a, bind); in tcf_ct_init()
752 tcf_idr_release(*a, bind); in tcf_ct_init()
830 int bind, int ref) in tcf_ct_dump() argument
839 .bindcnt = atomic_read(&c->tcf_bindcnt) - bind, in tcf_ct_dump()
/net/ieee802154/
Dsocket.c105 if (sk->sk_prot->bind) in ieee802154_sock_bind()
106 return sk->sk_prot->bind(sk, uaddr, addr_len); in ieee802154_sock_bind()
395 .bind = raw_bind,
410 .bind = ieee802154_sock_bind,
957 .bind = dgram_bind,
973 .bind = ieee802154_sock_bind,
/net/phonet/
Dsocket.c165 if (sk->sk_prot->bind) in pn_socket_bind()
166 return sk->sk_prot->bind(sk, addr, len); in pn_socket_bind()
433 .bind = pn_socket_bind,
458 .bind = pn_socket_bind,
/net/rds/
DMakefile3 rds-y := af_rds.o bind.o cong.o connection.o info.o message.o \
/net/netlink/
Daf_netlink.h65 int (*bind)(struct net *net, int group); member
/net/nfc/
Drawsock.c270 .bind = sock_no_bind,
290 .bind = sock_no_bind,

1234