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()
354 struct mlx4_en_page_cache page_cache; member
224 struct mlx5e_page_cache *cache = &rq->page_cache; in mlx5e_rx_cache_put()238 cache->page_cache[cache->tail] = *dma_info; in mlx5e_rx_cache_put()246 struct mlx5e_page_cache *cache = &rq->page_cache; in mlx5e_rx_cache_get()254 if (page_ref_count(cache->page_cache[cache->head].page) != 1) { in mlx5e_rx_cache_get()259 *dma_info = cache->page_cache[cache->head]; in mlx5e_rx_cache_get()
535 struct mlx5e_dma_info page_cache[MLX5E_CACHE_SIZE]; member603 struct mlx5e_page_cache page_cache; member
584 rq->page_cache.head = 0; in mlx5e_alloc_rq()585 rq->page_cache.tail = 0; in mlx5e_alloc_rq()638 for (i = rq->page_cache.head; i != rq->page_cache.tail; in mlx5e_free_rq()640 struct mlx5e_dma_info *dma_info = &rq->page_cache.page_cache[i]; in mlx5e_free_rq()