/net/bridge/ |
D | br_vlan.c | 53 static void __vlan_add_flags(struct net_bridge_vlan *v, u16 flags) in __vlan_add_flags() argument 57 if (br_vlan_is_master(v)) in __vlan_add_flags() 58 vg = br_vlan_group(v->br); in __vlan_add_flags() 60 vg = nbp_vlan_group(v->port); in __vlan_add_flags() 63 __vlan_add_pvid(vg, v->vid); in __vlan_add_flags() 65 __vlan_delete_pvid(vg, v->vid); in __vlan_add_flags() 68 v->flags |= BRIDGE_VLAN_INFO_UNTAGGED; in __vlan_add_flags() 70 v->flags &= ~BRIDGE_VLAN_INFO_UNTAGGED; in __vlan_add_flags() 76 struct switchdev_obj_port_vlan v = { in __vlan_vid_add() local 88 err = switchdev_port_obj_add(dev, &v.obj); in __vlan_vid_add() [all …]
|
D | br_netlink_tunnel.c | 44 struct net_bridge_vlan *v, *vtbegin = NULL, *vtend = NULL; in __get_num_vlan_tunnel_infos() local 48 list_for_each_entry_rcu(v, &vg->vlan_list, vlist) { in __get_num_vlan_tunnel_infos() 50 if (!br_vlan_should_use(v) || !v->tinfo.tunnel_id) in __get_num_vlan_tunnel_infos() 55 } else if ((v->vid - vtend->vid) == 1 && in __get_num_vlan_tunnel_infos() 56 vlan_tunid_inrange(v, vtend)) { in __get_num_vlan_tunnel_infos() 57 vtend = v; in __get_num_vlan_tunnel_infos() 66 vtbegin = v; in __get_num_vlan_tunnel_infos() 67 vtend = v; in __get_num_vlan_tunnel_infos() 157 struct net_bridge_vlan *v; in br_fill_vlan_tunnel_info() local 161 list_for_each_entry_rcu(v, &vg->vlan_list, vlist) { in br_fill_vlan_tunnel_info() [all …]
|
D | br_netlink.c | 28 struct net_bridge_vlan *v; in __get_num_vlan_infos() local 38 list_for_each_entry_rcu(v, &vg->vlan_list, vlist) { in __get_num_vlan_infos() 41 if (!br_vlan_should_use(v)) in __get_num_vlan_infos() 43 if (v->vid == pvid) in __get_num_vlan_infos() 46 if (v->flags & BRIDGE_VLAN_INFO_UNTAGGED) in __get_num_vlan_infos() 51 } else if ((v->vid - vid_range_end) == 1 && in __get_num_vlan_infos() 53 vid_range_end = v->vid; in __get_num_vlan_infos() 62 vid_range_start = v->vid; in __get_num_vlan_infos() 63 vid_range_end = v->vid; in __get_num_vlan_infos() 271 struct net_bridge_vlan *v; in br_fill_ifvlaninfo_compressed() local [all …]
|
D | br_fdb.c | 192 const struct net_bridge_vlan *v; in fdb_delete_local() local 208 v = br_vlan_find(vg, vid); in fdb_delete_local() 211 (!vid || (v && br_vlan_should_use(v)))) { in fdb_delete_local() 237 struct net_bridge_vlan *v; in br_fdb_changeaddr() local 275 list_for_each_entry(v, &vg->vlan_list, vlist) in br_fdb_changeaddr() 276 fdb_insert(br, p, newaddr, v->vid); in br_fdb_changeaddr() 286 struct net_bridge_vlan *v; in br_fdb_change_mac_address() local 303 list_for_each_entry(v, &vg->vlan_list, vlist) { in br_fdb_change_mac_address() 304 if (!br_vlan_should_use(v)) in br_fdb_change_mac_address() 306 f = br_fdb_find(br, br->dev->dev_addr, v->vid); in br_fdb_change_mac_address() [all …]
|
/net/sched/ |
D | act_vlan.c | 28 struct tcf_vlan *v = to_vlan(a); in tcf_vlan() local 33 spin_lock(&v->tcf_lock); in tcf_vlan() 34 tcf_lastuse_update(&v->tcf_tm); in tcf_vlan() 35 bstats_update(&v->tcf_bstats, skb); in tcf_vlan() 36 action = v->tcf_action; in tcf_vlan() 44 switch (v->tcfv_action) { in tcf_vlan() 51 err = skb_vlan_push(skb, v->tcfv_push_proto, v->tcfv_push_vid | in tcf_vlan() 52 (v->tcfv_push_prio << VLAN_PRIO_SHIFT)); in tcf_vlan() 71 tci = (tci & ~VLAN_VID_MASK) | v->tcfv_push_vid; in tcf_vlan() 73 if (v->tcfv_push_prio) { in tcf_vlan() [all …]
|
D | em_meta.c | 93 static inline int meta_id(struct meta_value *v) in meta_id() argument 95 return TCF_META_ID(v->hdr.kind); in meta_id() 98 static inline int meta_type(struct meta_value *v) in meta_type() argument 100 return TCF_META_TYPE(v->hdr.kind); in meta_type() 104 struct tcf_pkt_info *info, struct meta_value *v, \ 707 static void meta_var_destroy(struct meta_value *v) in meta_var_destroy() argument 709 kfree((void *) v->val); in meta_var_destroy() 712 static void meta_var_apply_extras(struct meta_value *v, in meta_var_apply_extras() argument 715 int shift = v->hdr.shift; in meta_var_apply_extras() 721 static int meta_var_dump(struct sk_buff *skb, struct meta_value *v, int tlv) in meta_var_dump() argument [all …]
|
/net/x25/ |
D | x25_proc.c | 37 static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_route_next() argument 39 return seq_list_next(v, &x25_route_list, pos); in x25_seq_route_next() 42 static void x25_seq_route_stop(struct seq_file *seq, void *v) in x25_seq_route_stop() argument 48 static int x25_seq_route_show(struct seq_file *seq, void *v) in x25_seq_route_show() argument 50 struct x25_route *rt = list_entry(v, struct x25_route, node); in x25_seq_route_show() 52 if (v == &x25_route_list) { in x25_seq_route_show() 57 rt = v; in x25_seq_route_show() 72 static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_socket_next() argument 74 return seq_hlist_next(v, &x25_list, pos); in x25_seq_socket_next() 77 static void x25_seq_socket_stop(struct seq_file *seq, void *v) in x25_seq_socket_stop() argument [all …]
|
/net/appletalk/ |
D | atalk_proc.c | 39 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_interface_next() argument 44 if (v == SEQ_START_TOKEN) { in atalk_seq_interface_next() 50 i = v; in atalk_seq_interface_next() 56 static void atalk_seq_interface_stop(struct seq_file *seq, void *v) in atalk_seq_interface_stop() argument 62 static int atalk_seq_interface_show(struct seq_file *seq, void *v) in atalk_seq_interface_show() argument 66 if (v == SEQ_START_TOKEN) { in atalk_seq_interface_show() 72 iface = v; in atalk_seq_interface_show() 100 static void *atalk_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_route_next() argument 105 if (v == SEQ_START_TOKEN) { in atalk_seq_route_next() 111 r = v; in atalk_seq_route_next() [all …]
|
/net/netfilter/ |
D | nf_conntrack_h323_asn1.c | 155 unsigned int v; in get_len() local 157 v = *bs->cur++; in get_len() 159 if (v & 0x80) { in get_len() 160 v &= 0x3f; in get_len() 161 v <<= 8; in get_len() 162 v += *bs->cur++; in get_len() 165 return v; in get_len() 182 unsigned int v, l; in get_bits() local 184 v = (*bs->cur) & (0xffU >> bs->bit); in get_bits() 188 v >>= 8 - l; in get_bits() [all …]
|
/net/ipx/ |
D | ipx_proc.c | 24 static void *ipx_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in ipx_seq_interface_next() argument 26 return seq_list_next(v, &ipx_interfaces, pos); in ipx_seq_interface_next() 29 static void ipx_seq_interface_stop(struct seq_file *seq, void *v) in ipx_seq_interface_stop() argument 34 static int ipx_seq_interface_show(struct seq_file *seq, void *v) in ipx_seq_interface_show() argument 38 if (v == &ipx_interfaces) { in ipx_seq_interface_show() 48 i = list_entry(v, struct ipx_interface, node); in ipx_seq_interface_show() 70 static void *ipx_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in ipx_seq_route_next() argument 72 return seq_list_next(v, &ipx_routes, pos); in ipx_seq_route_next() 75 static void ipx_seq_route_stop(struct seq_file *seq, void *v) in ipx_seq_route_stop() argument 80 static int ipx_seq_route_show(struct seq_file *seq, void *v) in ipx_seq_route_show() argument [all …]
|
/net/core/ |
D | net-procfs.c | 66 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in dev_seq_next() argument 72 static void dev_seq_stop(struct seq_file *seq, void *v) in dev_seq_stop() argument 106 static int dev_seq_show(struct seq_file *seq, void *v) in dev_seq_show() argument 108 if (v == SEQ_START_TOKEN) in dev_seq_show() 115 dev_seq_printf_stats(seq, v); in dev_seq_show() 137 static void *softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) in softnet_seq_next() argument 143 static void softnet_seq_stop(struct seq_file *seq, void *v) in softnet_seq_stop() argument 147 static int softnet_seq_show(struct seq_file *seq, void *v) in softnet_seq_show() argument 149 struct softnet_data *sd = v; in softnet_seq_show() 241 static void *ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ptype_seq_next() argument [all …]
|
D | sock.c | 1108 } v; in sock_getsockopt() local 1118 memset(&v, 0, sizeof(v)); in sock_getsockopt() 1122 v.val = sock_flag(sk, SOCK_DBG); in sock_getsockopt() 1126 v.val = sock_flag(sk, SOCK_LOCALROUTE); in sock_getsockopt() 1130 v.val = sock_flag(sk, SOCK_BROADCAST); in sock_getsockopt() 1134 v.val = sk->sk_sndbuf; in sock_getsockopt() 1138 v.val = sk->sk_rcvbuf; in sock_getsockopt() 1142 v.val = sk->sk_reuse; in sock_getsockopt() 1146 v.val = sk->sk_reuseport; in sock_getsockopt() 1150 v.val = sock_flag(sk, SOCK_KEEPOPEN); in sock_getsockopt() [all …]
|
/net/rxrpc/ |
D | proc.c | 40 static void *rxrpc_call_seq_next(struct seq_file *seq, void *v, loff_t *pos) in rxrpc_call_seq_next() argument 44 return seq_list_next(v, &rxnet->calls, pos); in rxrpc_call_seq_next() 47 static void rxrpc_call_seq_stop(struct seq_file *seq, void *v) in rxrpc_call_seq_stop() argument 55 static int rxrpc_call_seq_show(struct seq_file *seq, void *v) in rxrpc_call_seq_show() argument 65 if (v == &rxnet->calls) { in rxrpc_call_seq_show() 74 call = list_entry(v, struct rxrpc_call, link); in rxrpc_call_seq_show() 146 static void *rxrpc_connection_seq_next(struct seq_file *seq, void *v, in rxrpc_connection_seq_next() argument 151 return seq_list_next(v, &rxnet->conn_proc_list, pos); in rxrpc_connection_seq_next() 154 static void rxrpc_connection_seq_stop(struct seq_file *seq, void *v) in rxrpc_connection_seq_stop() argument 161 static int rxrpc_connection_seq_show(struct seq_file *seq, void *v) in rxrpc_connection_seq_show() argument [all …]
|
/net/llc/ |
D | llc_proc.c | 80 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/8021q/ |
D | vlanproc.c | 39 static int vlan_seq_show(struct seq_file *seq, void *v); 41 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos); 43 static int vlandev_seq_show(struct seq_file *seq, void *v); 223 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos) in vlan_seq_next() argument 230 dev = v; in vlan_seq_next() 231 if (v == SEQ_START_TOKEN) in vlan_seq_next() 244 static void vlan_seq_stop(struct seq_file *seq, void *v) in vlan_seq_stop() argument 250 static int vlan_seq_show(struct seq_file *seq, void *v) in vlan_seq_show() argument 255 if (v == SEQ_START_TOKEN) { in vlan_seq_show() 266 const struct net_device *vlandev = v; in vlan_seq_show()
|
/net/wireless/ |
D | wext-proc.c | 75 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/sctp/ |
D | proc.c | 74 static int sctp_snmp_seq_show(struct seq_file *seq, void *v) in sctp_snmp_seq_show() argument 194 static void sctp_eps_seq_stop(struct seq_file *seq, void *v) in sctp_eps_seq_stop() argument 199 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_eps_seq_next() argument 209 static int sctp_eps_seq_show(struct seq_file *seq, void *v) in sctp_eps_seq_show() argument 215 int hash = *(loff_t *)v; in sctp_eps_seq_show() 302 static void sctp_transport_seq_stop(struct seq_file *seq, void *v) in sctp_transport_seq_stop() argument 311 static void *sctp_transport_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_transport_seq_next() argument 321 static int sctp_assocs_seq_show(struct seq_file *seq, void *v) in sctp_assocs_seq_show() argument 328 if (v == SEQ_START_TOKEN) { in sctp_assocs_seq_show() 337 transport = (struct sctp_transport *)v; in sctp_assocs_seq_show() [all …]
|
D | objcnt.c | 77 static int sctp_objcnt_seq_show(struct seq_file *seq, void *v) in sctp_objcnt_seq_show() argument 81 i = (int)*(loff_t *)v; in sctp_objcnt_seq_show() 94 static void sctp_objcnt_seq_stop(struct seq_file *seq, void *v) in sctp_objcnt_seq_stop() argument 98 static void *sctp_objcnt_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_objcnt_seq_next() argument
|
/net/atm/ |
D | proc.c | 140 static void vcc_seq_stop(struct seq_file *seq, void *v) in vcc_seq_stop() argument 146 static void *vcc_seq_next(struct seq_file *seq, void *v, loff_t *pos) in vcc_seq_next() argument 150 v = vcc_walk(state, 1); in vcc_seq_next() 151 *pos += !!PTR_ERR(v); in vcc_seq_next() 152 return v; in vcc_seq_next() 238 static int atm_dev_seq_show(struct seq_file *seq, void *v) in atm_dev_seq_show() argument 244 if (v == &atm_devs) in atm_dev_seq_show() 247 struct atm_dev *dev = list_entry(v, struct atm_dev, dev_list); in atm_dev_seq_show() 273 static int pvc_seq_show(struct seq_file *seq, void *v) in pvc_seq_show() argument 278 if (v == SEQ_START_TOKEN) in pvc_seq_show() [all …]
|
D | mpoa_proc.c | 121 static void *mpc_next(struct seq_file *m, void *v, loff_t *pos) in mpc_next() argument 123 struct mpoa_client *p = v; in mpc_next() 125 return v == SEQ_START_TOKEN ? mpcs : p->next; in mpc_next() 128 static void mpc_stop(struct seq_file *m, void *v) in mpc_stop() argument 135 static int mpc_show(struct seq_file *m, void *v) in mpc_show() argument 137 struct mpoa_client *mpc = v; in mpc_show() 144 if (v == SEQ_START_TOKEN) { in mpc_show()
|
/net/ipv6/ |
D | ip6mr.c | 423 static void *ip6mr_vif_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ip6mr_vif_seq_next() argument 430 if (v == SEQ_START_TOKEN) in ip6mr_vif_seq_next() 441 static void ip6mr_vif_seq_stop(struct seq_file *seq, void *v) in ip6mr_vif_seq_stop() argument 447 static int ip6mr_vif_seq_show(struct seq_file *seq, void *v) in ip6mr_vif_seq_show() argument 452 if (v == SEQ_START_TOKEN) { in ip6mr_vif_seq_show() 456 const struct mif_device *vif = v; in ip6mr_vif_seq_show() 506 static void *ipmr_mfc_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ipmr_mfc_seq_next() argument 508 struct mfc6_cache *mfc = v; in ipmr_mfc_seq_next() 515 if (v == SEQ_START_TOKEN) in ipmr_mfc_seq_next() 549 static void ipmr_mfc_seq_stop(struct seq_file *seq, void *v) in ipmr_mfc_seq_stop() argument [all …]
|
/net/ax25/ |
D | ax25_uid.c | 156 static void *ax25_uid_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ax25_uid_seq_next() argument 158 return seq_hlist_next(v, &ax25_uid_list, pos); in ax25_uid_seq_next() 161 static void ax25_uid_seq_stop(struct seq_file *seq, void *v) in ax25_uid_seq_stop() argument 167 static int ax25_uid_seq_show(struct seq_file *seq, void *v) in ax25_uid_seq_show() argument 171 if (v == SEQ_START_TOKEN) in ax25_uid_seq_show() 176 pt = hlist_entry(v, struct ax25_uid_assoc, uid_node); in ax25_uid_seq_show()
|
/net/l2tp/ |
D | l2tp_debugfs.c | 91 static void *l2tp_dfs_seq_next(struct seq_file *m, void *v, loff_t *pos) in l2tp_dfs_seq_next() argument 97 static void l2tp_dfs_seq_stop(struct seq_file *p, void *v) in l2tp_dfs_seq_stop() argument 102 static void l2tp_dfs_seq_tunnel_show(struct seq_file *m, void *v) in l2tp_dfs_seq_tunnel_show() argument 104 struct l2tp_tunnel *tunnel = v; in l2tp_dfs_seq_tunnel_show() 162 static void l2tp_dfs_seq_session_show(struct seq_file *m, void *v) in l2tp_dfs_seq_session_show() argument 164 struct l2tp_session *session = v; in l2tp_dfs_seq_session_show() 219 static int l2tp_dfs_seq_show(struct seq_file *m, void *v) in l2tp_dfs_seq_show() argument 221 struct l2tp_dfs_seq_data *pd = v; in l2tp_dfs_seq_show() 224 if (v == SEQ_START_TOKEN) { in l2tp_dfs_seq_show()
|
/net/mac80211/ |
D | fils_aead.c | 29 size_t num_elem, const u8 *addr[], size_t len[], u8 *v) in aes_s2v() argument 63 crypto_shash_finup(desc, d, AES_BLOCK_SIZE, v); in aes_s2v() 74 u8 v[AES_BLOCK_SIZE]; in aes_siv_encrypt() local 96 res = aes_s2v(tfm, num_elem, addr, len, v); in aes_siv_encrypt() 109 memcpy(out, v, AES_BLOCK_SIZE); in aes_siv_encrypt() 114 v[8] &= 0x7f; in aes_siv_encrypt() 115 v[12] &= 0x7f; in aes_siv_encrypt() 137 skcipher_request_set_crypt(req, src, dst, plain_len, v); in aes_siv_encrypt()
|
/net/rose/ |
D | rose_route.c | 1106 static void *rose_node_next(struct seq_file *seq, void *v, loff_t *pos) in rose_node_next() argument 1110 return (v == SEQ_START_TOKEN) ? rose_node_list in rose_node_next() 1111 : ((struct rose_node *)v)->next; in rose_node_next() 1114 static void rose_node_stop(struct seq_file *seq, void *v) in rose_node_stop() argument 1120 static int rose_node_show(struct seq_file *seq, void *v) in rose_node_show() argument 1125 if (v == SEQ_START_TOKEN) in rose_node_show() 1128 const struct rose_node *rose_node = v; in rose_node_show() 1185 static void *rose_neigh_next(struct seq_file *seq, void *v, loff_t *pos) in rose_neigh_next() argument 1189 return (v == SEQ_START_TOKEN) ? rose_neigh_list in rose_neigh_next() 1190 : ((struct rose_neigh *)v)->next; in rose_neigh_next() [all …]
|