Lines Matching refs:qp
155 static inline int ehca_write_swqe(struct ehca_qp *qp, in ehca_write_swqe() argument
165 struct ehca_qmap_entry *qmap_entry = &qp->sq_map.map[sq_map_idx]; in ehca_write_swqe()
168 (send_wr->num_sge > qp->ipz_squeue.act_nr_of_sg))) { in ehca_write_swqe()
171 send_wr->num_sge, qp->ipz_squeue.act_nr_of_sg); in ehca_write_swqe()
206 qp->init_attr.sq_sig_type == IB_SIGNAL_ALL_WR) in ehca_write_swqe()
221 switch (qp->qp_type) { in ehca_write_swqe()
228 remote_qkey = qp->qkey; in ehca_write_swqe()
233 ehca_gen_err("wr.ud.ah is NULL. qp=%p", qp); in ehca_write_swqe()
237 ehca_gen_err("dest QP# is 0. qp=%x", qp->real_qp_num); in ehca_write_swqe()
255 if (qp->qp_type == IB_QPT_SMI || in ehca_write_swqe()
256 qp->qp_type == IB_QPT_GSI) in ehca_write_swqe()
258 if (qp->qp_type == IB_QPT_GSI) { in ehca_write_swqe()
295 qp->message_count = qp->packet_count = 0; in ehca_write_swqe()
296 qp->unsol_ack_circ = 1; in ehca_write_swqe()
299 qp->packet_count += (dma_length >> qp->mtu_shift) + 1; in ehca_write_swqe()
304 ehca_gen_err("Invalid qptype=%x", qp->qp_type); in ehca_write_swqe()
309 ehca_gen_dbg("SEND WQE written into queue qp=%p ", qp); in ehca_write_swqe()
446 int ehca_post_send(struct ib_qp *qp, in ehca_post_send() argument
450 struct ehca_qp *my_qp = container_of(qp, struct ehca_qp, ib_qp); in ehca_post_send()
458 ehca_err(qp->device, "Invalid QP state qp_state=%d qpn=%x", in ehca_post_send()
459 my_qp->state, qp->qp_num); in ehca_post_send()
481 ehca_dbg(qp->device, "posted circ wr qp_num=%x", qp->qp_num); in ehca_post_send()
502 ehca_dbg(qp->device, "ehca_qp=%p qp_num=%x wqe_cnt=%d ret=%i", in ehca_post_send()
503 my_qp, qp->qp_num, wqe_cnt, ret); in ehca_post_send()
590 int ehca_post_recv(struct ib_qp *qp, in ehca_post_recv() argument
594 struct ehca_qp *my_qp = container_of(qp, struct ehca_qp, ib_qp); in ehca_post_recv()
598 ehca_err(qp->device, "Invalid QP state qp_state=%d qpn=%x", in ehca_post_recv()
599 my_qp->state, qp->qp_num); in ehca_post_recv()
603 return internal_post_recv(my_qp, qp->device, recv_wr, bad_recv_wr); in ehca_post_recv()
657 struct ehca_qp *qp; in ehca_poll_cq_one() local
661 qp = ehca_cq_get_qp(my_cq, cqe->local_qp_number); in ehca_poll_cq_one()
662 if (!qp) { in ehca_poll_cq_one()
671 spin_lock_irqsave(&qp->spinlock_s, flags); in ehca_poll_cq_one()
672 purgeflag = qp->sqerr_purgeflag; in ehca_poll_cq_one()
673 spin_unlock_irqrestore(&qp->spinlock_s, flags); in ehca_poll_cq_one()
687 qp->sqerr_purgeflag = 0; in ehca_poll_cq_one()
711 wc->qp = &my_qp->ib_qp; in ehca_poll_cq_one()
859 wc->qp = &my_qp->ib_qp; in generate_flush_cqes()