Lines Matching full:cap

803 		if (attr->cap.max_send_wr  > ctx->max_qp_wr ||  in mlx4_create_qp_ex()
804 attr->cap.max_recv_wr > ctx->max_qp_wr || in mlx4_create_qp_ex()
805 attr->cap.max_send_sge > ctx->max_sge || in mlx4_create_qp_ex()
806 attr->cap.max_recv_sge > ctx->max_sge) in mlx4_create_qp_ex()
809 if (attr->cap.max_send_wr > 65536 || in mlx4_create_qp_ex()
810 attr->cap.max_recv_wr > 65536 || in mlx4_create_qp_ex()
811 attr->cap.max_send_sge > 64 || in mlx4_create_qp_ex()
812 attr->cap.max_recv_sge > 64) in mlx4_create_qp_ex()
815 if (attr->cap.max_inline_data > 1024) in mlx4_create_qp_ex()
826 attr->cap.max_send_wr = qp->sq.wqe_cnt = 0; in mlx4_create_qp_ex()
828 mlx4_calc_sq_wqe_size(&attr->cap, attr->qp_type, qp); in mlx4_create_qp_ex()
834 qp->sq.wqe_cnt = align_queue_size(attr->cap.max_send_wr + qp->sq_spare_wqes); in mlx4_create_qp_ex()
839 attr->cap.max_recv_wr = qp->rq.wqe_cnt = attr->cap.max_recv_sge = 0; in mlx4_create_qp_ex()
841 qp->rq.wqe_cnt = align_queue_size(attr->cap.max_recv_wr); in mlx4_create_qp_ex()
842 if (attr->cap.max_recv_sge < 1) in mlx4_create_qp_ex()
843 attr->cap.max_recv_sge = 1; in mlx4_create_qp_ex()
844 if (attr->cap.max_recv_wr < 1) in mlx4_create_qp_ex()
845 attr->cap.max_recv_wr = 1; in mlx4_create_qp_ex()
848 if (mlx4_alloc_qp_buf(context, &attr->cap, attr->qp_type, qp)) in mlx4_create_qp_ex()
858 if (attr->cap.max_recv_sge) { in mlx4_create_qp_ex()
896 qp->rq.wqe_cnt = qp->rq.max_post = attr->cap.max_recv_wr; in mlx4_create_qp_ex()
897 qp->rq.max_gs = attr->cap.max_recv_sge; in mlx4_create_qp_ex()
899 mlx4_set_sq_sizes(qp, &attr->cap, attr->qp_type); in mlx4_create_qp_ex()
914 if (attr->cap.max_recv_sge) in mlx4_create_qp_ex()
981 init_attr->cap.max_send_wr = qp->sq.max_post; in mlx4_query_qp()
982 init_attr->cap.max_send_sge = qp->sq.max_gs; in mlx4_query_qp()
983 init_attr->cap.max_inline_data = qp->max_inline_data; in mlx4_query_qp()
985 attr->cap = init_attr->cap; in mlx4_query_qp()
1227 /* XXX check rate cap? */ in mlx4_create_ah()