Lines Matching refs:ena_buf
241 struct ena_com_buf *ena_buf; in ena_xdp_tx_map_frame() local
273 ena_buf = tx_info->bufs; in ena_xdp_tx_map_frame()
274 ena_buf->paddr = dma; in ena_xdp_tx_map_frame()
275 ena_buf->len = size; in ena_xdp_tx_map_frame()
277 ena_tx_ctx->ena_bufs = ena_buf; in ena_xdp_tx_map_frame()
1007 struct ena_com_buf *ena_buf; in ena_alloc_rx_buffer() local
1030 ena_buf = &rx_info->ena_buf; in ena_alloc_rx_buffer()
1031 ena_buf->paddr = dma + headroom; in ena_alloc_rx_buffer()
1032 ena_buf->len = ENA_PAGE_SIZE - headroom - tailroom; in ena_alloc_rx_buffer()
1040 struct ena_com_buf *ena_buf = &rx_info->ena_buf; in ena_unmap_rx_buff() local
1042 dma_unmap_page(rx_ring->dev, ena_buf->paddr - rx_ring->rx_headroom, in ena_unmap_rx_buff()
1087 &rx_info->ena_buf, in ena_refill_rx_bufs()
1161 struct ena_com_buf *ena_buf; in ena_unmap_tx_buff() local
1165 ena_buf = tx_info->bufs; in ena_unmap_tx_buff()
1173 dma_unmap_addr(ena_buf, paddr), in ena_unmap_tx_buff()
1174 dma_unmap_len(ena_buf, len), in ena_unmap_tx_buff()
1176 ena_buf++; in ena_unmap_tx_buff()
1182 dma_unmap_page(tx_ring->dev, dma_unmap_addr(ena_buf, paddr), in ena_unmap_tx_buff()
1183 dma_unmap_len(ena_buf, len), DMA_TO_DEVICE); in ena_unmap_tx_buff()
1184 ena_buf++; in ena_unmap_tx_buff()
1467 dma_unmap_addr(&rx_info->ena_buf, paddr), in ena_rx_skb()
1472 dma_unmap_addr(&rx_info->ena_buf, paddr), in ena_rx_skb()
2932 struct ena_com_buf *ena_buf; in ena_tx_map_skb() local
2941 ena_buf = tx_info->bufs; in ena_tx_map_skb()
2980 ena_buf->paddr = dma; in ena_tx_map_skb()
2981 ena_buf->len = skb_head_len - push_len; in ena_tx_map_skb()
2983 ena_buf++; in ena_tx_map_skb()
3007 ena_buf->paddr = dma; in ena_tx_map_skb()
3008 ena_buf->len = frag_len - delta; in ena_tx_map_skb()
3009 ena_buf++; in ena_tx_map_skb()