/openbmc/linux/tools/testing/selftests/net/forwarding/ |
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 144 bridge vlan global set vid 10 dev br0 mcast_snooping 0 414 bridge vlan add vid 10 dev br1 self pvid untagged 417 bridge vlan add vid 10 dev $h1 master 495 bridge vlan set vid 10 dev $swp1 mcast_router 2 504 bridge vlan set vid 10 dev $swp2 mcast_router 0 509 bridge vlan add vid 10 dev br0 self 523 bridge vlan del vid 10 dev br0 self 525 bridge vlan set vid 10 dev $swp2 mcast_router 1 [all …]
|
H A D | vxlan_bridge_1q_ipv6.sh | 231 bridge vlan del vid 20 dev vx20 237 bridge vlan del vid 10 dev vx10 290 bridge vlan add vid 10 dev w1 291 bridge vlan add vid 20 dev w1 628 local vid=$1; shift 639 bridge vlan add vid $vid dev $swp2 untagged 660 bridge vlan add vid $vid dev $swp2 667 local vid=$1; shift 689 local vid=$1; shift 704 local vid=$1; shift [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/ |
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 144 bridge vlan global set vid 10 dev br0 mcast_snooping 0 414 bridge vlan add vid 10 dev br1 self pvid untagged 417 bridge vlan add vid 10 dev $h1 master 495 bridge vlan set vid 10 dev $swp1 mcast_router 2 504 bridge vlan set vid 10 dev $swp2 mcast_router 0 509 bridge vlan add vid 10 dev br0 self 523 bridge vlan del vid 10 dev br0 self 525 bridge vlan set vid 10 dev $swp2 mcast_router 1 [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | test_bridge_neigh_suppress.sh | 226 bridge -n $ns vlan add vid 10 dev swp1 227 bridge -n $ns vlan add vid 20 dev swp1 237 bridge -n $ns vlan add vid 10 dev vx0 240 bridge -n $ns vlan add vid 20 dev vx0 291 local vid=$1; shift 379 local vid=10 383 neigh_suppress_arp_common $vid $sip $tip 385 vid=20 393 local vid=$1; shift 482 local vid=10 [all …]
|
/openbmc/linux/net/batman-adv/ |
H A D | bridge_loop_avoidance.c | 114 if (gw1->vid != gw2->vid) in batadv_compare_backbone_gw() 138 if (cl1->vid != cl2->vid) in batadv_compare_claim() 271 search_entry.vid = vid; in batadv_backbone_hash_find() 512 entry->vid = vid; in batadv_bla_get_backbone_gw() 697 search_claim.vid = vid; in batadv_bla_add_claim() 708 claim->vid = vid; in batadv_bla_add_claim() 803 search_claim.vid = vid; in batadv_bla_del_claim() 1752 backbone_gw->vid == vid) { in batadv_bla_is_backbone_gw_orig() 1945 search_claim.vid = vid; in batadv_bla_rx() 2057 search_claim.vid = vid; in batadv_bla_tx() [all …]
|
H A D | distributed-arp-table.c | 291 __be16 vid; in batadv_hash_dat() local 301 vid = htons(dat->vid); in batadv_hash_dat() 338 to_find.vid = vid; in batadv_dat_entry_hash_find() 390 dat_entry->vid = vid; in batadv_dat_entry_add() 645 dat.vid = vid; in batadv_dat_select_candidates() 1077 unsigned short vid; in batadv_dat_get_vid() local 1089 return vid; in batadv_dat_get_vid() 1148 unsigned short vid; in batadv_dat_snoop_outgoing_arp_request() local 1242 unsigned short vid; in batadv_dat_snoop_incoming_arp_request() local 1278 NULL, vid); in batadv_dat_snoop_incoming_arp_request() [all …]
|
H A D | bridge_loop_avoidance.h | 37 unsigned short vid, int packet_type); 39 unsigned short vid); 46 unsigned short vid); 57 unsigned short vid); 63 struct sk_buff *skb, unsigned short vid, in batadv_bla_rx() argument 70 struct sk_buff *skb, unsigned short vid) in batadv_bla_tx() argument 83 u8 *orig, unsigned short vid) in batadv_bla_is_backbone_gw_orig() argument 125 unsigned short vid) in batadv_bla_check_claim() argument
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A D | gk20a.c | 101 if (volt->base.vid[i].uv >= uv) in gk20a_volt_vid_get() 108 gk20a_volt_vid_set(struct nvkm_volt *base, u8 vid) in gk20a_volt_vid_set() argument 113 nvkm_debug(subdev, "set voltage as %duv\n", volt->base.vid[vid].uv); in gk20a_volt_vid_set() 114 return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000); in gk20a_volt_vid_set() 123 int target_uv = volt->base.vid[id].uv; in gk20a_volt_set_id() 131 ret = gk20a_volt_vid_set(&volt->base, volt->base.vid[id].vid); in gk20a_volt_set_id() 163 volt->base.vid[i].vid = i; in gk20a_volt_ctor() 164 volt->base.vid[i].uv = max( in gk20a_volt_ctor() 168 volt->base.vid[i].vid, volt->base.vid[i].uv); in gk20a_volt_ctor()
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_switchdev.c | 308 u16 vid; in sparx5_switchdev_bridge_fdb_event_work() local 326 vid = 1; in sparx5_switchdev_bridge_fdb_event_work() 328 vid = fdb_info->vid; in sparx5_switchdev_bridge_fdb_event_work() 454 entry->vid = vid; in sparx5_alloc_mdb_entry() 473 if ((vid == 0 || entry->vid == vid) && in sparx5_free_mdb_entry() 522 u16 vid; in sparx5_handle_port_mdb_add() local 533 vid = 1; in sparx5_handle_port_mdb_add() 535 vid = v->vid; in sparx5_handle_port_mdb_add() 578 u16 vid; in sparx5_handle_port_mdb_del() local 586 vid = 1; in sparx5_handle_port_mdb_del() [all …]
|
/openbmc/linux/net/8021q/ |
H A D | vlan_core.c | 165 u16 vid; member 181 __be16 proto, u16 vid) in vlan_vid_info_get() argument 186 if (vid_info->proto == proto && vid_info->vid == vid) in vlan_vid_info_get() 200 vid_info->vid = vid; in vlan_vid_info_alloc() 244 vid_info->vid); in vlan_for_each() 245 ret = action(vdev, vid_info->vid, arg); in vlan_for_each() 263 vlan_vid_info->vid); in vlan_filter_push_vids() 276 vlan_vid_info->vid); in vlan_filter_push_vids() 291 vlan_vid_info->vid); in vlan_filter_drop_vids() 302 vid_info = vlan_vid_info_alloc(proto, vid); in __vlan_vid_add() [all …]
|
/openbmc/linux/net/bridge/ |
H A D | br_vlan_options.c | 181 tun_id += v->vid - vinfo->vid; in br_vlan_modify_tunnel() 272 int vid, err = 0; in br_vlan_process_options() local 290 for (vid = range_start->vid; vid <= range_end->vid; vid++) { in br_vlan_process_options() 313 if (v->vid == pvid || in br_vlan_process_options() 325 br_vlan_notify(br, p, curr_start->vid, curr_end->vid, in br_vlan_process_options() 332 br_vlan_notify(br, p, curr_start->vid, curr_end->vid, in br_vlan_process_options() 341 return v_curr->vid - r_end->vid == 1 && in br_vlan_global_opts_can_enter_range() 654 u16 vid, vid_range = 0; in br_vlan_rtm_process_global_options() local 693 vid_range = vid; in br_vlan_rtm_process_global_options() 696 for (; vid <= vid_range; vid++) { in br_vlan_rtm_process_global_options() [all …]
|
H A D | br_fdb.c | 217 __u16 vid) in fdb_find_rcu() argument 223 key.vlan_id = vid; in fdb_find_rcu() 232 __u16 vid) in br_fdb_find() argument 247 __u16 vid) in br_fdb_find_port() argument 271 __u16 vid) in br_fdb_find_rcu() argument 351 (!vid || br_vlan_find(vg, vid))) { in fdb_delete_local() 388 __u16 vid, in fdb_create() argument 731 u16 vid, in br_fdb_delete_by_port() argument 746 (vid && f->key.vlan_id != vid)) in br_fdb_delete_by_port() 1215 if (vid) { in br_fdb_add() [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/ocelot/ |
H A D | basic_qos.sh | 50 local vid=$1 52 vlan_create $h1 $vid 53 simple_if_init $h1.$vid $H1_IPV4/24 $H1_IPV6/64 54 ip link set $h1.$vid type vlan \ 61 local vid=$1 64 vlan_destroy $h1 $vid 69 local vid=$1 71 vlan_create $h2 $vid 73 ip link set $h2.$vid type vlan \ 80 local vid=$1 [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_fid.c | 28 u16 vid; member 52 u16 vid; member 409 mlxsw_sp_fid_8021q_fid(fid)->vid = vid; in mlxsw_sp_fid_8021q_setup() 814 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vp_mode_trans() local 837 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vp_mode_trans() local 857 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_mode_trans() local 878 port_vid->vid = vid; in mlxsw_sp_fid_port_vid_list_add() 982 vid); in mlxsw_sp_fid_8021d_port_vid_map() 1097 return mlxsw_sp_fid_8021q_fid(fid)->vid == vid; in mlxsw_sp_fid_8021q_compare() 1142 u16 vid) in mlxsw_sp_fid_rfid_port_vid_map() argument [all …]
|
/openbmc/linux/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) in cpsw_ale_get_vlan_p0_untag() argument 135 return test_bit(vid, ale->p0_untag_vid_mask); in cpsw_ale_get_vlan_p0_untag() 138 int cpsw_ale_vlan_add_modify(struct cpsw_ale *ale, u16 vid, int port_mask, [all …]
|
H A D | am65-cpsw-switchdev.c | 139 pvid = vid; in am65_cpsw_set_pvid() 189 am65_cpsw_set_pvid(port, vid, 0, 0); in am65_cpsw_port_vlan_add() 192 port->ndev->name, vid, port_mask); in am65_cpsw_port_vlan_add() 219 HOST_PORT_NUM, ALE_VLAN, vid); in am65_cpsw_port_vlan_del() 221 if (vid == am65_cpsw_get_pvid(port)) in am65_cpsw_port_vlan_del() 228 ALE_VLAN, vid); in am65_cpsw_port_vlan_del() 271 ALE_VLAN, mdb->vid, 0); in am65_cpsw_port_mdb_add() 294 ALE_VLAN, mdb->vid); in am65_cpsw_port_mdb_del() 360 info.vid = rcv->vid; in am65_cpsw_fdb_offload_notify() 390 fdb->vid ? ALE_VLAN : 0, fdb->vid); in am65_cpsw_switchdev_event_work() [all …]
|
H A D | cpsw_switchdev.c | 147 pvid = vid; in cpsw_set_pvid() 205 cpsw_set_pvid(priv, vid, 0, 0); in cpsw_port_vlan_add() 208 priv->ndev->name, vid, port_mask); in cpsw_port_vlan_add() 236 if (vid == cpsw_get_pvid(priv)) in cpsw_port_vlan_del() 243 port_mask, ALE_VLAN, vid); in cpsw_port_vlan_del() 245 priv->ndev->name, vid, port_mask); in cpsw_port_vlan_del() 279 ALE_VLAN, mdb->vid, 0); in cpsw_port_mdb_add() 302 ALE_VLAN, mdb->vid); in cpsw_port_mdb_del() 370 info.vid = rcv->vid; in cpsw_fdb_offload_notify() 400 fdb->vid ? ALE_VLAN : 0, fdb->vid); in cpsw_switchdev_event_work() [all …]
|
/openbmc/linux/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; 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), 86 TP_ARGS(dev, spid, vid));
|
H A D | switchdev.c | 27 ctx->vid_found = entry->vid; in __mv88e6xxx_find_vid() 34 static int mv88e6xxx_find_vid(struct mv88e6xxx_chip *chip, u16 fid, u16 *vid) in mv88e6xxx_find_vid() argument 46 *vid = ctx.vid_found; in mv88e6xxx_find_vid() 62 u16 vid; in mv88e6xxx_handle_miss_violation() local 65 err = mv88e6xxx_find_vid(chip, fid, &vid); in mv88e6xxx_handle_miss_violation() 69 info.vid = vid; in mv88e6xxx_handle_miss_violation()
|
/openbmc/linux/net/dsa/ |
H A D | switch.c | 151 if (ether_addr_equal(a->addr, addr) && a->vid == vid && in dsa_mac_addr_find() 199 a->vid = mdb->vid; in dsa_port_do_mdb_add() 297 a->vid = vid; in dsa_port_do_fdb_add() 385 a->vid = vid; in dsa_switch_do_lag_fdb_add() 448 info->vid, in dsa_switch_host_fdb_add() 452 info->vid, info->db); in dsa_switch_host_fdb_add() 476 info->vid, in dsa_switch_host_fdb_del() 480 info->vid, info->db); in dsa_switch_host_fdb_del() 526 info->addr, info->vid, in dsa_switch_lag_fdb_add() 682 if (v->vid == vlan->vid) in dsa_vlan_find() [all …]
|
/openbmc/u-boot/board/freescale/common/ |
H A D | vid.c | 284 u8 vid; in set_voltage_to_IR() local 297 1, (void *)&vid, sizeof(vid)); in set_voltage_to_IR() 377 u8 vid, buf; in adjust_vdd() local 379 u8 vid; in adjust_vdd() local 495 u8 vid; in adjust_vdd() member 537 if ((vid == 0) || (vid == FSL_CHASSIS3_DCFG_FUSESR_ALTVID_MASK)) { in adjust_vdd() 541 vdd_target = vdd[vid]; in adjust_vdd() 633 u8 vid, buf; in adjust_vdd() local 667 u8 vid; in adjust_vdd() member 727 if ((vid == 0) || (vid == FSL_CHASSIS2_DCFG_FUSESR_ALTVID_MASK)) { in adjust_vdd() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_eswitch_br.c | 241 vid); in ice_eswitch_br_flow_create() 274 u16 vid) in ice_eswitch_br_fdb_find() argument 277 .vid = vid, in ice_eswitch_br_fdb_find() 350 .vid = vid, in ice_eswitch_br_fdb_offload_notify() 379 mac, vid); in ice_eswitch_br_fdb_entry_find_and_delete() 409 vid); in ice_eswitch_br_fdb_entry_create() 435 fdb_entry->data.vid = vid; in ice_eswitch_br_fdb_entry_create() 480 u16 vid = fdb_work->fdb_info.vid; in ice_eswitch_br_fdb_event_work() local 635 if (vlan->vid == fdb_entry->data.vid) in ice_eswitch_br_vlan_cleanup() 663 if (port->pvid == vlan->vid || vlan->vid == 1) in ice_eswitch_br_set_pvid() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/ |
H A D | bridge_tracepoint.h | 19 __field(u16, vid) 28 __entry->vid = fdb->key.vid; 35 __entry->vid, 60 __field(u16, vid) 64 __entry->vid = vlan->vid; 68 __entry->vid, 120 __field(u16, vid) 126 __entry->vid = mdb->key.vid; 132 __entry->vid,
|
/openbmc/linux/tools/power/cpupower/debug/i386/ |
H A D | powernow-k8-decode.c | 27 static int get_fidvid(uint32_t cpu, uint32_t *fid, uint32_t *vid) in get_fidvid() argument 47 *vid = ((uint32_t )(msr>>32 & 0xffffffffull)) & MSR_S_HI_CURRENT_VID; in get_fidvid() 63 static uint32_t find_millivolts_from_vid(uint32_t vid) in find_millivolts_from_vid() argument 65 return 1550-vid*25; in find_millivolts_from_vid() 72 uint32_t fid, vid; in main() local 79 err = get_fidvid(cpu, &fid, &vid); in main() 92 find_millivolts_from_vid(vid)); in main()
|
/openbmc/linux/drivers/hwmon/ |
H A D | atxp1.c | 43 u8 vid; /* VID output register */ member 96 int vid, cvid; in cpu0_vid_store() local 108 vid = vid_to_reg(vcore, data->vrm); in cpu0_vid_store() 109 if (vid < 0) { in cpu0_vid_store() 111 return vid; in cpu0_vid_store() 118 if (data->reg.vid & ATXP1_VIDENA) in cpu0_vid_store() 119 cvid = data->reg.vid & ATXP1_VIDMASK; in cpu0_vid_store() 124 if (vid == cvid) in cpu0_vid_store() 130 if (cvid > vid) { in cpu0_vid_store() 131 for (; cvid >= vid; cvid--) in cpu0_vid_store() [all …]
|