/linux-6.1.9/drivers/infiniband/core/ |
D | uverbs_std_types_qp.c | 95 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()
|
D | verbs.c | 1175 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-6.1.9/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 245 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() 1421 void hns_roce_lock_cqs(struct hns_roce_cq *send_cq, struct hns_roce_cq *recv_cq) in hns_roce_lock_cqs() argument 1422 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in hns_roce_lock_cqs() 1424 if (unlikely(send_cq == NULL && recv_cq == NULL)) { in hns_roce_lock_cqs() 1425 __acquire(&send_cq->lock); in hns_roce_lock_cqs() 1427 } else if (unlikely(send_cq != NULL && recv_cq == NULL)) { in hns_roce_lock_cqs() 1428 spin_lock_irq(&send_cq->lock); in hns_roce_lock_cqs() 1430 } else if (unlikely(send_cq == NULL && recv_cq != NULL)) { in hns_roce_lock_cqs() [all …]
|
D | hns_roce_hw_v2.c | 722 if (hns_roce_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in hns_roce_v2_post_send() 2749 free_mr->rsv_qp[i]->ibqp.send_cq = cq; in free_mr_init_qp() 2805 qp_init_attr.send_cq = cq; in free_mr_alloc_res() 4461 hr_reg_write(context, QPC_TX_CQN, get_cqn(ibqp->send_cq)); in modify_qp_reset_to_init() 4490 hr_reg_write(context, QPC_TX_CQN, get_cqn(ibqp->send_cq)); in modify_qp_init_to_init() 5284 if (ibqp->send_cq) in clear_qp() 5285 hns_roce_v2_cq_clean(to_hr_cq(ibqp->send_cq), in clear_qp() 5288 if (ibqp->recv_cq && ibqp->recv_cq != ibqp->send_cq) in clear_qp() 5527 qp_init_attr->send_cq = ibqp->send_cq; in hns_roce_v2_query_qp() 5551 struct hns_roce_cq *send_cq, *recv_cq; in hns_roce_v2_destroy_qp_common() local [all …]
|
/linux-6.1.9/drivers/infiniband/ulp/ipoib/ |
D | ipoib_verbs.c | 187 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()
|
D | ipoib_ib.c | 439 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-6.1.9/drivers/infiniband/hw/mthca/ |
D | mthca_qp.c | 735 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 …]
|
D | mthca_dev.h | 535 struct mthca_cq *send_cq, 544 struct mthca_cq *send_cq,
|
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | qp.c | 76 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 …]
|
D | gsi.c | 50 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()
|
D | mem.c | 246 qp_init_attr.send_cq = cq; in mlx5_ib_test_wc()
|
/linux-6.1.9/include/rdma/ |
D | rdmavt_qp.h | 805 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-6.1.9/drivers/infiniband/hw/mlx4/ |
D | qp.c | 52 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-6.1.9/Documentation/translations/zh_CN/infiniband/ |
D | tag_matching.rst | 39 1. Eager协议--当发送方处理完发送时,完整的信息就会被发送。在send_cq中会收到
|
/linux-6.1.9/net/sunrpc/xprtrdma/ |
D | verbs.c | 341 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-6.1.9/fs/ksmbd/ |
D | transport_rdma.c | 104 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-6.1.9/drivers/net/ethernet/ibm/ehea/ |
D | ehea_main.c | 198 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 …]
|
D | ehea.h | 351 struct ehea_cq *send_cq; member
|
/linux-6.1.9/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_qp.c | 58 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-6.1.9/drivers/infiniband/sw/rxe/ |
D | rxe_qp.c | 75 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-6.1.9/fs/cifs/ |
D | smbdirect.c | 1391 ib_free_cq(info->send_cq); in smbd_destroy() 1577 info->send_cq = NULL; in _smbd_get_connection() 1579 info->send_cq = in _smbd_get_connection() 1582 if (IS_ERR(info->send_cq)) { in _smbd_get_connection() 1583 info->send_cq = NULL; in _smbd_get_connection() 1605 qp_attr.send_cq = info->send_cq; in _smbd_get_connection() 1721 if (info->send_cq) in _smbd_get_connection() 1722 ib_free_cq(info->send_cq); in _smbd_get_connection()
|
D | smbdirect.h | 59 struct ib_cq *send_cq, *recv_cq; member
|
/linux-6.1.9/drivers/infiniband/ulp/srp/ |
D | ib_srp.h | 157 struct ib_cq *send_cq; member
|
D | ib_srp.c | 521 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 …]
|
/linux-6.1.9/Documentation/infiniband/ |
D | tag_matching.rst | 32 processed by the sender. A completion send is received in the send_cq
|