/linux-6.6.21/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() 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-6.6.21/drivers/net/ethernet/qlogic/qed/ |
D | qed_l2.c | 1764 struct port_stats port_stats; in __qed_get_vport_port_stats() local 1767 memset(&port_stats, 0, sizeof(port_stats)); in __qed_get_vport_port_stats() 1769 qed_memcpy_from(p_hwfn, p_ptt, &port_stats, in __qed_get_vport_port_stats() 1772 sizeof(port_stats)); in __qed_get_vport_port_stats() 1774 p_common->rx_64_byte_packets += port_stats.eth.r64; in __qed_get_vport_port_stats() 1775 p_common->rx_65_to_127_byte_packets += port_stats.eth.r127; in __qed_get_vport_port_stats() 1776 p_common->rx_128_to_255_byte_packets += port_stats.eth.r255; in __qed_get_vport_port_stats() 1777 p_common->rx_256_to_511_byte_packets += port_stats.eth.r511; in __qed_get_vport_port_stats() 1778 p_common->rx_512_to_1023_byte_packets += port_stats.eth.r1023; in __qed_get_vport_port_stats() 1779 p_common->rx_1024_to_1518_byte_packets += port_stats.eth.r1518; in __qed_get_vport_port_stats() [all …]
|
D | qed_ll2.c | 2238 struct core_ll2_port_stats port_stats; in _qed_ll2_get_port_stats() local 2240 memset(&port_stats, 0, sizeof(port_stats)); in _qed_ll2_get_port_stats() 2241 qed_memcpy_from(p_hwfn, p_ptt, &port_stats, in _qed_ll2_get_port_stats() 2244 sizeof(port_stats)); in _qed_ll2_get_port_stats() 2246 p_stats->gsi_invalid_hdr += HILO_64_REGPAIR(port_stats.gsi_invalid_hdr); in _qed_ll2_get_port_stats() 2248 HILO_64_REGPAIR(port_stats.gsi_invalid_pkt_length); in _qed_ll2_get_port_stats() 2250 HILO_64_REGPAIR(port_stats.gsi_unsupported_pkt_typ); in _qed_ll2_get_port_stats() 2252 HILO_64_REGPAIR(port_stats.gsi_crcchksm_error); in _qed_ll2_get_port_stats()
|
/linux-6.6.21/drivers/net/ethernet/emulex/benet/ |
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-6.6.21/drivers/net/ethernet/marvell/prestera/ |
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 …]
|
D | prestera_ethtool.c | 772 struct prestera_port_stats *port_stats; in prestera_ethtool_get_stats() local 774 port_stats = &port->cached_hw_stats.stats; in prestera_ethtool_get_stats() 776 memcpy(data, port_stats, sizeof(*port_stats)); in prestera_ethtool_get_stats()
|
/linux-6.6.21/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
D | chcr_ktls.c | 367 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_dev_del() local 396 port_stats = &tx_info->adap->ch_ktls_stats.ktls_port[tx_info->port_id]; in chcr_ktls_dev_del() 397 atomic64_inc(&port_stats->ktls_tx_connection_close); in chcr_ktls_dev_del() 419 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_dev_add() local 434 port_stats = &adap->ch_ktls_stats.ktls_port[pi->port_id]; in chcr_ktls_dev_add() 435 atomic64_inc(&port_stats->ktls_tx_connection_open); in chcr_ktls_dev_add() 568 atomic64_inc(&port_stats->ktls_tx_ctx); in chcr_ktls_dev_add() 597 atomic64_inc(&port_stats->ktls_tx_connection_fail); in chcr_ktls_dev_add() 847 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_xmit_tcb_cpls() local 886 port_stats = in chcr_ktls_xmit_tcb_cpls() [all …]
|
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/ |
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(sizeof(*port_stats), GFP_KERNEL); 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()
|
D | hinic_ethtool.c | 1405 struct hinic_phy_port_stats *port_stats; in hinic_get_ethtool_stats() local 1421 port_stats = kzalloc(sizeof(*port_stats), GFP_KERNEL); in hinic_get_ethtool_stats() 1422 if (!port_stats) { in hinic_get_ethtool_stats() 1429 err = hinic_get_phy_port_stats(nic_dev, port_stats); in hinic_get_ethtool_stats() 1435 p = (char *)port_stats + hinic_port_stats[j].offset; in hinic_get_ethtool_stats() 1440 kfree(port_stats); in hinic_get_ethtool_stats()
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/ |
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 …]
|
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()
|
D | qlcnic_ethtool.c | 1351 struct qlcnic_esw_statistics port_stats; in qlcnic_get_ethtool_stats() local 1389 memset(&port_stats, 0, sizeof(struct qlcnic_esw_statistics)); in qlcnic_get_ethtool_stats() 1391 QLCNIC_QUERY_RX_COUNTER, &port_stats.rx); in qlcnic_get_ethtool_stats() 1395 data = qlcnic_fill_stats(data, &port_stats.rx, QLCNIC_ESW_STATS); in qlcnic_get_ethtool_stats() 1397 QLCNIC_QUERY_TX_COUNTER, &port_stats.tx); in qlcnic_get_ethtool_stats() 1401 qlcnic_fill_stats(data, &port_stats.tx, QLCNIC_ESW_STATS); in qlcnic_get_ethtool_stats()
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/net/ethernet/pensando/ionic/ |
D | ionic_stats.c | 309 struct ionic_port_stats *port_stats; in ionic_sw_stats_get_values() local 320 port_stats = &lif->ionic->idev.port_info->stats; in ionic_sw_stats_get_values() 322 **buf = IONIC_READ_STAT_LE64(port_stats, in ionic_sw_stats_get_values()
|
/linux-6.6.21/drivers/net/ethernet/ibm/ehea/ |
D | ehea.h | 319 struct port_stats { struct 344 struct port_stats p_stats; argument
|
/linux-6.6.21/drivers/net/team/ |
D | team_mode_loadbalance.c | 205 struct lb_stats *port_stats; in lb_update_tx_stats() local 209 port_stats = this_cpu_ptr(lb_port_priv->pcpu_stats); in lb_update_tx_stats() 212 port_stats->tx_bytes += tx_bytes; in lb_update_tx_stats()
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb/ |
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-6.6.21/drivers/net/ethernet/chelsio/cxgb3/ |
D | adapter.h | 212 unsigned long port_stats[SGE_PSTAT_MAX]; member
|
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-6.6.21/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
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4.h | 205 struct port_stats { struct 669 struct port_stats stats_base; 1931 void t4_get_port_stats(struct adapter *adap, int idx, struct port_stats *p); 1933 struct port_stats *stats, 1934 struct port_stats *offset);
|
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 646 u64 *port_stats = bp->port_stats.sw_stats; in bnxt_get_ethtool_stats() local 649 buf[j] = *(port_stats + bnxt_port_stats_arr[i].offset); in bnxt_get_ethtool_stats() 2100 rx = bp->port_stats.sw_stats; in bnxt_get_pause_stats() 2101 tx = bp->port_stats.sw_stats + BNXT_TX_PORT_STATS_BYTE_OFFSET / 8; in bnxt_get_pause_stats() 4007 rx = bp->port_stats.sw_stats; in bnxt_get_eth_mac_stats() 4008 tx = bp->port_stats.sw_stats + BNXT_TX_PORT_STATS_BYTE_OFFSET / 8; in bnxt_get_eth_mac_stats() 4031 rx = bp->port_stats.sw_stats; in bnxt_get_eth_ctrl_stats() 4060 rx = bp->port_stats.sw_stats; in bnxt_get_rmon_stats() 4061 tx = bp->port_stats.sw_stats + BNXT_TX_PORT_STATS_BYTE_OFFSET / 8; in bnxt_get_rmon_stats()
|
/linux-6.6.21/drivers/scsi/csiostor/ |
D | t4fw_api_stor.h | 420 } port_stats; member
|
/linux-6.6.21/drivers/char/ |
D | virtio_console.c | 161 struct port_stats { struct 197 struct port_stats stats; 1381 port->stats = (struct port_stats) { 0 }; in add_port()
|