Lines Matching refs:ibqp
211 static int nes_bind_mw(struct ib_qp *ibqp, struct ib_mw *ibmw, in nes_bind_mw() argument
215 struct nes_vnic *nesvnic = to_nesvnic(ibqp->device); in nes_bind_mw()
218 struct nes_qp *nesqp = to_nesqp(ibqp); in nes_bind_mw()
1265 nesqp->ibqp.qp_num = nesqp->hwqp.qp_id; in nes_create_qp()
1405 nes_add_ref(&nesqp->ibqp); in nes_create_qp()
1422 return &nesqp->ibqp; in nes_create_qp()
1462 static int nes_destroy_qp(struct ib_qp *ibqp) in nes_destroy_qp() argument
1464 struct nes_qp *nesqp = to_nesqp(ibqp); in nes_destroy_qp()
1478 nes_modify_qp(&nesqp->ibqp, &attr, IB_QP_STATE, NULL); in nes_destroy_qp()
1502 if ((ibqp->uobject)&&(ibqp->uobject->context)) { in nes_destroy_qp()
1503 nes_ucontext = to_nesucontext(ibqp->uobject->context); in nes_destroy_qp()
1522 nes_rem_ref(&nesqp->ibqp); in nes_destroy_qp()
2819 static int nes_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in nes_query_qp() argument
2822 struct nes_qp *nesqp = to_nesqp(ibqp); in nes_query_qp()
2835 init_attr->event_handler = nesqp->ibqp.event_handler; in nes_query_qp()
2836 init_attr->qp_context = nesqp->ibqp.qp_context; in nes_query_qp()
2837 init_attr->send_cq = nesqp->ibqp.send_cq; in nes_query_qp()
2838 init_attr->recv_cq = nesqp->ibqp.recv_cq; in nes_query_qp()
2839 init_attr->srq = nesqp->ibqp.srq; in nes_query_qp()
2926 int nes_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in nes_modify_qp() argument
2929 struct nes_qp *nesqp = to_nesqp(ibqp); in nes_modify_qp()
2930 struct nes_vnic *nesvnic = to_nesvnic(ibqp->device); in nes_modify_qp()
3204 static int nes_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in nes_multicast_attach() argument
3214 static int nes_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in nes_multicast_detach() argument
3259 static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr, in nes_post_send() argument
3264 struct nes_vnic *nesvnic = to_nesvnic(ibqp->device); in nes_post_send()
3266 struct nes_qp *nesqp = to_nesqp(ibqp); in nes_post_send()
3539 static int nes_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr, in nes_post_recv() argument
3544 struct nes_vnic *nesvnic = to_nesvnic(ibqp->device); in nes_post_recv()
3546 struct nes_qp *nesqp = to_nesqp(ibqp); in nes_post_recv()
3695 entry->qp = &nesqp->ibqp; in nes_poll_cq()