Lines Matching refs:ibqp
1237 static int internal_modify_qp(struct ib_qp *ibqp, in internal_modify_qp() argument
1245 struct ehca_qp *my_qp = container_of(ibqp, struct ehca_qp, ib_qp); in internal_modify_qp()
1247 container_of(ibqp->pd->device, struct ehca_shca, ib_device); in internal_modify_qp()
1258 ehca_err(ibqp->device, "Could not get zeroed page for mqpcb " in internal_modify_qp()
1259 "ehca_qp=%p qp_num=%x ", my_qp, ibqp->qp_num); in internal_modify_qp()
1268 ehca_err(ibqp->device, "hipz_h_query_qp() failed " in internal_modify_qp()
1270 my_qp, ibqp->qp_num, h_ret); in internal_modify_qp()
1274 if (ibqp->uobject) in internal_modify_qp()
1281 ehca_err(ibqp->device, "Invalid current ehca_qp_state=%x " in internal_modify_qp()
1283 mqpcb->qp_state, my_qp, ibqp->qp_num); in internal_modify_qp()
1291 ibqp->qp_type == IB_QPT_SMI && in internal_modify_qp()
1304 ibqp, &smiqp_attr, smiqp_attr_mask, 1); in internal_modify_qp()
1306 ehca_err(ibqp->device, "SMI RESET -> INIT failed. " in internal_modify_qp()
1312 ehca_dbg(ibqp->device, "SMI RESET -> INIT succeeded"); in internal_modify_qp()
1318 ehca_err(ibqp->device, in internal_modify_qp()
1321 attr->cur_qp_state, qp_cur_state, my_qp, ibqp->qp_num); in internal_modify_qp()
1325 ehca_dbg(ibqp->device, "ehca_qp=%p qp_num=%x current qp_state=%x " in internal_modify_qp()
1327 my_qp, ibqp->qp_num, qp_cur_state, attr->qp_state, attr_mask); in internal_modify_qp()
1331 !ib_modify_qp_is_ok(qp_cur_state, qp_new_state, ibqp->qp_type, in internal_modify_qp()
1334 ehca_err(ibqp->device, in internal_modify_qp()
1337 qp_cur_state, my_qp, ibqp->qp_num, attr_mask); in internal_modify_qp()
1346 ehca_err(ibqp->device, "Invalid new qp state=%x " in internal_modify_qp()
1348 qp_new_state, my_qp, ibqp->qp_num); in internal_modify_qp()
1356 ehca_err(ibqp->device, "<INVALID STATE CHANGE> qp_cur_state=%x " in internal_modify_qp()
1359 statetrans, my_qp, ibqp->qp_num); in internal_modify_qp()
1363 qp_attr_idx = ib2ehcaqptype(ibqp->qp_type); in internal_modify_qp()
1367 ehca_err(ibqp->device, in internal_modify_qp()
1369 ibqp->qp_type, my_qp, ibqp->qp_num); in internal_modify_qp()
1373 ehca_dbg(ibqp->device, in internal_modify_qp()
1375 my_qp, ibqp->qp_num, statetrans); in internal_modify_qp()
1394 if (!ibqp->uobject) { in internal_modify_qp()
1403 ehca_dbg(ibqp->device, "qp_num=%x next_free_wqe=%p", in internal_modify_qp()
1404 ibqp->qp_num, wqe); in internal_modify_qp()
1408 ehca_err(ibqp->device, "prepare_sqe_rts() failed " in internal_modify_qp()
1410 my_qp, ibqp->qp_num, ret); in internal_modify_qp()
1421 (ibqp->qp_type == IB_QPT_RC || ibqp->qp_type == IB_QPT_UC)) { in internal_modify_qp()
1427 (ibqp->qp_type == IB_QPT_UC) && in internal_modify_qp()
1437 ehca_err(ibqp->device, "Invalid pkey_index=%x. " in internal_modify_qp()
1439 attr->pkey_index, my_qp, ibqp->qp_num); in internal_modify_qp()
1450 ehca_err(ibqp->device, "Invalid port=%x. " in internal_modify_qp()
1452 attr->port_num, my_qp, ibqp->qp_num, in internal_modify_qp()
1460 ehca_err(ibqp->device, "AQP1 was not created for " in internal_modify_qp()
1466 if (ibqp->qp_type != IB_QPT_GSI && in internal_modify_qp()
1467 ibqp->qp_type != IB_QPT_SMI && in internal_modify_qp()
1474 ehca_warn(ibqp->device, "Couldn't modify qp port=%x: " in internal_modify_qp()
1573 ehca_err(ibqp->device, "Invalid alt_port=%x. " in internal_modify_qp()
1575 attr->alt_port_num, my_qp, ibqp->qp_num, in internal_modify_qp()
1583 ehca_err(ibqp->device, "Invalid alt_pkey_index=%x. " in internal_modify_qp()
1585 attr->pkey_index, my_qp, ibqp->qp_num); in internal_modify_qp()
1668 ehca_err(ibqp->device, "Invalid mig_state=%x", in internal_modify_qp()
1690 ehca_dmp(mqpcb, 4*70, "qp_num=%x", ibqp->qp_num); in internal_modify_qp()
1700 ehca_err(ibqp->device, "hipz_h_modify_qp() failed h_ret=%lli " in internal_modify_qp()
1701 "ehca_qp=%p qp_num=%x", h_ret, my_qp, ibqp->qp_num); in internal_modify_qp()
1731 ehca_err(ibqp->device, "ENABLE in context of " in internal_modify_qp()
1734 h_ret, my_qp, ibqp->qp_num); in internal_modify_qp()
1778 int ehca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, in ehca_modify_qp() argument
1783 struct ehca_shca *shca = container_of(ibqp->device, struct ehca_shca, in ehca_modify_qp()
1785 struct ehca_qp *my_qp = container_of(ibqp, struct ehca_qp, ib_qp); in ehca_modify_qp()
1802 if (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_SMI) { in ehca_modify_qp()
1815 ibqp->qp_type); in ehca_modify_qp()
1827 ibqp->qp_type); in ehca_modify_qp()
1834 ret = internal_modify_qp(ibqp, attr, attr_mask, 0); in ehca_modify_qp()