Lines Matching refs:stat

233 	u32 stat;  member
251 bd->stat = ethoc_read(dev, offset + 0); in ethoc_read_bd()
259 ethoc_write(dev, offset + 0, bd->stat); in ethoc_write_bd()
310 bd.stat = TX_BD_IRQ | TX_BD_CRC; in ethoc_init_ring()
315 bd.stat |= TX_BD_WRAP; in ethoc_init_ring()
324 bd.stat = RX_BD_EMPTY | RX_BD_IRQ; in ethoc_init_ring()
328 bd.stat |= RX_BD_WRAP; in ethoc_init_ring()
373 if (bd->stat & RX_BD_TL) { in ethoc_update_rx_stats()
379 if (bd->stat & RX_BD_SF) { in ethoc_update_rx_stats()
385 if (bd->stat & RX_BD_DN) { in ethoc_update_rx_stats()
390 if (bd->stat & RX_BD_CRC) { in ethoc_update_rx_stats()
396 if (bd->stat & RX_BD_OR) { in ethoc_update_rx_stats()
402 if (bd->stat & RX_BD_MISS) in ethoc_update_rx_stats()
405 if (bd->stat & RX_BD_LC) { in ethoc_update_rx_stats()
425 if (bd.stat & RX_BD_EMPTY) { in ethoc_rx()
435 if (bd.stat & RX_BD_EMPTY) in ethoc_rx()
440 int size = bd.stat >> 16; in ethoc_rx()
464 bd.stat &= ~RX_BD_STATS; in ethoc_rx()
465 bd.stat |= RX_BD_EMPTY; in ethoc_rx()
478 if (bd->stat & TX_BD_LC) { in ethoc_update_tx_stats()
483 if (bd->stat & TX_BD_RL) { in ethoc_update_tx_stats()
488 if (bd->stat & TX_BD_UR) { in ethoc_update_tx_stats()
493 if (bd->stat & TX_BD_CS) { in ethoc_update_tx_stats()
498 if (bd->stat & TX_BD_STATS) in ethoc_update_tx_stats()
501 netdev->stats.collisions += (bd->stat >> 4) & 0xf; in ethoc_update_tx_stats()
502 netdev->stats.tx_bytes += bd->stat >> 16; in ethoc_update_tx_stats()
519 if (bd.stat & TX_BD_READY || (priv->dty_tx == priv->cur_tx)) { in ethoc_tx()
529 if (bd.stat & TX_BD_READY || in ethoc_tx()
651 u32 stat = ethoc_read(priv, MIISTATUS); in ethoc_mdio_write() local
652 if (!(stat & MIISTATUS_BUSY)) { in ethoc_mdio_write()
867 bd.stat |= TX_BD_PAD; in ethoc_start_xmit()
869 bd.stat &= ~TX_BD_PAD; in ethoc_start_xmit()
874 bd.stat &= ~(TX_BD_STATS | TX_BD_LEN_MASK); in ethoc_start_xmit()
875 bd.stat |= TX_BD_LEN(skb->len); in ethoc_start_xmit()
878 bd.stat |= TX_BD_READY; in ethoc_start_xmit()