Lines Matching refs:dma_addr
74 dma_addr_t dma_addr; in xge_refill_buffers() local
86 dma_addr = dma_map_single(dev, skb->data, len, DMA_FROM_DEVICE); in xge_refill_buffers()
87 if (dma_mapping_error(dev, dma_addr)) { in xge_refill_buffers()
94 ring->pkt_info[tail].dma_addr = dma_addr; in xge_refill_buffers()
101 upper_32_bits(dma_addr))); in xge_refill_buffers()
104 raw_desc->m0 = cpu_to_le64(SET_BITS(PKT_ADDRL, dma_addr) | in xge_refill_buffers()
178 static dma_addr_t dma_addr; in xge_start_xmit() local
195 pkt_buf = dma_alloc_coherent(dev, XGENE_ENET_STD_MTU, &dma_addr, in xge_start_xmit()
208 upper_32_bits(dma_addr))); in xge_start_xmit()
211 tx_ring->pkt_info[tail].dma_addr = dma_addr; in xge_start_xmit()
216 raw_desc->m0 = cpu_to_le64(SET_BITS(PKT_ADDRL, dma_addr) | in xge_start_xmit()
242 dma_addr_t dma_addr; in xge_txc_poll() local
264 dma_addr = tx_ring->pkt_info[head].dma_addr; in xge_txc_poll()
268 dma_free_coherent(dev, XGENE_ENET_STD_MTU, pkt_buf, dma_addr); in xge_txc_poll()
292 dma_addr_t dma_addr; in xge_rx_poll() local
316 dma_addr = rx_ring->pkt_info[head].dma_addr; in xge_rx_poll()
318 dma_unmap_single(dev, dma_addr, XGENE_ENET_STD_MTU, in xge_rx_poll()
363 dma_free_coherent(dev, size, ring->desc_addr, ring->dma_addr); in xge_delete_desc_ring()
375 dma_addr_t dma_addr; in xge_free_buffers() local
380 dma_addr = ring->pkt_info[i].dma_addr; in xge_free_buffers()
385 dma_unmap_single(dev, dma_addr, XGENE_ENET_STD_MTU, in xge_free_buffers()
417 ring->desc_addr = dma_alloc_coherent(dev, size, &ring->dma_addr, in xge_create_desc_ring()
557 dma_addr_t dma_addr; in xge_free_pending_skb() local
571 dma_addr = tx_ring->pkt_info[i].dma_addr; in xge_free_pending_skb()
573 dma_free_coherent(dev, XGENE_ENET_STD_MTU, pkt_buf, dma_addr); in xge_free_pending_skb()