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