Home
last modified time | relevance | path

Searched refs:bind (Results 1 - 25 of 1073) sorted by relevance

12345678910>>...43

/kernel/linux/linux-6.6/drivers/xen/
H A Devtchn.c62 struct mutex bind_mutex; /* serialize bind/unbind operations */
386 * serialized bind operations.) in evtchn_bind_to_user()
414 /* bind failed, should close the port now */ in evtchn_bind_to_user()
442 /* Prevent bind from racing with unbind */ in evtchn_ioctl()
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, uar in evtchn_ioctl()
498 struct ioctl_evtchn_bind_unbound_port bind; evtchn_ioctl() local
546 struct ioctl_evtchn_bind bind; evtchn_ioctl() local
[all...]
/kernel/linux/linux-5.10/net/sched/
H A Dact_ipt.c97 const struct tc_action_ops *ops, int ovr, int bind, in __tcf_ipt_init()
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()
199 tcf_idr_release(*a, bind); in __tcf_ipt_init()
205 int bind, boo in tcf_ipt_init()
95 __tcf_ipt_init(struct net *net, unsigned int id, struct nlattr *nla, struct nlattr *est, struct tc_action **a, const struct tc_action_ops *ops, int ovr, int bind, struct tcf_proto *tp, u32 flags) __tcf_ipt_init() argument
203 tcf_ipt_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action **a, int ovr, int bind, bool rtnl_held, struct tcf_proto *tp, u32 flags, struct netlink_ext_ack *extack) tcf_ipt_init() argument
212 tcf_xt_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action **a, int ovr, int bind, bool unlocked, struct tcf_proto *tp, u32 flags, struct netlink_ext_ack *extack) tcf_xt_init() argument
273 tcf_ipt_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_ipt_dump() argument
[all...]
H A Dact_vlan.c117 int ovr, int bind, bool rtnl_held, in tcf_vlan_init()
148 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init()
152 if (exists && bind) in tcf_vlan_init()
162 tcf_idr_release(*a, bind); in tcf_vlan_init()
170 tcf_idr_release(*a, bind); in tcf_vlan_init()
184 tcf_idr_release(*a, bind); in tcf_vlan_init()
202 tcf_idr_release(*a, bind); in tcf_vlan_init()
210 tcf_idr_release(*a, bind); in tcf_vlan_init()
219 &act_vlan_ops, bind, flags); in tcf_vlan_init()
227 tcf_idr_release(*a, bind); in tcf_vlan_init()
115 tcf_vlan_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action **a, int ovr, int bind, bool rtnl_held, struct tcf_proto *tp, u32 flags, struct netlink_ext_ack *extack) tcf_vlan_init() argument
285 tcf_vlan_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_vlan_dump() argument
[all...]
H A Dact_skbmod.c85 int ovr, int bind, bool rtnl_held, in tcf_skbmod_init()
133 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbmod_init()
137 if (exists && bind) in tcf_skbmod_init()
142 tcf_idr_release(*a, bind); in tcf_skbmod_init()
150 &act_skbmod_ops, bind, true, flags); in tcf_skbmod_init()
158 tcf_idr_release(*a, bind); in tcf_skbmod_init()
202 tcf_idr_release(*a, bind); in tcf_skbmod_init()
217 int bind, int ref) in tcf_skbmod_dump()
225 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_skbmod_dump()
83 tcf_skbmod_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action **a, int ovr, int bind, bool rtnl_held, struct tcf_proto *tp, u32 flags, struct netlink_ext_ack *extack) tcf_skbmod_init() argument
216 tcf_skbmod_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_skbmod_dump() argument
H A Dact_sample.c38 int bind, bool rtnl_held, struct tcf_proto *tp, in tcf_sample_init()
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, flags); in tcf_sample_init()
79 tcf_idr_release(*a, bind); in tcf_sample_init()
131 tcf_idr_release(*a, bind); in tcf_sample_init()
205 int bind, int ref) in tcf_sample_dump()
212 .bindcnt = atomic_read(&s->tcf_bindcnt) - bind, in tcf_sample_dump()
36 tcf_sample_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action **a, int ovr, int bind, bool rtnl_held, struct tcf_proto *tp, u32 flags, struct netlink_ext_ack *extack) tcf_sample_init() argument
204 tcf_sample_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_sample_dump() argument
H A Dact_simple.c88 int ovr, int bind, bool rtnl_held, in tcf_simp_init()
114 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_simp_init()
118 if (exists && bind) in tcf_simp_init()
123 tcf_idr_release(*a, bind); in tcf_simp_init()
131 &act_simp_ops, bind, false, flags); in tcf_simp_init()
165 tcf_idr_release(*a, bind); in tcf_simp_init()
170 int bind, int ref) in tcf_simp_dump()
177 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_simp_dump()
86 tcf_simp_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action **a, int ovr, int bind, bool rtnl_held, struct tcf_proto *tp, u32 flags, struct netlink_ext_ack *extack) tcf_simp_init() argument
169 tcf_simp_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_simp_dump() argument
H A Dact_gact.c55 int ovr, int bind, bool rtnl_held, in tcf_gact_init()
100 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_gact_init()
103 &act_gact_ops, bind, flags); in tcf_gact_init()
110 if (bind)/* dont override defaults */ in tcf_gact_init()
113 tcf_idr_release(*a, bind); in tcf_gact_init()
145 tcf_idr_release(*a, bind); in tcf_gact_init()
185 int bind, int ref) in tcf_gact_dump()
192 .bindcnt = atomic_read(&gact->tcf_bindcnt) - bind, in tcf_gact_dump()
53 tcf_gact_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action **a, int ovr, int bind, bool rtnl_held, struct tcf_proto *tp, u32 flags, struct netlink_ext_ack *extack) tcf_gact_init() argument
184 tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_gact_dump() argument
H A Dact_connmark.c99 int ovr, int bind, bool rtnl_held, in tcf_connmark_init()
124 ret = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_connmark_init()
127 &act_connmark_ops, bind, false, flags); in tcf_connmark_init()
145 if (bind) in tcf_connmark_init()
148 tcf_idr_release(*a, bind); in tcf_connmark_init()
167 tcf_idr_release(*a, bind); in tcf_connmark_init()
172 int bind, int ref) in tcf_connmark_dump()
179 .bindcnt = atomic_read(&ci->tcf_bindcnt) - bind, in tcf_connmark_dump()
97 tcf_connmark_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action **a, int ovr, int bind, bool rtnl_held, struct tcf_proto *tp, u32 flags, struct netlink_ext_ack *extack) tcf_connmark_init() argument
171 tcf_connmark_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_connmark_dump() argument
/kernel/linux/linux-6.6/net/sched/
H A Dact_vlan.c122 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_vlan_init() local
149 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init()
153 if (exists && bind) in tcf_vlan_init()
163 tcf_idr_release(*a, bind); in tcf_vlan_init()
171 tcf_idr_release(*a, bind); in tcf_vlan_init()
185 tcf_idr_release(*a, bind); in tcf_vlan_init()
203 tcf_idr_release(*a, bind); in tcf_vlan_init()
211 tcf_idr_release(*a, bind); in tcf_vlan_init()
220 &act_vlan_ops, bind, flags); in tcf_vlan_init()
228 tcf_idr_release(*a, bind); in tcf_vlan_init()
286 tcf_vlan_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_vlan_dump() argument
355 tcf_vlan_offload_act_setup(struct tc_action *act, void *entry_data, u32 *index_inc, bool bind, struct netlink_ext_ack *extack) tcf_vlan_offload_act_setup() argument
[all...]
H A Dact_gact.c59 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_gact_init() local
100 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_gact_init()
103 &act_gact_ops, bind, flags); in tcf_gact_init()
110 if (bind)/* dont override defaults */ in tcf_gact_init()
113 tcf_idr_release(*a, bind); in tcf_gact_init()
145 tcf_idr_release(*a, bind); in tcf_gact_init()
186 int bind, int ref) in tcf_gact_dump()
193 .bindcnt = atomic_read(&gact->tcf_bindcnt) - bind, in tcf_gact_dump()
240 u32 *index_inc, bool bind, in tcf_gact_offload_act_setup()
243 if (bind) { in tcf_gact_offload_act_setup()
185 tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_gact_dump() argument
239 tcf_gact_offload_act_setup(struct tc_action *act, void *entry_data, u32 *index_inc, bool bind, struct netlink_ext_ack *extack) tcf_gact_offload_act_setup() argument
[all...]
H A Dact_skbmod.c109 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_skbmod_init() local
155 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbmod_init()
159 if (exists && bind) in tcf_skbmod_init()
164 tcf_idr_release(*a, bind); in tcf_skbmod_init()
172 &act_skbmod_ops, bind, true, flags); in tcf_skbmod_init()
180 tcf_idr_release(*a, bind); in tcf_skbmod_init()
224 tcf_idr_release(*a, bind); in tcf_skbmod_init()
239 int bind, int ref) in tcf_skbmod_dump()
247 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_skbmod_dump()
238 tcf_skbmod_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_skbmod_dump() argument
H A Dact_simple.c94 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_simp_init() local
116 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_simp_init()
120 if (exists && bind) in tcf_simp_init()
125 tcf_idr_release(*a, bind); in tcf_simp_init()
133 &act_simp_ops, bind, false, flags); in tcf_simp_init()
167 tcf_idr_release(*a, bind); in tcf_simp_init()
172 int bind, int ref) in tcf_simp_dump()
179 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_simp_dump()
171 tcf_simp_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_simp_dump() argument
H A Dact_mirred.c98 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_mirred_init() local
122 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_mirred_init()
126 if (exists && bind) in tcf_mirred_init()
137 tcf_idr_release(*a, bind); in tcf_mirred_init()
151 &act_mirred_ops, bind, flags); in tcf_mirred_init()
158 tcf_idr_release(*a, bind); in tcf_mirred_init()
205 tcf_idr_release(*a, bind); in tcf_mirred_init()
356 static int tcf_mirred_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_mirred_dump() argument
364 .bindcnt = atomic_read(&m->tcf_bindcnt) - bind, in tcf_mirred_dump()
462 u32 *index_inc, bool bind, in tcf_mirred_offload_act_setup()
461 tcf_mirred_offload_act_setup(struct tc_action *act, void *entry_data, u32 *index_inc, bool bind, struct netlink_ext_ack *extack) tcf_mirred_offload_act_setup() argument
[all...]
H A Dact_skbedit.c123 bool bind = act_flags & TCA_ACT_FLAGS_BIND; in tcf_skbedit_init() local
207 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbedit_init()
211 if (exists && bind) in tcf_skbedit_init()
216 tcf_idr_release(*a, bind); in tcf_skbedit_init()
224 &act_skbedit_ops, bind, true, act_flags); in tcf_skbedit_init()
235 tcf_idr_release(*a, bind); in tcf_skbedit_init()
280 tcf_idr_release(*a, bind); in tcf_skbedit_init()
285 int bind, int ref) in tcf_skbedit_dump()
293 .bindcnt = atomic_read(&d->tcf_bindcnt) - bind, in tcf_skbedit_dump()
369 u32 *index_inc, bool bind, in tcf_skbedit_offload_act_setup()
284 tcf_skbedit_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_skbedit_dump() argument
368 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_ipt.c101 bool bind = flags & TCA_ACT_FLAGS_BIND; in __tcf_ipt_init() local
122 err = tcf_idr_check_alloc(tn, &index, a, bind); in __tcf_ipt_init()
126 if (exists && bind) in __tcf_ipt_init()
131 tcf_idr_release(*a, bind); in __tcf_ipt_init()
140 tcf_idr_release(*a, bind); in __tcf_ipt_init()
147 ret = tcf_idr_create(tn, index, est, a, ops, bind, in __tcf_ipt_init()
155 if (bind)/* dont override defaults */ in __tcf_ipt_init()
159 tcf_idr_release(*a, bind); in __tcf_ipt_init()
212 tcf_idr_release(*a, bind); in __tcf_ipt_init()
329 static int tcf_ipt_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_ipt_dump() argument
[all...]
H A Dact_mpls.c166 bool bind = flags & TCA_ACT_FLAGS_BIND; in tcf_mpls_init() local
193 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_mpls_init()
197 if (exists && bind) in tcf_mpls_init()
201 ret = tcf_idr_create(tn, index, est, a, &act_mpls_ops, bind, in tcf_mpls_init()
210 tcf_idr_release(*a, bind); in tcf_mpls_init()
317 tcf_idr_release(*a, bind); in tcf_mpls_init()
332 int bind, int ref) in tcf_mpls_dump()
340 .bindcnt = atomic_read(&m->tcf_bindcnt) - bind, in tcf_mpls_dump()
386 u32 *index_inc, bool bind, in tcf_mpls_offload_act_setup()
389 if (bind) { in tcf_mpls_offload_act_setup()
331 tcf_mpls_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_mpls_dump() argument
385 tcf_mpls_offload_act_setup(struct tc_action *act, void *entry_data, u32 *index_inc, bool bind, struct netlink_ext_ack *extack) tcf_mpls_offload_act_setup() argument
[all...]
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()
213 int bind, int ref) in tcf_sample_dump()
220 .bindcnt = atomic_read(&s->tcf_bindcnt) - bind, in tcf_sample_dump()
285 u32 *index_inc, bool bind, in tcf_sample_offload_act_setup()
288 if (bind) { in tcf_sample_offload_act_setup()
212 tcf_sample_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) tcf_sample_dump() argument
284 tcf_sample_offload_act_setup(struct tc_action *act, void *entry_data, u32 *index_inc, bool bind, struct netlink_ext_ack *extack) tcf_sample_offload_act_setup() argument
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dact_api.h103 int bind, bool rtnl_held, struct tcf_proto *tp,
164 int bind, bool cpustats, u32 flags);
167 const struct tc_action_ops *ops, int bind,
172 struct tc_action **a, int bind);
173 int tcf_idr_release(struct tc_action *a, bool bind);
178 int tcf_action_destroy(struct tc_action *actions[], int bind);
182 struct nlattr *est, char *name, int ovr, int bind,
190 char *name, int ovr, int bind,
194 int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[], int bind,
/kernel/linux/linux-5.10/drivers/xen/
H A Devtchn.c62 struct mutex bind_mutex; /* serialize bind/unbind operations */
376 * serialized bind operations.) in evtchn_bind_to_user()
404 /* bind failed, should close the port now */ in evtchn_bind_to_user()
461 /* Prevent bind from racing with unbind */ in evtchn_ioctl()
466 struct ioctl_evtchn_bind_virq bind; in evtchn_ioctl() local
474 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
477 bind_virq.virq = bind.virq; in evtchn_ioctl()
491 struct ioctl_evtchn_bind_interdomain bind; in evtchn_ioctl() local
495 if (copy_from_user(&bind, uar in evtchn_ioctl()
519 struct ioctl_evtchn_bind_unbound_port bind; evtchn_ioctl() local
[all...]
/kernel/linux/linux-6.6/drivers/vfio/
H A Ddevice_cdev.c60 struct vfio_device_bind_iommufd bind; in vfio_df_ioctl_bind_iommufd() local
68 if (copy_from_user(&bind, arg, minsz)) in vfio_df_ioctl_bind_iommufd()
71 if (bind.argsz < minsz || bind.flags || bind.iommufd < 0) in vfio_df_ioctl_bind_iommufd()
89 df->iommufd = iommufd_ctx_from_fd(bind.iommufd); in vfio_df_ioctl_bind_iommufd()
/kernel/linux/linux-5.10/arch/x86/events/intel/
H A Dp4.c708 struct p4_event_bind *bind = NULL; in p4_config_get_bind() local
711 bind = &p4_event_bind_map[evnt]; in p4_config_get_bind()
713 return bind; in p4_config_get_bind()
718 struct p4_event_bind *bind; in p4_pmu_event_map() local
723 bind = p4_config_get_bind(config); in p4_pmu_event_map()
724 esel = P4_OPCODE_ESEL(bind->opcode); in p4_pmu_event_map()
824 struct p4_event_bind *bind; in p4_hw_config() local
841 bind = p4_config_get_bind(event->attr.config); in p4_hw_config()
842 if (!bind) { in p4_hw_config()
846 esel = P4_OPCODE_ESEL(bind in p4_hw_config()
935 struct p4_pebs_bind *bind; p4_pmu_enable_pebs() local
956 struct p4_event_bind *bind; p4_pmu_enable_event() local
1193 p4_next_cntr(int thread, unsigned long *used_mask, struct p4_event_bind *bind) p4_next_cntr() argument
1213 struct p4_event_bind *bind; p4_pmu_schedule_events() local
[all...]
/kernel/linux/linux-6.6/arch/x86/events/intel/
H A Dp4.c708 struct p4_event_bind *bind = NULL; in p4_config_get_bind() local
711 bind = &p4_event_bind_map[evnt]; in p4_config_get_bind()
713 return bind; in p4_config_get_bind()
718 struct p4_event_bind *bind; in p4_pmu_event_map() local
723 bind = p4_config_get_bind(config); in p4_pmu_event_map()
724 esel = P4_OPCODE_ESEL(bind->opcode); in p4_pmu_event_map()
824 struct p4_event_bind *bind; in p4_hw_config() local
841 bind = p4_config_get_bind(event->attr.config); in p4_hw_config()
842 if (!bind) { in p4_hw_config()
846 esel = P4_OPCODE_ESEL(bind in p4_hw_config()
935 struct p4_pebs_bind *bind; p4_pmu_enable_pebs() local
956 struct p4_event_bind *bind; __p4_pmu_enable_event() local
1226 p4_next_cntr(int thread, unsigned long *used_mask, struct p4_event_bind *bind) p4_next_cntr() argument
1246 struct p4_event_bind *bind; p4_pmu_schedule_events() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/usb/usbip/
H A Dusbip_test.sh88 echo "bind devices";
89 src/usbip bind -b $busid;
96 echo "bind devices - expect already bound messages"
97 src/usbip bind -b $busid;
128 echo "bind devices";
129 src/usbip bind -b $busid;
185 echo "Run bind without usbip_host - expect fail"
186 src/usbip bind -b $busid;
189 echo "Run lsusb - devices that failed to bind aren't bound to any driver"
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/usb/usbip/
H A Dusbip_test.sh88 echo "bind devices";
89 src/usbip bind -b $busid;
96 echo "bind devices - expect already bound messages"
97 src/usbip bind -b $busid;
128 echo "bind devices";
129 src/usbip bind -b $busid;
185 echo "Run bind without usbip_host - expect fail"
186 src/usbip bind -b $busid;
189 echo "Run lsusb - devices that failed to bind aren't bound to any driver"
/kernel/linux/linux-6.6/include/net/
H A Dact_api.h134 u32 *index_inc, bool bind,
189 int bind, bool cpustats, u32 flags);
192 const struct tc_action_ops *ops, int bind,
197 struct tc_action **a, int bind);
198 int tcf_idr_release(struct tc_action *a, bool bind);
203 int tcf_action_destroy(struct tc_action *actions[], int bind);
217 int tcf_action_dump(struct sk_buff *skb, struct tc_action *actions[], int bind,

Completed in 16 milliseconds

12345678910>>...43