Lines Matching defs:smb
3194 struct smb sb, *smb;
3202 smb = sc->alc_rdata.alc_smb;
3204 smb->updated = 0;
3227 struct smb sb, *smb;
3240 smb = sc->alc_rdata.alc_smb;
3241 if (smb->updated == 0)
3244 smb = &sb;
3260 stat->rx_frames += smb->rx_frames;
3261 stat->rx_bcast_frames += smb->rx_bcast_frames;
3262 stat->rx_mcast_frames += smb->rx_mcast_frames;
3263 stat->rx_pause_frames += smb->rx_pause_frames;
3264 stat->rx_control_frames += smb->rx_control_frames;
3265 stat->rx_crcerrs += smb->rx_crcerrs;
3266 stat->rx_lenerrs += smb->rx_lenerrs;
3267 stat->rx_bytes += smb->rx_bytes;
3268 stat->rx_runts += smb->rx_runts;
3269 stat->rx_fragments += smb->rx_fragments;
3270 stat->rx_pkts_64 += smb->rx_pkts_64;
3271 stat->rx_pkts_65_127 += smb->rx_pkts_65_127;
3272 stat->rx_pkts_128_255 += smb->rx_pkts_128_255;
3273 stat->rx_pkts_256_511 += smb->rx_pkts_256_511;
3274 stat->rx_pkts_512_1023 += smb->rx_pkts_512_1023;
3275 stat->rx_pkts_1024_1518 += smb->rx_pkts_1024_1518;
3276 stat->rx_pkts_1519_max += smb->rx_pkts_1519_max;
3277 stat->rx_pkts_truncated += smb->rx_pkts_truncated;
3278 stat->rx_fifo_oflows += smb->rx_fifo_oflows;
3279 stat->rx_rrs_errs += smb->rx_rrs_errs;
3280 stat->rx_alignerrs += smb->rx_alignerrs;
3281 stat->rx_bcast_bytes += smb->rx_bcast_bytes;
3282 stat->rx_mcast_bytes += smb->rx_mcast_bytes;
3283 stat->rx_pkts_filtered += smb->rx_pkts_filtered;
3286 stat->tx_frames += smb->tx_frames;
3287 stat->tx_bcast_frames += smb->tx_bcast_frames;
3288 stat->tx_mcast_frames += smb->tx_mcast_frames;
3289 stat->tx_pause_frames += smb->tx_pause_frames;
3290 stat->tx_excess_defer += smb->tx_excess_defer;
3291 stat->tx_control_frames += smb->tx_control_frames;
3292 stat->tx_deferred += smb->tx_deferred;
3293 stat->tx_bytes += smb->tx_bytes;
3294 stat->tx_pkts_64 += smb->tx_pkts_64;
3295 stat->tx_pkts_65_127 += smb->tx_pkts_65_127;
3296 stat->tx_pkts_128_255 += smb->tx_pkts_128_255;
3297 stat->tx_pkts_256_511 += smb->tx_pkts_256_511;
3298 stat->tx_pkts_512_1023 += smb->tx_pkts_512_1023;
3299 stat->tx_pkts_1024_1518 += smb->tx_pkts_1024_1518;
3300 stat->tx_pkts_1519_max += smb->tx_pkts_1519_max;
3301 stat->tx_single_colls += smb->tx_single_colls;
3302 stat->tx_multi_colls += smb->tx_multi_colls;
3303 stat->tx_late_colls += smb->tx_late_colls;
3304 stat->tx_excess_colls += smb->tx_excess_colls;
3305 stat->tx_underrun += smb->tx_underrun;
3306 stat->tx_desc_underrun += smb->tx_desc_underrun;
3307 stat->tx_lenerrs += smb->tx_lenerrs;
3308 stat->tx_pkts_truncated += smb->tx_pkts_truncated;
3309 stat->tx_bcast_bytes += smb->tx_bcast_bytes;
3310 stat->tx_mcast_bytes += smb->tx_mcast_bytes;
3313 if_inc_counter(ifp, IFCOUNTER_OPACKETS, smb->tx_frames);
3315 if_inc_counter(ifp, IFCOUNTER_COLLISIONS, smb->tx_single_colls +
3316 smb->tx_multi_colls * 2 + smb->tx_late_colls +
3317 smb->tx_excess_colls * HDPX_CFG_RETRY_DEFAULT);
3319 if_inc_counter(ifp, IFCOUNTER_OERRORS, smb->tx_late_colls +
3320 smb->tx_excess_colls + smb->tx_underrun + smb->tx_pkts_truncated);
3322 if_inc_counter(ifp, IFCOUNTER_IPACKETS, smb->rx_frames);
3325 smb->rx_crcerrs + smb->rx_lenerrs +
3326 smb->rx_runts + smb->rx_pkts_truncated +
3327 smb->rx_fifo_oflows + smb->rx_rrs_errs +
3328 smb->rx_alignerrs);
3332 smb->updated = 0;