Lines Matching refs:resize_buf
472 if (likely(cq->resize_buf)) { in mlx5_poll_one()
474 cq->buf = *cq->resize_buf; in mlx5_poll_one()
475 kfree(cq->resize_buf); in mlx5_poll_one()
476 cq->resize_buf = NULL; in mlx5_poll_one()
965 cq->resize_buf = NULL; in mlx5_ib_create_cq()
1180 cq->resize_buf = kzalloc(sizeof(*cq->resize_buf), GFP_KERNEL); in resize_kernel()
1181 if (!cq->resize_buf) in resize_kernel()
1184 err = alloc_cq_frag_buf(dev, cq->resize_buf, entries, cqe_size); in resize_kernel()
1188 init_cq_frag_buf(cq->resize_buf); in resize_kernel()
1193 kfree(cq->resize_buf); in resize_kernel()
1211 dsize = cq->resize_buf->cqe_size; in copy_resize_cqes()
1227 dcqe = mlx5_frag_buf_get_wqe(&cq->resize_buf->fbc, in copy_resize_cqes()
1228 (i + 1) & cq->resize_buf->nent); in copy_resize_cqes()
1230 sw_own = sw_ownership_bit(i + 1, cq->resize_buf->nent); in copy_resize_cqes()
1312 frag_buf = &cq->resize_buf->frag_buf; in mlx5_ib_resize_cq()
1331 mlx5_fill_page_frag_array(&cq->resize_buf->frag_buf, pas); in mlx5_ib_resize_cq()
1367 if (cq->resize_buf) { in mlx5_ib_resize_cq()
1371 cq->buf = *cq->resize_buf; in mlx5_ib_resize_cq()
1372 kfree(cq->resize_buf); in mlx5_ib_resize_cq()
1373 cq->resize_buf = NULL; in mlx5_ib_resize_cq()
1393 free_cq_buf(dev, cq->resize_buf); in mlx5_ib_resize_cq()
1394 cq->resize_buf = NULL; in mlx5_ib_resize_cq()