Lines Matching refs:max_cnt
1189 uresp.num_wqe_allocated = qp->sq.max_cnt; in ocrdma_copy_qp_uresp()
1195 uresp.num_rqe_allocated = qp->rq.max_cnt; in ocrdma_copy_qp_uresp()
1253 kcalloc(qp->sq.max_cnt, sizeof(*(qp->wqe_wr_id_tbl)), in ocrdma_alloc_wr_id_tbl()
1258 kcalloc(qp->rq.max_cnt, sizeof(u64), GFP_KERNEL); in ocrdma_alloc_wr_id_tbl()
1484 qp_attr->cap.max_send_wr = qp->sq.max_cnt - 1; in ocrdma_query_qp()
1485 qp_attr->cap.max_recv_wr = qp->rq.max_cnt - 1; in ocrdma_query_qp()
1553 return ((q->max_wqe_idx - q->head) + q->tail) % q->max_cnt; in ocrdma_hwq_free_cnt()
1747 uresp.num_rqe_allocated = srq->rq.max_cnt; in ocrdma_copy_srq_uresp()
1790 srq->rqe_wr_id_tbl = kcalloc(srq->rq.max_cnt, sizeof(u64), in ocrdma_create_srq()
1797 srq->bit_fields_len = (srq->rq.max_cnt / 32) + in ocrdma_create_srq()
1798 (srq->rq.max_cnt % 32 ? 1 : 0); in ocrdma_create_srq()
2273 BUG_ON(indx >= srq->rq.max_cnt); in ocrdma_srq_get_idx()