Lines Matching refs:buf_desc
61 struct bcm4908_enet_dma_ring_bd *buf_desc; member
257 struct bcm4908_enet_dma_ring_bd *buf_desc = &enet->rx_ring.buf_desc[idx]; in bcm4908_enet_dma_alloc_rx_buf() local
282 buf_desc->ctl = cpu_to_le32(tmp); in bcm4908_enet_dma_alloc_rx_buf()
283 buf_desc->addr = cpu_to_le32(slot->dma_addr); in bcm4908_enet_dma_alloc_rx_buf()
516 struct bcm4908_enet_dma_ring_bd *buf_desc; in bcm4908_enet_start_xmit() local
522 !(le32_to_cpu(ring->buf_desc[ring->read_idx].ctl) & DMA_CTL_STATUS_OWN)) in bcm4908_enet_start_xmit()
536 buf_desc = &ring->buf_desc[ring->write_idx]; in bcm4908_enet_start_xmit()
537 if (unlikely(le32_to_cpu(buf_desc->ctl) & DMA_CTL_STATUS_OWN)) { in bcm4908_enet_start_xmit()
557 buf_desc->addr = cpu_to_le32((uint32_t)slot->dma_addr); in bcm4908_enet_start_xmit()
558 buf_desc->ctl = cpu_to_le32(tmp); in bcm4908_enet_start_xmit()
576 struct bcm4908_enet_dma_ring_bd *buf_desc; in bcm4908_enet_poll_rx() local
582 buf_desc = &enet->rx_ring.buf_desc[enet->rx_ring.read_idx]; in bcm4908_enet_poll_rx()
583 ctl = le32_to_cpu(buf_desc->ctl); in bcm4908_enet_poll_rx()
633 struct bcm4908_enet_dma_ring_bd *buf_desc; in bcm4908_enet_poll_tx() local
640 buf_desc = &tx_ring->buf_desc[tx_ring->read_idx]; in bcm4908_enet_poll_tx()
641 if (le32_to_cpu(buf_desc->ctl) & DMA_CTL_STATUS_OWN) in bcm4908_enet_poll_tx()