Home
last modified time | relevance | path

Searched refs:fec_stats (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/net/netdevsim/
H A Dethtool.c144 nsim_get_fec_stats(struct net_device *dev, struct ethtool_fec_stats *fec_stats) in nsim_get_fec_stats() argument
146 fec_stats->corrected_blocks.total = 123; in nsim_get_fec_stats()
147 fec_stats->uncorrectable_blocks.total = 4; in nsim_get_fec_stats()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ethtool.c238 struct fec_stats_s *p = &rsp->fwdata.phy.fec_stats; in otx2_get_ethtool_stats()
1277 struct ethtool_fec_stats *fec_stats) in otx2_get_fec_stats() argument
1285 fec_stats->corrected_blocks.total = pfvf->hw.cgx_fec_corr_blks; in otx2_get_fec_stats()
1286 fec_stats->uncorrectable_blocks.total = pfvf->hw.cgx_fec_uncorr_blks; in otx2_get_fec_stats()
1296 struct fec_stats_s *p = &rsp->fwdata.phy.fec_stats; in otx2_get_fec_stats()
1299 fec_stats->corrected_blocks.total = p->brfec_corr_blks; in otx2_get_fec_stats()
1300 fec_stats->uncorrectable_blocks.total = p->brfec_uncorr_blks; in otx2_get_fec_stats()
1302 fec_stats->corrected_blocks.total = p->rsfec_corr_cws; in otx2_get_fec_stats()
1303 fec_stats->uncorrectable_blocks.total = p->rsfec_uncorr_cws; in otx2_get_fec_stats()
/linux/drivers/net/ethernet/sfc/siena/
H A Dethtool.c220 struct ethtool_fec_stats *fec_stats) in efx_ethtool_get_fec_stats() argument
225 efx->type->get_fec_stats(efx, fec_stats); in efx_ethtool_get_fec_stats()
H A Dnet_driver.h1327 struct ethtool_fec_stats *fec_stats);
/linux/drivers/net/ethernet/sfc/
H A Dethtool.c220 struct ethtool_fec_stats *fec_stats) in efx_ethtool_get_fec_stats() argument
225 efx->type->get_fec_stats(efx, fec_stats); in efx_ethtool_get_fec_stats()
H A Dnet_driver.h1389 struct ethtool_fec_stats *fec_stats);
H A Def10.c1764 struct ethtool_fec_stats *fec_stats) in efx_ef10_get_fec_stats() argument
1772 fec_stats->corrected_blocks.total = in efx_ef10_get_fec_stats()
1775 fec_stats->uncorrectable_blocks.total = in efx_ef10_get_fec_stats()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_stats.c1384 fec_stats->corrected_blocks.lanes[(idx)] = \
1387 fec_stats->uncorrectable_blocks.lanes[(idx)] = \
1392 static void fec_set_fc_stats(struct ethtool_fec_stats *fec_stats, in fec_set_fc_stats() argument
1405 static void fec_set_rs_stats(struct ethtool_fec_stats *fec_stats, u32 *ppcnt) in fec_set_rs_stats() argument
1407 fec_stats->corrected_blocks.total = in fec_set_rs_stats()
1410 fec_stats->uncorrectable_blocks.total = in fec_set_rs_stats()
1416 struct ethtool_fec_stats *fec_stats) in fec_set_block_stats() argument
1436 fec_set_rs_stats(fec_stats, out); in fec_set_block_stats()
1439 fec_set_fc_stats(fec_stats, out, fec_num_lanes(mdev)); in fec_set_block_stats()
1444 struct ethtool_fec_stats *fec_stats) in fec_set_corrected_bits_total() argument
[all …]
H A Den_stats.h120 struct ethtool_fec_stats *fec_stats);
H A Den_ethtool.c1819 struct ethtool_fec_stats *fec_stats) in mlx5e_get_fec_stats() argument
1823 mlx5e_stats_fec_get(priv, fec_stats); in mlx5e_get_fec_stats()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c2764 hdev->fec_stats.per_lanes[i] += in hclge_parse_fec_stats_lanes()
2777 hdev->fec_stats.base_r_lane_num = req->base_r_lane_num; in hclge_parse_fec_stats()
2778 hdev->fec_stats.rs_corr_blocks += in hclge_parse_fec_stats()
2780 hdev->fec_stats.rs_uncorr_blocks += in hclge_parse_fec_stats()
2782 hdev->fec_stats.rs_error_blocks += in hclge_parse_fec_stats()
2784 hdev->fec_stats.base_r_corr_blocks += in hclge_parse_fec_stats()
2786 hdev->fec_stats.base_r_uncorr_blocks += in hclge_parse_fec_stats()
2832 struct ethtool_fec_stats *fec_stats) in hclge_get_fec_stats_total() argument
2834 fec_stats->corrected_blocks.total = hdev->fec_stats.rs_corr_blocks; in hclge_get_fec_stats_total()
2835 fec_stats->uncorrectable_blocks.total = in hclge_get_fec_stats_total()
[all …]
H A Dhclge_main.h875 struct hclge_fec_stats fec_stats; member
/linux/drivers/net/ethernet/freescale/
H A Dfec_main.c2861 } fec_stats[] = { variable
2924 #define FEC_STATS_SIZE (ARRAY_SIZE(fec_stats) * sizeof(u64))
2941 for (i = 0; i < ARRAY_SIZE(fec_stats); i++) in fec_enet_update_ethtool_stats()
2942 fep->ethtool_stats[i] = readl(fep->hwp + fec_stats[i].offset); in fec_enet_update_ethtool_stats()
3004 for (i = 0; i < ARRAY_SIZE(fec_stats); i++) { in fec_enet_get_strings()
3005 ethtool_puts(&data, fec_stats[i].name); in fec_enet_get_strings()
3025 count = ARRAY_SIZE(fec_stats) + XDP_STATS_TOTAL; in fec_enet_get_sset_count()
3045 for (i = 0; i < ARRAY_SIZE(fec_stats); i++) in fec_enet_clear_ethtool_stats()
3046 writel(0, fep->hwp + fec_stats[i].offset); in fec_enet_clear_ethtool_stats()
/linux/include/linux/
H A Dethtool.h1065 struct ethtool_fec_stats *fec_stats);
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool.c4642 struct ethtool_fec_stats *fec_stats) in ice_get_port_fec_stats() argument
4673 fec_stats->corrected_blocks.total = (fec_corr_high_val << 16) + in ice_get_port_fec_stats()
4675 fec_stats->uncorrectable_blocks.total = (fec_uncorr_high_val << 16) + in ice_get_port_fec_stats()
4687 struct ethtool_fec_stats *fec_stats) in ice_get_fec_stats() argument
4713 port_topology.pcs_port, fec_stats); in ice_get_fec_stats()
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhnae3.h624 struct ethtool_fec_stats *fec_stats);
H A Dhns3_ethtool.c1668 struct ethtool_fec_stats *fec_stats) in hns3_get_fec_stats() argument
1677 ops->get_fec_stats(handle, fec_stats); in hns3_get_fec_stats()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c3131 struct ethtool_fec_stats *fec_stats) in bnxt_get_fec_stats() argument
3140 fec_stats->corrected_bits.total = in bnxt_get_fec_stats()
3146 fec_stats->corrected_blocks.total = in bnxt_get_fec_stats()
3148 fec_stats->uncorrectable_blocks.total = in bnxt_get_fec_stats()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmbox.h629 } fec_stats; member