Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ethtool.c226 struct fec_stats_s *p = &rsp->fwdata.phy.fec_stats; in otx2_get_ethtool_stats()
1298 struct ethtool_fec_stats *fec_stats, in otx2_get_fec_stats() argument
1307 fec_stats->corrected_blocks.total = pfvf->hw.cgx_fec_corr_blks; in otx2_get_fec_stats()
1308 fec_stats->uncorrectable_blocks.total = pfvf->hw.cgx_fec_uncorr_blks; in otx2_get_fec_stats()
1318 struct fec_stats_s *p = &rsp->fwdata.phy.fec_stats; in otx2_get_fec_stats()
1321 fec_stats->corrected_blocks.total = p->brfec_corr_blks; in otx2_get_fec_stats()
1322 fec_stats->uncorrectable_blocks.total = p->brfec_uncorr_blks; in otx2_get_fec_stats()
1324 fec_stats->corrected_blocks.total = p->rsfec_corr_cws; in otx2_get_fec_stats()
1325 fec_stats->uncorrectable_blocks.total = p->rsfec_uncorr_cws; in otx2_get_fec_stats()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_stats.c1417 fec_stats->corrected_blocks.lanes[(idx)] = \
1420 fec_stats->uncorrectable_blocks.lanes[(idx)] = \
1425 static void fec_set_fc_stats(struct ethtool_fec_stats *fec_stats, in fec_set_fc_stats() argument
1438 static void fec_set_rs_stats(struct ethtool_fec_stats *fec_stats, u32 *ppcnt) in fec_set_rs_stats() argument
1440 fec_stats->corrected_blocks.total = in fec_set_rs_stats()
1443 fec_stats->uncorrectable_blocks.total = in fec_set_rs_stats()
1450 struct ethtool_fec_stats *fec_stats) in fec_set_block_stats() argument
1467 fec_set_rs_stats(fec_stats, out); in fec_set_block_stats()
1470 fec_set_fc_stats(fec_stats, out, fec_num_lanes(mdev)); in fec_set_block_stats()
1475 struct ethtool_fec_stats *fec_stats) in fec_set_corrected_bits_total() argument
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c2755 hdev->fec_stats.per_lanes[i] += in hclge_parse_fec_stats_lanes()
2768 hdev->fec_stats.base_r_lane_num = req->base_r_lane_num; in hclge_parse_fec_stats()
2769 hdev->fec_stats.rs_corr_blocks += in hclge_parse_fec_stats()
2771 hdev->fec_stats.rs_uncorr_blocks += in hclge_parse_fec_stats()
2773 hdev->fec_stats.rs_error_blocks += in hclge_parse_fec_stats()
2775 hdev->fec_stats.base_r_corr_blocks += in hclge_parse_fec_stats()
2777 hdev->fec_stats.base_r_uncorr_blocks += in hclge_parse_fec_stats()
2823 struct ethtool_fec_stats *fec_stats) in hclge_get_fec_stats_total() argument
2825 fec_stats->corrected_blocks.total = hdev->fec_stats.rs_corr_blocks; in hclge_get_fec_stats_total()
2826 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.c3409 } fec_stats[] = { variable
3472 #define FEC_STATS_SIZE (ARRAY_SIZE(fec_stats) * sizeof(u64))
3489 for (i = 0; i < ARRAY_SIZE(fec_stats); i++) in fec_enet_update_ethtool_stats()
3490 fep->ethtool_stats[i] = readl(fep->hwp + fec_stats[i].offset); in fec_enet_update_ethtool_stats()
3552 for (i = 0; i < ARRAY_SIZE(fec_stats); i++) { in fec_enet_get_strings()
3553 ethtool_puts(&data, fec_stats[i].name); in fec_enet_get_strings()
3573 count = ARRAY_SIZE(fec_stats) + XDP_STATS_TOTAL; in fec_enet_get_sset_count()
3593 for (i = 0; i < ARRAY_SIZE(fec_stats); i++) in fec_enet_clear_ethtool_stats()
3594 writel(0, fep->hwp + fec_stats[i].offset); in fec_enet_clear_ethtool_stats()
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_ethtool.c1727 struct ethtool_fec_stats *fec_stats, in fbnic_get_fec_stats() argument
1738 fec_stats->corrected_blocks.total = in fbnic_get_fec_stats()
1740 fec_stats->uncorrectable_blocks.total = in fbnic_get_fec_stats()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool.c4596 struct ethtool_fec_stats *fec_stats) in ice_get_port_fec_stats() argument
4627 fec_stats->corrected_blocks.total = (fec_corr_high_val << 16) + in ice_get_port_fec_stats()
4629 fec_stats->uncorrectable_blocks.total = (fec_uncorr_high_val << 16) + in ice_get_port_fec_stats()
4642 struct ethtool_fec_stats *fec_stats, in ice_get_fec_stats() argument
4669 port_topology.pcs_port, fec_stats); in ice_get_fec_stats()
/linux/drivers/net/ethernet/sfc/siena/
H A Dnet_driver.h1327 struct ethtool_fec_stats *fec_stats);
/linux/drivers/net/ethernet/sfc/
H A Dnet_driver.h1428 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/hisilicon/hns3/
H A Dhns3_ethtool.c1666 struct ethtool_fec_stats *fec_stats, in hns3_get_fec_stats() argument
1676 ops->get_fec_stats(handle, fec_stats); in hns3_get_fec_stats()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c3271 struct ethtool_fec_stats *fec_stats, in bnxt_get_fec_stats() argument
3281 fec_stats->corrected_bits.total = in bnxt_get_fec_stats()
3287 fec_stats->corrected_blocks.total = in bnxt_get_fec_stats()
3289 fec_stats->uncorrectable_blocks.total = in bnxt_get_fec_stats()