Searched refs:page_cache (Results 1 – 5 of 5) sorted by relevance
141 if (likely(ring->page_cache.index > 0)) { in mlx4_en_prepare_rx_desc()144 ring->page_cache.index--; in mlx4_en_prepare_rx_desc()145 frags->page = ring->page_cache.buf[ring->page_cache.index].page; in mlx4_en_prepare_rx_desc()146 frags->dma = ring->page_cache.buf[ring->page_cache.index].dma; in mlx4_en_prepare_rx_desc()418 struct mlx4_en_page_cache *cache = &ring->page_cache; in mlx4_en_rx_recycle()455 for (i = 0; i < ring->page_cache.index; i++) { in mlx4_en_deactivate_rx_ring()456 dma_unmap_page(priv->ddev, ring->page_cache.buf[i].dma, in mlx4_en_deactivate_rx_ring()458 put_page(ring->page_cache.buf[i].page); in mlx4_en_deactivate_rx_ring()460 ring->page_cache.index = 0; in mlx4_en_deactivate_rx_ring()
349 struct mlx4_en_page_cache page_cache; member
195 struct mlx5e_page_cache *cache = &rq->page_cache; in mlx5e_rx_cache_put()209 cache->page_cache[cache->tail] = *dma_info; in mlx5e_rx_cache_put()217 struct mlx5e_page_cache *cache = &rq->page_cache; in mlx5e_rx_cache_get()225 if (page_ref_count(cache->page_cache[cache->head].page) != 1) { in mlx5e_rx_cache_get()230 *dma_info = cache->page_cache[cache->head]; in mlx5e_rx_cache_get()
596 struct mlx5e_dma_info page_cache[MLX5E_CACHE_SIZE]; member662 struct mlx5e_page_cache page_cache; member
615 rq->page_cache.head = 0; in mlx5e_alloc_rq()616 rq->page_cache.tail = 0; in mlx5e_alloc_rq()658 for (i = rq->page_cache.head; i != rq->page_cache.tail; in mlx5e_free_rq()660 struct mlx5e_dma_info *dma_info = &rq->page_cache.page_cache[i]; in mlx5e_free_rq()