Lines Matching refs:rxbd
183 struct arc_emac_bd *rxbd = &priv->rxbd[*last_rx_bd]; in arc_emac_rx() local
184 unsigned int pktlen, info = le32_to_cpu(rxbd->info); in arc_emac_rx()
205 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
220 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
233 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
256 rxbd->data = cpu_to_le32(addr); in arc_emac_rx()
262 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_rx()
301 struct arc_emac_bd *rxbd; in arc_emac_rx_stall_check() local
307 rxbd = &priv->rxbd[priv->last_rx_bd]; in arc_emac_rx_stall_check()
308 if (le32_to_cpu(rxbd->info) & FOR_EMAC) { in arc_emac_rx_stall_check()
440 struct arc_emac_bd *rxbd = &priv->rxbd[*last_rx_bd]; in arc_emac_open() local
458 rxbd->data = cpu_to_le32(addr); in arc_emac_open()
464 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_open()
585 struct arc_emac_bd *rxbd = &priv->rxbd[i]; in arc_free_rx_queue() local
598 rxbd->info = 0; in arc_free_rx_queue()
599 rxbd->data = 0; in arc_free_rx_queue()
816 struct arc_emac_bd *rxbd = &priv->rxbd[i]; in arc_emac_restart() local
817 unsigned int info = le32_to_cpu(rxbd->info); in arc_emac_restart()
824 rxbd->info = cpu_to_le32(FOR_EMAC | EMAC_BUFFER_SIZE); in arc_emac_restart()
952 priv->rxbd = dmam_alloc_coherent(dev, RX_RING_SZ + TX_RING_SZ, in arc_emac_probe()
955 if (!priv->rxbd) { in arc_emac_probe()
961 priv->txbd = priv->rxbd + RX_BD_NUM; in arc_emac_probe()