Lines Matching refs:GEN_STAT
1164 #define GEN_STAT(m) sizeof(((struct bcm_enet_priv *)0)->m), \
1168 { "rx_packets", GEN_STAT(stats.rx_packets), -1 },
1169 { "tx_packets", GEN_STAT(stats.tx_packets), -1 },
1170 { "rx_bytes", GEN_STAT(stats.rx_bytes), -1 },
1171 { "tx_bytes", GEN_STAT(stats.tx_bytes), -1 },
1172 { "rx_errors", GEN_STAT(stats.rx_errors), -1 },
1173 { "tx_errors", GEN_STAT(stats.tx_errors), -1 },
1174 { "rx_dropped", GEN_STAT(stats.rx_dropped), -1 },
1175 { "tx_dropped", GEN_STAT(stats.tx_dropped), -1 },
1177 { "rx_good_octets", GEN_STAT(mib.rx_gd_octets), ETH_MIB_RX_GD_OCTETS},
1178 { "rx_good_pkts", GEN_STAT(mib.rx_gd_pkts), ETH_MIB_RX_GD_PKTS },
1179 { "rx_broadcast", GEN_STAT(mib.rx_brdcast), ETH_MIB_RX_BRDCAST },
1180 { "rx_multicast", GEN_STAT(mib.rx_mult), ETH_MIB_RX_MULT },
1181 { "rx_64_octets", GEN_STAT(mib.rx_64), ETH_MIB_RX_64 },
1182 { "rx_65_127_oct", GEN_STAT(mib.rx_65_127), ETH_MIB_RX_65_127 },
1183 { "rx_128_255_oct", GEN_STAT(mib.rx_128_255), ETH_MIB_RX_128_255 },
1184 { "rx_256_511_oct", GEN_STAT(mib.rx_256_511), ETH_MIB_RX_256_511 },
1185 { "rx_512_1023_oct", GEN_STAT(mib.rx_512_1023), ETH_MIB_RX_512_1023 },
1186 { "rx_1024_max_oct", GEN_STAT(mib.rx_1024_max), ETH_MIB_RX_1024_MAX },
1187 { "rx_jabber", GEN_STAT(mib.rx_jab), ETH_MIB_RX_JAB },
1188 { "rx_oversize", GEN_STAT(mib.rx_ovr), ETH_MIB_RX_OVR },
1189 { "rx_fragment", GEN_STAT(mib.rx_frag), ETH_MIB_RX_FRAG },
1190 { "rx_dropped", GEN_STAT(mib.rx_drop), ETH_MIB_RX_DROP },
1191 { "rx_crc_align", GEN_STAT(mib.rx_crc_align), ETH_MIB_RX_CRC_ALIGN },
1192 { "rx_undersize", GEN_STAT(mib.rx_und), ETH_MIB_RX_UND },
1193 { "rx_crc", GEN_STAT(mib.rx_crc), ETH_MIB_RX_CRC },
1194 { "rx_align", GEN_STAT(mib.rx_align), ETH_MIB_RX_ALIGN },
1195 { "rx_symbol_error", GEN_STAT(mib.rx_sym), ETH_MIB_RX_SYM },
1196 { "rx_pause", GEN_STAT(mib.rx_pause), ETH_MIB_RX_PAUSE },
1197 { "rx_control", GEN_STAT(mib.rx_cntrl), ETH_MIB_RX_CNTRL },
1199 { "tx_good_octets", GEN_STAT(mib.tx_gd_octets), ETH_MIB_TX_GD_OCTETS },
1200 { "tx_good_pkts", GEN_STAT(mib.tx_gd_pkts), ETH_MIB_TX_GD_PKTS },
1201 { "tx_broadcast", GEN_STAT(mib.tx_brdcast), ETH_MIB_TX_BRDCAST },
1202 { "tx_multicast", GEN_STAT(mib.tx_mult), ETH_MIB_TX_MULT },
1203 { "tx_64_oct", GEN_STAT(mib.tx_64), ETH_MIB_TX_64 },
1204 { "tx_65_127_oct", GEN_STAT(mib.tx_65_127), ETH_MIB_TX_65_127 },
1205 { "tx_128_255_oct", GEN_STAT(mib.tx_128_255), ETH_MIB_TX_128_255 },
1206 { "tx_256_511_oct", GEN_STAT(mib.tx_256_511), ETH_MIB_TX_256_511 },
1207 { "tx_512_1023_oct", GEN_STAT(mib.tx_512_1023), ETH_MIB_TX_512_1023},
1208 { "tx_1024_max_oct", GEN_STAT(mib.tx_1024_max), ETH_MIB_TX_1024_MAX },
1209 { "tx_jabber", GEN_STAT(mib.tx_jab), ETH_MIB_TX_JAB },
1210 { "tx_oversize", GEN_STAT(mib.tx_ovr), ETH_MIB_TX_OVR },
1211 { "tx_fragment", GEN_STAT(mib.tx_frag), ETH_MIB_TX_FRAG },
1212 { "tx_underrun", GEN_STAT(mib.tx_underrun), ETH_MIB_TX_UNDERRUN },
1213 { "tx_collisions", GEN_STAT(mib.tx_col), ETH_MIB_TX_COL },
1214 { "tx_single_collision", GEN_STAT(mib.tx_1_col), ETH_MIB_TX_1_COL },
1215 { "tx_multiple_collision", GEN_STAT(mib.tx_m_col), ETH_MIB_TX_M_COL },
1216 { "tx_excess_collision", GEN_STAT(mib.tx_ex_col), ETH_MIB_TX_EX_COL },
1217 { "tx_late_collision", GEN_STAT(mib.tx_late), ETH_MIB_TX_LATE },
1218 { "tx_deferred", GEN_STAT(mib.tx_def), ETH_MIB_TX_DEF },
1219 { "tx_carrier_sense", GEN_STAT(mib.tx_crs), ETH_MIB_TX_CRS },
1220 { "tx_pause", GEN_STAT(mib.tx_pause), ETH_MIB_TX_PAUSE },