Lines Matching defs:port_priv
37 struct ethsw_port_priv *port_priv = netdev_priv(netdev);
43 err = dpsw_get_api_version(port_priv->ethsw_data->mc_io, 0,
61 struct ethsw_port_priv *port_priv = netdev_priv(netdev);
65 mutex_lock(&port_priv->mac_lock);
67 if (dpaa2_switch_port_is_type_phy(port_priv)) {
68 err = phylink_ethtool_ksettings_get(port_priv->mac->phylink,
70 mutex_unlock(&port_priv->mac_lock);
74 mutex_unlock(&port_priv->mac_lock);
76 err = dpsw_if_get_link_state(port_priv->ethsw_data->mc_io, 0,
77 port_priv->ethsw_data->dpsw_handle,
78 port_priv->idx,
103 struct ethsw_port_priv *port_priv = netdev_priv(netdev);
104 struct ethsw_core *ethsw = port_priv->ethsw_data;
109 mutex_lock(&port_priv->mac_lock);
111 if (dpaa2_switch_port_is_type_phy(port_priv)) {
112 err = phylink_ethtool_ksettings_set(port_priv->mac->phylink,
114 mutex_unlock(&port_priv->mac_lock);
118 mutex_unlock(&port_priv->mac_lock);
125 port_priv->idx);
142 err = dpsw_if_set_link_cfg(port_priv->ethsw_data->mc_io, 0,
143 port_priv->ethsw_data->dpsw_handle,
144 port_priv->idx,
150 port_priv->idx);
192 struct ethsw_port_priv *port_priv = netdev_priv(netdev);
196 err = dpsw_if_get_counter(port_priv->ethsw_data->mc_io, 0,
197 port_priv->ethsw_data->dpsw_handle,
198 port_priv->idx,
206 mutex_lock(&port_priv->mac_lock);
208 if (dpaa2_switch_port_has_mac(port_priv))
209 dpaa2_mac_get_ethtool_stats(port_priv->mac, data + i);
211 mutex_unlock(&port_priv->mac_lock);