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()
1020 struct ena_com_buf *ena_buf; in ena_alloc_rx_buffer() local
1045 ena_buf = &rx_info->ena_buf; in ena_alloc_rx_buffer()
1046 ena_buf->paddr = dma + headroom; in ena_alloc_rx_buffer()
1047 ena_buf->len = ENA_PAGE_SIZE - headroom - tailroom; in ena_alloc_rx_buffer()
1100 &rx_info->ena_buf, in ena_refill_rx_bufs()
1174 struct ena_com_buf *ena_buf; in ena_unmap_tx_buff() local
1178 ena_buf = tx_info->bufs; in ena_unmap_tx_buff()
1186 dma_unmap_addr(ena_buf, paddr), in ena_unmap_tx_buff()
1187 dma_unmap_len(ena_buf, len), in ena_unmap_tx_buff()
1189 ena_buf++; in ena_unmap_tx_buff()
1195 dma_unmap_page(tx_ring->dev, dma_unmap_addr(ena_buf, paddr), in ena_unmap_tx_buff()
1196 dma_unmap_len(ena_buf, len), DMA_TO_DEVICE); in ena_unmap_tx_buff()
1197 ena_buf++; in ena_unmap_tx_buff()
1433 struct ena_com_buf *ena_buf = &rx_info->ena_buf; in ena_try_rx_buf_page_reuse() local
1438 if (SKB_DATA_ALIGN(len + pkt_offset) + ENA_MIN_RX_BUF_SIZE <= ena_buf->len) { in ena_try_rx_buf_page_reuse()
1441 ena_buf->paddr += buf_len; in ena_try_rx_buf_page_reuse()
1442 ena_buf->len -= buf_len; in ena_try_rx_buf_page_reuse()
1497 dma_unmap_addr(&rx_info->ena_buf, paddr) + pkt_offset, in ena_rx_skb()
1502 dma_unmap_addr(&rx_info->ena_buf, paddr) + pkt_offset, in ena_rx_skb()
1518 pre_reuse_paddr = dma_unmap_addr(&rx_info->ena_buf, paddr); in ena_rx_skb()
1568 pre_reuse_paddr = dma_unmap_addr(&rx_info->ena_buf, paddr); in ena_rx_skb()
3041 struct ena_com_buf *ena_buf; in ena_tx_map_skb() local
3050 ena_buf = tx_info->bufs; in ena_tx_map_skb()
3089 ena_buf->paddr = dma; in ena_tx_map_skb()
3090 ena_buf->len = skb_head_len - push_len; in ena_tx_map_skb()
3092 ena_buf++; in ena_tx_map_skb()
3116 ena_buf->paddr = dma; in ena_tx_map_skb()
3117 ena_buf->len = frag_len - delta; in ena_tx_map_skb()
3118 ena_buf++; in ena_tx_map_skb()