• Home
  • Raw
  • Download

Lines Matching refs:hw_stats

312 	struct mac_hw_stats *hw_stats = &drv->mac_cb->hw_stats;  in hns_xgmac_update_stats()  local
315 hw_stats->tx_fragment_err in hns_xgmac_update_stats()
317 hw_stats->tx_undersize in hns_xgmac_update_stats()
319 hw_stats->tx_under_min_pkts in hns_xgmac_update_stats()
321 hw_stats->tx_64bytes = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_64OCTETS); in hns_xgmac_update_stats()
322 hw_stats->tx_65to127 in hns_xgmac_update_stats()
324 hw_stats->tx_128to255 in hns_xgmac_update_stats()
326 hw_stats->tx_256to511 in hns_xgmac_update_stats()
328 hw_stats->tx_512to1023 in hns_xgmac_update_stats()
330 hw_stats->tx_1024to1518 in hns_xgmac_update_stats()
332 hw_stats->tx_1519tomax in hns_xgmac_update_stats()
334 hw_stats->tx_1519tomax_good in hns_xgmac_update_stats()
336 hw_stats->tx_oversize = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_OVERSIZE); in hns_xgmac_update_stats()
337 hw_stats->tx_jabber_err = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_JABBER); in hns_xgmac_update_stats()
338 hw_stats->tx_good_pkts = hns_mac_reg_read64(drv, XGMAC_TX_GOODPKTS); in hns_xgmac_update_stats()
339 hw_stats->tx_good_bytes = hns_mac_reg_read64(drv, XGMAC_TX_GOODOCTETS); in hns_xgmac_update_stats()
340 hw_stats->tx_total_pkts = hns_mac_reg_read64(drv, XGMAC_TX_TOTAL_PKTS); in hns_xgmac_update_stats()
341 hw_stats->tx_total_bytes in hns_xgmac_update_stats()
343 hw_stats->tx_uc_pkts = hns_mac_reg_read64(drv, XGMAC_TX_UNICASTPKTS); in hns_xgmac_update_stats()
344 hw_stats->tx_mc_pkts = hns_mac_reg_read64(drv, XGMAC_TX_MULTICASTPKTS); in hns_xgmac_update_stats()
345 hw_stats->tx_bc_pkts = hns_mac_reg_read64(drv, XGMAC_TX_BROADCASTPKTS); in hns_xgmac_update_stats()
346 hw_stats->tx_pfc_tc0 = hns_mac_reg_read64(drv, XGMAC_TX_PRI0PAUSEPKTS); in hns_xgmac_update_stats()
347 hw_stats->tx_pfc_tc1 = hns_mac_reg_read64(drv, XGMAC_TX_PRI1PAUSEPKTS); in hns_xgmac_update_stats()
348 hw_stats->tx_pfc_tc2 = hns_mac_reg_read64(drv, XGMAC_TX_PRI2PAUSEPKTS); in hns_xgmac_update_stats()
349 hw_stats->tx_pfc_tc3 = hns_mac_reg_read64(drv, XGMAC_TX_PRI3PAUSEPKTS); in hns_xgmac_update_stats()
350 hw_stats->tx_pfc_tc4 = hns_mac_reg_read64(drv, XGMAC_TX_PRI4PAUSEPKTS); in hns_xgmac_update_stats()
351 hw_stats->tx_pfc_tc5 = hns_mac_reg_read64(drv, XGMAC_TX_PRI5PAUSEPKTS); in hns_xgmac_update_stats()
352 hw_stats->tx_pfc_tc6 = hns_mac_reg_read64(drv, XGMAC_TX_PRI6PAUSEPKTS); in hns_xgmac_update_stats()
353 hw_stats->tx_pfc_tc7 = hns_mac_reg_read64(drv, XGMAC_TX_PRI7PAUSEPKTS); in hns_xgmac_update_stats()
354 hw_stats->tx_ctrl = hns_mac_reg_read64(drv, XGMAC_TX_MACCTRLPKTS); in hns_xgmac_update_stats()
355 hw_stats->tx_1731_pkts = hns_mac_reg_read64(drv, XGMAC_TX_1731PKTS); in hns_xgmac_update_stats()
356 hw_stats->tx_1588_pkts = hns_mac_reg_read64(drv, XGMAC_TX_1588PKTS); in hns_xgmac_update_stats()
357 hw_stats->rx_good_from_sw in hns_xgmac_update_stats()
359 hw_stats->rx_bad_from_sw in hns_xgmac_update_stats()
361 hw_stats->tx_bad_pkts = hns_mac_reg_read64(drv, XGMAC_TX_ERRALLPKTS); in hns_xgmac_update_stats()
364 hw_stats->rx_fragment_err in hns_xgmac_update_stats()
366 hw_stats->rx_undersize in hns_xgmac_update_stats()
368 hw_stats->rx_under_min in hns_xgmac_update_stats()
370 hw_stats->rx_64bytes = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_64OCTETS); in hns_xgmac_update_stats()
371 hw_stats->rx_65to127 in hns_xgmac_update_stats()
373 hw_stats->rx_128to255 in hns_xgmac_update_stats()
375 hw_stats->rx_256to511 in hns_xgmac_update_stats()
377 hw_stats->rx_512to1023 in hns_xgmac_update_stats()
379 hw_stats->rx_1024to1518 in hns_xgmac_update_stats()
381 hw_stats->rx_1519tomax in hns_xgmac_update_stats()
383 hw_stats->rx_1519tomax_good in hns_xgmac_update_stats()
385 hw_stats->rx_oversize = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_OVERSIZE); in hns_xgmac_update_stats()
386 hw_stats->rx_jabber_err = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_JABBER); in hns_xgmac_update_stats()
387 hw_stats->rx_good_pkts = hns_mac_reg_read64(drv, XGMAC_RX_GOODPKTS); in hns_xgmac_update_stats()
388 hw_stats->rx_good_bytes = hns_mac_reg_read64(drv, XGMAC_RX_GOODOCTETS); in hns_xgmac_update_stats()
389 hw_stats->rx_total_pkts = hns_mac_reg_read64(drv, XGMAC_RX_TOTAL_PKTS); in hns_xgmac_update_stats()
390 hw_stats->rx_total_bytes in hns_xgmac_update_stats()
392 hw_stats->rx_uc_pkts = hns_mac_reg_read64(drv, XGMAC_RX_UNICASTPKTS); in hns_xgmac_update_stats()
393 hw_stats->rx_mc_pkts = hns_mac_reg_read64(drv, XGMAC_RX_MULTICASTPKTS); in hns_xgmac_update_stats()
394 hw_stats->rx_bc_pkts = hns_mac_reg_read64(drv, XGMAC_RX_BROADCASTPKTS); in hns_xgmac_update_stats()
395 hw_stats->rx_pfc_tc0 = hns_mac_reg_read64(drv, XGMAC_RX_PRI0PAUSEPKTS); in hns_xgmac_update_stats()
396 hw_stats->rx_pfc_tc1 = hns_mac_reg_read64(drv, XGMAC_RX_PRI1PAUSEPKTS); in hns_xgmac_update_stats()
397 hw_stats->rx_pfc_tc2 = hns_mac_reg_read64(drv, XGMAC_RX_PRI2PAUSEPKTS); in hns_xgmac_update_stats()
398 hw_stats->rx_pfc_tc3 = hns_mac_reg_read64(drv, XGMAC_RX_PRI3PAUSEPKTS); in hns_xgmac_update_stats()
399 hw_stats->rx_pfc_tc4 = hns_mac_reg_read64(drv, XGMAC_RX_PRI4PAUSEPKTS); in hns_xgmac_update_stats()
400 hw_stats->rx_pfc_tc5 = hns_mac_reg_read64(drv, XGMAC_RX_PRI5PAUSEPKTS); in hns_xgmac_update_stats()
401 hw_stats->rx_pfc_tc6 = hns_mac_reg_read64(drv, XGMAC_RX_PRI6PAUSEPKTS); in hns_xgmac_update_stats()
402 hw_stats->rx_pfc_tc7 = hns_mac_reg_read64(drv, XGMAC_RX_PRI7PAUSEPKTS); in hns_xgmac_update_stats()
404 hw_stats->rx_unknown_ctrl in hns_xgmac_update_stats()
406 hw_stats->tx_good_to_sw in hns_xgmac_update_stats()
408 hw_stats->tx_bad_to_sw in hns_xgmac_update_stats()
410 hw_stats->rx_1731_pkts = hns_mac_reg_read64(drv, XGMAC_RX_1731PKTS); in hns_xgmac_update_stats()
411 hw_stats->rx_symbol_err in hns_xgmac_update_stats()
413 hw_stats->rx_fcs_err = hns_mac_reg_read64(drv, XGMAC_RX_FCSERRPKTS); in hns_xgmac_update_stats()
743 struct mac_hw_stats *hw_stats = NULL; in hns_xgmac_get_stats() local
745 hw_stats = &drv->mac_cb->hw_stats; in hns_xgmac_get_stats()
748 buf[i] = DSAF_STATS_READ(hw_stats, in hns_xgmac_get_stats()