Lines Matching refs:resize_buf
634 cq->resize_buf = NULL; in mthca_create_cq()
657 if (cq->resize_buf) { in mthca_alloc_resize_buf()
662 cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_ATOMIC); in mthca_alloc_resize_buf()
663 if (!cq->resize_buf) { in mthca_alloc_resize_buf()
668 cq->resize_buf->state = CQ_RESIZE_ALLOC; in mthca_alloc_resize_buf()
678 ret = mthca_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); in mthca_alloc_resize_buf()
681 kfree(cq->resize_buf); in mthca_alloc_resize_buf()
682 cq->resize_buf = NULL; in mthca_alloc_resize_buf()
687 cq->resize_buf->cqe = entries - 1; in mthca_alloc_resize_buf()
690 cq->resize_buf->state = CQ_RESIZE_READY; in mthca_alloc_resize_buf()
719 lkey = cq->resize_buf->buf.mr.ibmr.lkey; in mthca_resize_cq()
731 if (cq->resize_buf) { in mthca_resize_cq()
732 mthca_free_cq_buf(dev, &cq->resize_buf->buf, in mthca_resize_cq()
733 cq->resize_buf->cqe); in mthca_resize_cq()
734 kfree(cq->resize_buf); in mthca_resize_cq()
736 cq->resize_buf = NULL; in mthca_resize_cq()
747 if (cq->resize_buf->state == CQ_RESIZE_READY) { in mthca_resize_cq()
751 cq->buf = cq->resize_buf->buf; in mthca_resize_cq()
752 cq->ibcq.cqe = cq->resize_buf->cqe; in mthca_resize_cq()
754 tbuf = cq->resize_buf->buf; in mthca_resize_cq()
755 tcqe = cq->resize_buf->cqe; in mthca_resize_cq()
758 kfree(cq->resize_buf); in mthca_resize_cq()
759 cq->resize_buf = NULL; in mthca_resize_cq()