Defined in 1 files as a prototype:
Defined in 2 files as a function:
- include/linux/ethtool_netlink.h, line 91 (as a function)
- net/ethtool/stats.c, line 525 (as a function)
Referenced in 4 files:
- drivers/net/dsa/netc/netc_ethtool.c, line 231
- drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
- drivers/net/ethernet/mscc/ocelot_stats.c, line 778
- net/ethtool/stats.c, line 543
Smatch caller information:
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c enetc_get_eth_mac_stats() -> ethtool_aggregate_mac_stats()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->type | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->ethtool_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->ethtool_ops->get_eth_mac_stats | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->ethtool_ops->get_eth_phy_stats | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.request | 0-4 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.request | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.runtime_error | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->prepare_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->protect_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->prepare_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->protect_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.request | 0-4 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->priv_size | 0,8,32,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 1 | mac_stats | 4096-ptr_max |
| PARAM_VALUE | 1 | mac_stats->src | 0 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | mac_stats | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | dev->group | |
| NO_OVERFLOW_SIMPLE | 0 | dev->num_tc | |
| NO_OVERFLOW_SIMPLE | 0 | dev->real_num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 0 | dev->real_num_tx_queues |
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c enetc_ppm_get_eth_mac_stats() -> ethtool_aggregate_mac_stats()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->type | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->ethtool_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->ethtool_ops->get_eth_mac_stats | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->ethtool_ops->get_eth_phy_stats | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.request | 0-4 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.request | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.runtime_error | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->prepare_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->protect_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->prepare_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->protect_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.request | 0-4 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->priv_size | 0,8,32,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 1 | mac_stats | 4096-ptr_max |
| PARAM_VALUE | 1 | mac_stats->src | 0 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | mac_stats | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | dev->group | |
| NO_OVERFLOW_SIMPLE | 0 | dev->num_tc | |
| NO_OVERFLOW_SIMPLE | 0 | dev->real_num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 0 | dev->real_num_tx_queues |
drivers/net/ethernet/mscc/ocelot_stats.c ocelot_port_get_eth_mac_stats() -> ethtool_aggregate_mac_stats()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mac_stats | 4096-ptr_max |
| PARAM_VALUE | 1 | mac_stats->src | 0 |
| DATA_SOURCE | 1 | mac_stats | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/dsa/netc/netc_ethtool.c netc_port_get_eth_mac_stats() -> ethtool_aggregate_mac_stats()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | mac_stats | 4096-ptr_max |
| PARAM_VALUE | 1 | mac_stats->src | 0 |
| DATA_SOURCE | 1 | mac_stats | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |