Home
last modified time | relevance | path

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

/freebsd-13.1/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_cq.c197 cq->resize_buf = NULL; in mlx4_ib_create_cq()
289 if (cq->resize_buf) in mlx4_alloc_resize_buf()
292 cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_KERNEL); in mlx4_alloc_resize_buf()
293 if (!cq->resize_buf) in mlx4_alloc_resize_buf()
298 kfree(cq->resize_buf); in mlx4_alloc_resize_buf()
299 cq->resize_buf = NULL; in mlx4_alloc_resize_buf()
320 cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_KERNEL); in mlx4_alloc_resize_umem()
321 if (!cq->resize_buf) in mlx4_alloc_resize_umem()
436 if (cq->resize_buf) { in mlx4_ib_resize_cq()
460 kfree(cq->resize_buf); in mlx4_ib_resize_cq()
[all …]
H A Dmlx4_ib.h125 struct mlx4_ib_cq_resize *resize_buf; member
/freebsd-13.1/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_cq.c552 cq->buf = *cq->resize_buf; in mlx5_poll_one()
553 kfree(cq->resize_buf); in mlx5_poll_one()
554 cq->resize_buf = NULL; in mlx5_poll_one()
949 cq->resize_buf = NULL; in mlx5_ib_create_cq()
1174 cq->resize_buf = kzalloc(sizeof(*cq->resize_buf), GFP_KERNEL); in resize_kernel()
1175 if (!cq->resize_buf) in resize_kernel()
1187 kfree(cq->resize_buf); in resize_kernel()
1194 cq->resize_buf = NULL; in un_resize_kernel()
1349 if (cq->resize_buf) { in mlx5_ib_resize_cq()
1354 kfree(cq->resize_buf); in mlx5_ib_resize_cq()
[all …]
H A Dmlx5_ib.h475 struct mlx5_ib_cq_buf *resize_buf; member
/freebsd-13.1/sys/dev/mthca/
H A Dmthca_provider.c711 cq->resize_buf = NULL; in mthca_create_cq()
737 if (cq->resize_buf) { in mthca_alloc_resize_buf()
742 cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_ATOMIC); in mthca_alloc_resize_buf()
743 if (!cq->resize_buf) { in mthca_alloc_resize_buf()
761 kfree(cq->resize_buf); in mthca_alloc_resize_buf()
762 cq->resize_buf = NULL; in mthca_alloc_resize_buf()
811 if (cq->resize_buf) { in mthca_resize_cq()
814 kfree(cq->resize_buf); in mthca_resize_cq()
816 cq->resize_buf = NULL; in mthca_resize_cq()
838 kfree(cq->resize_buf); in mthca_resize_cq()
[all …]
H A Dmthca_cq.c341 cq->ibcq.cqe < cq->resize_buf->cqe) { in mthca_cq_resize_copy_cqes()
348 memcpy(get_cqe_from_buf(&cq->resize_buf->buf, in mthca_cq_resize_copy_cqes()
349 i & cq->resize_buf->cqe), in mthca_cq_resize_copy_cqes()
693 if (unlikely(err == -EAGAIN && cq->resize_buf && in mthca_poll_cq()
694 cq->resize_buf->state == CQ_RESIZE_READY)) { in mthca_poll_cq()
706 cq->cons_index & cq->resize_buf->cqe))) { in mthca_poll_cq()
712 cq->buf = cq->resize_buf->buf; in mthca_poll_cq()
713 cq->ibcq.cqe = cq->resize_buf->cqe; in mthca_poll_cq()
715 cq->resize_buf->buf = tbuf; in mthca_poll_cq()
716 cq->resize_buf->cqe = tcqe; in mthca_poll_cq()
[all …]
H A Dmthca_provider.h210 struct mthca_cq_resize *resize_buf; member
/freebsd-13.1/contrib/mandoc/
H A Dread.c63 static void resize_buf(struct buf *, size_t);
70 resize_buf(struct buf *buf, size_t initial) in resize_buf() function
200 resize_buf(&ln, 256); in mparse_buf_r()
259 resize_buf(&ln, 256); in mparse_buf_r()
403 resize_buf(&ln, loop->sz); in mparse_buf_r()
495 resize_buf(fb, 65536); in read_whole_file()
/freebsd-13.1/contrib/ofed/libmlx5/
H A Dverbs.c465 cq->resize_buf = NULL; in create_cq()
552 cq->resize_buf = &cq->buf_b; in mlx5_resize_cq()
554 cq->resize_buf = &cq->buf_a; in mlx5_resize_cq()
558 cq->resize_buf = NULL; in mlx5_resize_cq()
566 err = mlx5_alloc_cq_buf(mctx, cq, cq->resize_buf, cq->resize_cqes, cq->resize_cqe_sz); in mlx5_resize_cq()
568 cq->resize_buf = NULL; in mlx5_resize_cq()
573 cmd.buf_addr = (uintptr_t)cq->resize_buf->buf; in mlx5_resize_cq()
583 cq->active_buf = cq->resize_buf; in mlx5_resize_cq()
586 cq->resize_buf = NULL; in mlx5_resize_cq()
590 mlx5_free_cq_buf(mctx, cq->resize_buf); in mlx5_resize_cq()
[all …]
H A Dmlx5.h322 struct mlx5_buf *resize_buf; member
H A Dcq.c1459 dcqe = get_buf_cqe(cq->resize_buf, (i + 1) & (cq->resize_cqes - 1), dsize); in mlx5_cq_resize_copy_cqes()
/freebsd-13.1/contrib/ofed/libmlx4/
H A Dmlx4.h180 struct mlx4_buf resize_buf; member