/Linux-v6.6/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 182 struct ib_cq *scq = init_attr->send_cq; in get_least_load_bankid_for_qp() 261 struct ib_cq *send_cq, struct ib_cq *recv_cq) in add_qp_to_list() argument 266 hr_send_cq = send_cq ? to_hr_cq(send_cq) : NULL; in add_qp_to_list() 297 add_qp_to_list(hr_dev, hr_qp, init_attr->send_cq, in hns_roce_qp_store() 1373 void hns_roce_lock_cqs(struct hns_roce_cq *send_cq, struct hns_roce_cq *recv_cq) in hns_roce_lock_cqs() argument 1374 __acquires(&send_cq->lock) __acquires(&recv_cq->lock) in hns_roce_lock_cqs() 1376 if (unlikely(send_cq == NULL && recv_cq == NULL)) { in hns_roce_lock_cqs() 1377 __acquire(&send_cq->lock); in hns_roce_lock_cqs() 1379 } else if (unlikely(send_cq != NULL && recv_cq == NULL)) { in hns_roce_lock_cqs() 1380 spin_lock_irq(&send_cq->lock); in hns_roce_lock_cqs() [all …]
|
D | hns_roce_hw_v2.c | 715 if (hns_roce_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in hns_roce_v2_post_send() 2624 free_mr->rsv_qp[i]->ibqp.send_cq = cq; in free_mr_init_qp() 2680 qp_init_attr.send_cq = cq; in free_mr_alloc_res() 4281 hr_reg_write(context, QPC_TX_CQN, get_cqn(ibqp->send_cq)); in modify_qp_reset_to_init() 4310 hr_reg_write(context, QPC_TX_CQN, get_cqn(ibqp->send_cq)); in modify_qp_init_to_init() 5125 if (ibqp->send_cq) in clear_qp() 5126 hns_roce_v2_cq_clean(to_hr_cq(ibqp->send_cq), in clear_qp() 5129 if (ibqp->recv_cq && ibqp->recv_cq != ibqp->send_cq) in clear_qp() 5380 qp_init_attr->send_cq = ibqp->send_cq; in hns_roce_v2_query_qp() 5404 struct hns_roce_cq *send_cq, *recv_cq; in hns_roce_v2_destroy_qp_common() local [all …]
|
/Linux-v6.6/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 | 1177 qp->send_cq = qp->recv_cq = NULL; in create_xrc_qp_user() 1229 qp->send_cq = attr->send_cq; in create_qp() 1243 qp->send_cq = attr->send_cq; in create_qp() 1303 if (qp->send_cq) in ib_qp_usecnt_inc() 1304 atomic_inc(&qp->send_cq->usecnt); in ib_qp_usecnt_inc() 1322 if (qp->send_cq) in ib_qp_usecnt_dec() 1323 atomic_dec(&qp->send_cq->usecnt); in ib_qp_usecnt_dec() 2816 struct ib_cq *cq = qp->send_cq; in __ib_drain_sq() 2909 trace_cq_drain_complete(qp->send_cq); in ib_drain_sq()
|
/Linux-v6.6/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-v6.6/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-v6.6/drivers/infiniband/hw/mlx5/ |
D | qp.c | 88 struct mlx5_ib_cq **send_cq, struct mlx5_ib_cq **recv_cq); 827 static void mlx5_ib_lock_cqs(struct mlx5_ib_cq *send_cq, 829 static void mlx5_ib_unlock_cqs(struct mlx5_ib_cq *send_cq, 1299 static int get_sq_ts_format(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *send_cq) in get_sq_ts_format() argument 1303 return get_ts_format(dev, send_cq, fr_supported(ts_cap), in get_sq_ts_format() 1307 static int get_qp_ts_format(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *send_cq, in get_qp_ts_format() argument 1316 send_cq ? get_ts_format(dev, send_cq, fr_sup, rt_sup) : in get_qp_ts_format() 1593 to_mcq(init_attr->send_cq)); in create_raw_packet_qp() 1934 scqe_sz = mlx5_ib_get_cqe_size(init_attr->send_cq); in configure_requester_scat_cqe() 2080 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-v6.6/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-v6.6/drivers/infiniband/hw/mana/ |
D | qp.c | 264 struct mana_ib_cq *send_cq = in mana_ib_create_qp_raw() local 265 container_of(attr->send_cq, struct mana_ib_cq, ibcq); in mana_ib_create_qp_raw() 353 cq_spec.gdma_region = send_cq->gdma_region; in mana_ib_create_qp_raw() 354 cq_spec.queue_size = send_cq->cqe * COMP_ENTRY_SIZE; in mana_ib_create_qp_raw() 369 send_cq->gdma_region = GDMA_INVALID_DMA_REGION; in mana_ib_create_qp_raw() 372 send_cq->id = cq_spec.queue_index; in mana_ib_create_qp_raw() 376 qp->tx_object, qp->sq_id, send_cq->id); in mana_ib_create_qp_raw() 379 resp.cqid = send_cq->id; in mana_ib_create_qp_raw()
|
/Linux-v6.6/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, 762 if (init_attr->send_cq || init_attr->cap.max_send_wr) { in _mlx4_ib_create_qp_rss() 960 mlx4_ib_lock_cqs(to_mcq(init_attr->send_cq), in create_rq() 969 mcq = to_mcq(init_attr->send_cq); in create_rq() 973 mlx4_ib_unlock_cqs(to_mcq(init_attr->send_cq), in create_rq() 1234 mlx4_ib_lock_cqs(to_mcq(init_attr->send_cq), in create_qp_common() 1243 mcq = to_mcq(init_attr->send_cq); in create_qp_common() 1247 mlx4_ib_unlock_cqs(to_mcq(init_attr->send_cq), in create_qp_common() 1302 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.6/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-v6.6/Documentation/translations/zh_CN/infiniband/ |
D | tag_matching.rst | 39 1. Eager协议--当发送方处理完发送时,完整的信息就会被发送。在send_cq中会收到
|
/Linux-v6.6/fs/smb/server/ |
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() 1884 t->send_cq = ib_alloc_cq(t->cm_id->device, t, in smb_direct_create_qpair() 1887 if (IS_ERR(t->send_cq)) { in smb_direct_create_qpair() 1889 ret = PTR_ERR(t->send_cq); in smb_direct_create_qpair() 1890 t->send_cq = NULL; in smb_direct_create_qpair() 1909 qp_attr.send_cq = t->send_cq; in smb_direct_create_qpair() 1944 if (t->send_cq) { in smb_direct_create_qpair() 1945 ib_destroy_cq(t->send_cq); in smb_direct_create_qpair() [all …]
|
/Linux-v6.6/drivers/net/ethernet/ibm/ehea/ |
D | ehea_main.c | 199 arr[i++].fwh = pr->send_cq->fw_handle; in ehea_update_firmware_handles() 804 struct ehea_cq *send_cq = pr->send_cq; in ehea_proc_cqes() local 813 cqe = ehea_poll_cq(send_cq); in ehea_proc_cqes() 815 ehea_inc_cq(send_cq); in ehea_proc_cqes() 855 cqe = ehea_poll_cq(send_cq); in ehea_proc_cqes() 858 ehea_update_feca(send_cq, cqe_counter); in ehea_proc_cqes() 893 ehea_reset_cq_ep(pr->send_cq); in ehea_poll() 895 ehea_reset_cq_n1(pr->send_cq); in ehea_poll() 898 cqe_skb = ehea_poll_cq(pr->send_cq); in ehea_poll() 1477 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-v6.6/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() 1034 init_attr->send_cq = qp->ibqp.send_cq; in pvrdma_query_qp()
|
/Linux-v6.6/drivers/infiniband/sw/rxe/ |
D | rxe_qp.c | 75 if (!init->recv_cq || !init->send_cq) { in rxe_qp_chk_init() 357 struct rxe_cq *scq = to_rcq(init->send_cq); in rxe_qp_from_init() 418 init->send_cq = qp->ibqp.send_cq; in rxe_qp_to_init()
|
/Linux-v6.6/fs/smb/client/ |
D | smbdirect.c | 1357 ib_free_cq(info->send_cq); in smbd_destroy() 1546 info->send_cq = NULL; in _smbd_get_connection() 1548 info->send_cq = in _smbd_get_connection() 1551 if (IS_ERR(info->send_cq)) { in _smbd_get_connection() 1552 info->send_cq = NULL; in _smbd_get_connection() 1574 qp_attr.send_cq = info->send_cq; in _smbd_get_connection() 1691 if (info->send_cq) in _smbd_get_connection() 1692 ib_free_cq(info->send_cq); in _smbd_get_connection()
|
D | smbdirect.h | 59 struct ib_cq *send_cq, *recv_cq; member
|
/Linux-v6.6/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 516 ib_process_cq_direct(ch->send_cq, -1); in srp_destroy_qp() 529 struct ib_cq *recv_cq, *send_cq; in srp_create_ch_ib() local 547 send_cq = ib_alloc_cq(dev->dev, ch, m * target->queue_size, in srp_create_ch_ib() 549 if (IS_ERR(send_cq)) { in srp_create_ch_ib() 550 ret = PTR_ERR(send_cq); in srp_create_ch_ib() 561 init_attr->send_cq = send_cq; in srp_create_ch_ib() 599 if (ch->send_cq) in srp_create_ch_ib() 600 ib_free_cq(ch->send_cq); in srp_create_ch_ib() 604 ch->send_cq = send_cq; in srp_create_ch_ib() 622 ib_free_cq(send_cq); in srp_create_ch_ib() [all …]
|
D | ib_srp.h | 157 struct ib_cq *send_cq; member
|