Lines Matching refs:qp

154 static inline int ehca_write_swqe(struct ehca_qp *qp,  in ehca_write_swqe()  argument
164 struct ehca_qmap_entry *qmap_entry = &qp->sq_map.map[sq_map_idx]; in ehca_write_swqe()
167 (send_wr->num_sge > qp->ipz_squeue.act_nr_of_sg))) { in ehca_write_swqe()
170 send_wr->num_sge, qp->ipz_squeue.act_nr_of_sg); in ehca_write_swqe()
205 qp->init_attr.sq_sig_type == IB_SIGNAL_ALL_WR) in ehca_write_swqe()
220 switch (qp->qp_type) { in ehca_write_swqe()
227 remote_qkey = qp->qkey; in ehca_write_swqe()
232 ehca_gen_err("wr.ud.ah is NULL. qp=%p", qp); in ehca_write_swqe()
236 ehca_gen_err("dest QP# is 0. qp=%x", qp->real_qp_num); in ehca_write_swqe()
254 if (qp->qp_type == IB_QPT_SMI || in ehca_write_swqe()
255 qp->qp_type == IB_QPT_GSI) in ehca_write_swqe()
257 if (qp->qp_type == IB_QPT_GSI) { in ehca_write_swqe()
294 qp->message_count = qp->packet_count = 0; in ehca_write_swqe()
295 qp->unsol_ack_circ = 1; in ehca_write_swqe()
298 qp->packet_count += (dma_length >> qp->mtu_shift) + 1; in ehca_write_swqe()
303 ehca_gen_err("Invalid qptype=%x", qp->qp_type); in ehca_write_swqe()
308 ehca_gen_dbg("SEND WQE written into queue qp=%p ", qp); in ehca_write_swqe()
440 int ehca_post_send(struct ib_qp *qp, in ehca_post_send() argument
444 struct ehca_qp *my_qp = container_of(qp, struct ehca_qp, ib_qp); in ehca_post_send()
451 ehca_err(qp->device, "Invalid QP state qp_state=%d qpn=%x", in ehca_post_send()
452 my_qp->state, qp->qp_num); in ehca_post_send()
475 ehca_dbg(qp->device, "posted circ wr qp_num=%x", qp->qp_num); in ehca_post_send()
493 ehca_dbg(qp->device, "ehca_qp=%p qp_num=%x wqe_cnt=%d ret=%i", in ehca_post_send()
494 my_qp, qp->qp_num, wqe_cnt, ret); in ehca_post_send()
583 int ehca_post_recv(struct ib_qp *qp, in ehca_post_recv() argument
587 struct ehca_qp *my_qp = container_of(qp, struct ehca_qp, ib_qp); in ehca_post_recv()
591 ehca_err(qp->device, "Invalid QP state qp_state=%d qpn=%x", in ehca_post_recv()
592 my_qp->state, qp->qp_num); in ehca_post_recv()
597 return internal_post_recv(my_qp, qp->device, recv_wr, bad_recv_wr); in ehca_post_recv()
651 struct ehca_qp *qp; in ehca_poll_cq_one() local
655 qp = ehca_cq_get_qp(my_cq, cqe->local_qp_number); in ehca_poll_cq_one()
656 if (!qp) { in ehca_poll_cq_one()
665 spin_lock_irqsave(&qp->spinlock_s, flags); in ehca_poll_cq_one()
666 purgeflag = qp->sqerr_purgeflag; in ehca_poll_cq_one()
667 spin_unlock_irqrestore(&qp->spinlock_s, flags); in ehca_poll_cq_one()
681 qp->sqerr_purgeflag = 0; in ehca_poll_cq_one()
705 wc->qp = &my_qp->ib_qp; in ehca_poll_cq_one()
857 wc->qp = &my_qp->ib_qp; in generate_flush_cqes()