Home
last modified time | relevance | path

Searched refs:ocelot_port (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/mscc/
Docelot_mrp.c19 struct ocelot_port *p) in ocelot_mrp_find_partner_port()
24 struct ocelot_port *ocelot_port = ocelot->ports[i]; in ocelot_mrp_find_partner_port() local
26 if (!ocelot_port || p == ocelot_port) in ocelot_mrp_find_partner_port()
29 if (ocelot_port->mrp_ring_id == p->mrp_ring_id) in ocelot_mrp_find_partner_port()
116 struct ocelot_port *port) in ocelot_mrp_save_mac()
125 struct ocelot_port *port) in ocelot_mrp_del_mac()
134 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_mrp_add() local
138 if (!ocelot_port) in ocelot_mrp_add()
141 priv = container_of(ocelot_port, struct ocelot_port_private, port); in ocelot_mrp_add()
147 ocelot_port->mrp_ring_id = mrp->ring_id; in ocelot_mrp_add()
[all …]
Docelot.c168 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_set_native_vlan() local
171 ocelot_port->native_vlan = native_vlan; in ocelot_port_set_native_vlan()
177 if (ocelot_port->vlan_aware) { in ocelot_port_set_native_vlan()
197 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_set_pvid() local
200 ocelot_port->pvid_vlan = pvid_vlan; in ocelot_port_set_pvid()
202 if (!ocelot_port->vlan_aware) in ocelot_port_set_pvid()
215 if (!pvid_vlan.valid && ocelot_port->vlan_aware) in ocelot_port_set_pvid()
256 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_vlan_filtering() local
269 ocelot_port->vlan_aware = vlan_aware; in ocelot_port_vlan_filtering()
281 ocelot_port_set_pvid(ocelot, port, ocelot_port->pvid_vlan); in ocelot_port_vlan_filtering()
[all …]
Docelot_net.c394 struct ocelot_port *ocelot_port = &priv->port; in ocelot_vlan_vid_add() local
395 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_vlan_vid_add()
455 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_xmit() local
456 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_xmit()
551 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_unsync() local
552 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_mc_unsync()
556 w.forget.vid = ocelot_port->pvid_vlan.vid; in ocelot_mc_unsync()
565 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_sync() local
566 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_mc_sync()
570 w.learn.vid = ocelot_port->pvid_vlan.vid; in ocelot_mc_sync()
[all …]
Docelot.h42 struct ocelot_port port;
103 u32 ocelot_port_readl(struct ocelot_port *port, u32 reg);
104 void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg);
108 void ocelot_release_port(struct ocelot_port *ocelot_port);
Docelot_io.c50 u32 ocelot_port_readl(struct ocelot_port *port, u32 reg) in ocelot_port_readl()
63 void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg) in ocelot_port_writel()
74 void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, u32 reg) in ocelot_port_rmwl()
Docelot_vsc7514.c914 struct ocelot_port *ocelot_port; in mscc_ocelot_release_ports() local
916 ocelot_port = ocelot->ports[port]; in mscc_ocelot_release_ports()
917 if (!ocelot_port) in mscc_ocelot_release_ports()
921 ocelot_release_port(ocelot_port); in mscc_ocelot_release_ports()
935 sizeof(struct ocelot_port *), GFP_KERNEL); in mscc_ocelot_init_ports()
948 struct ocelot_port *ocelot_port; in mscc_ocelot_init_ports() local
991 ocelot_port = ocelot->ports[port]; in mscc_ocelot_init_ports()
992 priv = container_of(ocelot_port, struct ocelot_port_private, in mscc_ocelot_init_ports()
Docelot_flower.c149 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_flower_parse_action() local
286 if (!ocelot_port->vlan_aware) { in ocelot_flower_parse_action()
/Linux-v5.15/drivers/net/dsa/ocelot/
Dfelix.c981 sizeof(struct ocelot_port *), GFP_KERNEL); in felix_init_structs()
1036 struct ocelot_port *ocelot_port; in felix_init_structs() local
1039 ocelot_port = devm_kzalloc(ocelot->dev, in felix_init_structs()
1040 sizeof(struct ocelot_port), in felix_init_structs()
1042 if (!ocelot_port) { in felix_init_structs()
1063 ocelot_port->phy_mode = port_phy_modes[port]; in felix_init_structs()
1064 ocelot_port->ocelot = ocelot; in felix_init_structs()
1065 ocelot_port->target = target; in felix_init_structs()
1066 ocelot->ports[port] = ocelot_port; in felix_init_structs()
1083 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_purge_txtstamp_skb() local
[all …]
Dseville_vsc9953.c997 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9953_phylink_validate() local
1001 state->interface != ocelot_port->phy_mode) { in vsc9953_phylink_validate()
1122 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9953_mdio_bus_alloc() local
1130 if (ocelot_port->phy_mode == PHY_INTERFACE_MODE_INTERNAL) in vsc9953_mdio_bus_alloc()
Dfelix_vsc9959.c941 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_phylink_validate() local
945 state->interface != ocelot_port->phy_mode) { in vsc9959_phylink_validate()
1095 struct ocelot_port *ocelot_port = ocelot->ports[port]; in vsc9959_mdio_bus_alloc() local
1102 if (ocelot_port->phy_mode == PHY_INTERFACE_MODE_INTERNAL) in vsc9959_mdio_bus_alloc()
/Linux-v5.15/include/soc/mscc/
Docelot.h586 struct ocelot_port { struct
634 struct ocelot_port **ports; argument
728 u32 ocelot_port_readl(struct ocelot_port *port, u32 reg);
729 void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg);
730 void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, u32 reg);