Lines Matching refs:rxbd
185 struct arc_emac_bd *rxbd = &priv->rxbd[*last_rx_bd]; in arc_emac_rx() local
186 unsigned int pktlen, info = le32_to_cpu(rxbd->info); in arc_emac_rx()
207 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
222 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
235 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
258 rxbd->data = cpu_to_le32(addr); in arc_emac_rx()
264 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
303 struct arc_emac_bd *rxbd; in arc_emac_rx_stall_check() local
309 rxbd = &priv->rxbd[priv->last_rx_bd]; in arc_emac_rx_stall_check()
310 if (le32_to_cpu(rxbd->info) & FOR_EMAC) { in arc_emac_rx_stall_check()
443 struct arc_emac_bd *rxbd = &priv->rxbd[*last_rx_bd]; in arc_emac_open() local
461 rxbd->data = cpu_to_le32(addr); in arc_emac_open()
467 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_open()
590 struct arc_emac_bd *rxbd = &priv->rxbd[i]; in arc_free_rx_queue() local
603 rxbd->info = 0; in arc_free_rx_queue()
604 rxbd->data = 0; in arc_free_rx_queue()
821 struct arc_emac_bd *rxbd = &priv->rxbd[i]; in arc_emac_restart() local
822 unsigned int info = le32_to_cpu(rxbd->info); in arc_emac_restart()
829 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_restart()
957 priv->rxbd = dmam_alloc_coherent(dev, RX_RING_SZ + TX_RING_SZ, in arc_emac_probe()
960 if (!priv->rxbd) { in arc_emac_probe()
966 priv->txbd = priv->rxbd + RX_BD_NUM; in arc_emac_probe()