/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_mac.c | 22 u16 vid; member in struct:lan966x_mac_entry 54 unsigned int vid) 61 mach |= vid << 16; 76 unsigned int vid, 81 lan966x_mac_select(lan966x, mac, vid); 98 unsigned int vid, 104 ret = __lan966x_mac_learn_locked(lan966x, pgid, cpu_copy, mac, vid, type); 116 unsigned int vid, 121 return __lan966x_mac_learn(lan966x, 0, cpu_copy, mac, vid, type); 126 unsigned int vid, 52 lan966x_mac_select(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid) argument 73 __lan966x_mac_learn_locked(struct lan966x *lan966x, int pgid, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument 95 __lan966x_mac_learn(struct lan966x *lan966x, int pgid, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument 113 lan966x_mac_ip_learn(struct lan966x *lan966x, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument 124 lan966x_mac_learn(struct lan966x *lan966x, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument 134 lan966x_mac_learn_locked(struct lan966x *lan966x, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument 144 lan966x_mac_forget_locked(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument 161 lan966x_mac_forget(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument 175 lan966x_mac_cpu_learn(struct lan966x *lan966x, const char *addr, u16 vid) argument 180 lan966x_mac_cpu_forget(struct lan966x *lan966x, const char *addr, u16 vid) argument 203 lan966x_mac_alloc_entry(struct lan966x_port *port, const unsigned char *mac, u16 vid) argument 221 lan966x_mac_find_entry(struct lan966x *lan966x, const unsigned char *mac, u16 vid, u16 port_index) argument 240 lan966x_mac_lookup(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument 261 lan966x_fdb_call_notifiers(enum switchdev_notifier_type type, const char *mac, u16 vid, struct net_device *dev) argument 273 lan966x_mac_add_entry(struct lan966x *lan966x, struct lan966x_port *port, const unsigned char *addr, u16 vid) argument 314 lan966x_mac_del_entry(struct lan966x *lan966x, const unsigned char *addr, u16 vid) argument 397 lan966x_mac_notifiers(enum switchdev_notifier_type type, unsigned char *mac, u32 vid, struct net_device *dev) argument 406 lan966x_mac_process_raw_entry(struct lan966x_mac_raw_entry *raw_entry, u8 *mac, u16 *vid, u32 *dest_idx) argument 429 u16 vid; local [all...] |
H A D | lan966x_fdb.c | 19 u16 vid; member in struct:lan966x_fdb_entry 30 if (fdb_entry->vid == fdb_info->vid && 54 fdb_entry->vid = fdb_info->vid; 66 if (fdb_entry->vid == fdb_info->vid && 81 void lan966x_fdb_write_entries(struct lan966x *lan966x, u16 vid) argument 86 if (fdb_entry->vid != vid) 93 lan966x_fdb_erase_entries(struct lan966x *lan966x, u16 vid) argument [all...] |
H A D | lan966x_mdb.c | 17 u16 vid; member in struct:lan966x_mdb_entry 58 u16 vid) 64 mdb_entry->vid == vid) 82 mdb_entry->vid = mdb->vid; 115 mdb_entry = lan966x_mdb_entry_get(lan966x, mdb->addr, mdb->vid); 122 lan966x_mac_forget(lan966x, mac, mdb_entry->vid, type); 131 if (lan966x_vlan_cpu_member_cpu_vlan_mask(lan966x, mdb_entry->vid) && 137 mac, mdb_entry->vid, typ 56 lan966x_mdb_entry_get(struct lan966x *lan966x, const unsigned char *mac, u16 vid) argument 436 lan966x_mdb_write_entries(struct lan966x *lan966x, u16 vid) argument 491 lan966x_mdb_erase_entries(struct lan966x *lan966x, u16 vid) argument [all...] |
/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | trace.h | 60 TP_PROTO(const struct device *dev, int spid, u16 vid), 62 TP_ARGS(dev, spid, vid), 67 __field(u16, vid) 73 __entry->vid = vid; 76 TP_printk("dev %s spid %d vid %u", 77 __get_str(name), __entry->spid, __entry->vid) 81 TP_PROTO(const struct device *dev, int spid, u16 vid), 82 TP_ARGS(dev, spid, vid)); 85 TP_PROTO(const struct device *dev, int spid, u16 vid), [all...] |
/linux-master/net/caif/ |
H A D | cfvidl.c | 24 struct cfsrvl *vid = kzalloc(sizeof(struct cfsrvl), GFP_ATOMIC); local 25 if (!vid) 29 cfsrvl_init(vid, channel_id, dev_info, false); 30 vid->layer.receive = cfvidl_receive; 31 vid->layer.transmit = cfvidl_transmit; 32 snprintf(vid->layer.name, CAIF_LAYER_NAME_SZ, "vid1"); 33 return &vid->layer;
|
/linux-master/net/batman-adv/ |
H A D | send.h | 61 unsigned short vid); 65 unsigned short vid); 67 unsigned short vid); 74 * @vid: the vid to be used to search the translation table 84 unsigned short vid) 87 dst_hint, vid); 96 * @vid: the vid to be used to search the translation table 109 unsigned short vid) 82 batadv_send_skb_via_tt(struct batadv_priv *bat_priv, struct sk_buff *skb, u8 *dst_hint, unsigned short vid) argument 105 batadv_send_skb_via_tt_4addr(struct batadv_priv *bat_priv, struct sk_buff *skb, int packet_subtype, u8 *dst_hint, unsigned short vid) argument [all...] |
H A D | multicast.h | 46 unsigned short vid, int *is_routable); 49 unsigned short vid, int is_routable); 70 unsigned short vid, int is_routable, int count); 78 unsigned short vid, int *is_routable) 85 unsigned short vid, int is_routable) 77 batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid, int *is_routable) argument 84 batadv_mcast_forw_send(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid, int is_routable) argument
|
H A D | soft-interface.h | 24 int batadv_softif_create_vlan(struct batadv_priv *bat_priv, unsigned short vid); 27 unsigned short vid);
|
H A D | distributed-arp-table.c | 291 __be16 vid; local 301 vid = htons(dat->vid); 302 key = (__force const unsigned char *)&vid; 303 for (i = 0; i < sizeof(dat->vid); i++) { 321 * @vid: VLAN identifier 327 unsigned short vid) 338 to_find.vid = vid; 364 * @vid 326 batadv_dat_entry_hash_find(struct batadv_priv *bat_priv, __be32 ip, unsigned short vid) argument 366 batadv_dat_entry_add(struct batadv_priv *bat_priv, __be32 ip, u8 *mac_addr, unsigned short vid) argument 628 batadv_dat_select_candidates(struct batadv_priv *bat_priv, __be32 ip_dst, unsigned short vid) argument 674 batadv_dat_forward_data(struct batadv_priv *bat_priv, struct sk_buff *skb, __be32 ip, unsigned short vid, int packet_subtype) argument 1076 unsigned short vid; local 1106 batadv_dat_arp_create_reply(struct batadv_priv *bat_priv, __be32 ip_src, __be32 ip_dst, u8 *hw_src, u8 *hw_dst, unsigned short vid) argument 1147 unsigned short vid; local 1241 unsigned short vid; local 1304 unsigned short vid; local 1352 unsigned short vid; local 1631 batadv_dat_put_dhcp(struct batadv_priv *bat_priv, u8 *chaddr, __be32 yiaddr, u8 *hw_dst, __be32 ip_dst, unsigned short vid) argument 1716 batadv_dat_snoop_outgoing_dhcp_ack(struct batadv_priv *bat_priv, struct sk_buff *skb, __be16 proto, unsigned short vid) argument 1750 unsigned short vid; local 1797 unsigned short vid; local [all...] |
H A D | bridge_loop_avoidance.c | 72 hash = jhash(&claim->vid, sizeof(claim->vid), hash); 91 hash = jhash(&gw->vid, sizeof(gw->vid), hash); 97 * batadv_compare_backbone_gw() - compare address and vid of two backbone gws 114 if (gw1->vid != gw2->vid) 121 * batadv_compare_claim() - compare address and vid of two claims 138 if (cl1->vid != cl2->vid) 258 batadv_backbone_hash_find(struct batadv_priv *bat_priv, const u8 *addr, unsigned short vid) argument 340 batadv_bla_send_claim(struct batadv_priv *bat_priv, const u8 *mac, unsigned short vid, int claimtype) argument 492 batadv_bla_get_backbone_gw(struct batadv_priv *bat_priv, const u8 *orig, unsigned short vid, bool own_backbone) argument 565 batadv_bla_update_own_backbone_gw(struct batadv_priv *bat_priv, struct batadv_hard_iface *primary_if, unsigned short vid) argument 590 batadv_bla_answer_request(struct batadv_priv *bat_priv, struct batadv_hard_iface *primary_if, unsigned short vid) argument 686 batadv_bla_add_claim(struct batadv_priv *bat_priv, const u8 *mac, const unsigned short vid, struct batadv_bla_backbone_gw *backbone_gw) argument 795 batadv_bla_del_claim(struct batadv_priv *bat_priv, const u8 *mac, const unsigned short vid) argument 836 batadv_handle_announce(struct batadv_priv *bat_priv, u8 *an_addr, u8 *backbone_addr, unsigned short vid) argument 895 batadv_handle_request(struct batadv_priv *bat_priv, struct batadv_hard_iface *primary_if, u8 *backbone_addr, struct ethhdr *ethhdr, unsigned short vid) argument 928 batadv_handle_unclaim(struct batadv_priv *bat_priv, struct batadv_hard_iface *primary_if, const u8 *backbone_addr, const u8 *claim_addr, unsigned short vid) argument 966 batadv_handle_claim(struct batadv_priv *bat_priv, struct batadv_hard_iface *primary_if, const u8 *backbone_addr, const u8 *claim_addr, unsigned short vid) argument 1086 unsigned short vid; local 1732 batadv_bla_is_backbone_gw_orig(struct batadv_priv *bat_priv, u8 *orig, unsigned short vid) argument 1776 unsigned short vid; local 1837 batadv_bla_loopdetect_check(struct batadv_priv *bat_priv, struct sk_buff *skb, struct batadv_hard_iface *primary_if, unsigned short vid) argument 1894 batadv_bla_rx(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid, int packet_type) argument 2029 batadv_bla_tx(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid) argument 2468 batadv_bla_check_claim(struct batadv_priv *bat_priv, u8 *addr, unsigned short vid) argument [all...] |
/linux-master/net/dsa/ |
H A D | tag_8021q.c | 69 u16 vid; member in struct:dsa_tag_8021q_vlan 100 int dsa_8021q_rx_switch_id(u16 vid) argument 102 return (vid & DSA_8021Q_SWITCH_ID_MASK) >> DSA_8021Q_SWITCH_ID_SHIFT; 107 int dsa_8021q_rx_source_port(u16 vid) argument 109 return (vid & DSA_8021Q_PORT_MASK) >> DSA_8021Q_PORT_SHIFT; 114 static int dsa_tag_8021q_rx_vbid(u16 vid) argument 116 u16 vbid_hi = (vid & DSA_8021Q_VBID_HI_MASK) >> DSA_8021Q_VBID_HI_SHIFT; 117 u16 vbid_lo = (vid & DSA_8021Q_VBID_LO_MASK) >> DSA_8021Q_VBID_LO_SHIFT; 122 bool vid_is_dsa_8021q(u16 vid) argument 124 u16 rsv = (vid 131 dsa_tag_8021q_vlan_find(struct dsa_8021q_context *ctx, int port, u16 vid) argument 142 dsa_port_do_tag_8021q_vlan_add(struct dsa_port *dp, u16 vid, u16 flags) argument 179 dsa_port_do_tag_8021q_vlan_del(struct dsa_port *dp, u16 vid) argument 340 u16 vid = dsa_tag_8021q_standalone_vid(dp); local 370 u16 vid = dsa_tag_8021q_standalone_vid(dp); local 503 u16 vid, tci; local [all...] |
H A D | port.h | 50 u16 vid); 52 u16 vid); 54 const unsigned char *addr, u16 vid); 56 const unsigned char *addr, u16 vid); 58 u16 vid); 60 u16 vid); 62 u16 vid); 64 u16 vid); 109 int dsa_port_tag_8021q_vlan_add(struct dsa_port *dp, u16 vid, bool broadcast); 110 void dsa_port_tag_8021q_vlan_del(struct dsa_port *dp, u16 vid, boo [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/ |
H A D | bridge_tracepoint.h | 19 __field(u16, vid) 28 __entry->vid = fdb->key.vid; 32 TP_printk("net_device=%s addr=%pM vid=%hu flags=%hx used=%u", 35 __entry->vid, 60 __field(u16, vid) 64 __entry->vid = vlan->vid; 67 TP_printk("vid=%hu flags=%hx", 68 __entry->vid, [all...] |
/linux-master/net/8021q/ |
H A D | vlan_core.c | 126 * vlan info and vid list 165 u16 vid; member in struct:vlan_vid_info 181 __be16 proto, u16 vid) 186 if (vid_info->proto == proto && vid_info->vid == vid) 192 static struct vlan_vid_info *vlan_vid_info_alloc(__be16 proto, u16 vid) argument 200 vid_info->vid = vid; 205 static int vlan_add_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) argument 211 return dev->netdev_ops->ndo_vlan_rx_add_vid(dev, proto, vid); 180 vlan_vid_info_get(struct vlan_info *vlan_info, __be16 proto, u16 vid) argument 216 vlan_kill_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) argument 227 vlan_for_each(struct net_device *dev, int (*action)(struct net_device *dev, int vid, void *arg), void *arg) argument 295 __vlan_vid_add(struct vlan_info *vlan_info, __be16 proto, u16 vid, struct vlan_vid_info **pvid_info) argument 318 vlan_vid_add(struct net_device *dev, __be16 proto, u16 vid) argument 359 u16 vid = vid_info->vid; local 371 vlan_vid_del(struct net_device *dev, __be16 proto, u16 vid) argument [all...] |
/linux-master/drivers/net/ethernet/ti/ |
H A D | cpsw_ale.h | 110 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid); 112 int flags, u16 vid); 114 int flags, u16 vid); 116 int flags, u16 vid, int mcast_state); 118 int flags, u16 vid); 119 int cpsw_ale_add_vlan(struct cpsw_ale *ale, u16 vid, int port, int untag, 121 int cpsw_ale_del_vlan(struct cpsw_ale *ale, u16 vid, int port); 133 static inline int cpsw_ale_get_vlan_p0_untag(struct cpsw_ale *ale, u16 vid) argument 135 return test_bit(vid, ale->p0_untag_vid_mask); 138 int cpsw_ale_vlan_add_modify(struct cpsw_ale *ale, u16 vid, in [all...] |
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_switchdev.c | 219 port->vid = NULL_VID; 254 u16 vid = port->pvid; local 257 sparx5_mact_learn(sparx5, PGID_CPU, port->ndev->dev_addr, vid); 259 sparx5_mact_forget(sparx5, port->ndev->dev_addr, vid); 308 u16 vid; local 325 if (fdb_info->vid == 0) 326 vid = 1; 328 vid = fdb_info->vid; 334 fdb_info->addr, vid); 434 sparx5_alloc_mdb_entry(struct sparx5 *sparx5, const unsigned char *addr, u16 vid, struct sparx5_mdb_entry **entry_out) argument 465 sparx5_free_mdb_entry(struct sparx5 *sparx5, const unsigned char *addr, u16 vid) argument 487 sparx5_mdb_get_entry(struct sparx5 *sparx5, const unsigned char *addr, u16 vid) argument 522 u16 vid; local 578 u16 vid; local 644 sparx5_handle_port_vlan_del(struct net_device *dev, struct notifier_block *nb, u16 vid) argument [all...] |
/linux-master/include/net/ |
H A D | ncsi.h | 34 int ncsi_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid); 35 int ncsi_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid); 42 static inline int ncsi_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid) argument 47 static inline int ncsi_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid) argument
|
/linux-master/tools/testing/selftests/hid/tests/ |
H A D | conftest.py | 72 vid, pid = m.groups() 73 vid = int(vid, 16) 75 params.append([module.name.replace(".ko", ""), vid, pid]) 76 ids.append(f"{module.name} {vid:04x}:{pid:04x}")
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_eswitch_br.h | 12 u16 vid; member in struct:ice_esw_br_fdb_data 87 u16 vid; member in struct:ice_esw_br_vlan 106 static inline bool ice_eswitch_br_is_vid_valid(u16 vid) argument 112 return vid > 1;
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_bridge_1q.sh | 19 # | | vid 10 vid 10 | | 20 # | | vid 20 vid 20 | | 26 # | | vid 10 pvid untagged vid 20 pvid untagged | | 61 # | | vid 10 pvid untagged | | | | vid 10 pvid untagged | | 68 # | | vid 20 pvid untagged | | | | vid 2 [all...] |
H A D | bridge_vlan_mcast.sh | 52 bridge vlan add vid 10-11 dev $swp1 master 53 bridge vlan add vid 10-11 dev $swp2 master 109 jq -e ".[].mdb[] | select(.grp == \"$TEST_GROUP\" and .vid == 10)" &>/dev/null 122 .vid == 10)" &>/dev/null 144 bridge vlan global set vid 10 dev br0 mcast_snooping 0 199 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 1 214 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 0 234 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 1 237 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 0 270 bridge vlan global set vid 1 [all...] |
H A D | router_bridge_vlan_upper.sh | 78 bridge vlan add dev br1 vid 555 self 79 bridge vlan add dev br1 vid 777 self 80 bridge vlan add dev $swp1 vid 555 81 bridge vlan add dev $swp2 vid 777 92 bridge vlan del dev $swp2 vid 777 93 bridge vlan del dev $swp1 vid 555 94 bridge vlan del dev br1 vid 777 self 95 bridge vlan del dev br1 vid 555 self 158 bridge vlan add dev $swp1 vid 555 159 bridge vlan add dev $swp2 vid 77 [all...] |
/linux-master/net/bridge/ |
H A D | br_vlan_options.c | 122 if (v->vid == br_get_pvid(vg)) 179 * current vlan, so we compute: tun_id + v - vinfo->vid 181 tun_id += v->vid - vinfo->vid; 190 return br_vlan_tunnel_info(p, cmd, v->vid, tun_id, changed); 272 int vid, err = 0; local 290 for (vid = range_start->vid; vid <= range_end->vid; vi 349 br_vlan_global_opts_fill(struct sk_buff *skb, u16 vid, u16 vid_range, const struct net_bridge_vlan *v_opts) argument 469 br_vlan_global_opts_notify(const struct net_bridge *br, u16 vid, u16 vid_range) argument 654 u16 vid, vid_range = 0; local [all...] |
/linux-master/drivers/hwmon/ |
H A D | atxp1.c | 17 #include <linux/hwmon-vid.h> 43 u8 vid; /* VID output register */ member in struct:atxp1_data::__anon1341 61 data->reg.vid = i2c_smbus_read_byte_data(client, ATXP1_VID); 84 size = sprintf(buf, "%d\n", vid_from_reg(data->reg.vid & ATXP1_VIDMASK, 96 int vid, cvid; local 108 vid = vid_to_reg(vcore, data->vrm); 109 if (vid < 0) { 111 return vid; 118 if (data->reg.vid & ATXP1_VIDENA) 119 cvid = data->reg.vid [all...] |
/linux-master/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_netdev.c | 634 * @vid: the VLAN vid 644 u32 vid, u8 vsi, bool set) 657 request->vlan.vid = vid; 675 * @vid: the vid to update 683 const unsigned char *addr, u16 vid, bool set) 702 request->mac.vid = vid; 643 fm10k_queue_vlan_request(struct fm10k_intfc *interface, u32 vid, u8 vsi, bool set) argument 682 fm10k_queue_mac_request(struct fm10k_intfc *interface, u16 glort, const unsigned char *addr, u16 vid, bool set) argument 758 u16 vid = interface->vid; local 778 u16 vid = interface->vid; local 793 fm10k_update_vid(struct net_device *netdev, u16 vid, bool set) argument 895 fm10k_vlan_rx_add_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) argument 902 fm10k_vlan_rx_kill_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) argument 909 fm10k_find_next_vlan(struct fm10k_intfc *interface, u16 vid) argument 922 u32 vid, prev_vid; local 941 u16 vid, glort = interface->glort; local 1006 u16 vid, glort = interface->glort; local 1087 u16 vid, glort; local 1353 u16 vid, glort; local 1451 u16 vid, glort; local [all...] |