| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_port.c | 242 priv->port_stats.rx_chksum_good = 0; in mlx4_en_DUMP_ETH_STATS() 243 priv->port_stats.rx_chksum_none = 0; in mlx4_en_DUMP_ETH_STATS() 244 priv->port_stats.rx_chksum_complete = 0; in mlx4_en_DUMP_ETH_STATS() 245 priv->port_stats.rx_alloc_pages = 0; in mlx4_en_DUMP_ETH_STATS() 255 priv->port_stats.rx_chksum_good += READ_ONCE(ring->csum_ok); in mlx4_en_DUMP_ETH_STATS() 256 priv->port_stats.rx_chksum_none += READ_ONCE(ring->csum_none); in mlx4_en_DUMP_ETH_STATS() 257 priv->port_stats.rx_chksum_complete += READ_ONCE(ring->csum_complete); in mlx4_en_DUMP_ETH_STATS() 258 priv->port_stats.rx_alloc_pages += READ_ONCE(ring->rx_alloc_pages); in mlx4_en_DUMP_ETH_STATS() 265 priv->port_stats.tx_chksum_offload = 0; in mlx4_en_DUMP_ETH_STATS() 266 priv->port_stats.queue_stopped = 0; in mlx4_en_DUMP_ETH_STATS() [all …]
|
| /linux/drivers/net/ethernet/emulex/benet/ |
| H A D | be_main.c | 420 struct be_port_rxf_stats_v0 *port_stats = in populate_be_v0_stats() local 425 drvs->rx_pause_frames = port_stats->rx_pause_frames; in populate_be_v0_stats() 426 drvs->rx_crc_errors = port_stats->rx_crc_errors; in populate_be_v0_stats() 427 drvs->rx_control_frames = port_stats->rx_control_frames; in populate_be_v0_stats() 428 drvs->rx_in_range_errors = port_stats->rx_in_range_errors; in populate_be_v0_stats() 429 drvs->rx_frame_too_long = port_stats->rx_frame_too_long; in populate_be_v0_stats() 430 drvs->rx_dropped_runt = port_stats->rx_dropped_runt; in populate_be_v0_stats() 431 drvs->rx_ip_checksum_errs = port_stats->rx_ip_checksum_errs; in populate_be_v0_stats() 432 drvs->rx_tcp_checksum_errs = port_stats->rx_tcp_checksum_errs; in populate_be_v0_stats() 433 drvs->rx_udp_checksum_errs = port_stats->rx_udp_checksum_errs; in populate_be_v0_stats() [all …]
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| H A D | prestera_main.c | 501 struct prestera_port_stats *port_stats = &port->cached_hw_stats.stats; in prestera_port_get_stats64() local 503 stats->rx_packets = port_stats->broadcast_frames_received + in prestera_port_get_stats64() 504 port_stats->multicast_frames_received + in prestera_port_get_stats64() 505 port_stats->unicast_frames_received; in prestera_port_get_stats64() 507 stats->tx_packets = port_stats->broadcast_frames_sent + in prestera_port_get_stats64() 508 port_stats->multicast_frames_sent + in prestera_port_get_stats64() 509 port_stats->unicast_frames_sent; in prestera_port_get_stats64() 511 stats->rx_bytes = port_stats->good_octets_received; in prestera_port_get_stats64() 513 stats->tx_bytes = port_stats->good_octets_sent; in prestera_port_get_stats64() 515 stats->rx_errors = port_stats->rx_error_frame_received; in prestera_port_get_stats64() [all …]
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_ethtool.c | 804 IDPF_PORT_STAT("rx-csum_errors", port_stats.rx_hw_csum_err), 805 IDPF_PORT_STAT("rx-hsplit", port_stats.rx_hsplit), 806 IDPF_PORT_STAT("rx-hsplit_hbo", port_stats.rx_hsplit_hbo), 807 IDPF_PORT_STAT("rx-bad_descs", port_stats.rx_bad_descs), 808 IDPF_PORT_STAT("tx-skb_drops", port_stats.tx_drops), 809 IDPF_PORT_STAT("tx-dma_map_errs", port_stats.tx_dma_map_errs), 810 IDPF_PORT_STAT("tx-linearized_pkts", port_stats.tx_linearize), 811 IDPF_PORT_STAT("tx-busy_events", port_stats.tx_busy), 812 IDPF_PORT_STAT("rx-unicast_pkts", port_stats.vport_stats.rx_unicast), 813 IDPF_PORT_STAT("rx-multicast_pkts", port_stats.vport_stats.rx_multicast), [all …]
|
| H A D | idpf_virtchnl.h | 209 struct idpf_port_stats *port_stats);
|
| H A D | idpf.h | 405 struct idpf_port_stats port_stats; member
|
| /linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
| H A D | chcr_ktls.c | 366 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_dev_del() local 395 port_stats = &tx_info->adap->ch_ktls_stats.ktls_port[tx_info->port_id]; in chcr_ktls_dev_del() 396 atomic64_inc(&port_stats->ktls_tx_connection_close); in chcr_ktls_dev_del() 418 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_dev_add() local 430 port_stats = &adap->ch_ktls_stats.ktls_port[pi->port_id]; in chcr_ktls_dev_add() 431 atomic64_inc(&port_stats->ktls_tx_connection_open); in chcr_ktls_dev_add() 564 atomic64_inc(&port_stats->ktls_tx_ctx); in chcr_ktls_dev_add() 593 atomic64_inc(&port_stats->ktls_tx_connection_fail); in chcr_ktls_dev_add() 843 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_xmit_tcb_cpls() local 882 port_stats = in chcr_ktls_xmit_tcb_cpls() [all …]
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_port.c | 1030 struct hinic_port_stats *port_stats; in hinic_get_phy_port_stats() local 1031 u16 out_size = sizeof(*port_stats); in hinic_get_phy_port_stats() 1035 port_stats = kzalloc_obj(*port_stats); in hinic_get_phy_port_stats() 1036 if (!port_stats) in hinic_get_phy_port_stats() 1040 stats_info.stats_size = sizeof(*port_stats); in hinic_get_phy_port_stats() 1044 port_stats, &out_size); in hinic_get_phy_port_stats() 1045 if (err || !out_size || port_stats->status) { in hinic_get_phy_port_stats() 1048 err, port_stats->status, out_size); in hinic_get_phy_port_stats() 1053 memcpy(stats, &port_stats->stats, sizeof(*stats)); in hinic_get_phy_port_stats() 1056 kfree(port_stats); in hinic_get_phy_port_stats()
|
| H A D | hinic_ethtool.c | 1379 struct hinic_phy_port_stats *port_stats; in hinic_get_ethtool_stats() local 1395 port_stats = kzalloc_obj(*port_stats); in hinic_get_ethtool_stats() 1396 if (!port_stats) { in hinic_get_ethtool_stats() 1403 err = hinic_get_phy_port_stats(nic_dev, port_stats); in hinic_get_ethtool_stats() 1409 p = (char *)port_stats + hinic_port_stats[j].offset; in hinic_get_ethtool_stats() 1414 kfree(port_stats); in hinic_get_ethtool_stats()
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_ctx.c | 1193 struct __qlcnic_esw_statistics port_stats; in qlcnic_get_eswitch_stats() local 1218 memset(&port_stats, 0, sizeof(struct __qlcnic_esw_statistics)); in qlcnic_get_eswitch_stats() 1220 rx_tx, &port_stats)) in qlcnic_get_eswitch_stats() 1223 esw_stats->size = port_stats.size; in qlcnic_get_eswitch_stats() 1224 esw_stats->version = port_stats.version; in qlcnic_get_eswitch_stats() 1226 port_stats.unicast_frames); in qlcnic_get_eswitch_stats() 1228 port_stats.multicast_frames); in qlcnic_get_eswitch_stats() 1230 port_stats.broadcast_frames); in qlcnic_get_eswitch_stats() 1232 port_stats.dropped_frames); in qlcnic_get_eswitch_stats() 1234 port_stats.errors); in qlcnic_get_eswitch_stats() [all …]
|
| H A D | qlcnic_sysfs.c | 778 struct qlcnic_esw_statistics port_stats; in qlcnic_sysfs_get_port_stats() local 790 memset(&port_stats, 0, size); in qlcnic_sysfs_get_port_stats() 792 &port_stats.rx); in qlcnic_sysfs_get_port_stats() 797 &port_stats.tx); in qlcnic_sysfs_get_port_stats() 801 memcpy(buf, &port_stats, size); in qlcnic_sysfs_get_port_stats()
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_stats.c | 239 dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_stats_pmf_update() 240 dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_stats_pmf_update() 250 dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, port_stats) + in bnx2x_stats_pmf_update() 252 dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, port_stats) + in bnx2x_stats_pmf_update() 290 dmae->src_addr_lo = U64_LO(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_port_stats_init() 291 dmae->src_addr_hi = U64_HI(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_port_stats_init() 551 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_bmac_stats_update() 657 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_mstat_stats_update() 748 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_emac_stats_update() 806 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_hw_stats_update() [all …]
|
| /linux/drivers/net/ethernet/pensando/ionic/ |
| H A D | ionic_stats.c | 327 struct ionic_port_stats *port_stats; in ionic_sw_stats_get_values() local 338 port_stats = &lif->ionic->idev.port_info->stats; in ionic_sw_stats_get_values() 340 **buf = IONIC_READ_STAT_LE64(port_stats, in ionic_sw_stats_get_values()
|
| /linux/drivers/net/ethernet/ibm/ehea/ |
| H A D | ehea.h | 319 struct port_stats { struct 344 struct port_stats p_stats; argument
|
| /linux/drivers/net/ethernet/chelsio/cxgb/ |
| H A D | sge.c | 263 struct sge_port_stats __percpu *port_stats[MAX_NPORTS]; member 801 free_percpu(sge->port_stats[i]); in t1_sge_destroy() 984 struct sge_port_stats *st = per_cpu_ptr(sge->port_stats[port], cpu); in t1_sge_get_port_stats() 1376 st = this_cpu_ptr(sge->port_stats[p->iff]); in sge_rx() 1812 struct sge_port_stats *st = this_cpu_ptr(sge->port_stats[dev->if_port]); in t1_start_xmit() 2110 sge->port_stats[i] = alloc_percpu(struct sge_port_stats); in t1_sge_create() 2111 if (!sge->port_stats[i]) in t1_sge_create() 2150 free_percpu(sge->port_stats[i]); in t1_sge_create()
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_ll2.c | 2237 struct core_ll2_port_stats port_stats; in _qed_ll2_get_port_stats() local 2239 memset(&port_stats, 0, sizeof(port_stats)); in _qed_ll2_get_port_stats() 2240 qed_memcpy_from(p_hwfn, p_ptt, &port_stats, in _qed_ll2_get_port_stats() 2243 sizeof(port_stats)); in _qed_ll2_get_port_stats() 2245 p_stats->gsi_invalid_hdr += HILO_64_REGPAIR(port_stats.gsi_invalid_hdr); in _qed_ll2_get_port_stats() 2247 HILO_64_REGPAIR(port_stats.gsi_invalid_pkt_length); in _qed_ll2_get_port_stats() 2249 HILO_64_REGPAIR(port_stats.gsi_unsupported_pkt_typ); in _qed_ll2_get_port_stats() 2251 HILO_64_REGPAIR(port_stats.gsi_crcchksm_error); in _qed_ll2_get_port_stats()
|
| H A D | qed_mfw_hsi.h | 269 struct port_stats { struct 632 struct port_stats stats;
|
| /linux/drivers/net/ethernet/chelsio/cxgb3/ |
| H A D | adapter.h | 212 unsigned long port_stats[SGE_PSTAT_MAX]; member
|
| H A D | sge.c | 1330 qs->port_stats[SGE_PSTAT_TX_CSUM]++; in t3_eth_xmit() 1332 qs->port_stats[SGE_PSTAT_TSO]++; in t3_eth_xmit() 1334 qs->port_stats[SGE_PSTAT_VLANINS]++; in t3_eth_xmit() 2096 qs->port_stats[SGE_PSTAT_RX_CSUM_GOOD]++; in rx_eth() 2103 qs->port_stats[SGE_PSTAT_VLANEX]++; in rx_eth() 2178 qs->port_stats[SGE_PSTAT_RX_CSUM_GOOD]++; in lro_add_page() 2201 qs->port_stats[SGE_PSTAT_VLANEX]++; in lro_add_page()
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_ethtool.c | 656 u64 *port_stats = bp->port_stats.sw_stats; in bnxt_get_ethtool_stats() local 659 buf[j] = *(port_stats + bnxt_port_stats_arr[i].offset); in bnxt_get_ethtool_stats() 3412 rx = bp->port_stats.sw_stats; in bnxt_get_pause_stats() 3413 tx = bp->port_stats.sw_stats + BNXT_TX_PORT_STATS_BYTE_OFFSET / 8; in bnxt_get_pause_stats() 5589 rx = bp->port_stats.sw_stats; in bnxt_get_eth_mac_stats() 5590 tx = bp->port_stats.sw_stats + BNXT_TX_PORT_STATS_BYTE_OFFSET / 8; in bnxt_get_eth_mac_stats() 5613 rx = bp->port_stats.sw_stats; in bnxt_get_eth_ctrl_stats() 5642 rx = bp->port_stats.sw_stats; in bnxt_get_rmon_stats() 5643 tx = bp->port_stats.sw_stats + BNXT_TX_PORT_STATS_BYTE_OFFSET / 8; in bnxt_get_rmon_stats()
|
| H A D | bnxt_dcb.c | 596 __le64 *stats = bp->port_stats.hw_stats; in bnxt_dcbnl_ieee_getpfc()
|
| /linux/drivers/char/ |
| H A D | virtio_console.c | 162 struct port_stats { struct 198 struct port_stats stats; 1347 port->stats = (struct port_stats) { 0 }; in add_port()
|
| /linux/drivers/scsi/csiostor/ |
| H A D | t4fw_api_stor.h | 420 } port_stats; member
|
| H A D | csio_lnode.c | 1387 struct fw_fcoe_port_stats *port_stats) in csio_get_phy_port_stats() argument 1414 &portparams, port_stats); in csio_get_phy_port_stats()
|
| /linux/drivers/scsi/bfa/ |
| H A D | bfad_bsg.h | 302 struct bfa_lport_stats_s port_stats; member
|