Searched refs:frag_sz (Results 1 – 2 of 2) sorted by relevance
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | params.c | 40 u32 frag_sz = mlx5e_rx_get_min_frag_sz(params, xsk); in mlx5e_rx_get_linear_frag_sz() local 44 frag_sz = MLX5_SKB_FRAG_SZ(frag_sz); in mlx5e_rx_get_linear_frag_sz() 56 frag_sz = max_t(u32, frag_sz, PAGE_SIZE); in mlx5e_rx_get_linear_frag_sz() 62 frag_sz = max_t(u32, frag_sz, xsk->chunk_size); in mlx5e_rx_get_linear_frag_sz() 64 return frag_sz; in mlx5e_rx_get_linear_frag_sz()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | alloc.c | 136 int frag_sz = min_t(int, size, PAGE_SIZE); in mlx5_frag_buf_alloc_node() local 138 frag->buf = mlx5_dma_zalloc_coherent_node(dev, frag_sz, in mlx5_frag_buf_alloc_node() 143 dma_free_coherent(dev->device, frag_sz, in mlx5_frag_buf_alloc_node() 149 size -= frag_sz; in mlx5_frag_buf_alloc_node() 170 int frag_sz = min_t(int, size, PAGE_SIZE); in mlx5_frag_buf_free() local 172 dma_free_coherent(dev->device, frag_sz, buf->frags[i].buf, in mlx5_frag_buf_free() 174 size -= frag_sz; in mlx5_frag_buf_free()
|