Home
last modified time | relevance | path

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

12345678910>>...24

/linux/drivers/net/ovpn/
H A Dudp.c191 const struct ovpn_bind *bind, in ovpn_dst_cache_current() argument
198 curr_bind = rcu_dereference_protected(peer->bind, in ovpn_dst_cache_current()
201 return curr_bind == bind && in ovpn_dst_cache_current()
216 static int ovpn_udp4_output(struct ovpn_peer *peer, struct ovpn_bind *bind, in ovpn_udp4_output() argument
226 .saddr = bind->local.ipv4.s_addr, in ovpn_udp4_output()
227 .daddr = bind->remote.in4.sin_addr.s_addr, in ovpn_udp4_output()
229 .fl4_dport = bind->remote.in4.sin_port, in ovpn_udp4_output()
261 &bind->remote.in4, in ovpn_udp4_output()
268 if (likely(ovpn_dst_cache_current(peer, bind, key))) { in ovpn_udp4_output()
281 memcpy(&remote, &bind->remote, sizeof(struct sockaddr_in)); in ovpn_udp4_output()
[all …]
H A Dpeer.c113 RCU_INIT_POINTER(peer->bind, NULL); in ovpn_peer_new()
148 struct ovpn_bind *bind; in ovpn_peer_reset_sockaddr() local
154 bind = ovpn_bind_from_sockaddr(ss); in ovpn_peer_reset_sockaddr()
155 if (IS_ERR(bind)) in ovpn_peer_reset_sockaddr()
156 return PTR_ERR(bind); in ovpn_peer_reset_sockaddr()
167 kfree(bind); in ovpn_peer_reset_sockaddr()
171 memcpy(&bind->local, local_ip, ip_len); in ovpn_peer_reset_sockaddr()
175 ovpn_bind_reset(peer, bind); in ovpn_peer_reset_sockaddr()
194 const struct ovpn_bind *bind);
207 struct ovpn_bind *bind; in ovpn_peer_endpoints_update() local
[all …]
H A Dbind.c25 struct ovpn_bind *bind; in ovpn_bind_from_sockaddr() local
35 bind = kzalloc_obj(*bind, GFP_ATOMIC); in ovpn_bind_from_sockaddr()
36 if (unlikely(!bind)) in ovpn_bind_from_sockaddr()
39 memcpy(&bind->remote, ss, sa_len); in ovpn_bind_from_sockaddr()
41 return bind; in ovpn_bind_from_sockaddr()
53 kfree_rcu(rcu_replace_pointer(peer->bind, new, in ovpn_bind_reset()
/linux/drivers/xen/
H A Devtchn.c447 struct ioctl_evtchn_bind_virq bind; in evtchn_ioctl() local
455 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
458 bind_virq.virq = bind.virq; in evtchn_ioctl()
472 struct ioctl_evtchn_bind_interdomain bind; in evtchn_ioctl() local
476 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
481 u->restrict_domid != bind.remote_domain) in evtchn_ioctl()
484 bind_interdomain.remote_dom = bind.remote_domain; in evtchn_ioctl()
485 bind_interdomain.remote_port = bind.remote_port; in evtchn_ioctl()
498 struct ioctl_evtchn_bind_unbound_port bind; in evtchn_ioctl() local
506 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
[all …]
/linux/net/sched/
H A Dact_vlan.c120 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_vlan_init() local
147 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init()
151 if (exists && bind) in tcf_vlan_init()
161 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()
201 tcf_idr_release(*a, bind); in tcf_vlan_init()
209 tcf_idr_release(*a, bind); in tcf_vlan_init()
218 &act_vlan_ops, bind, flags); in tcf_vlan_init()
226 tcf_idr_release(*a, bind); in tcf_vlan_init()
[all …]
H A Dact_gact.c59 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_gact_init() local
105 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_gact_init()
108 &act_gact_ops, bind, flags); in tcf_gact_init()
115 if (bind)/* dont override defaults */ in tcf_gact_init()
118 tcf_idr_release(*a, bind); in tcf_gact_init()
150 tcf_idr_release(*a, bind); in tcf_gact_init()
191 int bind, int ref) in tcf_gact_dump() argument
198 .bindcnt = atomic_read(&gact->tcf_bindcnt) - bind, in tcf_gact_dump()
245 u32 *index_inc, bool bind, in tcf_gact_offload_act_setup() argument
248 if (bind) { in tcf_gact_offload_act_setup()
H A Dact_sample.c42 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_sample_init() local
64 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_sample_init()
68 if (exists && bind) in tcf_sample_init()
73 &act_sample_ops, bind, true, flags); in tcf_sample_init()
80 tcf_idr_release(*a, bind); in tcf_sample_init()
132 tcf_idr_release(*a, bind); in tcf_sample_init()
225 int bind, int ref) in tcf_sample_dump() argument
232 .bindcnt = atomic_read(&s->tcf_bindcnt) - bind, in tcf_sample_dump()
297 u32 *index_inc, bool bind, in tcf_sample_offload_act_setup() argument
300 if (bind) { in tcf_sample_offload_act_setup()
H A Dact_skbmod.c112 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_skbmod_init() local
158 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbmod_init()
162 if (exists && bind) in tcf_skbmod_init()
167 tcf_idr_release(*a, bind); in tcf_skbmod_init()
175 &act_skbmod_ops, bind, true, flags); in tcf_skbmod_init()
183 tcf_idr_release(*a, bind); in tcf_skbmod_init()
227 tcf_idr_release(*a, bind); in tcf_skbmod_init()
242 int bind, int ref) in tcf_skbmod_dump() argument
253 opt.bindcnt = atomic_read(&d->tcf_bindcnt) - bind; in tcf_skbmod_dump()
H A Dact_skbedit.c120 bool bind = act_flags & TCA_ACT_FLAGS_BIND; in tcf_skbedit_init()
208 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbedit_init()
212 if (exists && bind) in tcf_skbedit_init()
217 tcf_idr_release(*a, bind); in tcf_skbedit_init()
225 &act_skbedit_ops, bind, true, act_flags); in tcf_skbedit_init()
236 tcf_idr_release(*a, bind); in tcf_skbedit_init()
282 tcf_idr_release(*a, bind); in tcf_skbedit_init()
287 int bind, int ref) in tcf_skbedit_dump()
295 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_skbedit_dump()
370 u32 *index_inc, bool bind, in tcf_skbedit_offload_act_setup()
121 bool bind = act_flags & TCA_ACT_FLAGS_BIND; tcf_skbedit_init() local
288 tcf_skbedit_dump(struct sk_buff * skb,struct tc_action * a,int bind,int ref) tcf_skbedit_dump() argument
371 tcf_skbedit_offload_act_setup(struct tc_action * act,void * entry_data,u32 * index_inc,bool bind,struct netlink_ext_ack * extack) tcf_skbedit_offload_act_setup() argument
[all...]
H A Dact_connmark.c106 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_connmark_init() local
130 ret = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_connmark_init()
133 &act_connmark_ops, bind, flags); in tcf_connmark_init()
148 if (bind) { in tcf_connmark_init()
186 tcf_idr_release(*a, bind); in tcf_connmark_init()
193 int bind, int ref) in tcf_connmark_dump() argument
205 opt.bindcnt = atomic_read(&ci->tcf_bindcnt) - bind; in tcf_connmark_dump()
H A Dact_mpls.c164 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_mpls_init() local
191 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_mpls_init()
195 if (exists && bind) in tcf_mpls_init()
199 ret = tcf_idr_create(tn, index, est, a, &act_mpls_ops, bind, in tcf_mpls_init()
208 tcf_idr_release(*a, bind); in tcf_mpls_init()
314 tcf_idr_release(*a, bind); in tcf_mpls_init()
329 int bind, int ref) in tcf_mpls_dump() argument
337 .bindcnt = atomic_read(&m->tcf_bindcnt) - bind, in tcf_mpls_dump()
383 u32 *index_inc, bool bind, in tcf_mpls_offload_act_setup() argument
386 if (bind) { in tcf_mpls_offload_act_setup()
[all...]
H A Dact_nat.c40 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_nat_init() local
61 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_nat_init()
64 bind, flags); in tcf_nat_init()
71 if (bind) in tcf_nat_init()
74 tcf_idr_release(*a, bind); in tcf_nat_init()
111 tcf_idr_release(*a, bind); in tcf_nat_init()
268 int bind, int ref) in tcf_nat_dump() argument
276 .bindcnt = atomic_read(&p->tcf_bindcnt) - bind, in tcf_nat_dump()
H A Dact_mirred.c110 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_mirred_init() local
134 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_mirred_init()
138 if (exists && bind) in tcf_mirred_init()
145 tcf_idr_release(*a, bind); in tcf_mirred_init()
160 tcf_idr_release(*a, bind); in tcf_mirred_init()
175 &act_mirred_ops, bind, flags); in tcf_mirred_init()
182 tcf_idr_release(*a, bind); in tcf_mirred_init()
232 tcf_idr_release(*a, bind); in tcf_mirred_init()
512 static int tcf_mirred_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_mirred_dump() argument
520 .bindcnt = atomic_read(&m->tcf_bindcnt) - bind, in tcf_mirred_dump()
[all …]
H A Dact_ctinfo.c161 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_ctinfo_init() local
213 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_ctinfo_init()
216 &act_ctinfo_ops, bind, flags); in tcf_ctinfo_init()
223 if (bind) /* don't override defaults */ in tcf_ctinfo_init()
226 tcf_idr_release(*a, bind); in tcf_ctinfo_init()
279 tcf_idr_release(*a, bind); in tcf_ctinfo_init()
284 int bind, int ref) in tcf_ctinfo_dump() argument
292 .bindcnt = atomic_read(&ci->tcf_bindcnt) - bind, in tcf_ctinfo_dump()
H A Dact_bpf.c137 int bind, int ref) in tcf_bpf_dump() argument
144 .bindcnt = atomic_read(&prog->tcf_bindcnt) - bind, in tcf_bpf_dump()
283 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_bpf_init() local
306 ret = tcf_idr_check_alloc(tn, &index, act, bind); in tcf_bpf_init()
309 &act_bpf_ops, bind, true, flags); in tcf_bpf_init()
318 if (bind) in tcf_bpf_init()
322 tcf_idr_release(*act, bind); in tcf_bpf_init()
380 tcf_idr_release(*act, bind); in tcf_bpf_init()
/linux/tools/testing/selftests/media_tests/
H A Dmedia_dev_allocator.sh39 echo $MDEV > $MDRIVER/bind;
45 echo $ADEV > $ADRIVER/bind;
65 echo $MDEV > $MDRIVER/bind;
79 echo $ADEV > $ADRIVER/bind;
/linux/tools/testing/selftests/net/
H A Dtcp_port_share.c147 ASSERT_EQ(bind(ln, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
156 ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
168 ASSERT_EQ(bind(pb, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
176 ASSERT_EQ(bind(c2, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
209 ASSERT_EQ(bind(ln, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
218 ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
229 ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
237 ASSERT_EQ(bind(pb, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
247 ASSERT_EQ(bind(c2, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); in TEST_F()
/linux/tools/testing/selftests/drivers/usb/usbip/
H A Dusbip_test.sh89 src/usbip bind -b $busid;
97 src/usbip bind -b $busid;
129 src/usbip bind -b $busid;
186 src/usbip bind -b $busid;
/linux/tools/testing/selftests/net/packetdrill/
H A Dtcp_rfc5961_rst-syn-recv.pkt12 +0 bind(3, ..., ...) = 0
24 +0 bind(3, ..., ...) = 0
39 +0 bind(3, ..., ...) = 0
53 +0 bind(3, ..., ...) = 0
/linux/Documentation/scsi/
H A DNinjaSCSI.rst94 bind "nsp_cs"
98 bind "nsp_cs"
103 bind "nsp_cs"
108 bind "nsp_cs"
111 bind "nsp_cs"
114 bind "nsp_cs"
117 bind "nsp_cs"
/linux/include/net/
H A Dact_api.h143 u32 *index_inc, bool bind,
197 int bind, bool cpustats, u32 flags);
200 const struct tc_action_ops *ops, int bind,
205 struct tc_action **a, int bind);
206 int tcf_idr_release(struct tc_action *a, bool bind);
213 int tcf_action_destroy(struct tc_action *actions[], int bind);
226 int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[], int bind,
/linux/Documentation/driver-api/
H A Dconsole.rst25 do_take_over_console() - load and bind driver to console layer
45 . .. bind name uevent
49 1. bind - this is a read/write file. It shows the status of the driver if
50 read, or acts to bind or unbind the driver to the virtual consoles
59 bind
67 commanded to bind or unbind
75 directly commanded to bind or unbind.
81 hand, will bind the driver to the consoles that are currently occupied by a
126 bind to) the console.
/linux/tools/testing/selftests/net/af_unix/
H A Dunix_listen.c114 err = bind(self->sk, (struct sockaddr *)&self->addr, self->addrlen); in TEST_F()
129 err = bind(self->sk, (struct sockaddr *)&self->addr, self->addrlen); in TEST_F()
164 err = bind(self->server, (struct sockaddr *)&self->srv_addr, in TEST_F()
175 err = bind(self->sk, (struct sockaddr *)&self->addr, self->addrlen); in TEST_F()
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-fsl-mc1 What: /sys/bus/fsl-mc/drivers/.../bind
6 the driver to attempt to bind to the device found at
12 # echo dpni.2 > /sys/bus/fsl-mc/drivers/fsl_dpaa2_eth/bind
/linux/tools/testing/selftests/landlock/
H A Dscoped_abstract_unix_test.c151 ASSERT_EQ(0, bind(stream_server, &self->stream_address.unix_addr, in TEST_F()
153 ASSERT_EQ(0, bind(dgram_server, &self->dgram_address.unix_addr, in TEST_F()
217 bind(stream_server, &self->stream_address.unix_addr, in TEST_F()
219 ASSERT_EQ(0, bind(dgram_server, &self->dgram_address.unix_addr, in TEST_F()
383 ASSERT_EQ(0, bind(dgram_server, &self->dgram_address.unix_addr, in TEST_F()
599 ASSERT_EQ(0, bind(stream_server_child, in TEST_F()
602 ASSERT_EQ(0, bind(dgram_server_child, in TEST_F()
625 ASSERT_EQ(0, bind(stream_server_parent, in TEST_F()
628 ASSERT_EQ(0, bind(dgram_server_parent, in TEST_F()
732 ASSERT_EQ(0, bind(stream_server, in TEST_F()
[all …]

12345678910>>...24