/kernel/linux/linux-6.6/net/bridge/ |
H A D | br_vlan_options.c | 273 u16 pvid; in br_vlan_process_options() local 289 pvid = br_get_pvid(vg); in br_vlan_process_options() 313 if (v->vid == pvid || in br_vlan_process_options()
|
H A D | br_switchdev.c | 419 u16 pvid; in br_switchdev_vlan_replay_group() local 424 pvid = br_get_pvid(vg); in br_switchdev_vlan_replay_group() 430 .flags = br_vlan_flags(v, pvid), in br_switchdev_vlan_replay_group()
|
/kernel/linux/linux-5.10/drivers/net/dsa/ |
H A D | lantiq_gswip.c | 1007 bool pvid) in gswip_vlan_add_aware() 1074 if (pvid) in gswip_vlan_add_aware() 1082 u16 vid, bool pvid, bool vlan_aware) in gswip_vlan_remove() 1132 if (pvid) in gswip_vlan_remove() 1226 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in gswip_port_vlan_add() local 1238 gswip_vlan_add_aware(priv, bridge, port, vid, untagged, pvid); in gswip_port_vlan_add() 1246 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in gswip_port_vlan_del() local 1259 err = gswip_vlan_remove(priv, bridge, port, vid, pvid, true); in gswip_port_vlan_del() 1004 gswip_vlan_add_aware(struct gswip_priv *priv, struct net_device *bridge, int port, u16 vid, bool untagged, bool pvid) gswip_vlan_add_aware() argument 1080 gswip_vlan_remove(struct gswip_priv *priv, struct net_device *bridge, int port, u16 vid, bool pvid, bool vlan_aware) gswip_vlan_remove() argument
|
/kernel/linux/linux-6.6/drivers/net/dsa/ |
H A D | lantiq_gswip.c | 1030 bool pvid) in gswip_vlan_add_aware() 1097 if (pvid) in gswip_vlan_add_aware() 1105 u16 vid, bool pvid, bool vlan_aware) in gswip_vlan_remove() 1155 if (pvid) in gswip_vlan_remove() 1252 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in gswip_port_vlan_add() local 1268 untagged, pvid); in gswip_port_vlan_add() 1276 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in gswip_port_vlan_del() local 1286 return gswip_vlan_remove(priv, bridge, port, vlan->vid, pvid, true); in gswip_port_vlan_del() 1027 gswip_vlan_add_aware(struct gswip_priv *priv, struct net_device *bridge, int port, u16 vid, bool untagged, bool pvid) gswip_vlan_add_aware() argument 1103 gswip_vlan_remove(struct gswip_priv *priv, struct net_device *bridge, int port, u16 vid, bool pvid, bool vlan_aware) gswip_vlan_remove() argument
|
H A D | mt7530.c | 1364 G0_PORT_VID(priv->ports[port].pvid)); in mt7530_port_set_vlan_aware() 1367 if (!priv->ports[port].pvid) in mt7530_port_set_vlan_aware() 1715 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in mt7530_port_vlan_add() local 1724 if (pvid) { in mt7530_port_vlan_add() 1725 priv->ports[port].pvid = vlan->vid; in mt7530_port_vlan_add() 1736 } else if (vlan->vid && priv->ports[port].pvid == vlan->vid) { in mt7530_port_vlan_add() 1738 priv->ports[port].pvid = G0_PORT_VID_DEF; in mt7530_port_vlan_add() 1770 if (priv->ports[port].pvid == vlan->vid) { in mt7530_port_vlan_del() 1771 priv->ports[port].pvid = G0_PORT_VID_DEF; in mt7530_port_vlan_del()
|
/kernel/linux/linux-6.6/drivers/net/dsa/hirschmann/ |
H A D | hellcreek.c | 151 bool pvid) in hellcreek_select_vlan() 155 /* Set pvid bit first */ in hellcreek_select_vlan() 156 if (pvid) in hellcreek_select_vlan() 407 bool pvid, bool untagged) in hellcreek_apply_vlan() 412 dev_dbg(hellcreek->dev, "Apply VLAN: port=%d vid=%u pvid=%d untagged=%d", in hellcreek_apply_vlan() 413 port, vid, pvid, untagged); in hellcreek_apply_vlan() 418 hellcreek_select_vlan(hellcreek, vid, pvid); in hellcreek_apply_vlan() 464 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in hellcreek_vlan_add() local 474 pvid ? "PVID" : "no PVID"); in hellcreek_vlan_add() 476 hellcreek_apply_vlan(hellcreek, port, vlan->vid, pvid, untagge in hellcreek_vlan_add() 150 hellcreek_select_vlan(struct hellcreek *hellcreek, int vid, bool pvid) hellcreek_select_vlan() argument 406 hellcreek_apply_vlan(struct hellcreek *hellcreek, int port, u16 vid, bool pvid, bool untagged) hellcreek_apply_vlan() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/dsa/microchip/ |
H A D | ksz8795.c | 901 u16 data, vid, pvid; in ksz8795_port_vlan_del() local 905 ksz_pread16(dev, port, REG_PORT_CTRL_VID, &pvid); in ksz8795_port_vlan_del() 906 pvid = pvid & 0xFFF; in ksz8795_port_vlan_del() 920 if (pvid == vid) in ksz8795_port_vlan_del()
|
H A D | ksz9477.c | 558 u16 pvid; in ksz9477_port_vlan_del() local 560 ksz_pread16(dev, port, REG_PORT_DEFAULT_VID, &pvid); in ksz9477_port_vlan_del() 561 pvid = pvid & 0xFFF; in ksz9477_port_vlan_del() 571 if (pvid == vid) in ksz9477_port_vlan_del() 572 pvid = 1; in ksz9477_port_vlan_del() 583 ksz_pwrite16(dev, port, REG_PORT_DEFAULT_VID, pvid); in ksz9477_port_vlan_del()
|
/kernel/linux/linux-5.10/net/bridge/ |
H A D | br_private.h | 163 * @pvid: PVID VLAN id 177 u16 pvid; member 583 /* pvid flag is not allowed in ranges */ 1074 int __br_vlan_set_default_pvid(struct net_bridge *br, u16 pvid, 1143 return vg->pvid; in br_get_pvid() 1146 static inline u16 br_vlan_flags(const struct net_bridge_vlan *v, u16 pvid) in br_vlan_flags() argument 1148 return v->vid == pvid ? v->flags | BRIDGE_VLAN_INFO_PVID : v->flags; in br_vlan_flags()
|
/kernel/linux/linux-6.6/drivers/net/dsa/mv88e6xxx/ |
H A D | port.c | 1101 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid) in mv88e6xxx_port_get_pvid() argument 1111 *pvid = reg & MV88E6XXX_PORT_DEFAULT_VLAN_MASK; in mv88e6xxx_port_get_pvid() 1116 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid) in mv88e6xxx_port_set_pvid() argument 1127 reg |= pvid & MV88E6XXX_PORT_DEFAULT_VLAN_MASK; in mv88e6xxx_port_set_pvid() 1134 dev_dbg(chip->dev, "p%d: DefaultVID set to %u\n", port, pvid); in mv88e6xxx_port_set_pvid()
|
H A D | port.h | 381 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid); 382 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera.h | 71 u16 pvid; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch.h | 154 u16 pvid; member
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
H A D | router_bridge.sh | 116 bridge vlan add dev br1 vid 1 self pvid untagged
|
H A D | mirror_gre_vlan_bridge_1q.sh | 232 bridge vlan add dev $swp3 vid 555 pvid untagged
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/ |
H A D | layout_eth_conf_1_0.h | 85 uint16_t pvid; member
|
H A D | layout_eth_conf.h | 84 uint16_t pvid; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/ |
H A D | ocelot_net.c | 492 static int ocelot_vlan_vid_add(struct net_device *dev, u16 vid, bool pvid, in ocelot_vlan_vid_add() argument 501 ret = ocelot_vlan_add(ocelot, port, vid, pvid, untagged); in ocelot_vlan_vid_add() 1074 static int ocelot_vlan_vid_prepare(struct net_device *dev, u16 vid, bool pvid, in ocelot_vlan_vid_prepare() argument 1082 return ocelot_vlan_prepare(ocelot, port, vid, pvid, untagged, extack); in ocelot_vlan_vid_prepare() 1090 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in ocelot_port_obj_add_vlan() local 1093 ret = ocelot_vlan_vid_prepare(dev, vlan->vid, pvid, untagged, extack); in ocelot_port_obj_add_vlan() 1097 return ocelot_vlan_vid_add(dev, vlan->vid, pvid, untagged); in ocelot_port_obj_add_vlan()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_switchdev.c | 1417 else if (mlxsw_sp_port->pvid == vid) in mlxsw_sp_port_pvid_determine() 1420 return mlxsw_sp_port->pvid; in mlxsw_sp_port_pvid_determine() 1518 u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); in mlxsw_sp_bridge_port_vlan_add() local 1520 u16 old_pvid = mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_add() 1546 err = mlxsw_sp_port_pvid_set(mlxsw_sp_port, pvid, proto); in mlxsw_sp_bridge_port_vlan_add() 2292 u16 pvid = mlxsw_sp_port->pvid == vid ? 0 : mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_del() local 2302 mlxsw_sp_port_pvid_set(mlxsw_sp_port, pvid, proto); in mlxsw_sp_bridge_port_vlan_del() 2575 u16 pvid; in mlxsw_sp_bridge_8021q_vxlan_dev_find() local [all...] |
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/ |
H A D | port.h | 327 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid); 328 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_mactable.c | 123 return sparx5_mact_forget(sparx5, addr, port->pvid); in sparx5_mc_unsync() 131 return sparx5_mact_learn(sparx5, PGID_CPU, addr, port->pvid); in sparx5_mc_sync()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
H A D | mirror_gre_vlan_bridge_1q.sh | 231 bridge vlan add dev $swp3 vid 555 pvid untagged
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | extack.sh | 100 bridge vlan add dev vx1 vid 1 pvid untagged 2>&1 >/dev/null \
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sriov.h | 130 u16 pvid; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sriov.h | 130 u16 pvid; member
|