/freebsd-13-stable/contrib/ofed/libcxgb4/ |
H A D | verbs.c | 308 struct c4iw_qp *qhp; local 314 qhp = calloc(1, sizeof *qhp); 315 if (!qhp) 318 ret = ibv_cmd_create_qp(pd, &qhp->ibv_qp, attr, &cmd, 330 qhp->wq.qid_mask = resp.qid_mask; 331 qhp->rhp = dev; 332 qhp->wq.sq.qid = resp.sqid; 333 qhp->wq.sq.size = resp.sq_size; 334 qhp 411 struct c4iw_qp *qhp; local 567 reset_qp(struct c4iw_qp *qhp) argument 584 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); local 601 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); local 636 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); local 660 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); local 674 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); local 697 struct c4iw_qp *qhp = to_c4iw_qp(event->element.qp); local [all...] |
H A D | qp.c | 275 static int build_rdma_recv(struct c4iw_qp *qhp, union t4_recv_wr *wqe, argument 288 static void ring_kernel_db(struct c4iw_qp *qhp, u32 qid, u16 idx) argument 298 if (qid == qhp->wq.sq.qid) { 305 ret = ibv_cmd_modify_qp(&qhp->ibv_qp, &attr, mask, &cmd, sizeof cmd); 316 struct c4iw_qp *qhp; local 322 qhp = to_c4iw_qp(ibqp); 323 pthread_spin_lock(&qhp->lock); 324 if (t4_wq_in_error(&qhp->wq)) { 325 pthread_spin_unlock(&qhp->lock); 329 num_wrs = t4_sq_avail(&qhp 421 struct c4iw_qp *qhp; local 485 update_qp_state(struct c4iw_qp *qhp) argument 502 c4iw_flush_qp(struct c4iw_qp *qhp) argument 545 struct c4iw_qp *qhp = dev->qpid2ptr[i]; local [all...] |
H A D | dev.c | 272 static void dump_qp(struct c4iw_qp *qhp) argument 285 qhp, 286 qhp->wq.sq.qid, 287 qhp->wq.error, 288 qhp->wq.flushed, 289 qhp->wq.qid_mask, 290 qhp->wq.sq.qid, 291 qhp->wq.sq.queue, 292 qhp->wq.sq.sw_sq, 293 qhp 391 struct c4iw_qp *qhp = dev->qpid2ptr[i]; local [all...] |
H A D | cq.c | 95 void c4iw_flush_sq(struct c4iw_qp *qhp) argument 98 struct t4_wq *wq = &qhp->wq; 99 struct c4iw_cq *chp = to_c4iw_cq(qhp->ibv_qp.send_cq); 201 struct c4iw_qp *qhp; local 214 qhp = get_qhp(chp->rhp, CQE_QPID(hw_cqe)); 219 if (qhp == NULL) 247 if (!qhp->wq.sq.oldest_read->signaled) { 248 advance_oldest_read(&qhp->wq); 256 create_read_req_cqe(&qhp->wq, hw_cqe, &read_cqe); 258 advance_oldest_read(&qhp 562 struct c4iw_qp *qhp = NULL; local [all...] |
H A D | libcxgb4.h | 215 void c4iw_flush_qp(struct c4iw_qp *qhp); 231 void c4iw_flush_sq(struct c4iw_qp *qhp);
|
/freebsd-13-stable/sys/dev/cxgbe/iw_cxgbe/ |
H A D | qp.c | 97 static void set_state(struct c4iw_qp *qhp, enum c4iw_qp_state state) argument 100 spin_lock_irqsave(&qhp->lock, flag); 101 qhp->attr.state = state; 102 spin_unlock_irqrestore(&qhp->lock, flag); 547 static int build_rdma_recv(struct c4iw_qp *qhp, union t4_recv_wr *wqe, argument 552 ret = build_isgl((__be64 *)qhp->wq.rq.queue, 553 (__be64 *)&qhp->wq.rq.queue[qhp->wq.rq.size], 574 struct c4iw_qp *qhp; local 577 qhp 593 struct c4iw_qp *qhp; local 612 complete_sq_drain_wr(struct c4iw_qp *qhp, struct ib_send_wr *wr) argument 642 complete_rq_drain_wr(struct c4iw_qp *qhp, struct ib_recv_wr *wr) argument 782 struct c4iw_qp *qhp; local 919 struct c4iw_qp *qhp; local 1115 post_terminate(struct c4iw_qp *qhp, struct t4_cqe *err_cqe, gfp_t gfp) argument 1158 __flush_qp(struct c4iw_qp *qhp, struct c4iw_cq *rchp, struct c4iw_cq *schp) argument 1218 flush_qp(struct c4iw_qp *qhp) argument 1245 rdma_fini(struct c4iw_dev *rhp, struct c4iw_qp *qhp, struct c4iw_ep *ep) argument 1340 rdma_init(struct c4iw_dev *rhp, struct c4iw_qp *qhp) argument 1431 c4iw_modify_qp(struct c4iw_dev *rhp, struct c4iw_qp *qhp, enum c4iw_qp_attr_mask mask, struct c4iw_qp_attributes *attrs, int internal) argument 1684 struct c4iw_qp *qhp; local 1713 struct c4iw_qp *qhp; local 1917 struct c4iw_qp *qhp; local 1961 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); local [all...] |
H A D | ev.c | 45 struct c4iw_qp *qhp, 53 if ((qhp->attr.state == C4IW_QP_STATE_ERROR) || 54 (qhp->attr.state == C4IW_QP_STATE_TERMINATE)) { 57 qhp->attr.state, qhp->wq.sq.qid, CQE_STATUS(err_cqe)); 67 if (qhp->attr.state == C4IW_QP_STATE_RTS) { 69 c4iw_modify_qp(qhp->rhp, qhp, C4IW_QP_ATTR_NEXT_STATE, 78 event.element.qp = &qhp->ibqp; 79 if (qhp 44 post_qp_event(struct c4iw_dev *dev, struct c4iw_cq *chp, struct c4iw_qp *qhp, struct t4_cqe *err_cqe, enum ib_event_type ib_event) argument 90 struct c4iw_qp *qhp; local [all...] |
H A D | cq.c | 257 int c4iw_flush_sq(struct c4iw_qp *qhp) argument 260 struct t4_wq *wq = &qhp->wq; 261 struct c4iw_cq *chp = to_c4iw_cq(qhp->ibqp.send_cq); 364 struct c4iw_qp *qhp; local 378 qhp = get_qhp(chp->rhp, CQE_QPID(hw_cqe)); 383 if (qhp == NULL) 406 if (!qhp->wq.sq.oldest_read->signaled) { 407 advance_oldest_read(&qhp->wq); 415 create_read_req_cqe(&qhp->wq, hw_cqe, &read_cqe); 417 advance_oldest_read(&qhp 717 struct c4iw_qp *qhp = NULL; local [all...] |
H A D | iw_cxgbe.h | 582 struct c4iw_qp *qhp, 973 int c4iw_flush_sq(struct c4iw_qp *qhp); 975 u16 c4iw_rqes_posted(struct c4iw_qp *qhp); 976 int c4iw_post_terminate(struct c4iw_qp *qhp, struct t4_cqe *err_cqe);
|