Lines Matching defs:netdev
106 static int mlxsw_m_get_module_info(struct net_device *netdev,
109 struct mlxsw_m_port *mlxsw_m_port = netdev_priv(netdev);
112 return mlxsw_env_get_module_info(netdev, core,
118 mlxsw_m_get_module_eeprom(struct net_device *netdev, struct ethtool_eeprom *ee,
121 struct mlxsw_m_port *mlxsw_m_port = netdev_priv(netdev);
124 return mlxsw_env_get_module_eeprom(netdev, core,
130 mlxsw_m_get_module_eeprom_by_page(struct net_device *netdev,
134 struct mlxsw_m_port *mlxsw_m_port = netdev_priv(netdev);
143 static int mlxsw_m_reset(struct net_device *netdev, u32 *flags)
145 struct mlxsw_m_port *mlxsw_m_port = netdev_priv(netdev);
148 return mlxsw_env_reset_module(netdev, core, mlxsw_m_port->slot_index,
154 mlxsw_m_get_module_power_mode(struct net_device *netdev,
158 struct mlxsw_m_port *mlxsw_m_port = netdev_priv(netdev);
167 mlxsw_m_set_module_power_mode(struct net_device *netdev,
171 struct mlxsw_m_port *mlxsw_m_port = netdev_priv(netdev);
287 dev_err(mlxsw_m->bus_info->dev, "Port %d: Failed to register netdev\n",