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 …]
585 struct rtnl_link_stats64 *core_stats) in siena_update_nic_stats() argument602 if (core_stats) { in siena_update_nic_stats()603 core_stats->rx_packets = stats[SIENA_STAT_rx_packets]; in siena_update_nic_stats()604 core_stats->tx_packets = stats[SIENA_STAT_tx_packets]; in siena_update_nic_stats()605 core_stats->rx_bytes = stats[SIENA_STAT_rx_bytes]; in siena_update_nic_stats()606 core_stats->tx_bytes = stats[SIENA_STAT_tx_bytes]; in siena_update_nic_stats()607 core_stats->rx_dropped = stats[SIENA_STAT_rx_nodesc_drop_cnt] + in siena_update_nic_stats()610 core_stats->multicast = stats[SIENA_STAT_rx_multicast]; in siena_update_nic_stats()611 core_stats->collisions = stats[SIENA_STAT_tx_collision]; in siena_update_nic_stats()612 core_stats->rx_length_errors = in siena_update_nic_stats()[all …]
1870 struct rtnl_link_stats64 *core_stats) in efx_ef10_update_stats_common() argument1888 if (!core_stats) in efx_ef10_update_stats_common()1894 core_stats->rx_packets = stats[EF10_STAT_rx_unicast] + in efx_ef10_update_stats_common()1897 core_stats->tx_packets = stats[EF10_STAT_tx_unicast] + in efx_ef10_update_stats_common()1900 core_stats->rx_bytes = stats[EF10_STAT_rx_unicast_bytes] + in efx_ef10_update_stats_common()1903 core_stats->tx_bytes = stats[EF10_STAT_tx_unicast_bytes] + in efx_ef10_update_stats_common()1906 core_stats->rx_dropped = stats[GENERIC_STAT_rx_nodesc_trunc] + in efx_ef10_update_stats_common()1908 core_stats->multicast = stats[EF10_STAT_rx_multicast]; in efx_ef10_update_stats_common()1909 core_stats->rx_crc_errors = stats[EF10_STAT_rx_bad]; in efx_ef10_update_stats_common()1910 core_stats->rx_fifo_errors = stats[EF10_STAT_rx_overflow]; in efx_ef10_update_stats_common()[all …]
1293 struct rtnl_link_stats64 *core_stats);
2574 struct rtnl_link_stats64 *core_stats) in falcon_update_nic_stats() argument2606 if (core_stats) { in falcon_update_nic_stats()2607 core_stats->rx_packets = stats[FALCON_STAT_rx_packets]; in falcon_update_nic_stats()2608 core_stats->tx_packets = stats[FALCON_STAT_tx_packets]; in falcon_update_nic_stats()2609 core_stats->rx_bytes = stats[FALCON_STAT_rx_bytes]; in falcon_update_nic_stats()2610 core_stats->tx_bytes = stats[FALCON_STAT_tx_bytes]; in falcon_update_nic_stats()2611 core_stats->rx_dropped = stats[FALCON_STAT_rx_nodesc_drop_cnt] + in falcon_update_nic_stats()2614 core_stats->multicast = stats[FALCON_STAT_rx_multicast]; in falcon_update_nic_stats()2615 core_stats->rx_length_errors = in falcon_update_nic_stats()2618 core_stats->rx_crc_errors = stats[FALCON_STAT_rx_bad]; in falcon_update_nic_stats()[all …]
1062 struct rtnl_link_stats64 *core_stats);