Home
last modified time | relevance | path

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

/linux/drivers/infiniband/hw/mthca/
H A Dmthca_provider.c639 cq->resize_buf = NULL; in mthca_create_cq()
662 if (cq->resize_buf) { in mthca_alloc_resize_buf()
667 cq->resize_buf = kmalloc_obj(*cq->resize_buf, GFP_ATOMIC); in mthca_alloc_resize_buf()
668 if (!cq->resize_buf) { in mthca_alloc_resize_buf()
673 cq->resize_buf->state = CQ_RESIZE_ALLOC; in mthca_alloc_resize_buf()
683 ret = mthca_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); in mthca_alloc_resize_buf()
686 kfree(cq->resize_buf); in mthca_alloc_resize_buf()
687 cq->resize_buf = NULL; in mthca_alloc_resize_buf()
692 cq->resize_buf->cqe = entries - 1; in mthca_alloc_resize_buf()
695 cq->resize_buf->state = CQ_RESIZE_READY; in mthca_alloc_resize_buf()
[all …]
H A Dmthca_cq.c336 cq->ibcq.cqe < cq->resize_buf->cqe) { in mthca_cq_resize_copy_cqes()
343 memcpy(get_cqe_from_buf(&cq->resize_buf->buf, in mthca_cq_resize_copy_cqes()
344 i & cq->resize_buf->cqe), in mthca_cq_resize_copy_cqes()
688 if (unlikely(err == -EAGAIN && cq->resize_buf && in mthca_poll_cq()
689 cq->resize_buf->state == CQ_RESIZE_READY)) { in mthca_poll_cq()
700 if (cqe_sw(get_cqe_from_buf(&cq->resize_buf->buf, in mthca_poll_cq()
701 cq->cons_index & cq->resize_buf->cqe))) { in mthca_poll_cq()
707 cq->buf = cq->resize_buf->buf; in mthca_poll_cq()
708 cq->ibcq.cqe = cq->resize_buf->cqe; in mthca_poll_cq()
710 cq->resize_buf->buf = tbuf; in mthca_poll_cq()
[all …]
H A Dmthca_provider.h190 struct mthca_cq_resize *resize_buf; member