Lines Matching refs:ibqp

467 	struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device);  in rvt_free_qp_cb()
470 rvt_reset_qp(rdi, qp, qp->ibqp.qp_type); in rvt_free_qp_cb()
624 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_clear_mr_refs()
708 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_qp_acks_has_lkey()
734 if (qp->ibqp.qp_type == IB_QPT_SMI || in rvt_qp_mr_clean()
735 qp->ibqp.qp_type == IB_QPT_GSI) in rvt_qp_mr_clean()
756 ev.device = qp->ibqp.device; in rvt_qp_mr_clean()
757 ev.element.qp = &qp->ibqp; in rvt_qp_mr_clean()
759 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_qp_mr_clean()
774 u32 n = hash_32(qp->ibqp.qp_num, rdi->qp_dev->qp_table_bits); in rvt_remove_qp()
1219 qp->ibqp.qp_num = err; in rvt_create_qp()
1221 qp->ibqp.qp_num |= RVT_AIP_QP_BASE; in rvt_create_qp()
1303 ret = &qp->ibqp; in rvt_create_qp()
1312 rvt_free_qpn(&rdi->qp_dev->qpn_table, qp->ibqp.qp_num); in rvt_create_qp()
1348 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_error_qp()
1374 wc.qp = &qp->ibqp; in rvt_error_qp()
1380 rvt_cq_enter(ibcq_to_rvtcq(qp->ibqp.recv_cq), &wc, 1); in rvt_error_qp()
1410 rvt_cq_enter(ibcq_to_rvtcq(qp->ibqp.recv_cq), &wc, 1); in rvt_error_qp()
1417 } else if (qp->ibqp.event_handler) { in rvt_error_qp()
1438 if (qp->ibqp.qp_num <= 1) { in rvt_insert_qp()
1439 rcu_assign_pointer(rvp->qp[qp->ibqp.qp_num], qp); in rvt_insert_qp()
1441 u32 n = hash_32(qp->ibqp.qp_num, rdi->qp_dev->qp_table_bits); in rvt_insert_qp()
1460 int rvt_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in rvt_modify_qp() argument
1463 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_modify_qp()
1464 struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); in rvt_modify_qp()
1479 opa_ah = rdma_cap_opa_ah(ibqp->device, qp->port_num); in rvt_modify_qp()
1481 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in rvt_modify_qp()
1500 if (rvt_check_ah(qp->ibqp.device, &attr->ah_attr)) in rvt_modify_qp()
1515 if (rvt_check_ah(qp->ibqp.device, &attr->alt_ah_attr)) in rvt_modify_qp()
1530 if (qp->ibqp.qp_type == IB_QPT_SMI || in rvt_modify_qp()
1531 qp->ibqp.qp_type == IB_QPT_GSI || in rvt_modify_qp()
1533 attr->port_num > ibqp->device->phys_port_cnt) in rvt_modify_qp()
1587 _rvt_reset_qp(rdi, qp, ibqp->qp_type); in rvt_modify_qp()
1602 if (qp->ibqp.qp_type == IB_QPT_RC) in rvt_modify_qp()
1702 ev.device = qp->ibqp.device; in rvt_modify_qp()
1703 ev.element.qp = &qp->ibqp; in rvt_modify_qp()
1705 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_modify_qp()
1708 ev.device = qp->ibqp.device; in rvt_modify_qp()
1709 ev.element.qp = &qp->ibqp; in rvt_modify_qp()
1711 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_modify_qp()
1731 int rvt_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) in rvt_destroy_qp() argument
1733 struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); in rvt_destroy_qp()
1734 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_destroy_qp()
1736 rvt_reset_qp(rdi, qp, ibqp->qp_type); in rvt_destroy_qp()
1740 rvt_free_qpn(&rdi->qp_dev->qpn_table, qp->ibqp.qp_num); in rvt_destroy_qp()
1744 if (qp->ibqp.qp_type == IB_QPT_RC) { in rvt_destroy_qp()
1772 int rvt_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in rvt_query_qp() argument
1775 struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); in rvt_query_qp()
1776 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_query_qp()
1789 attr->cap.max_recv_wr = qp->ibqp.srq ? 0 : qp->r_rq.size - 1; in rvt_query_qp()
1810 init_attr->event_handler = qp->ibqp.event_handler; in rvt_query_qp()
1811 init_attr->qp_context = qp->ibqp.qp_context; in rvt_query_qp()
1812 init_attr->send_cq = qp->ibqp.send_cq; in rvt_query_qp()
1813 init_attr->recv_cq = qp->ibqp.recv_cq; in rvt_query_qp()
1814 init_attr->srq = qp->ibqp.srq; in rvt_query_qp()
1820 init_attr->qp_type = qp->ibqp.qp_type; in rvt_query_qp()
1835 int rvt_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, in rvt_post_recv() argument
1838 struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); in rvt_post_recv()
1842 !qp->ibqp.srq; in rvt_post_recv()
1873 wc.qp = &qp->ibqp; in rvt_post_recv()
1877 rvt_cq_enter(ibcq_to_rvtcq(qp->ibqp.recv_cq), &wc, 1); in rvt_post_recv()
1925 if (!(post_parms[wr->opcode].qpt_support & BIT(qp->ibqp.qp_type))) in rvt_qp_valid_operation()
1928 ibpd_to_rvtpd(qp->ibqp.pd)->user) in rvt_qp_valid_operation()
1940 if (qp->ibqp.qp_type != IB_QPT_UC && in rvt_qp_valid_operation()
1941 qp->ibqp.qp_type != IB_QPT_RC) { in rvt_qp_valid_operation()
1942 if (qp->ibqp.pd != ud_wr(wr)->ah->pd) in rvt_qp_valid_operation()
2002 qp->ibqp.qp_num, qp->s_size, qp->s_avail, in rvt_qp_is_avail()
2024 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_post_one_wr()
2090 pd = ibpd_to_rvtpd(qp->ibqp.pd); in rvt_post_one_wr()
2196 int rvt_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, in rvt_post_send() argument
2199 struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); in rvt_post_send()
2200 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_post_send()
2327 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in init_sge()
2330 pd = ibpd_to_rvtpd(qp->ibqp.srq ? qp->ibqp.srq->pd : qp->ibqp.pd); in init_sge()
2361 wc.qp = &qp->ibqp; in init_sge()
2363 rvt_cq_enter(ibcq_to_rvtcq(qp->ibqp.recv_cq), &wc, 1); in init_sge()
2410 if (qp->ibqp.srq) { in rvt_get_rwqe()
2411 srq = ibsrq_to_rvtsrq(qp->ibqp.srq); in rvt_get_rwqe()
2484 ev.device = qp->ibqp.device; in rvt_get_rwqe()
2485 ev.element.srq = qp->ibqp.srq; in rvt_get_rwqe()
2506 if (qp->ibqp.event_handler) { in rvt_comm_est()
2509 ev.device = qp->ibqp.device; in rvt_comm_est()
2510 ev.element.qp = &qp->ibqp; in rvt_comm_est()
2512 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_comm_est()
2529 ev.device = qp->ibqp.device; in rvt_rc_error()
2530 ev.element.qp = &qp->ibqp; in rvt_rc_error()
2532 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_rc_error()
2562 struct ib_qp *ibqp = &qp->ibqp; in rvt_add_retry_timer_ext() local
2563 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_add_retry_timer_ext()
2643 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_rc_timeout()
2671 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_rc_rnr_retry()
2839 rdi = ib_to_rvt(qp->ibqp.device); in rvt_send_complete()
2873 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_copy_sge()
2941 return sqp->ibqp.qp_type == IB_QPT_RC ? in loopback_qp_drop()
2958 struct rvt_dev_info *rdi = ib_to_rvt(sqp->ibqp.device); in rvt_ruc_loopback()
2980 qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), rvp, in rvt_ruc_loopback()
3023 qp->ibqp.qp_type != sqp->ibqp.qp_type) { in rvt_ruc_loopback()
3174 wc.qp = &qp->ibqp; in rvt_ruc_loopback()
3199 if (qp->ibqp.qp_type == IB_QPT_UC) in rvt_ruc_loopback()
3227 sqp->ibqp.qp_type == IB_QPT_RC ? in rvt_ruc_loopback()
3247 if (sqp->ibqp.qp_type == IB_QPT_RC) { in rvt_ruc_loopback()
3259 ev.device = sqp->ibqp.device; in rvt_ruc_loopback()
3260 ev.element.qp = &sqp->ibqp; in rvt_ruc_loopback()
3262 sqp->ibqp.event_handler(&ev, sqp->ibqp.qp_context); in rvt_ruc_loopback()