Searched refs:core_stats (Results 1 – 6 of 6) sorted by relevance
76 struct core_stats { struct94 container_of(mod_stats, struct core_stats, public) argument99 struct core_stats *core_stats = NULL; in mod_stats_init() local105 core_stats = MOD_STATS_TO_CORE(mod_stats); in mod_stats_init()106 dc = core_stats->dc; in mod_stats_init()113 struct core_stats *core_stats = NULL; in mod_stats_create() local121 core_stats = kzalloc(sizeof(struct core_stats), GFP_KERNEL); in mod_stats_create()123 if (core_stats == NULL) in mod_stats_create()126 core_stats->dc = dc; in mod_stats_create()128 core_stats->enabled = DAL_STATS_ENABLE_REGKEY_DEFAULT; in mod_stats_create()[all …]
588 struct rtnl_link_stats64 *core_stats) in siena_update_nic_stats() argument605 if (core_stats) { in siena_update_nic_stats()606 core_stats->rx_packets = stats[SIENA_STAT_rx_packets]; in siena_update_nic_stats()607 core_stats->tx_packets = stats[SIENA_STAT_tx_packets]; in siena_update_nic_stats()608 core_stats->rx_bytes = stats[SIENA_STAT_rx_bytes]; in siena_update_nic_stats()609 core_stats->tx_bytes = stats[SIENA_STAT_tx_bytes]; in siena_update_nic_stats()610 core_stats->rx_dropped = stats[SIENA_STAT_rx_nodesc_drop_cnt] + in siena_update_nic_stats()613 core_stats->multicast = stats[SIENA_STAT_rx_multicast]; in siena_update_nic_stats()614 core_stats->collisions = stats[SIENA_STAT_tx_collision]; in siena_update_nic_stats()615 core_stats->rx_length_errors = in siena_update_nic_stats()[all …]
1873 struct rtnl_link_stats64 *core_stats) in efx_ef10_update_stats_common() argument1891 if (!core_stats) in efx_ef10_update_stats_common()1897 core_stats->rx_packets = stats[EF10_STAT_rx_unicast] + in efx_ef10_update_stats_common()1900 core_stats->tx_packets = stats[EF10_STAT_tx_unicast] + in efx_ef10_update_stats_common()1903 core_stats->rx_bytes = stats[EF10_STAT_rx_unicast_bytes] + in efx_ef10_update_stats_common()1906 core_stats->tx_bytes = stats[EF10_STAT_tx_unicast_bytes] + in efx_ef10_update_stats_common()1909 core_stats->rx_dropped = stats[GENERIC_STAT_rx_nodesc_trunc] + in efx_ef10_update_stats_common()1911 core_stats->multicast = stats[EF10_STAT_rx_multicast]; in efx_ef10_update_stats_common()1912 core_stats->rx_crc_errors = stats[EF10_STAT_rx_bad]; in efx_ef10_update_stats_common()1913 core_stats->rx_fifo_errors = stats[EF10_STAT_rx_overflow]; in efx_ef10_update_stats_common()[all …]
1296 struct rtnl_link_stats64 *core_stats);
2577 struct rtnl_link_stats64 *core_stats) in falcon_update_nic_stats() argument2609 if (core_stats) { in falcon_update_nic_stats()2610 core_stats->rx_packets = stats[FALCON_STAT_rx_packets]; in falcon_update_nic_stats()2611 core_stats->tx_packets = stats[FALCON_STAT_tx_packets]; in falcon_update_nic_stats()2612 core_stats->rx_bytes = stats[FALCON_STAT_rx_bytes]; in falcon_update_nic_stats()2613 core_stats->tx_bytes = stats[FALCON_STAT_tx_bytes]; in falcon_update_nic_stats()2614 core_stats->rx_dropped = stats[FALCON_STAT_rx_nodesc_drop_cnt] + in falcon_update_nic_stats()2617 core_stats->multicast = stats[FALCON_STAT_rx_multicast]; in falcon_update_nic_stats()2618 core_stats->rx_length_errors = in falcon_update_nic_stats()2621 core_stats->rx_crc_errors = stats[FALCON_STAT_rx_bad]; in falcon_update_nic_stats()[all …]
1065 struct rtnl_link_stats64 *core_stats);