/drivers/net/ethernet/ti/ |
D | am65-cpsw-switchdev.c | 121 u32 pvid; in am65_cpsw_get_pvid() local 124 pvid = readl(port->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_get_pvid() 126 pvid = readl(host_p->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_get_pvid() 128 pvid = pvid & 0xfff; in am65_cpsw_get_pvid() 130 return pvid; in am65_cpsw_get_pvid() 137 u32 pvid; in am65_cpsw_set_pvid() local 139 pvid = vid; in am65_cpsw_set_pvid() 140 pvid |= cfi ? BIT(12) : 0; in am65_cpsw_set_pvid() 141 pvid |= (cos & 0x7) << 13; in am65_cpsw_set_pvid() 144 writel(pvid, port->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_set_pvid() [all …]
|
D | cpsw_switchdev.c | 123 u32 pvid; in cpsw_get_pvid() local 130 pvid = slave_read(cpsw->slaves + (priv->emac_port - 1), reg); in cpsw_get_pvid() 133 pvid = readl(port_vlan_reg); in cpsw_get_pvid() 136 pvid = pvid & 0xfff; in cpsw_get_pvid() 138 return pvid; in cpsw_get_pvid() 145 u32 pvid; in cpsw_set_pvid() local 147 pvid = vid; in cpsw_set_pvid() 148 pvid |= cfi ? BIT(12) : 0; in cpsw_set_pvid() 149 pvid |= (cos & 0x7) << 13; in cpsw_set_pvid() 157 slave_write(cpsw->slaves + (priv->emac_port - 1), pvid, reg); in cpsw_set_pvid() [all …]
|
/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_vlan.c | 48 ANA_CL_VLAN_CTRL_PORT_VID_SET(port->pvid), in sparx5_vlan_port_setup() 55 int sparx5_vlan_vid_add(struct sparx5_port *port, u16 vid, bool pvid, in sparx5_vlan_vid_add() argument 79 if (pvid) in sparx5_vlan_vid_add() 80 port->pvid = vid; in sparx5_vlan_vid_add() 106 if (port->pvid == vid) in sparx5_vlan_vid_del() 107 port->pvid = 0; in sparx5_vlan_vid_del() 194 ANA_CL_VLAN_CTRL_PORT_VID_SET(port->pvid); in sparx5_vlan_port_apply() 198 if (port->vlan_aware && !port->pvid) in sparx5_vlan_port_apply()
|
D | sparx5_netdev.c | 169 sparx5_mact_forget(sparx5, dev->dev_addr, port->pvid); in sparx5_set_mac_address() 172 sparx5_mact_learn(sparx5, PGID_CPU, addr->sa_data, port->pvid); in sparx5_set_mac_address()
|
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()
|
D | sparx5_switchdev.c | 145 port->pvid = NULL_VID; in sparx5_port_bridge_leave() 178 u16 vid = port->pvid; in sparx5_port_add_addr()
|
D | sparx5_main.h | 158 u16 pvid; member 275 int sparx5_vlan_vid_add(struct sparx5_port *port, u16 vid, bool pvid,
|
/drivers/net/dsa/ |
D | dsa_loop.c | 207 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in dsa_loop_port_vlan_add() local 227 __func__, port, vlan->vid, untagged ? "un" : "", pvid); in dsa_loop_port_vlan_add() 229 if (pvid) in dsa_loop_port_vlan_add() 230 ps->ports[port].pvid = vlan->vid; in dsa_loop_port_vlan_add() 240 u16 pvid = ps->ports[port].pvid; in dsa_loop_port_vlan_del() local 253 if (pvid == vlan->vid) in dsa_loop_port_vlan_del() 254 pvid = 1; in dsa_loop_port_vlan_del() 257 __func__, port, vlan->vid, untagged ? "un" : "", pvid); in dsa_loop_port_vlan_del() 258 ps->ports[port].pvid = pvid; in dsa_loop_port_vlan_del()
|
D | rtl8366.c | 383 bool pvid = !!(vlan->flags & BRIDGE_VLAN_INFO_PVID); in rtl8366_vlan_add() local 406 pvid ? " PVID" : "no PVID"); in rtl8366_vlan_add() 422 if (!pvid) in rtl8366_vlan_add()
|
D | lantiq_gswip.c | 1005 bool pvid) in gswip_vlan_add_aware() argument 1072 if (pvid) in gswip_vlan_add_aware() 1080 u16 vid, bool pvid, bool vlan_aware) in gswip_vlan_remove() argument 1130 if (pvid) in gswip_vlan_remove() 1223 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in gswip_port_vlan_add() local 1239 untagged, pvid); in gswip_port_vlan_add() 1247 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in gswip_port_vlan_del() local 1257 return gswip_vlan_remove(priv, bridge, port, vlan->vid, pvid, true); in gswip_port_vlan_del()
|
D | mt7530.c | 1294 G0_PORT_VID(priv->ports[port].pvid)); in mt7530_port_set_vlan_aware() 1297 if (!priv->ports[port].pvid) in mt7530_port_set_vlan_aware() 1639 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in mt7530_port_vlan_add() local 1648 if (pvid) { in mt7530_port_vlan_add() 1649 priv->ports[port].pvid = vlan->vid; in mt7530_port_vlan_add() 1660 } else if (vlan->vid && priv->ports[port].pvid == vlan->vid) { in mt7530_port_vlan_add() 1662 priv->ports[port].pvid = G0_PORT_VID_DEF; in mt7530_port_vlan_add() 1694 if (priv->ports[port].pvid == vlan->vid) { in mt7530_port_vlan_del() 1695 priv->ports[port].pvid = G0_PORT_VID_DEF; in mt7530_port_vlan_del()
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_switchdev.c | 965 u16 old_pvid = port->pvid; in prestera_bridge_port_vlan_add() 966 u16 pvid; in prestera_bridge_port_vlan_add() local 970 pvid = vid; in prestera_bridge_port_vlan_add() 972 pvid = port->pvid == vid ? 0 : port->pvid; in prestera_bridge_port_vlan_add() 988 err = prestera_port_pvid_set(port, pvid); in prestera_bridge_port_vlan_add() 1012 u16 pvid = port->pvid == vid ? 0 : port->pvid; in prestera_bridge_port_vlan_del() local 1020 prestera_port_pvid_set(port, pvid); in prestera_bridge_port_vlan_del()
|
D | prestera_main.c | 48 prestera_hw_vlan_port_vid_set(port, port->pvid); in prestera_port_pvid_set() 50 port->pvid = vid; in prestera_port_pvid_set() 306 port->pvid = PRESTERA_DEFAULT_VID; in prestera_port_create()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_switchdev.c | 1049 else if (mlxsw_sp_port->pvid == vid) in mlxsw_sp_port_pvid_determine() 1052 return mlxsw_sp_port->pvid; in mlxsw_sp_port_pvid_determine() 1150 u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); in mlxsw_sp_bridge_port_vlan_add() local 1152 u16 old_pvid = mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_add() 1178 err = mlxsw_sp_port_pvid_set(mlxsw_sp_port, pvid, proto); in mlxsw_sp_bridge_port_vlan_add() 1203 u16 pvid; in mlxsw_sp_br_ban_rif_pvid_change() local 1205 pvid = mlxsw_sp_rif_vid(mlxsw_sp, br_dev); in mlxsw_sp_br_ban_rif_pvid_change() 1206 if (!pvid) in mlxsw_sp_br_ban_rif_pvid_change() 1210 if (vlan->vid != pvid) { in mlxsw_sp_br_ban_rif_pvid_change() 1215 if (vlan->vid == pvid) { in mlxsw_sp_br_ban_rif_pvid_change() [all …]
|
/drivers/net/dsa/b53/ |
D | b53_common.c | 1487 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in b53_vlan_add() local 1511 if (pvid && !dsa_is_cpu_port(ds, port)) { in b53_vlan_add() 1527 u16 pvid; in b53_vlan_del() local 1529 b53_read16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port), &pvid); in b53_vlan_del() 1537 if (pvid == vlan->vid) in b53_vlan_del() 1538 pvid = b53_default_pvid(dev); in b53_vlan_del() 1546 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port), pvid); in b53_vlan_del() 1547 b53_fast_age_vlan(dev, pvid); in b53_vlan_del() 1907 u16 pvlan, reg, pvid; in b53_br_leave() local 1929 pvid = b53_default_pvid(dev); in b53_br_leave() [all …]
|
/drivers/net/dsa/microchip/ |
D | ksz9477.c | 557 u16 pvid; in ksz9477_port_vlan_del() local 559 ksz_pread16(dev, port, REG_PORT_DEFAULT_VID, &pvid); in ksz9477_port_vlan_del() 560 pvid = pvid & 0xFFF; in ksz9477_port_vlan_del() 569 if (pvid == vlan->vid) in ksz9477_port_vlan_del() 570 pvid = 1; in ksz9477_port_vlan_del() 580 ksz_pwrite16(dev, port, REG_PORT_DEFAULT_VID, pvid); in ksz9477_port_vlan_del()
|
/drivers/net/dsa/sja1105/ |
D | sja1105_main.c | 89 static int sja1105_pvid_apply(struct sja1105_private *priv, int port, u16 pvid) in sja1105_pvid_apply() argument 95 if (mac[port].vlanid == pvid) in sja1105_pvid_apply() 98 mac[port].vlanid = pvid; in sja1105_pvid_apply() 111 u16 pvid; in sja1105_commit_pvid() local 114 pvid = priv->bridge_pvid[port]; in sja1105_commit_pvid() 116 pvid = priv->tag_8021q_pvid[port]; in sja1105_commit_pvid() 118 rc = sja1105_pvid_apply(priv, port, pvid); in sja1105_commit_pvid() 129 if (pvid == priv->bridge_pvid[port]) { in sja1105_commit_pvid() 132 match = sja1105_is_vlan_configured(priv, pvid); in sja1105_commit_pvid() 451 struct sja1105_vlan_lookup_entry pvid = { in sja1105_init_static_vlan() local [all …]
|
/drivers/net/dsa/hirschmann/ |
D | hellcreek.c | 142 bool pvid) in hellcreek_select_vlan() argument 147 if (pvid) in hellcreek_select_vlan() 398 bool pvid, bool untagged) in hellcreek_apply_vlan() argument 404 port, vid, pvid, untagged); in hellcreek_apply_vlan() 409 hellcreek_select_vlan(hellcreek, vid, pvid); in hellcreek_apply_vlan() 455 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in hellcreek_vlan_add() local 465 pvid ? "PVID" : "no PVID"); in hellcreek_vlan_add() 467 hellcreek_apply_vlan(hellcreek, port, vlan->vid, pvid, untagged); in hellcreek_vlan_add()
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_debugfs.h | 753 u16 pvid; member
|
/drivers/net/dsa/mv88e6xxx/ |
D | port.h | 365 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid); 366 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid);
|
D | port.c | 1119 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid) in mv88e6xxx_port_get_pvid() argument 1129 *pvid = reg & MV88E6XXX_PORT_DEFAULT_VLAN_MASK; in mv88e6xxx_port_get_pvid() 1134 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid) in mv88e6xxx_port_set_pvid() argument 1145 reg |= pvid & MV88E6XXX_PORT_DEFAULT_VLAN_MASK; in mv88e6xxx_port_set_pvid() 1152 dev_dbg(chip->dev, "p%d: DefaultVID set to %u\n", port, pvid); in mv88e6xxx_port_set_pvid()
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_iov.c | 383 s32 fm10k_iov_update_pvid(struct fm10k_intfc *interface, u16 glort, u16 pvid) in fm10k_iov_update_pvid() argument 400 if (vf_info->sw_vid != pvid) { in fm10k_iov_update_pvid() 401 vf_info->sw_vid = pvid; in fm10k_iov_update_pvid()
|
/drivers/net/ethernet/mscc/ |
D | ocelot_net.c | 390 static int ocelot_vlan_vid_add(struct net_device *dev, u16 vid, bool pvid, in ocelot_vlan_vid_add() argument 399 ret = ocelot_vlan_add(ocelot, port, vid, pvid, untagged); in ocelot_vlan_vid_add() 938 static int ocelot_vlan_vid_prepare(struct net_device *dev, u16 vid, bool pvid, in ocelot_vlan_vid_prepare() argument 946 return ocelot_vlan_prepare(ocelot, port, vid, pvid, untagged, extack); in ocelot_vlan_vid_prepare() 954 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in ocelot_port_obj_add_vlan() local 957 ret = ocelot_vlan_vid_prepare(dev, vlan->vid, pvid, untagged, extack); in ocelot_port_obj_add_vlan() 961 return ocelot_vlan_vid_add(dev, vlan->vid, pvid, untagged); in ocelot_port_obj_add_vlan()
|
/drivers/net/dsa/ocelot/ |
D | felix.c | 30 bool pvid, bool untagged) in felix_tag_8021q_rxvlan_add() argument 41 if (!pvid) in felix_tag_8021q_rxvlan_add() 76 bool pvid, bool untagged) in felix_tag_8021q_txvlan_add() argument 150 bool pvid = flags & BRIDGE_VLAN_INFO_PVID; in felix_tag_8021q_vlan_add() local 155 port, vid, pvid, untagged); in felix_tag_8021q_vlan_add() 159 port, vid, pvid, untagged); in felix_tag_8021q_vlan_add()
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-switch.h | 154 u16 pvid; member
|