Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/atm/
Dnicstar.c115 #define scq_virt_to_bus(scq, p) \ argument
116 (scq->dma + ((unsigned long)(p) - (unsigned long)(scq)->org))
126 static void free_scq(ns_dev *card, scq_info * scq, struct atm_vcc *vcc);
133 static int push_scqe(ns_dev * card, vc_map * vc, scq_info * scq, ns_scqe * tbd,
136 static void drain_scq(ns_dev * card, scq_info * scq, int pos);
245 free_scq(card, card->scd2vc[j]->scq, card->scd2vc[j]->tx_vcc); in nicstar_remove_one()
859 scq_info *scq; in get_scq() local
865 scq = kmalloc(sizeof(*scq), GFP_KERNEL); in get_scq()
866 if (!scq) in get_scq()
868 scq->org = dma_alloc_coherent(&card->pcidev->dev, in get_scq()
[all …]
Didt77252.c639 struct scq_info *scq; in alloc_scq() local
641 scq = kzalloc(sizeof(struct scq_info), GFP_KERNEL); in alloc_scq()
642 if (!scq) in alloc_scq()
644 scq->base = dma_alloc_coherent(&card->pcidev->dev, SCQ_SIZE, in alloc_scq()
645 &scq->paddr, GFP_KERNEL); in alloc_scq()
646 if (scq->base == NULL) { in alloc_scq()
647 kfree(scq); in alloc_scq()
651 scq->next = scq->base; in alloc_scq()
652 scq->last = scq->base + (SCQ_ENTRIES - 1); in alloc_scq()
653 atomic_set(&scq->used, 0); in alloc_scq()
[all …]
Dnicstar.h702 scq_info *scq; /* To keep track of the SCQ */ member
Didt77252.h217 struct scq_info *scq; /* To keep track of the SCQ */ member
/Linux-v5.10/drivers/infiniband/hw/vmw_pvrdma/
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()
71 spin_lock_irqsave(&scq->cq_lock, *scq_flags); in pvrdma_lock_cqs()
73 } else if (scq->cq_handle < rcq->cq_handle) { in pvrdma_lock_cqs()
74 spin_lock_irqsave(&scq->cq_lock, *scq_flags); in pvrdma_lock_cqs()
79 spin_lock_irqsave_nested(&scq->cq_lock, *scq_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 …]
/Linux-v5.10/drivers/infiniband/sw/rxe/
Drxe_qp.c315 struct rxe_cq *scq = to_rcq(init->send_cq); in rxe_qp_from_init() local
320 rxe_add_ref(scq); in rxe_qp_from_init()
326 qp->scq = scq; in rxe_qp_from_init()
349 rxe_drop_ref(scq); in rxe_qp_from_init()
791 if (qp->scq) in rxe_qp_do_cleanup()
792 rxe_drop_ref(qp->scq); in rxe_qp_do_cleanup()
Drxe_verbs.h218 struct rxe_cq *scq; member
Drxe_comp.c423 rxe_cq_post(qp->scq, &cqe, 0); in do_complete()
/Linux-v5.10/drivers/infiniband/hw/bnxt_re/
Dqplib_fp.c69 struct bnxt_qplib_cq *scq, *rcq; in __bnxt_qplib_add_flush_qp() local
71 scq = qp->scq; in __bnxt_qplib_add_flush_qp()
75 dev_dbg(&scq->hwq.pdev->dev, in __bnxt_qplib_add_flush_qp()
78 list_add_tail(&qp->sq_flush, &scq->sqf_head); in __bnxt_qplib_add_flush_qp()
93 __acquires(&qp->scq->flush_lock) __acquires(&qp->rcq->flush_lock) in bnxt_qplib_acquire_cq_flush_locks()
95 spin_lock_irqsave(&qp->scq->flush_lock, *flags); in bnxt_qplib_acquire_cq_flush_locks()
96 if (qp->scq == qp->rcq) in bnxt_qplib_acquire_cq_flush_locks()
104 __releases(&qp->scq->flush_lock) __releases(&qp->rcq->flush_lock) in bnxt_qplib_release_cq_flush_locks()
106 if (qp->scq == qp->rcq) in bnxt_qplib_release_cq_flush_locks()
110 spin_unlock_irqrestore(&qp->scq->flush_lock, *flags); in bnxt_qplib_release_cq_flush_locks()
[all …]
Dib_verbs.h92 struct bnxt_re_cq *scq; member
Dib_verbs.c722 __acquires(&qp->scq->cq_lock) __acquires(&qp->rcq->cq_lock) in bnxt_re_lock_cqs()
726 spin_lock_irqsave(&qp->scq->cq_lock, flags); in bnxt_re_lock_cqs()
727 if (qp->rcq != qp->scq) in bnxt_re_lock_cqs()
737 __releases(&qp->scq->cq_lock) __releases(&qp->rcq->cq_lock) in bnxt_re_unlock_cqs()
739 if (qp->rcq != qp->scq) in bnxt_re_unlock_cqs()
743 spin_unlock_irqrestore(&qp->scq->cq_lock, flags); in bnxt_re_unlock_cqs()
1052 qp->qplib_qp.scq = qp1_qp->scq; in bnxt_re_create_shadow_qp()
1287 qplqp->scq = &cq->qplib_cq; in bnxt_re_init_qp_attr()
1288 qp->scq = cq; in bnxt_re_init_qp_attr()
1348 sqp->scq = qp->scq; in bnxt_re_create_shadow_gsi()
Dqplib_fp.h309 struct bnxt_qplib_cq *scq; member
/Linux-v5.10/drivers/infiniband/sw/siw/
Dsiw_verbs.c303 struct siw_cq *scq = NULL, *rcq = NULL; in siw_create_qp() local
343 scq = to_siw_cq(attrs->send_cq); in siw_create_qp()
346 if (!scq || (!rcq && !attrs->srq)) { in siw_create_qp()
392 qp->scq = scq; in siw_create_qp()
618 qp->scq = qp->rcq = NULL; in siw_destroy_qp()
Dsiw.h430 struct siw_cq *scq; member
Dsiw_qp.c1050 struct siw_cq *cq = qp->scq; in siw_sqe_complete()
/Linux-v5.10/drivers/infiniband/hw/cxgb4/
Dev.c139 cqid = qhp->attr.scq; in c4iw_ev_dispatch()
Dqp.c200 struct t4_cq *rcq, struct t4_cq *scq, in create_qp() argument
337 FW_RI_RES_WR_IQID_V(scq->cqid)); in create_qp()
1811 wqe->u.init.scqid = cpu_to_be32(qhp->attr.scq); in rdma_init()
2197 qhp->attr.scq = ((struct c4iw_cq *) attrs->send_cq)->cq.cqid; in c4iw_create_qp()
Diw_cxgb4.h456 u32 scq; member
/Linux-v5.10/drivers/infiniband/core/
Duverbs_cmd.c1249 struct ib_cq *scq = NULL, *rcq = NULL; in create_qp() local
1346 scq = uobj_get_obj_read(cq, UVERBS_OBJECT_CQ, in create_qp()
1349 rcq = rcq ?: scq; in create_qp()
1352 if (!pd || (!scq && has_sq)) { in create_qp()
1361 attr.send_cq = scq; in create_qp()
1445 if (scq) in create_qp()
1446 rdma_lookup_put_uobject(&scq->uobject->uevent.uobject, in create_qp()
1448 if (rcq && rcq != scq) in create_qp()
1476 if (scq) in create_qp()
1477 rdma_lookup_put_uobject(&scq->uobject->uevent.uobject, in create_qp()
[all …]
Dverbs.c1923 struct ib_cq *scq, *rcq; in ib_destroy_qp_user() local
1938 scq = qp->send_cq; in ib_destroy_qp_user()
1959 if (scq) in ib_destroy_qp_user()
1960 atomic_dec(&scq->usecnt); in ib_destroy_qp_user()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c112 struct res_cq *scq; member
2965 struct res_cq *scq; in mlx4_RST2INIT_QP_wrapper() local
3003 err = get_res(dev, slave, scqn, RES_CQ, &scq); in mlx4_RST2INIT_QP_wrapper()
3007 scq = rcq; in mlx4_RST2INIT_QP_wrapper()
3024 atomic_inc(&scq->ref_count); in mlx4_RST2INIT_QP_wrapper()
3025 qp->scq = scq; in mlx4_RST2INIT_QP_wrapper()
4003 atomic_dec(&qp->scq->ref_count); in mlx4_2RST_QP_wrapper()
4716 atomic_dec(&qp->scq->ref_count); in rem_slave_qps()