Lines Matching refs:stat

233 	u32 stat;  member
257 bd->stat = ethoc_read(dev, offset + 0); in ethoc_read_bd()
265 ethoc_write(dev, offset + 0, bd->stat); in ethoc_write_bd()
316 bd.stat = TX_BD_IRQ | TX_BD_CRC; in ethoc_init_ring()
321 bd.stat |= TX_BD_WRAP; in ethoc_init_ring()
330 bd.stat = RX_BD_EMPTY | RX_BD_IRQ; in ethoc_init_ring()
334 bd.stat |= RX_BD_WRAP; in ethoc_init_ring()
379 if (bd->stat & RX_BD_TL) { in ethoc_update_rx_stats()
385 if (bd->stat & RX_BD_SF) { in ethoc_update_rx_stats()
391 if (bd->stat & RX_BD_DN) { in ethoc_update_rx_stats()
396 if (bd->stat & RX_BD_CRC) { in ethoc_update_rx_stats()
402 if (bd->stat & RX_BD_OR) { in ethoc_update_rx_stats()
408 if (bd->stat & RX_BD_MISS) in ethoc_update_rx_stats()
411 if (bd->stat & RX_BD_LC) { in ethoc_update_rx_stats()
431 if (bd.stat & RX_BD_EMPTY) { in ethoc_rx()
441 if (bd.stat & RX_BD_EMPTY) in ethoc_rx()
446 int size = bd.stat >> 16; in ethoc_rx()
470 bd.stat &= ~RX_BD_STATS; in ethoc_rx()
471 bd.stat |= RX_BD_EMPTY; in ethoc_rx()
484 if (bd->stat & TX_BD_LC) { in ethoc_update_tx_stats()
489 if (bd->stat & TX_BD_RL) { in ethoc_update_tx_stats()
494 if (bd->stat & TX_BD_UR) { in ethoc_update_tx_stats()
499 if (bd->stat & TX_BD_CS) { in ethoc_update_tx_stats()
504 if (bd->stat & TX_BD_STATS) in ethoc_update_tx_stats()
507 netdev->stats.collisions += (bd->stat >> 4) & 0xf; in ethoc_update_tx_stats()
508 netdev->stats.tx_bytes += bd->stat >> 16; in ethoc_update_tx_stats()
525 if (bd.stat & TX_BD_READY || (priv->dty_tx == priv->cur_tx)) { in ethoc_tx()
535 if (bd.stat & TX_BD_READY || in ethoc_tx()
657 u32 stat = ethoc_read(priv, MIISTATUS); in ethoc_mdio_write() local
658 if (!(stat & MIISTATUS_BUSY)) { in ethoc_mdio_write()
903 bd.stat |= TX_BD_PAD; in ethoc_start_xmit()
905 bd.stat &= ~TX_BD_PAD; in ethoc_start_xmit()
910 bd.stat &= ~(TX_BD_STATS | TX_BD_LEN_MASK); in ethoc_start_xmit()
911 bd.stat |= TX_BD_LEN(skb->len); in ethoc_start_xmit()
914 bd.stat |= TX_BD_READY; in ethoc_start_xmit()