Home
last modified time | relevance | path

Searched refs:rcq (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_qp.c65 static void pvrdma_lock_cqs(struct pvrdma_cq *scq, struct pvrdma_cq *rcq, in pvrdma_lock_cqs() argument
68 __acquires(scq->cq_lock) __acquires(rcq->cq_lock) in pvrdma_lock_cqs()
70 if (scq == rcq) { in pvrdma_lock_cqs()
72 __acquire(rcq->cq_lock); in pvrdma_lock_cqs()
73 } else if (scq->cq_handle < rcq->cq_handle) { in pvrdma_lock_cqs()
75 spin_lock_irqsave_nested(&rcq->cq_lock, *rcq_flags, in pvrdma_lock_cqs()
78 spin_lock_irqsave(&rcq->cq_lock, *rcq_flags); in pvrdma_lock_cqs()
84 static void pvrdma_unlock_cqs(struct pvrdma_cq *scq, struct pvrdma_cq *rcq, in pvrdma_unlock_cqs() argument
87 __releases(scq->cq_lock) __releases(rcq->cq_lock) in pvrdma_unlock_cqs()
89 if (scq == rcq) { in pvrdma_unlock_cqs()
[all …]
/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_qp.c356 struct rxe_cq *rcq = to_rcq(init->recv_cq); in rxe_qp_from_init() local
362 rxe_get(rcq); in rxe_qp_from_init()
368 qp->rcq = rcq; in rxe_qp_from_init()
372 atomic_inc(&rcq->num_wq); in rxe_qp_from_init()
396 atomic_dec(&rcq->num_wq); in rxe_qp_from_init()
400 qp->rcq = NULL; in rxe_qp_from_init()
407 rxe_put(rcq); in rxe_qp_from_init()
853 if (qp->rcq) { in rxe_qp_do_cleanup()
854 atomic_dec(&qp->rcq->num_wq); in rxe_qp_do_cleanup()
855 rxe_put(qp->rcq); in rxe_qp_do_cleanup()
H A Drxe_resp.c1079 if (qp->rcq->is_user) { in do_complete()
1101 if (qp->rcq->is_user) { in do_complete()
1159 if (rxe_cq_post(qp->rcq, &cqe, pkt ? bth_se(pkt) : 1)) in do_complete()
1446 if (qp->rcq->is_user) { in flush_recv_wqe()
1456 err = rxe_cq_post(qp->rcq, &cqe, 0); in flush_recv_wqe()
1458 rxe_dbg_cq(qp->rcq, "post cq failed err = %d", err); in flush_recv_wqe()
H A Drxe_verbs.h213 struct rxe_cq *rcq; member
/openbmc/linux/arch/s390/include/asm/
H A Dfcx.h106 u8 rcq[16]; member
207 u32 rcq:8; member
/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_fp.c70 struct bnxt_qplib_cq *scq, *rcq; in __bnxt_qplib_add_flush_qp() local
73 rcq = qp->rcq; in __bnxt_qplib_add_flush_qp()
84 dev_dbg(&rcq->hwq.pdev->dev, in __bnxt_qplib_add_flush_qp()
86 list_add_tail(&qp->rq_flush, &rcq->rqf_head); in __bnxt_qplib_add_flush_qp()
94 __acquires(&qp->scq->flush_lock) __acquires(&qp->rcq->flush_lock) in bnxt_qplib_acquire_cq_flush_locks()
97 if (qp->scq == qp->rcq) in bnxt_qplib_acquire_cq_flush_locks()
98 __acquire(&qp->rcq->flush_lock); in bnxt_qplib_acquire_cq_flush_locks()
100 spin_lock(&qp->rcq->flush_lock); in bnxt_qplib_acquire_cq_flush_locks()
105 __releases(&qp->scq->flush_lock) __releases(&qp->rcq->flush_lock) in bnxt_qplib_release_cq_flush_locks()
107 if (qp->scq == qp->rcq) in bnxt_qplib_release_cq_flush_locks()
[all …]
H A Dib_verbs.c818 __acquires(&qp->scq->cq_lock) __acquires(&qp->rcq->cq_lock) in bnxt_re_lock_cqs()
823 if (qp->rcq != qp->scq) in bnxt_re_lock_cqs()
824 spin_lock(&qp->rcq->cq_lock); in bnxt_re_lock_cqs()
826 __acquire(&qp->rcq->cq_lock); in bnxt_re_lock_cqs()
833 __releases(&qp->scq->cq_lock) __releases(&qp->rcq->cq_lock) in bnxt_re_unlock_cqs()
835 if (qp->rcq != qp->scq) in bnxt_re_unlock_cqs()
836 spin_unlock(&qp->rcq->cq_lock); in bnxt_re_unlock_cqs()
838 __release(&qp->rcq->cq_lock); in bnxt_re_unlock_cqs()
935 rcq_nq = qplib_qp->rcq->nq; in bnxt_re_destroy_qp()
1164 qp->qplib_qp.rcq = qp1_qp->rcq; in bnxt_re_create_shadow_qp()
[all …]
H A Dib_verbs.h95 struct bnxt_re_cq *rcq; member
H A Dqplib_fp.h312 struct bnxt_qplib_cq *rcq; member
/openbmc/linux/drivers/infiniband/hw/cxgb4/
H A Dev.c141 cqid = qhp->attr.rcq; in c4iw_ev_dispatch()
H A Dqp.c200 struct t4_cq *rcq, struct t4_cq *scq, in create_qp() argument
368 FW_RI_RES_WR_IQID_V(rcq->cqid)); in create_qp()
1813 wqe->u.init.rcqid = cpu_to_be32(qhp->attr.rcq); in rdma_init()
2189 qhp->attr.rcq = ((struct c4iw_cq *) attrs->recv_cq)->cq.cqid; in c4iw_create_qp()
H A Diw_cxgb4.h451 u32 rcq; member
/openbmc/linux/drivers/infiniband/core/
H A Duverbs_cmd.c1286 struct ib_cq *scq = NULL, *rcq = NULL; in create_qp() local
1371 rcq = uobj_get_obj_read( in create_qp()
1374 if (!rcq) { in create_qp()
1386 rcq = rcq ?: scq; in create_qp()
1399 attr.recv_cq = rcq; in create_qp()
1462 if (rcq && rcq != scq) in create_qp()
1463 rdma_lookup_put_uobject(&rcq->uobject->uevent.uobject, in create_qp()
1490 if (rcq && rcq != scq) in create_qp()
1491 rdma_lookup_put_uobject(&rcq->uobject->uevent.uobject, in create_qp()
/openbmc/linux/drivers/infiniband/hw/erdma/
H A Derdma_verbs.h234 struct erdma_cq *rcq; member
H A Derdma_verbs.c68 FIELD_PREP(ERDMA_CMD_CREATE_QP_CQN_MASK, qp->rcq->cqn); in create_qp_cmd()
95 FIELD_PREP(ERDMA_CMD_CREATE_QP_CQN_MASK, qp->rcq->cqn); in create_qp_cmd()
939 qp->rcq = to_ecq(attrs->recv_cq); in erdma_create_qp()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dresource_tracker.c111 struct res_cq *rcq; member
2965 struct res_cq *rcq; in mlx4_RST2INIT_QP_wrapper() local
2999 err = get_res(dev, slave, rcqn, RES_CQ, &rcq); in mlx4_RST2INIT_QP_wrapper()
3008 scq = rcq; in mlx4_RST2INIT_QP_wrapper()
3023 atomic_inc(&rcq->ref_count); in mlx4_RST2INIT_QP_wrapper()
3024 qp->rcq = rcq; in mlx4_RST2INIT_QP_wrapper()
4003 atomic_dec(&qp->rcq->ref_count); in mlx4_2RST_QP_wrapper()
4716 atomic_dec(&qp->rcq->ref_count); in rem_slave_qps()
/openbmc/linux/drivers/infiniband/sw/siw/
H A Dsiw.h432 struct siw_cq *rcq; member
H A Dsiw_verbs.c400 qp->rcq = to_siw_cq(attrs->recv_cq); in siw_create_qp()
626 qp->scq = qp->rcq = NULL; in siw_destroy_qp()
H A Dsiw_qp.c1124 struct siw_cq *cq = qp->rcq; in siw_rqe_complete()
/openbmc/linux/drivers/s390/block/
H A Ddasd_eckd.c5692 u8 *sense, *rcq; in dasd_eckd_dump_sense_tcw() local
5762 rcq = tsb->tsa.ddpc.rcq; in dasd_eckd_dump_sense_tcw()
5765 rcq[8 * sl + sct]); in dasd_eckd_dump_sense_tcw()
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_main.c10499 #define BNX2X_PREV_UNDI_PROD(rcq, bd) ((bd) << 16 | (rcq)) argument
10524 u16 rcq, bd; in bnx2x_prev_unload_undi_inc() local
10533 rcq = BNX2X_PREV_UNDI_RCQ(tmp_reg) + inc; in bnx2x_prev_unload_undi_inc()
10536 tmp_reg = BNX2X_PREV_UNDI_PROD(rcq, bd); in bnx2x_prev_unload_undi_inc()
10540 BP_PORT(bp), BP_FUNC(bp), addr, bd, rcq); in bnx2x_prev_unload_undi_inc()