Lines Matching refs:init_attr
643 int bnxt_re_create_ah(struct ib_ah *ib_ah, struct rdma_ah_init_attr *init_attr, in bnxt_re_create_ah() argument
648 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in bnxt_re_create_ah()
686 !(init_attr->flags & in bnxt_re_create_ah()
873 struct ib_qp_init_attr *init_attr) in bnxt_re_setup_swqe_size() argument
887 ilsize = ALIGN(init_attr->cap.max_inline_data, align); in bnxt_re_setup_swqe_size()
899 if (init_attr->cap.max_inline_data) { in bnxt_re_setup_swqe_size()
902 init_attr->cap.max_inline_data = qplqp->max_inline_data; in bnxt_re_setup_swqe_size()
1091 struct ib_qp_init_attr *init_attr) in bnxt_re_init_rq_attr() argument
1104 if (init_attr->srq) { in bnxt_re_init_rq_attr()
1107 srq = container_of(init_attr->srq, struct bnxt_re_srq, ib_srq); in bnxt_re_init_rq_attr()
1111 rq->max_sge = init_attr->cap.max_recv_sge; in bnxt_re_init_rq_attr()
1114 init_attr->cap.max_recv_sge = rq->max_sge; in bnxt_re_init_rq_attr()
1120 entries = roundup_pow_of_two(init_attr->cap.max_recv_wr + 1); in bnxt_re_init_rq_attr()
1149 struct ib_qp_init_attr *init_attr, in bnxt_re_init_sq_attr() argument
1165 sq->max_sge = init_attr->cap.max_send_sge; in bnxt_re_init_sq_attr()
1168 init_attr->cap.max_send_sge = sq->max_sge; in bnxt_re_init_sq_attr()
1171 rc = bnxt_re_setup_swqe_size(qp, init_attr); in bnxt_re_init_sq_attr()
1175 entries = init_attr->cap.max_send_wr; in bnxt_re_init_sq_attr()
1195 struct ib_qp_init_attr *init_attr) in bnxt_re_adjust_gsi_sq_attr() argument
1207 entries = roundup_pow_of_two(init_attr->cap.max_send_wr + 1); in bnxt_re_adjust_gsi_sq_attr()
1211 init_attr->cap.max_send_wr; in bnxt_re_adjust_gsi_sq_attr()
1219 struct ib_qp_init_attr *init_attr) in bnxt_re_init_qp_type() argument
1226 qptype = __from_ib_qp_type(init_attr->qp_type); in bnxt_re_init_qp_type()
1234 init_attr->qp_type == IB_QPT_GSI) in bnxt_re_init_qp_type()
1241 struct ib_qp_init_attr *init_attr, in bnxt_re_init_qp_attr() argument
1258 qplqp->max_inline_data = init_attr->cap.max_inline_data; in bnxt_re_init_qp_attr()
1259 qplqp->sig_type = ((init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) ? in bnxt_re_init_qp_attr()
1261 qptype = bnxt_re_init_qp_type(rdev, init_attr); in bnxt_re_init_qp_attr()
1269 if (init_attr->qp_type == IB_QPT_RC) { in bnxt_re_init_qp_attr()
1275 if (init_attr->create_flags) { in bnxt_re_init_qp_attr()
1278 init_attr->create_flags); in bnxt_re_init_qp_attr()
1283 if (init_attr->send_cq) { in bnxt_re_init_qp_attr()
1284 cq = container_of(init_attr->send_cq, struct bnxt_re_cq, ib_cq); in bnxt_re_init_qp_attr()
1289 if (init_attr->recv_cq) { in bnxt_re_init_qp_attr()
1290 cq = container_of(init_attr->recv_cq, struct bnxt_re_cq, ib_cq); in bnxt_re_init_qp_attr()
1296 rc = bnxt_re_init_rq_attr(qp, init_attr); in bnxt_re_init_qp_attr()
1299 if (init_attr->qp_type == IB_QPT_GSI) in bnxt_re_init_qp_attr()
1303 rc = bnxt_re_init_sq_attr(qp, init_attr, udata); in bnxt_re_init_qp_attr()
1306 if (init_attr->qp_type == IB_QPT_GSI) in bnxt_re_init_qp_attr()
1307 bnxt_re_adjust_gsi_sq_attr(qp, init_attr); in bnxt_re_init_qp_attr()
1361 struct ib_qp_init_attr *init_attr) in bnxt_re_create_gsi_qp() argument
1385 struct ib_qp_init_attr *init_attr, in bnxt_re_test_qp_limits() argument
1390 if (init_attr->cap.max_send_wr > dev_attr->max_qp_wqes || in bnxt_re_test_qp_limits()
1391 init_attr->cap.max_recv_wr > dev_attr->max_qp_wqes || in bnxt_re_test_qp_limits()
1392 init_attr->cap.max_send_sge > dev_attr->max_qp_sges || in bnxt_re_test_qp_limits()
1393 init_attr->cap.max_recv_sge > dev_attr->max_qp_sges || in bnxt_re_test_qp_limits()
1394 init_attr->cap.max_inline_data > dev_attr->max_inline_data) { in bnxt_re_test_qp_limits()
1397 init_attr->cap.max_send_wr, dev_attr->max_qp_wqes, in bnxt_re_test_qp_limits()
1398 init_attr->cap.max_recv_wr, dev_attr->max_qp_wqes, in bnxt_re_test_qp_limits()
1399 init_attr->cap.max_send_sge, dev_attr->max_qp_sges, in bnxt_re_test_qp_limits()
1400 init_attr->cap.max_recv_sge, dev_attr->max_qp_sges, in bnxt_re_test_qp_limits()
1401 init_attr->cap.max_inline_data, in bnxt_re_test_qp_limits()