Searched refs:resize_buf (Results 1 – 12 of 12) sorted by relevance
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_cq.c | 197 cq->resize_buf = NULL; in mlx4_ib_create_cq() 284 if (cq->resize_buf) in mlx4_alloc_resize_buf() 287 cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_KERNEL); in mlx4_alloc_resize_buf() 288 if (!cq->resize_buf) in mlx4_alloc_resize_buf() 291 err = mlx4_ib_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); in mlx4_alloc_resize_buf() 293 kfree(cq->resize_buf); in mlx4_alloc_resize_buf() 294 cq->resize_buf = NULL; in mlx4_alloc_resize_buf() 298 cq->resize_buf->cqe = entries - 1; in mlx4_alloc_resize_buf() 315 cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_KERNEL); in mlx4_alloc_resize_umem() 316 if (!cq->resize_buf) in mlx4_alloc_resize_umem() [all …]
|
H A D | mlx4_ib.h | 120 struct mlx4_ib_cq_resize *resize_buf; member
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_provider.c | 658 cq->resize_buf = NULL; in mthca_create_cq() 681 if (cq->resize_buf) { in mthca_alloc_resize_buf() 686 cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_ATOMIC); in mthca_alloc_resize_buf() 687 if (!cq->resize_buf) { in mthca_alloc_resize_buf() 692 cq->resize_buf->state = CQ_RESIZE_ALLOC; in mthca_alloc_resize_buf() 702 ret = mthca_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); in mthca_alloc_resize_buf() 705 kfree(cq->resize_buf); in mthca_alloc_resize_buf() 706 cq->resize_buf = NULL; in mthca_alloc_resize_buf() 711 cq->resize_buf->cqe = entries - 1; in mthca_alloc_resize_buf() 714 cq->resize_buf->state = CQ_RESIZE_READY; in mthca_alloc_resize_buf() [all …]
|
H A D | mthca_cq.c | 341 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() 705 if (cqe_sw(get_cqe_from_buf(&cq->resize_buf->buf, 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() [all …]
|
H A D | mthca_provider.h | 210 struct mthca_cq_resize *resize_buf; member
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_cq.c | 549 if (likely(cq->resize_buf)) { in mlx5_poll_one() 551 cq->buf = *cq->resize_buf; in mlx5_poll_one() 552 kfree(cq->resize_buf); in mlx5_poll_one() 553 cq->resize_buf = NULL; in mlx5_poll_one() 948 cq->resize_buf = NULL; in mlx5_ib_create_cq() 1160 cq->resize_buf = kzalloc(sizeof(*cq->resize_buf), GFP_KERNEL); in resize_kernel() 1161 if (!cq->resize_buf) in resize_kernel() 1164 err = alloc_cq_buf(dev, cq->resize_buf, entries, cqe_size); in resize_kernel() 1168 init_cq_buf(cq, cq->resize_buf); in resize_kernel() [all...] |
H A D | mlx5_ib.h | 479 struct mlx5_ib_cq_buf *resize_buf; member
|
/freebsd/contrib/mandoc/ |
H A D | read.c | 70 static void resize_buf(struct buf *, size_t); 77 resize_buf(struct buf *buf, size_t initial) in resize_buf() function 209 resize_buf(&ln, 256); in mparse_buf_r() 268 resize_buf(&ln, 256); in mparse_buf_r() 413 resize_buf(&ln, loop->sz); in mparse_buf_r() 505 resize_buf(fb, 65536); in read_whole_file()
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | verbs.c | 465 cq->resize_buf = NULL; in create_cq() 561 cq->resize_buf = &cq->buf_b; in mlx5_resize_cq() 563 cq->resize_buf = &cq->buf_a; in mlx5_resize_cq() 567 cq->resize_buf = NULL; in mlx5_resize_cq() 575 err = mlx5_alloc_cq_buf(mctx, cq, cq->resize_buf, cq->resize_cqes, cq->resize_cqe_sz); in mlx5_resize_cq() 577 cq->resize_buf = NULL; in mlx5_resize_cq() 582 cmd.buf_addr = (uintptr_t)cq->resize_buf->buf; in mlx5_resize_cq() 592 cq->active_buf = cq->resize_buf; in mlx5_resize_cq() 595 cq->resize_buf = NULL; in mlx5_resize_cq() 599 mlx5_free_cq_buf(mctx, cq->resize_buf); in mlx5_resize_cq() [all...] |
H A D | mlx5.h | 322 struct mlx5_buf *resize_buf; member
|
H A D | cq.c | 1459 dcqe = get_buf_cqe(cq->resize_buf, (i + 1) & (cq->resize_cqes - 1), dsize); in mlx5_cq_resize_copy_cqes()
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | mlx4.h | 180 struct mlx4_buf resize_buf; member
|