Lines Matching refs:macstat
1153 struct macstat_regs __iomem *macstat = &adapter->regs->macstat; in et1310_config_macstat_regs() local
1157 for (reg = &macstat->txrx_0_64_byte_frames; in et1310_config_macstat_regs()
1158 reg <= &macstat->carry_reg2; reg++) in et1310_config_macstat_regs()
1165 writel(0xFFFFBE32, &macstat->carry_reg1_mask); in et1310_config_macstat_regs()
1166 writel(0xFFFE7E8B, &macstat->carry_reg2_mask); in et1310_config_macstat_regs()
1343 struct macstat_regs __iomem *macstat = in et1310_update_macstat_host_counters() local
1344 &adapter->regs->macstat; in et1310_update_macstat_host_counters()
1346 stats->tx_collisions += readl(&macstat->tx_total_collisions); in et1310_update_macstat_host_counters()
1347 stats->tx_first_collisions += readl(&macstat->tx_single_collisions); in et1310_update_macstat_host_counters()
1348 stats->tx_deferred += readl(&macstat->tx_deferred); in et1310_update_macstat_host_counters()
1350 readl(&macstat->tx_multiple_collisions); in et1310_update_macstat_host_counters()
1351 stats->tx_late_collisions += readl(&macstat->tx_late_collisions); in et1310_update_macstat_host_counters()
1352 stats->tx_underflows += readl(&macstat->tx_undersize_frames); in et1310_update_macstat_host_counters()
1353 stats->tx_max_pkt_errs += readl(&macstat->tx_oversize_frames); in et1310_update_macstat_host_counters()
1355 stats->rx_align_errs += readl(&macstat->rx_align_errs); in et1310_update_macstat_host_counters()
1356 stats->rx_crc_errs += readl(&macstat->rx_code_errs); in et1310_update_macstat_host_counters()
1357 stats->rcvd_pkts_dropped += readl(&macstat->rx_drops); in et1310_update_macstat_host_counters()
1358 stats->rx_overflows += readl(&macstat->rx_oversize_packets); in et1310_update_macstat_host_counters()
1359 stats->rx_code_violations += readl(&macstat->rx_fcs_errs); in et1310_update_macstat_host_counters()
1360 stats->rx_length_errs += readl(&macstat->rx_frame_len_errs); in et1310_update_macstat_host_counters()
1361 stats->rx_other_errs += readl(&macstat->rx_fragment_packets); in et1310_update_macstat_host_counters()
1378 carry_reg1 = readl(&adapter->regs->macstat.carry_reg1); in et1310_handle_macstat_interrupt()
1379 carry_reg2 = readl(&adapter->regs->macstat.carry_reg2); in et1310_handle_macstat_interrupt()
1381 writel(carry_reg1, &adapter->regs->macstat.carry_reg1); in et1310_handle_macstat_interrupt()
1382 writel(carry_reg2, &adapter->regs->macstat.carry_reg2); in et1310_handle_macstat_interrupt()