Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c135 int frag_sz = min_t(int, size, PAGE_SIZE); in mlx5_frag_buf_alloc_node() local
137 frag->buf = mlx5_dma_zalloc_coherent_node(dev, frag_sz, in mlx5_frag_buf_alloc_node()
142 dma_free_coherent(&dev->pdev->dev, frag_sz, in mlx5_frag_buf_alloc_node()
148 size -= frag_sz; in mlx5_frag_buf_alloc_node()
169 int frag_sz = min_t(int, size, PAGE_SIZE); in mlx5_frag_buf_free() local
171 dma_free_coherent(&dev->pdev->dev, frag_sz, buf->frags[i].buf, in mlx5_frag_buf_free()
173 size -= frag_sz; in mlx5_frag_buf_free()
Den_main.c104 u32 frag_sz; in mlx5e_rx_get_linear_frag_sz() local
108 frag_sz = MLX5_SKB_FRAG_SZ(linear_rq_headroom + hw_mtu); in mlx5e_rx_get_linear_frag_sz()
110 if (params->xdp_prog && frag_sz < PAGE_SIZE) in mlx5e_rx_get_linear_frag_sz()
111 frag_sz = PAGE_SIZE; in mlx5e_rx_get_linear_frag_sz()
113 return frag_sz; in mlx5e_rx_get_linear_frag_sz()
126 u32 frag_sz = mlx5e_rx_get_linear_frag_sz(params); in mlx5e_rx_is_linear_skb() local
128 return !params->lro_en && frag_sz <= PAGE_SIZE; in mlx5e_rx_is_linear_skb()
134 u32 frag_sz = mlx5e_rx_get_linear_frag_sz(params); in mlx5e_rx_mpwqe_is_linear_skb() local
144 log_num_strides = MLX5_MPWRQ_LOG_WQE_SZ - order_base_2(frag_sz); in mlx5e_rx_mpwqe_is_linear_skb()