Home
last modified time | relevance | path

Searched refs:frag_sz (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c89 int frag_sz = min_t(int, size, PAGE_SIZE); in mlx5_frag_buf_alloc_node() local
91 frag->buf = mlx5_dma_zalloc_coherent_node(dev, frag_sz, in mlx5_frag_buf_alloc_node()
96 dma_free_coherent(mlx5_core_dma_dev(dev), frag_sz, in mlx5_frag_buf_alloc_node()
102 size -= frag_sz; in mlx5_frag_buf_alloc_node()
123 int frag_sz = min_t(int, size, PAGE_SIZE); in mlx5_frag_buf_free() local
125 dma_free_coherent(mlx5_core_dma_dev(dev), frag_sz, buf->frags[i].buf, in mlx5_frag_buf_free()
127 size -= frag_sz; in mlx5_frag_buf_free()