/kernel/linux/linux-5.10/drivers/net/ethernet/neterion/vxge/ |
D | vxge-ethtool.c | 392 *ptr++ = xmac_stats->port_stats[k].tx_ttl_frms; in vxge_get_ethtool_stats() 393 *ptr++ = xmac_stats->port_stats[k].tx_ttl_octets; in vxge_get_ethtool_stats() 394 *ptr++ = xmac_stats->port_stats[k].tx_data_octets; in vxge_get_ethtool_stats() 395 *ptr++ = xmac_stats->port_stats[k].tx_mcast_frms; in vxge_get_ethtool_stats() 396 *ptr++ = xmac_stats->port_stats[k].tx_bcast_frms; in vxge_get_ethtool_stats() 397 *ptr++ = xmac_stats->port_stats[k].tx_ucast_frms; in vxge_get_ethtool_stats() 398 *ptr++ = xmac_stats->port_stats[k].tx_tagged_frms; in vxge_get_ethtool_stats() 399 *ptr++ = xmac_stats->port_stats[k].tx_vld_ip; in vxge_get_ethtool_stats() 400 *ptr++ = xmac_stats->port_stats[k].tx_vld_ip_octets; in vxge_get_ethtool_stats() 401 *ptr++ = xmac_stats->port_stats[k].tx_icmp; in vxge_get_ethtool_stats() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
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() 253 priv->port_stats.rx_chksum_good += READ_ONCE(ring->csum_ok); in mlx4_en_DUMP_ETH_STATS() 254 priv->port_stats.rx_chksum_none += READ_ONCE(ring->csum_none); in mlx4_en_DUMP_ETH_STATS() 255 priv->port_stats.rx_chksum_complete += READ_ONCE(ring->csum_complete); in mlx4_en_DUMP_ETH_STATS() 256 priv->port_stats.rx_alloc_pages += READ_ONCE(ring->rx_alloc_pages); in mlx4_en_DUMP_ETH_STATS() 261 priv->port_stats.tx_chksum_offload = 0; in mlx4_en_DUMP_ETH_STATS() 262 priv->port_stats.queue_stopped = 0; in mlx4_en_DUMP_ETH_STATS() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_main.c | 168 struct prestera_port_stats *port_stats = &port->cached_hw_stats.stats; in prestera_port_get_stats64() local 170 stats->rx_packets = port_stats->broadcast_frames_received + in prestera_port_get_stats64() 171 port_stats->multicast_frames_received + in prestera_port_get_stats64() 172 port_stats->unicast_frames_received; in prestera_port_get_stats64() 174 stats->tx_packets = port_stats->broadcast_frames_sent + in prestera_port_get_stats64() 175 port_stats->multicast_frames_sent + in prestera_port_get_stats64() 176 port_stats->unicast_frames_sent; in prestera_port_get_stats64() 178 stats->rx_bytes = port_stats->good_octets_received; in prestera_port_get_stats64() 180 stats->tx_bytes = port_stats->good_octets_sent; in prestera_port_get_stats64() 182 stats->rx_errors = port_stats->rx_error_frame_received; in prestera_port_get_stats64() [all …]
|
D | prestera_ethtool.c | 750 struct prestera_port_stats *port_stats; in prestera_ethtool_get_stats() local 752 port_stats = &port->cached_hw_stats.stats; in prestera_ethtool_get_stats() 754 memcpy(data, port_stats, sizeof(*port_stats)); in prestera_ethtool_get_stats()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_l2.c | 1763 struct port_stats port_stats; in __qed_get_vport_port_stats() local 1766 memset(&port_stats, 0, sizeof(port_stats)); in __qed_get_vport_port_stats() 1768 qed_memcpy_from(p_hwfn, p_ptt, &port_stats, in __qed_get_vport_port_stats() 1771 sizeof(port_stats)); in __qed_get_vport_port_stats() 1773 p_common->rx_64_byte_packets += port_stats.eth.r64; in __qed_get_vport_port_stats() 1774 p_common->rx_65_to_127_byte_packets += port_stats.eth.r127; in __qed_get_vport_port_stats() 1775 p_common->rx_128_to_255_byte_packets += port_stats.eth.r255; in __qed_get_vport_port_stats() 1776 p_common->rx_256_to_511_byte_packets += port_stats.eth.r511; in __qed_get_vport_port_stats() 1777 p_common->rx_512_to_1023_byte_packets += port_stats.eth.r1023; in __qed_get_vport_port_stats() 1778 p_common->rx_1024_to_1518_byte_packets += port_stats.eth.r1518; in __qed_get_vport_port_stats() [all …]
|
D | qed_ll2.c | 2191 struct core_ll2_port_stats port_stats; in _qed_ll2_get_port_stats() local 2193 memset(&port_stats, 0, sizeof(port_stats)); in _qed_ll2_get_port_stats() 2194 qed_memcpy_from(p_hwfn, p_ptt, &port_stats, in _qed_ll2_get_port_stats() 2197 sizeof(port_stats)); in _qed_ll2_get_port_stats() 2199 p_stats->gsi_invalid_hdr += HILO_64_REGPAIR(port_stats.gsi_invalid_hdr); in _qed_ll2_get_port_stats() 2201 HILO_64_REGPAIR(port_stats.gsi_invalid_pkt_length); in _qed_ll2_get_port_stats() 2203 HILO_64_REGPAIR(port_stats.gsi_unsupported_pkt_typ); in _qed_ll2_get_port_stats() 2205 HILO_64_REGPAIR(port_stats.gsi_crcchksm_error); in _qed_ll2_get_port_stats()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 421 struct be_port_rxf_stats_v0 *port_stats = in populate_be_v0_stats() local 426 drvs->rx_pause_frames = port_stats->rx_pause_frames; in populate_be_v0_stats() 427 drvs->rx_crc_errors = port_stats->rx_crc_errors; in populate_be_v0_stats() 428 drvs->rx_control_frames = port_stats->rx_control_frames; in populate_be_v0_stats() 429 drvs->rx_in_range_errors = port_stats->rx_in_range_errors; in populate_be_v0_stats() 430 drvs->rx_frame_too_long = port_stats->rx_frame_too_long; in populate_be_v0_stats() 431 drvs->rx_dropped_runt = port_stats->rx_dropped_runt; in populate_be_v0_stats() 432 drvs->rx_ip_checksum_errs = port_stats->rx_ip_checksum_errs; in populate_be_v0_stats() 433 drvs->rx_tcp_checksum_errs = port_stats->rx_tcp_checksum_errs; in populate_be_v0_stats() 434 drvs->rx_udp_checksum_errs = port_stats->rx_udp_checksum_errs; in populate_be_v0_stats() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
D | chcr_ktls.c | 373 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_dev_del() local 402 port_stats = &tx_info->adap->ch_ktls_stats.ktls_port[tx_info->port_id]; in chcr_ktls_dev_del() 403 atomic64_inc(&port_stats->ktls_tx_connection_close); in chcr_ktls_dev_del() 425 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_dev_add() local 440 port_stats = &adap->ch_ktls_stats.ktls_port[pi->port_id]; in chcr_ktls_dev_add() 441 atomic64_inc(&port_stats->ktls_tx_connection_open); in chcr_ktls_dev_add() 574 atomic64_inc(&port_stats->ktls_tx_ctx); in chcr_ktls_dev_add() 603 atomic64_inc(&port_stats->ktls_tx_connection_fail); in chcr_ktls_dev_add() 853 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_xmit_tcb_cpls() local 892 port_stats = in chcr_ktls_xmit_tcb_cpls() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_port.c | 1015 struct hinic_port_stats *port_stats; in hinic_get_phy_port_stats() local 1016 u16 out_size = sizeof(*port_stats); in hinic_get_phy_port_stats() 1020 port_stats = kzalloc(sizeof(*port_stats), GFP_KERNEL); in hinic_get_phy_port_stats() 1021 if (!port_stats) in hinic_get_phy_port_stats() 1025 stats_info.stats_size = sizeof(*port_stats); in hinic_get_phy_port_stats() 1029 port_stats, &out_size); in hinic_get_phy_port_stats() 1030 if (err || !out_size || port_stats->status) { in hinic_get_phy_port_stats() 1033 err, port_stats->status, out_size); in hinic_get_phy_port_stats() 1038 memcpy(stats, &port_stats->stats, sizeof(*stats)); in hinic_get_phy_port_stats() 1041 kfree(port_stats); in hinic_get_phy_port_stats()
|
D | hinic_ethtool.c | 1407 struct hinic_phy_port_stats *port_stats; in hinic_get_ethtool_stats() local 1423 port_stats = kzalloc(sizeof(*port_stats), GFP_KERNEL); in hinic_get_ethtool_stats() 1424 if (!port_stats) { in hinic_get_ethtool_stats() 1431 err = hinic_get_phy_port_stats(nic_dev, port_stats); in hinic_get_ethtool_stats() 1437 p = (char *)port_stats + hinic_port_stats[j].offset; in hinic_get_ethtool_stats() 1442 kfree(port_stats); in hinic_get_ethtool_stats()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_ctx.c | 1187 struct __qlcnic_esw_statistics port_stats; in qlcnic_get_eswitch_stats() local 1212 memset(&port_stats, 0, sizeof(struct __qlcnic_esw_statistics)); in qlcnic_get_eswitch_stats() 1214 rx_tx, &port_stats)) in qlcnic_get_eswitch_stats() 1217 esw_stats->size = port_stats.size; in qlcnic_get_eswitch_stats() 1218 esw_stats->version = port_stats.version; in qlcnic_get_eswitch_stats() 1220 port_stats.unicast_frames); in qlcnic_get_eswitch_stats() 1222 port_stats.multicast_frames); in qlcnic_get_eswitch_stats() 1224 port_stats.broadcast_frames); in qlcnic_get_eswitch_stats() 1226 port_stats.dropped_frames); in qlcnic_get_eswitch_stats() 1228 port_stats.errors); in qlcnic_get_eswitch_stats() [all …]
|
D | qlcnic_sysfs.c | 779 struct qlcnic_esw_statistics port_stats; in qlcnic_sysfs_get_port_stats() local 791 memset(&port_stats, 0, size); in qlcnic_sysfs_get_port_stats() 793 &port_stats.rx); in qlcnic_sysfs_get_port_stats() 798 &port_stats.tx); in qlcnic_sysfs_get_port_stats() 802 memcpy(buf, &port_stats, size); in qlcnic_sysfs_get_port_stats()
|
D | qlcnic_ethtool.c | 1347 struct qlcnic_esw_statistics port_stats; in qlcnic_get_ethtool_stats() local 1385 memset(&port_stats, 0, sizeof(struct qlcnic_esw_statistics)); in qlcnic_get_ethtool_stats() 1387 QLCNIC_QUERY_RX_COUNTER, &port_stats.rx); in qlcnic_get_ethtool_stats() 1391 data = qlcnic_fill_stats(data, &port_stats.rx, QLCNIC_ESW_STATS); in qlcnic_get_ethtool_stats() 1393 QLCNIC_QUERY_TX_COUNTER, &port_stats.tx); in qlcnic_get_ethtool_stats() 1397 qlcnic_fill_stats(data, &port_stats.tx, QLCNIC_ESW_STATS); in qlcnic_get_ethtool_stats()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_stats.c | 241 dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_stats_pmf_update() 242 dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_stats_pmf_update() 252 dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, port_stats) + in bnx2x_stats_pmf_update() 254 dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, port_stats) + in bnx2x_stats_pmf_update() 292 dmae->src_addr_lo = U64_LO(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_port_stats_init() 293 dmae->src_addr_hi = U64_HI(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_port_stats_init() 553 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_bmac_stats_update() 659 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_mstat_stats_update() 750 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_emac_stats_update() 808 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_hw_stats_update() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
D | ionic_stats.c | 344 struct ionic_port_stats *port_stats; in ionic_sw_stats_get_values() local 358 port_stats = &lif->ionic->idev.port_info->stats; in ionic_sw_stats_get_values() 360 **buf = IONIC_READ_STAT_LE64(port_stats, in ionic_sw_stats_get_values()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/ehea/ |
D | ehea.h | 318 struct port_stats { struct 343 struct port_stats p_stats; argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 272 struct sge_port_stats __percpu *port_stats[MAX_NPORTS]; member 810 free_percpu(sge->port_stats[i]); in t1_sge_destroy() 989 struct sge_port_stats *st = per_cpu_ptr(sge->port_stats[port], cpu); in t1_sge_get_port_stats() 1381 st = this_cpu_ptr(sge->port_stats[p->iff]); in sge_rx() 1782 struct sge_port_stats *st = this_cpu_ptr(sge->port_stats[dev->if_port]); in t1_start_xmit() 2080 sge->port_stats[i] = alloc_percpu(struct sge_port_stats); in t1_sge_create() 2081 if (!sge->port_stats[i]) in t1_sge_create() 2120 free_percpu(sge->port_stats[i]); in t1_sge_create()
|
/kernel/linux/linux-5.10/drivers/net/team/ |
D | team_mode_loadbalance.c | 210 struct lb_stats *port_stats; in lb_update_tx_stats() local 214 port_stats = this_cpu_ptr(lb_port_priv->pcpu_stats); in lb_update_tx_stats() 217 port_stats->tx_bytes += tx_bytes; in lb_update_tx_stats()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/ |
D | adapter.h | 212 unsigned long port_stats[SGE_PSTAT_MAX]; member
|
D | sge.c | 1335 qs->port_stats[SGE_PSTAT_TX_CSUM]++; in t3_eth_xmit() 1337 qs->port_stats[SGE_PSTAT_TSO]++; in t3_eth_xmit() 1339 qs->port_stats[SGE_PSTAT_VLANINS]++; in t3_eth_xmit() 2094 qs->port_stats[SGE_PSTAT_RX_CSUM_GOOD]++; in rx_eth() 2101 qs->port_stats[SGE_PSTAT_VLANEX]++; in rx_eth() 2179 qs->port_stats[SGE_PSTAT_RX_CSUM_GOOD]++; in lro_add_page() 2203 qs->port_stats[SGE_PSTAT_VLANEX]++; in lro_add_page()
|
/kernel/linux/linux-5.10/drivers/scsi/bfa/ |
D | bfa_defs_fcs.h | 274 struct bfa_lport_stats_s port_stats; /* base class (port) stats */ member
|
D | bfad_bsg.h | 302 struct bfa_lport_stats_s port_stats; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4.h | 205 struct port_stats { struct 671 struct port_stats stats_base; 1935 void t4_get_port_stats(struct adapter *adap, int idx, struct port_stats *p); 1937 struct port_stats *stats, 1938 struct port_stats *offset);
|
/kernel/linux/linux-5.10/drivers/scsi/csiostor/ |
D | t4fw_api_stor.h | 420 } port_stats; member
|
/kernel/linux/linux-5.10/drivers/char/ |
D | virtio_console.c | 167 struct port_stats { struct 203 struct port_stats stats; 1384 port->stats = (struct port_stats) { 0 }; in add_port()
|