/kernel/linux/linux-6.6/net/ethtool/ |
H A D | ioctl.c | 6 * This file is where we call all the ethtool_ops commands to get 54 * Some useful ethtool_ops methods that're device independent. 160 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_sset_count() 192 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_strings() 438 if (!dev->ethtool_ops->get_link_ksettings) in __ethtool_get_link_ksettings() 442 return dev->ethtool_ops->get_link_ksettings(dev, link_ksettings); in __ethtool_get_link_ksettings() 524 if (!dev->ethtool_ops->get_link_ksettings) in ethtool_get_link_ksettings() 558 err = dev->ethtool_ops in ethtool_get_link_ksettings() [all...] |
H A D | privflags.c | 30 const struct ethtool_ops *ops = dev->ethtool_ops; in ethnl_get_priv_flags_info() 45 * we cannot get more with ethtool_ops::get_priv_flags(). Note that we in ethnl_get_priv_flags_info() 65 const struct ethtool_ops *ops; in privflags_prepare_data() 69 ops = dev->ethtool_ops; in privflags_prepare_data() 133 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_privflags_validate() 163 flags = dev->ethtool_ops->get_priv_flags(dev); in ethnl_set_privflags() 170 ret = dev->ethtool_ops->set_priv_flags(dev, flags); in ethnl_set_privflags()
|
H A D | debug.c | 32 if (!dev->ethtool_ops->get_msglevel) in debug_prepare_data() 38 data->msg_mask = dev->ethtool_ops->get_msglevel(dev); in debug_prepare_data() 78 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_debug_validate() 92 msg_mask = dev->ethtool_ops->get_msglevel(dev); in ethnl_set_debug() 99 dev->ethtool_ops->set_msglevel(dev, msg_mask); in ethnl_set_debug()
|
H A D | module.c | 31 const struct ethtool_ops *ops = dev->ethtool_ops; in module_get_power_mode() 106 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_module_validate() 127 const struct ethtool_ops *ops; in ethnl_set_module() 132 ops = dev->ethtool_ops; in ethnl_set_module()
|
H A D | stats.c | 149 dev->ethtool_ops->get_eth_phy_stats) in stats_prepare_data() 150 dev->ethtool_ops->get_eth_phy_stats(dev, &data->phy_stats); in stats_prepare_data() 152 dev->ethtool_ops->get_eth_mac_stats) in stats_prepare_data() 153 dev->ethtool_ops->get_eth_mac_stats(dev, &data->mac_stats); in stats_prepare_data() 155 dev->ethtool_ops->get_eth_ctrl_stats) in stats_prepare_data() 156 dev->ethtool_ops->get_eth_ctrl_stats(dev, &data->ctrl_stats); in stats_prepare_data() 158 dev->ethtool_ops->get_rmon_stats) in stats_prepare_data() 159 dev->ethtool_ops->get_rmon_stats(dev, &data->rmon_stats, in stats_prepare_data() 472 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_aggregate_mac_stats() [all...] |
H A D | pause.c | 62 if (!dev->ethtool_ops->get_pauseparam) in pause_prepare_data() 82 dev->ethtool_ops->get_pauseparam(dev, &data->pauseparam); in pause_prepare_data() 84 dev->ethtool_ops->get_pause_stats) in pause_prepare_data() 85 dev->ethtool_ops->get_pause_stats(dev, &data->pausestat); in pause_prepare_data() 177 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_pause_validate() 191 dev->ethtool_ops->get_pauseparam(dev, ¶ms); in ethnl_set_pause() 199 ret = dev->ethtool_ops->set_pauseparam(dev, ¶ms); in ethnl_set_pause()
|
H A D | mm.c | 34 const struct ethtool_ops *ops; in mm_prepare_data() 37 ops = dev->ethtool_ops; in mm_prepare_data() 178 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_mm_validate() 193 ret = dev->ethtool_ops->get_mm(dev, &state); in ethnl_set_mm() 227 ret = dev->ethtool_ops->set_mm(dev, &cfg, extack); in ethnl_set_mm() 253 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_dev_mm_supported() 265 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_dev_mm_supported() [all...] |
H A D | wol.c | 33 if (!dev->ethtool_ops->get_wol) in wol_prepare_data() 39 dev->ethtool_ops->get_wol(dev, &data->wol); in wol_prepare_data() 99 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_wol_validate() 113 dev->ethtool_ops->get_wol(dev, &wol); in ethnl_set_wol() 137 ret = dev->ethtool_ops->set_wol(dev, &wol); in ethnl_set_wol()
|
H A D | eee.c | 35 if (!dev->ethtool_ops->get_eee) in eee_prepare_data() 40 ret = dev->ethtool_ops->get_eee(dev, &data->eee); in eee_prepare_data() 125 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_eee_validate() 139 ret = dev->ethtool_ops->get_eee(dev, &eee); in ethnl_set_eee() 156 ret = dev->ethtool_ops->set_eee(dev, &eee); in ethnl_set_eee()
|
H A D | fec.c | 103 if (!dev->ethtool_ops->get_fecparam) in fec_prepare_data() 108 ret = dev->ethtool_ops->get_fecparam(dev, &fec); in fec_prepare_data() 112 dev->ethtool_ops->get_fec_stats) { in fec_prepare_data() 116 dev->ethtool_ops->get_fec_stats(dev, &stats); in fec_prepare_data() 231 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_fec_validate() 247 ret = dev->ethtool_ops->get_fecparam(dev, &fec); in ethnl_set_fec() 275 ret = dev->ethtool_ops->set_fecparam(dev, &fec); in ethnl_set_fec()
|
H A D | channels.c | 33 if (!dev->ethtool_ops->get_channels) in channels_prepare_data() 38 dev->ethtool_ops->get_channels(dev, &data->channels); in channels_prepare_data() 104 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_channels_validate() 121 dev->ethtool_ops->get_channels(dev, &channels); in ethnl_set_channels() 195 ret = dev->ethtool_ops->set_channels(dev, &channels); in ethnl_set_channels()
|
H A D | common.c | 518 if (!dev->ethtool_ops->get_link) in __ethtool_get_link() 521 return netif_running(dev) && dev->ethtool_ops->get_link(dev); in __ethtool_get_link() 526 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_rxnfc_rule_count() 541 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_max_rxnfc_channel() 596 if (!dev->ethtool_ops->get_rxfh_indir_size || in ethtool_get_max_rxfh_channel() 597 !dev->ethtool_ops->get_rxfh) in ethtool_get_max_rxfh_channel() 599 dev_size = dev->ethtool_ops->get_rxfh_indir_size(dev); in ethtool_get_max_rxfh_channel() 607 ret = dev->ethtool_ops in ethtool_get_max_rxfh_channel() [all...] |
H A D | rings.c | 33 if (!dev->ethtool_ops->get_ringparam) in rings_prepare_data() 36 data->supported_ring_params = dev->ethtool_ops->supported_ring_params; in rings_prepare_data() 40 dev->ethtool_ops->get_ringparam(dev, &data->ringparam, in rings_prepare_data() 137 const struct ethtool_ops *ops = req_info->dev->ethtool_ops; in ethnl_set_rings_validate() 194 dev->ethtool_ops->get_ringparam(dev, &ringparam, in ethnl_set_rings() 241 ret = dev->ethtool_ops->set_ringparam(dev, &ringparam, in ethnl_set_rings()
|
H A D | linkstate.c | 70 if (!dev->ethtool_ops->get_link_ext_state) in linkstate_get_link_ext_state() 73 err = dev->ethtool_ops->get_link_ext_state(dev, &data->ethtool_link_ext_state_info); in linkstate_get_link_ext_state() 119 if (dev->ethtool_ops->get_link_ext_stats) in linkstate_prepare_data() 120 dev->ethtool_ops->get_link_ext_stats(dev, in linkstate_prepare_data()
|
/kernel/linux/linux-5.10/net/ethtool/ |
H A D | ioctl.c | 6 * This file is where we call all the ethtool_ops commands to get 35 * Some useful ethtool_ops methods that're device independent. 140 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_sset_count() 172 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_strings() 432 if (!dev->ethtool_ops->get_link_ksettings) in __ethtool_get_link_ksettings() 439 return dev->ethtool_ops->get_link_ksettings(dev, link_ksettings); in __ethtool_get_link_ksettings() 521 if (!dev->ethtool_ops->get_link_ksettings) in ethtool_get_link_ksettings() 555 err = dev->ethtool_ops in ethtool_get_link_ksettings() [all...] |
H A D | pause.c | 38 if (!dev->ethtool_ops->get_pauseparam) in pause_prepare_data() 47 dev->ethtool_ops->get_pauseparam(dev, &data->pauseparam); in pause_prepare_data() 49 dev->ethtool_ops->get_pause_stats) in pause_prepare_data() 50 dev->ethtool_ops->get_pause_stats(dev, &data->pausestat); in pause_prepare_data() 150 const struct ethtool_ops *ops; in ethnl_set_pause() 162 ops = dev->ethtool_ops; in ethnl_set_pause() 180 ret = dev->ethtool_ops->set_pauseparam(dev, ¶ms); in ethnl_set_pause()
|
H A D | debug.c | 32 if (!dev->ethtool_ops->get_msglevel) in debug_prepare_data() 38 data->msg_mask = dev->ethtool_ops->get_msglevel(dev); in debug_prepare_data() 103 if (!dev->ethtool_ops->get_msglevel || !dev->ethtool_ops->set_msglevel) in ethnl_set_debug() 111 msg_mask = dev->ethtool_ops->get_msglevel(dev); in ethnl_set_debug() 118 dev->ethtool_ops->set_msglevel(dev, msg_mask); in ethnl_set_debug()
|
H A D | wol.c | 33 if (!dev->ethtool_ops->get_wol) in wol_prepare_data() 39 dev->ethtool_ops->get_wol(dev, &data->wol); in wol_prepare_data() 123 if (!dev->ethtool_ops->get_wol || !dev->ethtool_ops->set_wol) in ethnl_set_wol() 131 dev->ethtool_ops->get_wol(dev, &wol); in ethnl_set_wol() 157 ret = dev->ethtool_ops->set_wol(dev, &wol); in ethnl_set_wol()
|
H A D | privflags.c | 30 const struct ethtool_ops *ops = dev->ethtool_ops; in ethnl_get_priv_flags_info() 45 * we cannot get more with ethtool_ops::get_priv_flags(). Note that we in ethnl_get_priv_flags_info() 65 const struct ethtool_ops *ops; in privflags_prepare_data() 69 ops = dev->ethtool_ops; in privflags_prepare_data() 147 const struct ethtool_ops *ops; in ethnl_set_privflags() 167 ops = dev->ethtool_ops; in ethnl_set_privflags()
|
H A D | rings.c | 31 if (!dev->ethtool_ops->get_ringparam) in rings_prepare_data() 36 dev->ethtool_ops->get_ringparam(dev, &data->ringparam); in rings_prepare_data() 116 const struct ethtool_ops *ops; in ethnl_set_rings() 128 ops = dev->ethtool_ops; in ethnl_set_rings() 167 ret = dev->ethtool_ops->set_ringparam(dev, &ringparam); in ethnl_set_rings()
|
H A D | common.c | 336 if (!dev->ethtool_ops->get_link) in __ethtool_get_link() 339 return netif_running(dev) && dev->ethtool_ops->get_link(dev); in __ethtool_get_link() 348 if (!dev->ethtool_ops->get_rxfh_indir_size || in ethtool_get_max_rxfh_channel() 349 !dev->ethtool_ops->get_rxfh) in ethtool_get_max_rxfh_channel() 351 dev_size = dev->ethtool_ops->get_rxfh_indir_size(dev); in ethtool_get_max_rxfh_channel() 359 ret = dev->ethtool_ops->get_rxfh(dev, indir, NULL, NULL); in ethtool_get_max_rxfh_channel() 373 int ethtool_check_ops(const struct ethtool_ops *ops) in ethtool_check_ops() 377 /* NOTE: sufficiently insane drivers may swap ethtool_ops at runtime, in ethtool_check_ops() 386 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_ts_info() [all...] |
H A D | channels.c | 33 if (!dev->ethtool_ops->get_channels) in channels_prepare_data() 38 dev->ethtool_ops->get_channels(dev, &data->channels); in channels_prepare_data() 120 const struct ethtool_ops *ops; in ethnl_set_channels() 131 ops = dev->ethtool_ops; in ethnl_set_channels() 212 ret = dev->ethtool_ops->set_channels(dev, &channels); in ethnl_set_channels()
|
H A D | eee.c | 35 if (!dev->ethtool_ops->get_eee) in eee_prepare_data() 40 ret = dev->ethtool_ops->get_eee(dev, &data->eee); in eee_prepare_data() 138 const struct ethtool_ops *ops; in ethnl_set_eee() 151 ops = dev->ethtool_ops; in ethnl_set_eee() 178 ret = dev->ethtool_ops->set_eee(dev, &eee); in ethnl_set_eee()
|
/kernel/linux/linux-5.10/net/dsa/ |
H A D | master.c | 14 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs_len() 44 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs() 80 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_stats() 99 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_phy_stats() 123 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_sset_count() 146 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_strings() 227 struct ethtool_ops *ops; in dsa_master_ethtool_setup() 233 cpu_dp->orig_ethtool_ops = dev->ethtool_ops; in dsa_master_ethtool_setup() 244 dev->ethtool_ops = ops; in dsa_master_ethtool_setup() 253 dev->ethtool_ops in dsa_master_ethtool_teardown() [all...] |
/kernel/linux/linux-6.6/net/dsa/ |
H A D | master.c | 22 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs_len() 52 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs() 88 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_stats() 107 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_phy_stats() 131 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_sset_count() 154 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_strings() 227 struct ethtool_ops *ops; in dsa_master_ethtool_setup() 236 cpu_dp->orig_ethtool_ops = dev->ethtool_ops; in dsa_master_ethtool_setup() 247 dev->ethtool_ops = ops; in dsa_master_ethtool_setup() 259 dev->ethtool_ops in dsa_master_ethtool_teardown() [all...] |