Home
last modified time | relevance | path

Searched refs:ibcq (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/infiniband/hw/mthca/
H A Dmthca_cq.c181 return cqe_sw(get_cqe(cq, cq->cons_index & cq->ibcq.cqe)); in next_cqe_sw()
230 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context); in mthca_cq_completion()
254 event.element.cq = &cq->ibcq; in mthca_cq_event()
255 if (cq->ibcq.event_handler) in mthca_cq_event()
256 cq->ibcq.event_handler(&event, cq->ibcq.cq_context); in mthca_cq_event()
290 cqe_sw(get_cqe(cq, prod_index & cq->ibcq.cqe)); in mthca_cq_clean()
292 if (prod_index == cq->cons_index + cq->ibcq.cqe) in mthca_cq_clean()
304 cqe = get_cqe(cq, prod_index & cq->ibcq.cqe); in mthca_cq_clean()
310 memcpy(get_cqe(cq, (prod_index + nfreed) & cq->ibcq.cqe), in mthca_cq_clean()
316 set_cqe_hw(get_cqe(cq, (cq->cons_index + i) & cq->ibcq.cqe)); in mthca_cq_clean()
[all …]
H A Dmthca_provider.h184 struct ib_cq ibcq; member
301 static inline struct mthca_cq *to_mcq(struct ib_cq *ibcq) in to_mcq() argument
303 return container_of(ibcq, struct mthca_cq, ibcq); in to_mcq()
H A Dmthca_dev.h483 int mthca_poll_cq(struct ib_cq *ibcq, int num_entries,
/linux/include/rdma/
H A Drdmavt_cq.h47 struct ib_cq ibcq; member
60 static inline struct rvt_cq *ibcq_to_rvtcq(struct ib_cq *ibcq) in ibcq_to_rvtcq() argument
62 return container_of(ibcq, struct rvt_cq, ibcq); in ibcq_to_rvtcq()
/linux/drivers/infiniband/hw/cxgb4/
H A Dev.c105 event.device = chp->ibcq.device; in post_qp_event()
107 event.element.cq = &chp->ibcq; in post_qp_event()
115 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context); in post_qp_event()
234 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context); in c4iw_ev_handler()
H A Drestrack.c372 int c4iw_fill_res_cq_entry(struct sk_buff *msg, struct ib_cq *ibcq) in c4iw_fill_res_cq_entry() argument
374 struct c4iw_cq *chp = to_c4iw_cq(ibcq); in c4iw_fill_res_cq_entry()
382 if (ibcq->uobject) in c4iw_fill_res_cq_entry()
/linux/drivers/infiniband/hw/qedr/
H A Dqedr_roce_cm.c82 cq->ibcq.comp_handler ? "Yes" : "No"); in qedr_ll2_complete_tx_packet()
92 if (cq->ibcq.comp_handler) in qedr_ll2_complete_tx_packet()
93 (*cq->ibcq.comp_handler) (&cq->ibcq, cq->ibcq.cq_context); in qedr_ll2_complete_tx_packet()
121 if (cq->ibcq.comp_handler) in qedr_ll2_complete_rx_packet()
122 (*cq->ibcq.comp_handler) (&cq->ibcq, cq->ibcq.cq_context); in qedr_ll2_complete_rx_packet()
668 int qedr_gsi_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) in qedr_gsi_poll_cq() argument
670 struct qedr_dev *dev = get_qedr_dev(ibcq->device); in qedr_gsi_poll_cq()
671 struct qedr_cq *cq = get_qedr_cq(ibcq); in qedr_gsi_poll_cq()
H A Dmain.c233 INIT_RDMA_OBJ_SIZE(ib_cq, qedr_cq, ibcq),
472 if (!cq->destroyed && cq->ibcq.comp_handler) in qedr_irq_handler()
473 (*cq->ibcq.comp_handler) in qedr_irq_handler()
474 (&cq->ibcq, cq->ibcq.cq_context); in qedr_irq_handler()
653 struct ib_cq *ibcq; in qedr_affiliated_event() local
724 ibcq = &cq->ibcq; in qedr_affiliated_event()
725 if (ibcq->event_handler) { in qedr_affiliated_event()
726 event.device = ibcq->device; in qedr_affiliated_event()
727 event.element.cq = ibcq; in qedr_affiliated_event()
728 ibcq->event_handler(&event, ibcq->cq_context); in qedr_affiliated_event()
H A Dqedr_roce_cm.h48 int qedr_gsi_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc);
/linux/drivers/infiniband/hw/ionic/
H A Dionic_admin.c492 static void ionic_rdma_admincq_comp(struct ib_cq *ibcq, void *cq_context) in ionic_rdma_admincq_comp() argument
527 vcq->ibcq.device = &dev->ibdev; in ionic_create_rdma_admincq()
528 vcq->ibcq.comp_handler = ionic_rdma_admincq_comp; in ionic_create_rdma_admincq()
529 vcq->ibcq.event_handler = ionic_rdma_admincq_event; in ionic_create_rdma_admincq()
530 atomic_set(&vcq->ibcq.usecnt, 0); in ionic_create_rdma_admincq()
809 if (cq->vcq->ibcq.comp_handler) in ionic_cq_event()
810 cq->vcq->ibcq.comp_handler(&cq->vcq->ibcq, in ionic_cq_event()
811 cq->vcq->ibcq.cq_context); in ionic_cq_event()
815 if (cq->vcq->ibcq.event_handler) { in ionic_cq_event()
818 ibev.element.cq = &cq->vcq->ibcq; in ionic_cq_event()
[all …]
/linux/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_main.c227 INIT_RDMA_OBJ_SIZE(ib_cq, pvrdma_cq, ibcq),
359 if (cq && cq->ibcq.event_handler) { in pvrdma_cq_event()
360 struct ib_cq *ibcq = &cq->ibcq; in pvrdma_cq_event() local
363 e.device = ibcq->device; in pvrdma_cq_event()
364 e.element.cq = ibcq; in pvrdma_cq_event()
366 ibcq->event_handler(&e, ibcq->cq_context); in pvrdma_cq_event()
518 if (cq && cq->ibcq.comp_handler) in pvrdma_intrx_handler()
519 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context); in pvrdma_intrx_handler()
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_ib.h65 struct ib_cq ibcq; member
H A Dusnic_ib_main.c379 INIT_RDMA_OBJ_SIZE(ib_cq, usnic_ib_cq, ibcq),
/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_hw.c721 ib_evt.element.cq = &cq->ibcq; in ocrdma_dispatch_ibevent()
727 ib_evt.element.cq = &cq->ibcq; in ocrdma_dispatch_ibevent()
787 if (cq->ibcq.event_handler) in ocrdma_dispatch_ibevent()
788 cq->ibcq.event_handler(&ib_evt, cq->ibcq.cq_context); in ocrdma_dispatch_ibevent()
958 if (bcq && bcq->ibcq.comp_handler) { in ocrdma_qp_buddy_cq_handler()
960 (*bcq->ibcq.comp_handler) (&bcq->ibcq, bcq->ibcq.cq_context); in ocrdma_qp_buddy_cq_handler()
977 if (cq->ibcq.comp_handler) { in ocrdma_qp_cq_handler()
979 (*cq->ibcq.comp_handler) (&cq->ibcq, cq->ibcq.cq_context); in ocrdma_qp_cq_handler()
/linux/drivers/infiniband/hw/erdma/
H A Derdma_qp.c264 erdma_remove_cqes_of_qp(&qp->scq->ibcq, QP_ID(qp)); in erdma_reset_qp()
266 erdma_remove_cqes_of_qp(&qp->rcq->ibcq, QP_ID(qp)); in erdma_reset_qp()