Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 157) 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()
62 static bool __vlan_add_flags(struct net_bridge_vlan *v, u16 flags) in __vlan_add_flags() argument
65 u16 old_flags = v->flags; in __vlan_add_flags()
68 if (br_vlan_is_master(v)) in __vlan_add_flags()
69 vg = br_vlan_group(v->br); in __vlan_add_flags()
71 vg = nbp_vlan_group(v->port); in __vlan_add_flags()
74 ret = __vlan_add_pvid(vg, v); in __vlan_add_flags()
[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
53 if (nla_put_u8(skb, BRIDGE_VLANDB_ENTRY_STATE, br_vlan_get_state(v)) || in br_vlan_opts_fill()
54 !__vlan_tun_put(skb, v)) in br_vlan_opts_fill()
59 br_vlan_multicast_router(v))) in br_vlan_opts_fill()
78 struct net_bridge_vlan *v, in br_vlan_modify_state() argument
92 if (br_vlan_is_brentry(v)) in br_vlan_modify_state()
93 br = v->br; in br_vlan_modify_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()
344 struct net_bridge_vlan *v; in br_fill_ifvlaninfo_compressed() local
[all …]
Dbr_sysfs_if.c52 static int store_##_name(struct net_bridge_port *p, unsigned long v) \
54 return store_flag(p, v, _mask); \
59 static int store_flag(struct net_bridge_port *p, unsigned long v, in store_flag() argument
66 if (v) in store_flag()
176 static int store_flush(struct net_bridge_port *p, unsigned long v) in store_flush() argument
189 unsigned long v) in store_group_fwd_mask() argument
191 if (v & BR_GROUPFWD_MACPAUSE) in store_group_fwd_mask()
193 p->group_fwd_mask = v; in store_group_fwd_mask()
251 unsigned long v) in store_multicast_router() argument
253 return br_multicast_set_port_router(&p->multicast_ctx, v); in store_multicast_router()
Dbr_fdb.c218 const struct net_bridge_vlan *v; in fdb_delete_local() local
234 v = br_vlan_find(vg, vid); in fdb_delete_local()
237 (!vid || (v && br_vlan_should_use(v)))) { in fdb_delete_local()
265 struct net_bridge_vlan *v; in br_fdb_changeaddr() local
295 list_for_each_entry(v, &vg->vlan_list, vlist) in br_fdb_changeaddr()
296 fdb_insert(br, p, newaddr, v->vid); in br_fdb_changeaddr()
306 struct net_bridge_vlan *v; in br_fdb_change_mac_address() local
324 list_for_each_entry(v, &vg->vlan_list, vlist) { in br_fdb_change_mac_address()
325 if (!br_vlan_should_use(v)) in br_fdb_change_mac_address()
327 f = br_fdb_find(br, br->dev->dev_addr, v->vid); in br_fdb_change_mac_address()
[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/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
60 if (v == &rxnet->calls) { in rxrpc_call_seq_show()
69 call = list_entry(v, struct rxrpc_call, link); in rxrpc_call_seq_show()
135 static void *rxrpc_connection_seq_next(struct seq_file *seq, void *v, in rxrpc_connection_seq_next() argument
140 return seq_list_next(v, &rxnet->conn_proc_list, pos); in rxrpc_connection_seq_next()
143 static void rxrpc_connection_seq_stop(struct seq_file *seq, void *v) in rxrpc_connection_seq_stop() argument
151 static int rxrpc_connection_seq_show(struct seq_file *seq, void *v) in rxrpc_connection_seq_show() argument
[all …]
/net/sched/
Dact_vlan.c25 struct tcf_vlan *v = to_vlan(a); in tcf_vlan_act() local
31 tcf_lastuse_update(&v->tcf_tm); in tcf_vlan_act()
32 tcf_action_update_bstats(&v->common, skb); in tcf_vlan_act()
40 action = READ_ONCE(v->tcf_action); in tcf_vlan_act()
42 p = rcu_dereference_bh(v->vlan_p); in tcf_vlan_act()
101 tcf_action_inc_drop_qstats(&v->common); in tcf_vlan_act()
127 struct tcf_vlan *v; in tcf_vlan_init() local
235 v = to_vlan(*a); in tcf_vlan_init()
256 spin_lock_bh(&v->tcf_lock); in tcf_vlan_init()
258 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, \
703 static void meta_var_destroy(struct meta_value *v) in meta_var_destroy() argument
705 kfree((void *) v->val); in meta_var_destroy()
708 static void meta_var_apply_extras(struct meta_value *v, in meta_var_apply_extras() argument
711 int shift = v->hdr.shift; in meta_var_apply_extras()
717 static int meta_var_dump(struct sk_buff *skb, struct meta_value *v, int tlv) in meta_var_dump() argument
[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_switch_do_tag_8021q_vlan_add() local
154 v = dsa_tag_8021q_vlan_find(ctx, port, vid); in dsa_switch_do_tag_8021q_vlan_add()
155 if (v) { in dsa_switch_do_tag_8021q_vlan_add()
156 refcount_inc(&v->refcount); in dsa_switch_do_tag_8021q_vlan_add()
160 v = kzalloc(sizeof(*v), GFP_KERNEL); in dsa_switch_do_tag_8021q_vlan_add()
161 if (!v) in dsa_switch_do_tag_8021q_vlan_add()
[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 …]
/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
167 int hash = *(loff_t *)v; in sctp_eps_seq_show()
214 static void sctp_transport_seq_stop(struct seq_file *seq, void *v) in sctp_transport_seq_stop() argument
218 if (v && v != SEQ_START_TOKEN) { in sctp_transport_seq_stop()
219 struct sctp_transport *transport = v; in sctp_transport_seq_stop()
227 static void *sctp_transport_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_transport_seq_next() argument
231 if (v && v != SEQ_START_TOKEN) { in sctp_transport_seq_next()
[all …]
/net/core/
Dnet-procfs.c63 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in dev_seq_next() argument
69 static void dev_seq_stop(struct seq_file *seq, void *v) in dev_seq_stop() argument
103 static int dev_seq_show(struct seq_file *seq, void *v) in dev_seq_show() argument
105 if (v == SEQ_START_TOKEN) in dev_seq_show()
112 dev_seq_printf_stats(seq, v); in dev_seq_show()
140 static void *softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) in softnet_seq_next() argument
146 static void softnet_seq_stop(struct seq_file *seq, void *v) in softnet_seq_stop() argument
150 static int softnet_seq_show(struct seq_file *seq, void *v) in softnet_seq_show() argument
152 struct softnet_data *sd = v; in softnet_seq_show()
233 static void *ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ptype_seq_next() argument
[all …]
Dsock.c1439 } v; in sock_getsockopt() local
1449 memset(&v, 0, sizeof(v)); in sock_getsockopt()
1453 v.val = sock_flag(sk, SOCK_DBG); in sock_getsockopt()
1457 v.val = sock_flag(sk, SOCK_LOCALROUTE); in sock_getsockopt()
1461 v.val = sock_flag(sk, SOCK_BROADCAST); in sock_getsockopt()
1465 v.val = READ_ONCE(sk->sk_sndbuf); in sock_getsockopt()
1469 v.val = READ_ONCE(sk->sk_rcvbuf); in sock_getsockopt()
1473 v.val = sk->sk_reuse; in sock_getsockopt()
1477 v.val = sk->sk_reuseport; in sock_getsockopt()
1481 v.val = sock_flag(sk, SOCK_KEEPOPEN); in sock_getsockopt()
[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 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.c94 static void *l2tp_dfs_seq_next(struct seq_file *m, void *v, loff_t *pos) in l2tp_dfs_seq_next() argument
100 static void l2tp_dfs_seq_stop(struct seq_file *p, void *v) in l2tp_dfs_seq_stop() argument
102 struct l2tp_dfs_seq_data *pd = v; in l2tp_dfs_seq_stop()
120 static void l2tp_dfs_seq_tunnel_show(struct seq_file *m, void *v) in l2tp_dfs_seq_tunnel_show() argument
122 struct l2tp_tunnel *tunnel = v; in l2tp_dfs_seq_tunnel_show()
179 static void l2tp_dfs_seq_session_show(struct seq_file *m, void *v) in l2tp_dfs_seq_session_show() argument
181 struct l2tp_session *session = v; in l2tp_dfs_seq_session_show()
233 static int l2tp_dfs_seq_show(struct seq_file *m, void *v) in l2tp_dfs_seq_show() argument
235 struct l2tp_dfs_seq_data *pd = v; in l2tp_dfs_seq_show()
238 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/rose/
Drose_route.c1108 static void *rose_node_next(struct seq_file *seq, void *v, loff_t *pos) in rose_node_next() argument
1112 return (v == SEQ_START_TOKEN) ? rose_node_list in rose_node_next()
1113 : ((struct rose_node *)v)->next; in rose_node_next()
1116 static void rose_node_stop(struct seq_file *seq, void *v) in rose_node_stop() argument
1122 static int rose_node_show(struct seq_file *seq, void *v) in rose_node_show() argument
1127 if (v == SEQ_START_TOKEN) in rose_node_show()
1130 const struct rose_node *rose_node = v; in rose_node_show()
1174 static void *rose_neigh_next(struct seq_file *seq, void *v, loff_t *pos) in rose_neigh_next() argument
1178 return (v == SEQ_START_TOKEN) ? rose_neigh_list in rose_neigh_next()
1179 : ((struct rose_neigh *)v)->next; in rose_neigh_next()
[all …]
/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()
471 static int ipmr_mfc_seq_show(struct seq_file *seq, void *v) in ipmr_mfc_seq_show() argument
475 if (v == SEQ_START_TOKEN) { in ipmr_mfc_seq_show()
481 const struct mfc6_cache *mfc = v; in ipmr_mfc_seq_show()
699 struct vif_device *v; in mif6_delete() local
706 v = &mrt->vif_table[vifi]; in mif6_delete()
710 FIB_EVENT_VIF_DEL, v, vifi, in mif6_delete()
[all …]

1234567