Lines Matching refs:rq
438 hr_qp->rq.rsv_sge = 1;
449 /* If srq exist, set zero for relative number of rq */
451 hr_qp->rq.wqe_cnt = 0;
452 hr_qp->rq.max_gs = 0;
470 ibdev_err(&hr_dev->ib_dev, "rq depth %u too large\n",
475 hr_qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge) +
476 hr_qp->rq.rsv_sge);
478 hr_qp->rq.wqe_shift = ilog2(hr_dev->caps.max_rq_desc_sz *
479 hr_qp->rq.max_gs);
481 hr_qp->rq.wqe_cnt = cnt;
484 cap->max_recv_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge;
677 hr_qp->rq.offset = hr_qp->buff_size;
678 buf_size = to_hr_hem_entries_size(hr_qp->rq.wqe_cnt,
679 hr_qp->rq.wqe_shift);
896 hr_qp->rq.db_reg = hr_dev->reg_base + hr_dev->odb_offset +
984 if (hr_qp->rq.wqe_cnt) {
985 rq_wrid = kcalloc(hr_qp->rq.wqe_cnt, sizeof(u64), GFP_KERNEL);
994 hr_qp->rq.wrid = rq_wrid;
1004 kfree(hr_qp->rq.wrid);
1132 spin_lock_init(&hr_qp->rq.lock);
1410 hr_qp->rq.head = *(int *)(hr_qp->rdb.virt_addr);
1510 return get_wqe(hr_qp, hr_qp->rq.offset + (n << hr_qp->rq.wqe_shift));