Lines Matching refs:ocelot_port

505 	struct ocelot_port *ocelot_port = &priv->port;  in ocelot_vlan_vid_add()  local
506 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_vlan_vid_add()
566 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_xmit() local
567 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_xmit()
667 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_unsync() local
668 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_mc_unsync()
681 struct ocelot_port *ocelot_port = &priv->port; in ocelot_mc_sync() local
682 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_mc_sync()
715 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_set_mac_address() local
716 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_set_mac_address()
746 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_fdb_add() local
747 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_fdb_add()
750 return ocelot_fdb_add(ocelot, port, addr, vid, ocelot_port->bridge); in ocelot_port_fdb_add()
759 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_fdb_del() local
760 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_fdb_del()
763 return ocelot_fdb_del(ocelot, port, addr, vid, ocelot_port->bridge); in ocelot_port_fdb_del()
903 struct ocelot_port *ocelot_port = &priv->port; in ocelot_change_mtu() local
904 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_change_mtu()
933 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_to_netdev() local
936 if (!ocelot_port) in ocelot_port_to_netdev()
939 priv = container_of(ocelot_port, struct ocelot_port_private, port); in ocelot_port_to_netdev()
1088 struct ocelot_port *ocelot_port = &priv->port; in ocelot_vlan_vid_prepare() local
1089 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_vlan_vid_prepare()
1114 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_obj_add_mdb() local
1115 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_obj_add_mdb()
1118 return ocelot_port_mdb_add(ocelot, port, mdb, ocelot_port->bridge); in ocelot_port_obj_add_mdb()
1125 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_obj_del_mdb() local
1126 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_obj_del_mdb()
1129 return ocelot_port_mdb_del(ocelot, port, mdb, ocelot_port->bridge); in ocelot_port_obj_del_mdb()
1136 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_obj_mrp_add() local
1137 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_obj_mrp_add()
1147 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_obj_mrp_del() local
1148 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_obj_mrp_del()
1159 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_obj_mrp_add_ring_role() local
1160 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_obj_mrp_add_ring_role()
1171 struct ocelot_port *ocelot_port = &priv->port; in ocelot_port_obj_mrp_del_ring_role() local
1172 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_port_obj_mrp_del_ring_role()
1336 struct ocelot_port *ocelot_port = &priv->port; in ocelot_netdevice_bridge_join() local
1337 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_netdevice_bridge_join()
1387 struct ocelot_port *ocelot_port = &priv->port; in ocelot_netdevice_bridge_leave() local
1388 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_netdevice_bridge_leave()
1389 int bridge_num = ocelot_port->bridge_num; in ocelot_netdevice_bridge_leave()
1409 struct ocelot_port *ocelot_port = &priv->port; in ocelot_netdevice_lag_join() local
1410 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_netdevice_lag_join()
1451 struct ocelot_port *ocelot_port = &priv->port; in ocelot_netdevice_lag_leave() local
1452 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_netdevice_lag_leave()
1510 struct ocelot_port *ocelot_port = &priv->port; in ocelot_netdevice_lag_changeupper() local
1512 if (ocelot_port->bond != dev) in ocelot_netdevice_lag_changeupper()
1547 struct ocelot_port *ocelot_port = &priv->port; in ocelot_netdevice_lag_prechangeupper() local
1549 if (ocelot_port->bond != dev) in ocelot_netdevice_lag_prechangeupper()
1566 struct ocelot_port *ocelot_port = &priv->port; in ocelot_netdevice_changelowerstate() local
1567 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_netdevice_changelowerstate()
1570 if (!ocelot_port->bond) in ocelot_netdevice_changelowerstate()
1573 if (ocelot_port->lag_tx_active == is_active) in ocelot_netdevice_changelowerstate()
1688 struct ocelot_port *ocelot_port = &priv->port; in vsc7514_phylink_mac_config() local
1691 ocelot_port_writel(ocelot_port, DEV_PORT_MISC_HDX_FAST_DIS, in vsc7514_phylink_mac_config()
1695 ocelot_port_writel(ocelot_port, PCS1G_MODE_CFG_SGMII_MODE_ENA, in vsc7514_phylink_mac_config()
1697 ocelot_port_writel(ocelot_port, PCS1G_SD_CFG_SD_SEL, PCS1G_SD_CFG); in vsc7514_phylink_mac_config()
1700 ocelot_port_writel(ocelot_port, PCS1G_CFG_PCS_ENA, PCS1G_CFG); in vsc7514_phylink_mac_config()
1703 ocelot_port_writel(ocelot_port, 0, PCS1G_ANEG_CFG); in vsc7514_phylink_mac_config()
1706 ocelot_port_writel(ocelot_port, 0, PCS1G_LB_CFG); in vsc7514_phylink_mac_config()
1749 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_phylink_create() local
1773 ocelot_port_rmwl(ocelot_port, 0, in ocelot_port_phylink_create()
1778 ocelot_port->phy_mode = phy_mode; in ocelot_port_phylink_create()
1800 priv = container_of(ocelot_port, struct ocelot_port_private, port); in ocelot_port_phylink_create()
1807 __set_bit(ocelot_port->phy_mode, in ocelot_port_phylink_create()
1836 struct ocelot_port *ocelot_port; in ocelot_probe_port() local
1846 ocelot_port = &priv->port; in ocelot_probe_port()
1847 ocelot_port->ocelot = ocelot; in ocelot_probe_port()
1848 ocelot_port->index = port; in ocelot_probe_port()
1849 ocelot_port->target = target; in ocelot_probe_port()
1850 ocelot->ports[port] = ocelot_port; in ocelot_probe_port()
1894 void ocelot_release_port(struct ocelot_port *ocelot_port) in ocelot_release_port() argument
1896 struct ocelot_port_private *priv = container_of(ocelot_port, in ocelot_release_port()
1899 struct ocelot *ocelot = ocelot_port->ocelot; in ocelot_release_port()