Home
last modified time | relevance | path

Searched refs:send_cq (Results 1 – 25 of 63) sorted by relevance

123

/Linux-v6.1/drivers/infiniband/core/
Duverbs_std_types_qp.c95 struct ib_cq *send_cq = NULL; in UVERBS_HANDLER() local
168 send_cq = uverbs_attr_get_obj(attrs, in UVERBS_HANDLER()
170 if (IS_ERR(send_cq)) in UVERBS_HANDLER()
171 return PTR_ERR(send_cq); in UVERBS_HANDLER()
175 send_cq = uverbs_attr_get_obj(attrs, in UVERBS_HANDLER()
177 if (IS_ERR(send_cq)) in UVERBS_HANDLER()
178 return PTR_ERR(send_cq); in UVERBS_HANDLER()
234 attr.send_cq = send_cq; in UVERBS_HANDLER()
Dverbs.c1175 qp->send_cq = qp->recv_cq = NULL; in create_xrc_qp_user()
1227 qp->send_cq = attr->send_cq; in create_qp()
1241 qp->send_cq = attr->send_cq; in create_qp()
1301 if (qp->send_cq) in ib_qp_usecnt_inc()
1302 atomic_inc(&qp->send_cq->usecnt); in ib_qp_usecnt_inc()
1320 if (qp->send_cq) in ib_qp_usecnt_dec()
1321 atomic_dec(&qp->send_cq->usecnt); in ib_qp_usecnt_dec()
2747 struct ib_cq *cq = qp->send_cq; in __ib_drain_sq()
2840 trace_cq_drain_complete(qp->send_cq); in ib_drain_sq()
/Linux-v6.1/drivers/infiniband/hw/hns/
Dhns_roce_qp.c245 struct ib_cq *send_cq, struct ib_cq *recv_cq) in add_qp_to_list() argument
250 hr_send_cq = send_cq ? to_hr_cq(send_cq) : NULL; in add_qp_to_list()
281 add_qp_to_list(hr_dev, hr_qp, init_attr->send_cq, in hns_roce_qp_store()
1348 void hns_roce_lock_cqs(struct hns_roce_cq *send_cq, struct hns_roce_cq *recv_cq) in hns_roce_lock_cqs() argument
1349 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in hns_roce_lock_cqs()
1351 if (unlikely(send_cq == NULL && recv_cq == NULL)) { in hns_roce_lock_cqs()
1352 __acquire(&send_cq->lock); in hns_roce_lock_cqs()
1354 } else if (unlikely(send_cq != NULL && recv_cq == NULL)) { in hns_roce_lock_cqs()
1355 spin_lock_irq(&send_cq->lock); in hns_roce_lock_cqs()
1357 } else if (unlikely(send_cq == NULL && recv_cq != NULL)) { in hns_roce_lock_cqs()
[all …]
Dhns_roce_hw_v2.c723 if (hns_roce_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in hns_roce_v2_post_send()
2694 qp_init_attr.send_cq = free_mr->rsv_cq; in free_mr_alloc_res()
4344 hr_reg_write(context, QPC_TX_CQN, get_cqn(ibqp->send_cq)); in modify_qp_reset_to_init()
4373 hr_reg_write(context, QPC_TX_CQN, get_cqn(ibqp->send_cq)); in modify_qp_init_to_init()
5167 if (ibqp->send_cq) in clear_qp()
5168 hns_roce_v2_cq_clean(to_hr_cq(ibqp->send_cq), in clear_qp()
5171 if (ibqp->recv_cq && ibqp->recv_cq != ibqp->send_cq) in clear_qp()
5408 qp_init_attr->send_cq = ibqp->send_cq; in hns_roce_v2_query_qp()
5432 struct hns_roce_cq *send_cq, *recv_cq; in hns_roce_v2_destroy_qp_common() local
5446 send_cq = hr_qp->ibqp.send_cq ? to_hr_cq(hr_qp->ibqp.send_cq) : NULL; in hns_roce_v2_destroy_qp_common()
[all …]
/Linux-v6.1/drivers/infiniband/ulp/ipoib/
Dipoib_verbs.c187 priv->send_cq = ib_create_cq(priv->ca, ipoib_ib_tx_completion, NULL, in ipoib_transport_dev_init()
189 if (IS_ERR(priv->send_cq)) { in ipoib_transport_dev_init()
197 init_attr.send_cq = priv->send_cq; in ipoib_transport_dev_init()
218 if (ib_req_notify_cq(priv->send_cq, IB_CQ_NEXT_COMP)) in ipoib_transport_dev_init()
244 ib_destroy_cq(priv->send_cq); in ipoib_transport_dev_init()
266 ib_destroy_cq(priv->send_cq); in ipoib_transport_dev_cleanup()
Dipoib_ib.c439 n = ib_poll_cq(priv->send_cq, MAX_SEND_CQE, priv->send_wc); in poll_tx()
507 n = ib_poll_cq(priv->send_cq, MAX_SEND_CQE, priv->send_wc); in ipoib_tx_poll()
519 if (unlikely(ib_req_notify_cq(priv->send_cq, IB_CQ_NEXT_COMP | in ipoib_tx_poll()
649 if (ib_req_notify_cq(priv->send_cq, IB_CQ_NEXT_COMP | in ipoib_send()
/Linux-v6.1/drivers/infiniband/hw/mthca/
Dmthca_qp.c735 qp_context->cqn_snd = cpu_to_be32(to_mcq(ibqp->send_cq)->cqn); in __mthca_modify_qp()
837 if (qp->ibqp.send_cq != qp->ibqp.recv_cq) in __mthca_modify_qp()
838 mthca_cq_clean(dev, to_mcq(qp->ibqp.send_cq), qp->qpn, NULL); in __mthca_modify_qp()
1164 struct mthca_cq *send_cq, in mthca_alloc_qp_common() argument
1293 struct mthca_cq *send_cq, in mthca_alloc_qp() argument
1321 err = mthca_alloc_qp_common(dev, pd, send_cq, recv_cq, in mthca_alloc_qp()
1336 static void mthca_lock_cqs(struct mthca_cq *send_cq, struct mthca_cq *recv_cq) in mthca_lock_cqs() argument
1337 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in mthca_lock_cqs()
1339 if (send_cq == recv_cq) { in mthca_lock_cqs()
1340 spin_lock_irq(&send_cq->lock); in mthca_lock_cqs()
[all …]
Dmthca_dev.h535 struct mthca_cq *send_cq,
544 struct mthca_cq *send_cq,
/Linux-v6.1/drivers/infiniband/hw/mlx5/
Dqp.c76 struct mlx5_ib_cq **send_cq, struct mlx5_ib_cq **recv_cq);
746 static void mlx5_ib_lock_cqs(struct mlx5_ib_cq *send_cq,
748 static void mlx5_ib_unlock_cqs(struct mlx5_ib_cq *send_cq,
1215 static int get_sq_ts_format(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *send_cq) in get_sq_ts_format() argument
1219 return get_ts_format(dev, send_cq, fr_supported(ts_cap), in get_sq_ts_format()
1223 static int get_qp_ts_format(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *send_cq, in get_qp_ts_format() argument
1232 send_cq ? get_ts_format(dev, send_cq, fr_sup, rt_sup) : in get_qp_ts_format()
1509 to_mcq(init_attr->send_cq)); in create_raw_packet_qp()
1850 scqe_sz = mlx5_ib_get_cqe_size(init_attr->send_cq); in configure_requester_scat_cqe()
1996 struct mlx5_ib_cq *send_cq; in create_dci() local
[all …]
Dgsi.c50 struct ib_cq *gsi_cq = mqp->ibqp.send_cq; in generate_completions()
141 hw_init_attr.send_cq = gsi->cq; in mlx5_ib_create_gsi()
205 .send_cq = gsi->cq, in create_gsi_ud_qp()
Dmem.c246 qp_init_attr.send_cq = cq; in mlx5_ib_test_wc()
/Linux-v6.1/include/rdma/
Drdmavt_qp.h805 struct rvt_cq *cq = ibcq_to_rvtcq(qp->ibqp.send_cq); in rvt_send_cq()
920 static inline u32 ib_cq_tail(struct ib_cq *send_cq) in ib_cq_tail() argument
922 struct rvt_cq *cq = ibcq_to_rvtcq(send_cq); in ib_cq_tail()
924 return ibcq_to_rvtcq(send_cq)->ip ? in ib_cq_tail()
926 ibcq_to_rvtcq(send_cq)->kqueue->tail; in ib_cq_tail()
936 static inline u32 ib_cq_head(struct ib_cq *send_cq) in ib_cq_head() argument
938 struct rvt_cq *cq = ibcq_to_rvtcq(send_cq); in ib_cq_head()
940 return ibcq_to_rvtcq(send_cq)->ip ? in ib_cq_head()
942 ibcq_to_rvtcq(send_cq)->kqueue->head; in ib_cq_head()
/Linux-v6.1/drivers/infiniband/hw/mlx4/
Dqp.c52 static void mlx4_ib_lock_cqs(struct mlx4_ib_cq *send_cq,
54 static void mlx4_ib_unlock_cqs(struct mlx4_ib_cq *send_cq,
723 if (init_attr->send_cq || init_attr->cap.max_send_wr) { in _mlx4_ib_create_qp_rss()
921 mlx4_ib_lock_cqs(to_mcq(init_attr->send_cq), in create_rq()
930 mcq = to_mcq(init_attr->send_cq); in create_rq()
934 mlx4_ib_unlock_cqs(to_mcq(init_attr->send_cq), in create_rq()
1195 mlx4_ib_lock_cqs(to_mcq(init_attr->send_cq), in create_qp_common()
1204 mcq = to_mcq(init_attr->send_cq); in create_qp_common()
1208 mlx4_ib_unlock_cqs(to_mcq(init_attr->send_cq), in create_qp_common()
1263 static void mlx4_ib_lock_cqs(struct mlx4_ib_cq *send_cq, struct mlx4_ib_cq *recv_cq) in mlx4_ib_lock_cqs() argument
[all …]
/Linux-v6.1/Documentation/translations/zh_CN/infiniband/
Dtag_matching.rst39 1. Eager协议--当发送方处理完发送时,完整的信息就会被发送。在send_cq中会收到
/Linux-v6.1/net/sunrpc/xprtrdma/
Dverbs.c341 if (ep->re_attr.send_cq) in rpcrdma_ep_destroy()
342 ib_free_cq(ep->re_attr.send_cq); in rpcrdma_ep_destroy()
343 ep->re_attr.send_cq = NULL; in rpcrdma_ep_destroy()
410 ep->re_attr.send_cq = ib_alloc_cq_any(device, r_xprt, in rpcrdma_ep_create()
413 if (IS_ERR(ep->re_attr.send_cq)) { in rpcrdma_ep_create()
414 rc = PTR_ERR(ep->re_attr.send_cq); in rpcrdma_ep_create()
415 ep->re_attr.send_cq = NULL; in rpcrdma_ep_create()
613 sc->sc_cid.ci_queue_id = ep->re_attr.send_cq->res.id; in rpcrdma_sendctx_create()
/Linux-v6.1/fs/ksmbd/
Dtransport_rdma.c104 struct ib_cq *send_cq; member
446 if (t->send_cq) in free_transport()
447 ib_free_cq(t->send_cq); in free_transport()
1875 t->send_cq = ib_alloc_cq(t->cm_id->device, t, in smb_direct_create_qpair()
1878 if (IS_ERR(t->send_cq)) { in smb_direct_create_qpair()
1880 ret = PTR_ERR(t->send_cq); in smb_direct_create_qpair()
1881 t->send_cq = NULL; in smb_direct_create_qpair()
1900 qp_attr.send_cq = t->send_cq; in smb_direct_create_qpair()
1935 if (t->send_cq) { in smb_direct_create_qpair()
1936 ib_destroy_cq(t->send_cq); in smb_direct_create_qpair()
[all …]
/Linux-v6.1/drivers/net/ethernet/ibm/ehea/
Dehea_main.c198 arr[i++].fwh = pr->send_cq->fw_handle; in ehea_update_firmware_handles()
803 struct ehea_cq *send_cq = pr->send_cq; in ehea_proc_cqes() local
812 cqe = ehea_poll_cq(send_cq); in ehea_proc_cqes()
814 ehea_inc_cq(send_cq); in ehea_proc_cqes()
854 cqe = ehea_poll_cq(send_cq); in ehea_proc_cqes()
857 ehea_update_feca(send_cq, cqe_counter); in ehea_proc_cqes()
892 ehea_reset_cq_ep(pr->send_cq); in ehea_poll()
894 ehea_reset_cq_n1(pr->send_cq); in ehea_poll()
897 cqe_skb = ehea_poll_cq(pr->send_cq); in ehea_poll()
1476 pr->send_cq = ehea_create_cq(adapter, pr_cfg->max_entries_scq, in ehea_init_port_res()
[all …]
Dehea.h351 struct ehea_cq *send_cq; member
/Linux-v6.1/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c58 static inline void get_cqs(struct pvrdma_qp *qp, struct pvrdma_cq **send_cq, in get_cqs() argument
61 *send_cq = to_vcq(qp->ibqp.send_cq); in get_cqs()
359 cmd->send_cq_handle = to_vcq(init_attr->send_cq)->cq_handle; in pvrdma_create_qp()
1042 init_attr->send_cq = qp->ibqp.send_cq; in pvrdma_query_qp()
/Linux-v6.1/drivers/infiniband/sw/rxe/
Drxe_qp.c75 if (!init->recv_cq || !init->send_cq) { in rxe_qp_chk_init()
314 struct rxe_cq *scq = to_rcq(init->send_cq); in rxe_qp_from_init()
372 init->send_cq = qp->ibqp.send_cq; in rxe_qp_to_init()
/Linux-v6.1/fs/cifs/
Dsmbdirect.c1391 ib_free_cq(info->send_cq); in smbd_destroy()
1576 info->send_cq = NULL; in _smbd_get_connection()
1578 info->send_cq = in _smbd_get_connection()
1581 if (IS_ERR(info->send_cq)) { in _smbd_get_connection()
1582 info->send_cq = NULL; in _smbd_get_connection()
1604 qp_attr.send_cq = info->send_cq; in _smbd_get_connection()
1720 if (info->send_cq) in _smbd_get_connection()
1721 ib_free_cq(info->send_cq); in _smbd_get_connection()
Dsmbdirect.h59 struct ib_cq *send_cq, *recv_cq; member
/Linux-v6.1/drivers/infiniband/ulp/srp/
Dib_srp.c521 ib_process_cq_direct(ch->send_cq, -1); in srp_destroy_qp()
534 struct ib_cq *recv_cq, *send_cq; in srp_create_ch_ib() local
552 send_cq = ib_alloc_cq(dev->dev, ch, m * target->queue_size, in srp_create_ch_ib()
554 if (IS_ERR(send_cq)) { in srp_create_ch_ib()
555 ret = PTR_ERR(send_cq); in srp_create_ch_ib()
566 init_attr->send_cq = send_cq; in srp_create_ch_ib()
604 if (ch->send_cq) in srp_create_ch_ib()
605 ib_free_cq(ch->send_cq); in srp_create_ch_ib()
609 ch->send_cq = send_cq; in srp_create_ch_ib()
627 ib_free_cq(send_cq); in srp_create_ch_ib()
[all …]
Dib_srp.h155 struct ib_cq *send_cq; member
/Linux-v6.1/Documentation/infiniband/
Dtag_matching.rst32 processed by the sender. A completion send is received in the send_cq

123