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()
1018 struct ena_com_buf *ena_buf; in ena_alloc_rx_buffer() local
1041 ena_buf = &rx_info->ena_buf; in ena_alloc_rx_buffer()
1042 ena_buf->paddr = dma + headroom; in ena_alloc_rx_buffer()
1043 ena_buf->len = ENA_PAGE_SIZE - headroom - tailroom; in ena_alloc_rx_buffer()
1051 struct ena_com_buf *ena_buf = &rx_info->ena_buf; in ena_unmap_rx_buff() local
1053 dma_unmap_page(rx_ring->dev, ena_buf->paddr - rx_ring->rx_headroom, in ena_unmap_rx_buff()
1098 &rx_info->ena_buf, in ena_refill_rx_bufs()
1172 struct ena_com_buf *ena_buf; in ena_unmap_tx_buff() local
1176 ena_buf = tx_info->bufs; in ena_unmap_tx_buff()
1184 dma_unmap_addr(ena_buf, paddr), in ena_unmap_tx_buff()
1185 dma_unmap_len(ena_buf, len), in ena_unmap_tx_buff()
1187 ena_buf++; in ena_unmap_tx_buff()
1193 dma_unmap_page(tx_ring->dev, dma_unmap_addr(ena_buf, paddr), in ena_unmap_tx_buff()
1194 dma_unmap_len(ena_buf, len), DMA_TO_DEVICE); in ena_unmap_tx_buff()
1195 ena_buf++; in ena_unmap_tx_buff()
1478 dma_unmap_addr(&rx_info->ena_buf, paddr), in ena_rx_skb()
1483 dma_unmap_addr(&rx_info->ena_buf, paddr), in ena_rx_skb()
2969 struct ena_com_buf *ena_buf; in ena_tx_map_skb() local
2978 ena_buf = tx_info->bufs; in ena_tx_map_skb()
3017 ena_buf->paddr = dma; in ena_tx_map_skb()
3018 ena_buf->len = skb_head_len - push_len; in ena_tx_map_skb()
3020 ena_buf++; in ena_tx_map_skb()
3044 ena_buf->paddr = dma; in ena_tx_map_skb()
3045 ena_buf->len = frag_len - delta; in ena_tx_map_skb()
3046 ena_buf++; in ena_tx_map_skb()