Lines Matching refs:macstat
1156 struct macstat_regs __iomem *macstat = &adapter->regs->macstat; in et1310_config_macstat_regs() local
1160 for (reg = &macstat->txrx_0_64_byte_frames; in et1310_config_macstat_regs()
1161 reg <= &macstat->carry_reg2; reg++) in et1310_config_macstat_regs()
1168 writel(0xFFFFBE32, &macstat->carry_reg1_mask); in et1310_config_macstat_regs()
1169 writel(0xFFFE7E8B, &macstat->carry_reg2_mask); in et1310_config_macstat_regs()
1346 struct macstat_regs __iomem *macstat = in et1310_update_macstat_host_counters() local
1347 &adapter->regs->macstat; in et1310_update_macstat_host_counters()
1349 stats->tx_collisions += readl(&macstat->tx_total_collisions); in et1310_update_macstat_host_counters()
1350 stats->tx_first_collisions += readl(&macstat->tx_single_collisions); in et1310_update_macstat_host_counters()
1351 stats->tx_deferred += readl(&macstat->tx_deferred); in et1310_update_macstat_host_counters()
1353 readl(&macstat->tx_multiple_collisions); in et1310_update_macstat_host_counters()
1354 stats->tx_late_collisions += readl(&macstat->tx_late_collisions); in et1310_update_macstat_host_counters()
1355 stats->tx_underflows += readl(&macstat->tx_undersize_frames); in et1310_update_macstat_host_counters()
1356 stats->tx_max_pkt_errs += readl(&macstat->tx_oversize_frames); in et1310_update_macstat_host_counters()
1358 stats->rx_align_errs += readl(&macstat->rx_align_errs); in et1310_update_macstat_host_counters()
1359 stats->rx_crc_errs += readl(&macstat->rx_code_errs); in et1310_update_macstat_host_counters()
1360 stats->rcvd_pkts_dropped += readl(&macstat->rx_drops); in et1310_update_macstat_host_counters()
1361 stats->rx_overflows += readl(&macstat->rx_oversize_packets); in et1310_update_macstat_host_counters()
1362 stats->rx_code_violations += readl(&macstat->rx_fcs_errs); in et1310_update_macstat_host_counters()
1363 stats->rx_length_errs += readl(&macstat->rx_frame_len_errs); in et1310_update_macstat_host_counters()
1364 stats->rx_other_errs += readl(&macstat->rx_fragment_packets); in et1310_update_macstat_host_counters()
1381 carry_reg1 = readl(&adapter->regs->macstat.carry_reg1); in et1310_handle_macstat_interrupt()
1382 carry_reg2 = readl(&adapter->regs->macstat.carry_reg2); in et1310_handle_macstat_interrupt()
1384 writel(carry_reg1, &adapter->regs->macstat.carry_reg1); in et1310_handle_macstat_interrupt()
1385 writel(carry_reg2, &adapter->regs->macstat.carry_reg2); in et1310_handle_macstat_interrupt()