Lines Matching refs:stat

268 			greth_write_bd(&rx_bd[i].stat, GRETH_BD_EN | GRETH_BD_IE);  in greth_init_rings()
295 greth_write_bd(&rx_bd[i].stat, GRETH_BD_EN | GRETH_BD_IE); in greth_init_rings()
318 greth_write_bd(&tx_bd[i].stat, 0); in greth_init_rings()
321 greth_write_bd(&rx_bd[GRETH_RXBD_NUM - 1].stat, in greth_init_rings()
322 greth_read_bd(&rx_bd[GRETH_RXBD_NUM - 1].stat) | GRETH_BD_WR); in greth_init_rings()
446 greth_write_bd(&bdp->stat, status); in greth_start_xmit()
509 greth_write_bd(&bdp->stat, status); in greth_start_xmit_gbit()
540 greth_write_bd(&bdp->stat, status); in greth_start_xmit_gbit()
557 greth_write_bd(&bdp->stat, in greth_start_xmit_gbit()
558 greth_read_bd(&bdp->stat) | GRETH_BD_EN); in greth_start_xmit_gbit()
573 greth_read_bd(&bdp->stat) & GRETH_BD_LEN, in greth_start_xmit_gbit()
575 greth_write_bd(&bdp->stat, 0); in greth_start_xmit_gbit()
625 u32 stat; in greth_clean_tx() local
633 stat = greth_read_bd(&bdp->stat); in greth_clean_tx()
635 if (unlikely(stat & GRETH_BD_EN)) in greth_clean_tx()
642 if (unlikely(stat & GRETH_TXBD_STATUS)) { in greth_clean_tx()
644 if (stat & GRETH_TXBD_ERR_AL) in greth_clean_tx()
646 if (stat & GRETH_TXBD_ERR_UE) in greth_clean_tx()
660 static inline void greth_update_tx_stats(struct net_device *dev, u32 stat) in greth_update_tx_stats() argument
663 if (unlikely(stat & GRETH_TXBD_STATUS)) { in greth_update_tx_stats()
665 if (stat & GRETH_TXBD_ERR_AL) in greth_update_tx_stats()
667 if (stat & GRETH_TXBD_ERR_UE) in greth_update_tx_stats()
669 if (stat & GRETH_TXBD_ERR_LC) in greth_update_tx_stats()
680 u32 stat; in greth_clean_tx_gbit() local
698 stat = greth_read_bd(&bdp_last_frag->stat); in greth_clean_tx_gbit()
700 if (stat & GRETH_BD_EN) in greth_clean_tx_gbit()
705 greth_update_tx_stats(dev, stat); in greth_clean_tx_gbit()
758 status = greth_read_bd(&bdp->stat); in greth_rx()
824 greth_write_bd(&bdp->stat, status); in greth_rx()
874 status = greth_read_bd(&bdp->stat); in greth_rx_gbit()
961 greth_write_bd(&bdp->stat, status); in greth_rx_gbit()