| /linux/drivers/net/ovpn/ |
| H A D | bind.c | 25 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()
|
| H A D | peer.c | 113 RCU_INIT_POINTER(peer->bind, NULL); in ovpn_peer_new() 147 struct ovpn_bind *bind; in ovpn_peer_reset_sockaddr() local 153 bind = ovpn_bind_from_sockaddr(ss); in ovpn_peer_reset_sockaddr() 154 if (IS_ERR(bind)) in ovpn_peer_reset_sockaddr() 155 return PTR_ERR(bind); in ovpn_peer_reset_sockaddr() 166 kfree(bind); in ovpn_peer_reset_sockaddr() 170 memcpy(&bind->local, local_ip, ip_len); in ovpn_peer_reset_sockaddr() 174 ovpn_bind_reset(peer, bind); in ovpn_peer_reset_sockaddr() 193 const struct ovpn_bind *bind); 206 struct ovpn_bind *bind; in ovpn_peer_endpoints_update() local [all …]
|
| /linux/net/sched/ |
| H A D | act_vlan.c | 120 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 D | act_gact.c | 59 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 D | act_sample.c | 42 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 D | act_skbmod.c | 108 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_skbmod_init() local 154 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbmod_init() 158 if (exists && bind) in tcf_skbmod_init() 163 tcf_idr_release(*a, bind); in tcf_skbmod_init() 171 &act_skbmod_ops, bind, true, flags); in tcf_skbmod_init() 179 tcf_idr_release(*a, bind); in tcf_skbmod_init() 223 tcf_idr_release(*a, bind); in tcf_skbmod_init() 238 int bind, int ref) in tcf_skbmod_dump() argument 249 opt.bindcnt = atomic_read(&d->tcf_bindcnt) - bind; in tcf_skbmod_dump()
|
| H A D | act_skbedit.c | 121 bool bind = act_flags & TCA_ACT_FLAGS_BIND; in tcf_skbedit_init() local 209 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbedit_init() 213 if (exists && bind) in tcf_skbedit_init() 218 tcf_idr_release(*a, bind); in tcf_skbedit_init() 226 &act_skbedit_ops, bind, true, act_flags); in tcf_skbedit_init() 237 tcf_idr_release(*a, bind); in tcf_skbedit_init() 283 tcf_idr_release(*a, bind); in tcf_skbedit_init() 288 int bind, int ref) in tcf_skbedit_dump() argument 296 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_skbedit_dump() 371 u32 *index_inc, bool bind, in tcf_skbedit_offload_act_setup() argument [all...] |
| H A D | act_connmark.c | 106 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 D | act_mpls.c | 164 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 D | act_nat.c | 40 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 D | act_mirred.c | 110 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 D | act_ctinfo.c | 161 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 D | act_bpf.c | 137 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/drivers/xen/ |
| H A D | evtchn.c | 447 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/tools/testing/selftests/media_tests/ |
| H A D | media_dev_allocator.sh | 39 echo $MDEV > $MDRIVER/bind; 45 echo $ADEV > $ADRIVER/bind; 65 echo $MDEV > $MDRIVER/bind; 79 echo $ADEV > $ADRIVER/bind;
|
| /linux/tools/testing/selftests/drivers/usb/usbip/ |
| H A D | usbip_test.sh | 89 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/ |
| H A D | tcp_port_share.c | 147 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/net/packetdrill/ |
| H A D | tcp_rfc5961_rst-syn-recv.pkt | 12 +0 bind(3, ..., ...) = 0 24 +0 bind(3, ..., ...) = 0 39 +0 bind(3, ..., ...) = 0 53 +0 bind(3, ..., ...) = 0
|
| /linux/Documentation/scsi/ |
| H A D | NinjaSCSI.rst | 94 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/tools/testing/selftests/landlock/ |
| H A D | scoped_abstract_unix_test.c | 151 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 FIXTURE() 599 ASSERT_EQ(0, bind(stream_server_child, 602 ASSERT_EQ(0, bind(dgram_server_child, in FIXTURE_VARIANT_ADD() 625 ASSERT_EQ(0, bind(stream_server_parent, in FIXTURE_SETUP() 628 ASSERT_EQ(0, bind(dgram_server_parent, in FIXTURE_SETUP() 732 ASSERT_EQ(0, bind(stream_serve in TEST_F() [all...] |
| /linux/include/net/ |
| H A D | act_api.h | 143 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 D | console.rst | 25 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/Documentation/ABI/testing/ |
| H A D | sysfs-bus-fsl-mc | 1 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/net/af_unix/ |
| H A D | unix_listen.c | 114 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/gpu/ |
| H A D | implementation_guidelines.rst | 9 drm-vm-bind-async 10 drm-vm-bind-locking
|