Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 164) sorted by relevance

1234567

/net/bridge/
Dbr_vlan.c38 const struct net_bridge_vlan *v) in __vlan_add_pvid() argument
40 if (vg->pvid == v->vid) in __vlan_add_pvid()
44 br_vlan_set_pvid_state(vg, v->state); in __vlan_add_pvid()
45 vg->pvid = v->vid; in __vlan_add_pvid()
61 static bool __vlan_flags_update(struct net_bridge_vlan *v, u16 flags, in __vlan_flags_update() argument
67 if (br_vlan_is_master(v)) in __vlan_flags_update()
68 vg = br_vlan_group(v->br); in __vlan_flags_update()
70 vg = nbp_vlan_group(v->port); in __vlan_flags_update()
73 change = !!(flags & BRIDGE_VLAN_INFO_PVID) == !!(vg->pvid != v->vid) || in __vlan_flags_update()
74 ((flags ^ v->flags) & BRIDGE_VLAN_INFO_UNTAGGED); in __vlan_flags_update()
[all …]
Dbr_vlan_options.c12 static bool __vlan_tun_put(struct sk_buff *skb, const struct net_bridge_vlan *v) in __vlan_tun_put() argument
14 __be32 tid = tunnel_id_to_key32(v->tinfo.tunnel_id); in __vlan_tun_put()
17 if (!v->tinfo.tunnel_dst) in __vlan_tun_put()
51 bool br_vlan_opts_fill(struct sk_buff *skb, const struct net_bridge_vlan *v, in br_vlan_opts_fill() argument
54 if (nla_put_u8(skb, BRIDGE_VLANDB_ENTRY_STATE, br_vlan_get_state(v)) || in br_vlan_opts_fill()
55 !__vlan_tun_put(skb, v) || in br_vlan_opts_fill()
57 !!(v->priv_flags & BR_VLFLAG_NEIGH_SUPPRESS_ENABLED))) in br_vlan_opts_fill()
62 br_vlan_multicast_router(v))) in br_vlan_opts_fill()
64 if (p && !br_multicast_port_ctx_vlan_disabled(&v->port_mcast_ctx) && in br_vlan_opts_fill()
66 br_multicast_ngroups_get(&v->port_mcast_ctx)) || in br_vlan_opts_fill()
[all …]
Dbr_mst.c28 const struct net_bridge_vlan *v; in br_mst_get_info() local
42 list_for_each_entry(v, &vg->vlan_list, vlist) { in br_mst_get_info()
43 if (v->msti == msti) in br_mst_get_info()
44 __set_bit(v->vid, vids); in br_mst_get_info()
55 const struct net_bridge_vlan *v; in br_mst_get_state() local
65 list_for_each_entry(v, &vg->vlan_list, vlist) { in br_mst_get_state()
66 if (v->brvlan->msti == msti) { in br_mst_get_state()
67 *state = v->state; in br_mst_get_state()
77 struct net_bridge_vlan *v, in br_mst_vlan_set_state() argument
80 if (br_vlan_get_state(v) == state) in br_mst_vlan_set_state()
[all …]
Dbr_netlink_tunnel.c40 struct net_bridge_vlan *v, *vtbegin = NULL, *vtend = NULL; in __get_num_vlan_tunnel_infos() local
44 list_for_each_entry_rcu(v, &vg->vlan_list, vlist) { in __get_num_vlan_tunnel_infos()
46 if (!br_vlan_should_use(v) || !v->tinfo.tunnel_id) in __get_num_vlan_tunnel_infos()
51 } else if ((v->vid - vtend->vid) == 1 && in __get_num_vlan_tunnel_infos()
52 vlan_tunid_inrange(v, vtend)) { in __get_num_vlan_tunnel_infos()
53 vtend = v; in __get_num_vlan_tunnel_infos()
62 vtbegin = v; in __get_num_vlan_tunnel_infos()
63 vtend = v; in __get_num_vlan_tunnel_infos()
153 struct net_bridge_vlan *v; in br_fill_vlan_tunnel_info() local
157 list_for_each_entry_rcu(v, &vg->vlan_list, vlist) { in br_fill_vlan_tunnel_info()
[all …]
Dbr_netlink.c26 struct net_bridge_vlan *v; in __get_num_vlan_infos() local
36 list_for_each_entry_rcu(v, &vg->vlan_list, vlist) { in __get_num_vlan_infos()
39 if (!br_vlan_should_use(v)) in __get_num_vlan_infos()
41 if (v->vid == pvid) in __get_num_vlan_infos()
44 if (v->flags & BRIDGE_VLAN_INFO_UNTAGGED) in __get_num_vlan_infos()
49 } else if ((v->vid - vid_range_end) == 1 && in __get_num_vlan_infos()
51 vid_range_end = v->vid; in __get_num_vlan_infos()
60 vid_range_start = v->vid; in __get_num_vlan_infos()
61 vid_range_end = v->vid; in __get_num_vlan_infos()
365 struct net_bridge_vlan *v; in br_fill_ifvlaninfo_compressed() local
[all …]
/net/x25/
Dx25_proc.c32 static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_route_next() argument
34 return seq_list_next(v, &x25_route_list, pos); in x25_seq_route_next()
37 static void x25_seq_route_stop(struct seq_file *seq, void *v) in x25_seq_route_stop() argument
43 static int x25_seq_route_show(struct seq_file *seq, void *v) in x25_seq_route_show() argument
45 struct x25_route *rt = list_entry(v, struct x25_route, node); in x25_seq_route_show()
47 if (v == &x25_route_list) { in x25_seq_route_show()
52 rt = v; in x25_seq_route_show()
67 static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_socket_next() argument
69 return seq_hlist_next(v, &x25_list, pos); in x25_seq_socket_next()
72 static void x25_seq_socket_stop(struct seq_file *seq, void *v) in x25_seq_socket_stop() argument
[all …]
/net/appletalk/
Datalk_proc.c36 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_interface_next() argument
41 if (v == SEQ_START_TOKEN) { in atalk_seq_interface_next()
47 i = v; in atalk_seq_interface_next()
53 static void atalk_seq_interface_stop(struct seq_file *seq, void *v) in atalk_seq_interface_stop() argument
59 static int atalk_seq_interface_show(struct seq_file *seq, void *v) in atalk_seq_interface_show() argument
63 if (v == SEQ_START_TOKEN) { in atalk_seq_interface_show()
69 iface = v; in atalk_seq_interface_show()
97 static void *atalk_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_route_next() argument
102 if (v == SEQ_START_TOKEN) { in atalk_seq_route_next()
108 r = v; in atalk_seq_route_next()
[all …]
/net/dsa/
Dtag_8021q.c133 struct dsa_tag_8021q_vlan *v; in dsa_tag_8021q_vlan_find() local
135 list_for_each_entry(v, &ctx->vlans, list) in dsa_tag_8021q_vlan_find()
136 if (v->vid == vid && v->port == port) in dsa_tag_8021q_vlan_find()
137 return v; in dsa_tag_8021q_vlan_find()
147 struct dsa_tag_8021q_vlan *v; in dsa_port_do_tag_8021q_vlan_add() local
155 v = dsa_tag_8021q_vlan_find(ctx, port, vid); in dsa_port_do_tag_8021q_vlan_add()
156 if (v) { in dsa_port_do_tag_8021q_vlan_add()
157 refcount_inc(&v->refcount); in dsa_port_do_tag_8021q_vlan_add()
161 v = kzalloc(sizeof(*v), GFP_KERNEL); in dsa_port_do_tag_8021q_vlan_add()
162 if (!v) in dsa_port_do_tag_8021q_vlan_add()
[all …]
Dswitch.c679 struct dsa_vlan *v; in dsa_vlan_find() local
681 list_for_each_entry(v, vlan_list, list) in dsa_vlan_find()
682 if (v->vid == vlan->vid) in dsa_vlan_find()
683 return v; in dsa_vlan_find()
694 struct dsa_vlan *v; in dsa_port_do_vlan_add() local
715 v = dsa_vlan_find(&dp->vlans, vlan); in dsa_port_do_vlan_add()
716 if (v) { in dsa_port_do_vlan_add()
717 refcount_inc(&v->refcount); in dsa_port_do_vlan_add()
718 trace_dsa_vlan_add_bump(dp, vlan, &v->refcount); in dsa_port_do_vlan_add()
722 v = kzalloc(sizeof(*v), GFP_KERNEL); in dsa_port_do_vlan_add()
[all …]
/net/sched/
Dact_vlan.c26 struct tcf_vlan *v = to_vlan(a); in tcf_vlan_act() local
32 tcf_lastuse_update(&v->tcf_tm); in tcf_vlan_act()
33 tcf_action_update_bstats(&v->common, skb); in tcf_vlan_act()
41 action = READ_ONCE(v->tcf_action); in tcf_vlan_act()
43 p = rcu_dereference_bh(v->vlan_p); in tcf_vlan_act()
102 tcf_action_inc_drop_qstats(&v->common); in tcf_vlan_act()
128 struct tcf_vlan *v; in tcf_vlan_init() local
236 v = to_vlan(*a); in tcf_vlan_init()
257 spin_lock_bh(&v->tcf_lock); in tcf_vlan_init()
259 p = rcu_replace_pointer(v->vlan_p, p, lockdep_is_held(&v->tcf_lock)); in tcf_vlan_init()
[all …]
Dem_meta.c89 static inline int meta_id(struct meta_value *v) in meta_id() argument
91 return TCF_META_ID(v->hdr.kind); in meta_id()
94 static inline int meta_type(struct meta_value *v) in meta_type() argument
96 return TCF_META_TYPE(v->hdr.kind); in meta_type()
100 struct tcf_pkt_info *info, struct meta_value *v, \
706 static void meta_var_destroy(struct meta_value *v) in meta_var_destroy() argument
708 kfree((void *) v->val); in meta_var_destroy()
711 static void meta_var_apply_extras(struct meta_value *v, in meta_var_apply_extras() argument
714 int shift = v->hdr.shift; in meta_var_apply_extras()
720 static int meta_var_dump(struct sk_buff *skb, struct meta_value *v, int tlv) in meta_var_dump() argument
[all …]
/net/rxrpc/
Dproc.c36 static void *rxrpc_call_seq_next(struct seq_file *seq, void *v, loff_t *pos) in rxrpc_call_seq_next() argument
40 return seq_list_next_rcu(v, &rxnet->calls, pos); in rxrpc_call_seq_next()
43 static void rxrpc_call_seq_stop(struct seq_file *seq, void *v) in rxrpc_call_seq_stop() argument
49 static int rxrpc_call_seq_show(struct seq_file *seq, void *v) in rxrpc_call_seq_show() argument
59 if (v == &rxnet->calls) { in rxrpc_call_seq_show()
68 call = list_entry(v, struct rxrpc_call, link); in rxrpc_call_seq_show()
126 static void *rxrpc_connection_seq_next(struct seq_file *seq, void *v, in rxrpc_connection_seq_next() argument
131 return seq_list_next(v, &rxnet->conn_proc_list, pos); in rxrpc_connection_seq_next()
134 static void rxrpc_connection_seq_stop(struct seq_file *seq, void *v) in rxrpc_connection_seq_stop() argument
142 static int rxrpc_connection_seq_show(struct seq_file *seq, void *v) in rxrpc_connection_seq_show() argument
[all …]
/net/netfilter/
Dnf_conntrack_h323_asn1.c152 unsigned int v; in get_len() local
154 v = *bs->cur++; in get_len()
156 if (v & 0x80) { in get_len()
157 v &= 0x3f; in get_len()
158 v <<= 8; in get_len()
159 v += *bs->cur++; in get_len()
162 return v; in get_len()
190 unsigned int v, l; in get_bits() local
192 v = (*bs->cur) & (0xffU >> bs->bit); in get_bits()
196 v >>= 8 - l; in get_bits()
[all …]
Dnf_flow_table_procfs.c24 static void *nf_flow_table_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos) in nf_flow_table_cpu_seq_next() argument
39 static void nf_flow_table_cpu_seq_stop(struct seq_file *seq, void *v) in nf_flow_table_cpu_seq_stop() argument
43 static int nf_flow_table_cpu_seq_show(struct seq_file *seq, void *v) in nf_flow_table_cpu_seq_show() argument
45 const struct nf_flow_table_stat *st = v; in nf_flow_table_cpu_seq_show()
47 if (v == SEQ_START_TOKEN) { in nf_flow_table_cpu_seq_show()
/net/core/
Dnet-procfs.c65 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in dev_seq_next() argument
71 static void dev_seq_stop(struct seq_file *seq, void *v) in dev_seq_stop() argument
105 static int dev_seq_show(struct seq_file *seq, void *v) in dev_seq_show() argument
107 if (v == SEQ_START_TOKEN) in dev_seq_show()
114 dev_seq_printf_stats(seq, v); in dev_seq_show()
146 static void *softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) in softnet_seq_next() argument
152 static void softnet_seq_stop(struct seq_file *seq, void *v) in softnet_seq_stop() argument
156 static int softnet_seq_show(struct seq_file *seq, void *v) in softnet_seq_show() argument
158 struct softnet_data *sd = v; in softnet_seq_show()
243 static void *ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ptype_seq_next() argument
[all …]
Dsock.c1622 } v; in sk_getsockopt() local
1632 memset(&v, 0, sizeof(v)); in sk_getsockopt()
1636 v.val = sock_flag(sk, SOCK_DBG); in sk_getsockopt()
1640 v.val = sock_flag(sk, SOCK_LOCALROUTE); in sk_getsockopt()
1644 v.val = sock_flag(sk, SOCK_BROADCAST); in sk_getsockopt()
1648 v.val = READ_ONCE(sk->sk_sndbuf); in sk_getsockopt()
1652 v.val = READ_ONCE(sk->sk_rcvbuf); in sk_getsockopt()
1656 v.val = sk->sk_reuse; in sk_getsockopt()
1660 v.val = sk->sk_reuseport; in sk_getsockopt()
1664 v.val = sock_flag(sk, SOCK_KEEPOPEN); in sk_getsockopt()
[all …]
/net/sctp/
Dproc.c59 static int sctp_snmp_seq_show(struct seq_file *seq, void *v) in sctp_snmp_seq_show() argument
146 static void sctp_eps_seq_stop(struct seq_file *seq, void *v) in sctp_eps_seq_stop() argument
151 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_eps_seq_next() argument
161 static int sctp_eps_seq_show(struct seq_file *seq, void *v) in sctp_eps_seq_show() argument
166 int hash = *(loff_t *)v; in sctp_eps_seq_show()
212 static void sctp_transport_seq_stop(struct seq_file *seq, void *v) in sctp_transport_seq_stop() argument
216 if (v && v != SEQ_START_TOKEN) { in sctp_transport_seq_stop()
217 struct sctp_transport *transport = v; in sctp_transport_seq_stop()
225 static void *sctp_transport_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_transport_seq_next() argument
229 if (v && v != SEQ_START_TOKEN) { in sctp_transport_seq_next()
[all …]
/net/llc/
Dllc_proc.c80 static void *llc_seq_next(struct seq_file *seq, void *v, loff_t *pos) in llc_seq_next() argument
87 if (v == SEQ_START_TOKEN) { in llc_seq_next()
91 sk = v; in llc_seq_next()
114 static void llc_seq_stop(struct seq_file *seq, void *v) in llc_seq_stop() argument
116 if (v && v != SEQ_START_TOKEN) { in llc_seq_stop()
117 struct sock *sk = v; in llc_seq_stop()
126 static int llc_seq_socket_show(struct seq_file *seq, void *v) in llc_seq_socket_show() argument
131 if (v == SEQ_START_TOKEN) { in llc_seq_socket_show()
136 sk = v; in llc_seq_socket_show()
175 static int llc_seq_core_show(struct seq_file *seq, void *v) in llc_seq_core_show() argument
[all …]
/net/ipv4/
Dipmr_base.c9 void vif_device_init(struct vif_device *v, in vif_device_init() argument
16 RCU_INIT_POINTER(v->dev, NULL); in vif_device_init()
17 v->bytes_in = 0; in vif_device_init()
18 v->bytes_out = 0; in vif_device_init()
19 v->pkt_in = 0; in vif_device_init()
20 v->pkt_out = 0; in vif_device_init()
21 v->rate_limit = rate_limit; in vif_device_init()
22 v->flags = flags; in vif_device_init()
23 v->threshold = threshold; in vif_device_init()
24 if (v->flags & get_iflink_mask) in vif_device_init()
[all …]
/net/8021q/
Dvlanproc.c36 static int vlan_seq_show(struct seq_file *seq, void *v);
38 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos);
40 static int vlandev_seq_show(struct seq_file *seq, void *v);
189 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos) in vlan_seq_next() argument
196 dev = v; in vlan_seq_next()
197 if (v == SEQ_START_TOKEN) in vlan_seq_next()
210 static void vlan_seq_stop(struct seq_file *seq, void *v) in vlan_seq_stop() argument
216 static int vlan_seq_show(struct seq_file *seq, void *v) in vlan_seq_show() argument
221 if (v == SEQ_START_TOKEN) { in vlan_seq_show()
232 const struct net_device *vlandev = v; in vlan_seq_show()
/net/wireless/
Dwext-proc.c75 static int wireless_dev_seq_show(struct seq_file *seq, void *v) in wireless_dev_seq_show() argument
79 if (v == SEQ_START_TOKEN) in wireless_dev_seq_show()
86 wireless_seq_printf_stats(seq, v); in wireless_dev_seq_show()
107 static void *wireless_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in wireless_dev_seq_next() argument
113 return v == SEQ_START_TOKEN ? in wireless_dev_seq_next()
114 first_net_device(net) : next_net_device(v); in wireless_dev_seq_next()
117 static void wireless_dev_seq_stop(struct seq_file *seq, void *v) in wireless_dev_seq_stop() argument
/net/atm/
Dproc.c128 static void vcc_seq_stop(struct seq_file *seq, void *v) in vcc_seq_stop() argument
134 static void *vcc_seq_next(struct seq_file *seq, void *v, loff_t *pos) in vcc_seq_next() argument
136 v = vcc_walk(seq, 1); in vcc_seq_next()
138 return v; in vcc_seq_next()
224 static int atm_dev_seq_show(struct seq_file *seq, void *v) in atm_dev_seq_show() argument
230 if (v == &atm_devs) in atm_dev_seq_show()
233 struct atm_dev *dev = list_entry(v, struct atm_dev, dev_list); in atm_dev_seq_show()
247 static int pvc_seq_show(struct seq_file *seq, void *v) in pvc_seq_show() argument
252 if (v == SEQ_START_TOKEN) in pvc_seq_show()
270 static int vcc_seq_show(struct seq_file *seq, void *v) in vcc_seq_show() argument
[all …]
/net/l2tp/
Dl2tp_debugfs.c95 static void *l2tp_dfs_seq_next(struct seq_file *m, void *v, loff_t *pos) in l2tp_dfs_seq_next() argument
101 static void l2tp_dfs_seq_stop(struct seq_file *p, void *v) in l2tp_dfs_seq_stop() argument
103 struct l2tp_dfs_seq_data *pd = v; in l2tp_dfs_seq_stop()
121 static void l2tp_dfs_seq_tunnel_show(struct seq_file *m, void *v) in l2tp_dfs_seq_tunnel_show() argument
123 struct l2tp_tunnel *tunnel = v; in l2tp_dfs_seq_tunnel_show()
177 static void l2tp_dfs_seq_session_show(struct seq_file *m, void *v) in l2tp_dfs_seq_session_show() argument
179 struct l2tp_session *session = v; in l2tp_dfs_seq_session_show()
231 static int l2tp_dfs_seq_show(struct seq_file *m, void *v) in l2tp_dfs_seq_show() argument
233 struct l2tp_dfs_seq_data *pd = v; in l2tp_dfs_seq_show()
236 if (v == SEQ_START_TOKEN) { in l2tp_dfs_seq_show()
/net/ax25/
Dax25_uid.c153 static void *ax25_uid_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ax25_uid_seq_next() argument
155 return seq_hlist_next(v, &ax25_uid_list, pos); in ax25_uid_seq_next()
158 static void ax25_uid_seq_stop(struct seq_file *seq, void *v) in ax25_uid_seq_stop() argument
164 static int ax25_uid_seq_show(struct seq_file *seq, void *v) in ax25_uid_seq_show() argument
168 if (v == SEQ_START_TOKEN) in ax25_uid_seq_show()
173 pt = hlist_entry(v, struct ax25_uid_assoc, uid_node); in ax25_uid_seq_show()
/net/ipv6/
Dip6mr.c424 static void ip6mr_vif_seq_stop(struct seq_file *seq, void *v) in ip6mr_vif_seq_stop() argument
430 static int ip6mr_vif_seq_show(struct seq_file *seq, void *v) in ip6mr_vif_seq_show() argument
435 if (v == SEQ_START_TOKEN) { in ip6mr_vif_seq_show()
439 const struct vif_device *vif = v; in ip6mr_vif_seq_show()
475 static int ipmr_mfc_seq_show(struct seq_file *seq, void *v) in ipmr_mfc_seq_show() argument
479 if (v == SEQ_START_TOKEN) { in ipmr_mfc_seq_show()
485 const struct mfc6_cache *mfc = v; in ipmr_mfc_seq_show()
702 struct vif_device *v; in mif6_delete() local
709 v = &mrt->vif_table[vifi]; in mif6_delete()
711 dev = rtnl_dereference(v->dev); in mif6_delete()
[all …]

1234567