Lines Matching refs:frag_buf

52 	struct mlx5_frag_buf frag_buf;  member
66 struct mlx5_frag_buf frag_buf; member
73 struct mlx5_frag_buf frag_buf; member
289 struct mlx5_frag_buf *frag_buf = &buf->frag_buf; in cq_frag_buf_alloc() local
294 err = mlx5_frag_buf_alloc_node(ndev->mvdev.mdev, nent * MLX5_VDPA_CQE_SIZE, frag_buf, in cq_frag_buf_alloc()
299 mlx5_init_fbc(frag_buf->frags, log_wq_stride, log_wq_sz, &buf->fbc); in cq_frag_buf_alloc()
309 struct mlx5_frag_buf *frag_buf = &umem->frag_buf; in umem_frag_buf_alloc() local
311 return mlx5_frag_buf_alloc_node(ndev->mvdev.mdev, size, frag_buf, in umem_frag_buf_alloc()
317 mlx5_frag_buf_free(ndev->mvdev.mdev, &buf->frag_buf); in cq_frag_buf_free()
380 MLX5_SET(qpc, qpc, log_page_size, vqp->frag_buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in qp_prepare()
386 mlx5_fill_page_frag_array(&vqp->frag_buf, pas); in qp_prepare()
392 num_ent * sizeof(struct mlx5_wqe_data_seg), &vqp->frag_buf, in rq_buf_alloc()
398 mlx5_frag_buf_free(ndev->mvdev.mdev, &vqp->frag_buf); in rq_buf_free()
420 inlen += vqp->frag_buf.npages * sizeof(__be64); in qp_create()
566 MLX5_FLD_SZ_BYTES(create_cq_in, pas[0]) * vcq->buf.frag_buf.npages; in cq_create()
575 mlx5_fill_page_frag_array(&vcq->buf.frag_buf, pas); in cq_create()
578 MLX5_SET(cqc, cqc, log_page_size, vcq->buf.frag_buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in cq_create()
697 mlx5_frag_buf_free(ndev->mvdev.mdev, &umem->frag_buf); in umem_frag_buf_free()
715 inlen = MLX5_ST_SZ_BYTES(create_umem_in) + MLX5_ST_SZ_BYTES(mtt) * umem->frag_buf.npages; in create_umem()
726 MLX5_SET(umem, um, log_page_size, umem->frag_buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in create_umem()
727 MLX5_SET64(umem, um, num_of_mtt, umem->frag_buf.npages); in create_umem()
730 mlx5_fill_page_frag_array_perm(&umem->frag_buf, pas, MLX5_MTT_PERM_RW); in create_umem()