Home
last modified time | relevance | path

Searched refs:qp_num (Results 1 – 25 of 97) sorted by relevance

1234

/Linux-v5.4/include/trace/events/
Dib_mad.h33 __field(u32, qp_num)
58 __entry->qp_num = wr->mad_agent_priv->qp_info->qp->qp_num;
93 __entry->dev_index, __entry->port_num, __entry->qp_num,
130 __field(u32, qp_num)
147 __entry->qp_num = wr->mad_agent_priv->qp_info->qp->qp_num;
172 __entry->dev_index, __entry->port_num, __entry->qp_num,
194 __field(u32, qp_num)
213 __entry->qp_num = qp_info->qp->qp_num;
238 __entry->dev_index, __entry->port_num, __entry->qp_num,
/Linux-v5.4/drivers/ntb/
Dntb_transport.c142 u8 qp_num; /* Only 64 QP's are allowed. 0-63 */ member
616 unsigned int qp_num) in ntb_transport_setup_qp_mw() argument
618 struct ntb_transport_qp *qp = &nt->qp_vec[qp_num]; in ntb_transport_setup_qp_mw()
630 mw_num = QP_TO_MW(nt, qp_num); in ntb_transport_setup_qp_mw()
642 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw()
695 unsigned int qp_num) in ntb_transport_setup_qp_peer_msi() argument
697 struct ntb_transport_qp *qp = &nt->qp_vec[qp_num]; in ntb_transport_setup_qp_peer_msi()
698 int spad = qp_num * 2 + nt->msi_spad_offset; in ntb_transport_setup_qp_peer_msi()
712 qp_num, qp->peer_msi_desc.addr_offset, qp->peer_msi_desc.data); in ntb_transport_setup_qp_peer_msi()
717 "Using MSI interrupts for QP%d\n", qp_num); in ntb_transport_setup_qp_peer_msi()
[all …]
/Linux-v5.4/drivers/infiniband/hw/qib/
Dqib_ud.c87 if (qp->ibqp.qp_num > 1) { in qib_ud_loopback()
99 sqp->ibqp.qp_num, qp->ibqp.qp_num, in qib_ud_loopback()
111 if (qp->ibqp.qp_num) { in qib_ud_loopback()
149 if (qp->ibqp.qp_num == 0) in qib_ud_loopback()
205 wc.src_qp = sqp->ibqp.qp_num; in qib_ud_loopback()
384 ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); in qib_make_ud_req()
463 if (qp->ibqp.qp_num) { in qib_ud_rcv()
467 if (qp->ibqp.qp_num > 1) { in qib_ud_rcv()
477 src_qp, qp->ibqp.qp_num, in qib_ud_rcv()
486 if (unlikely(qp->ibqp.qp_num == 1 && in qib_ud_rcv()
[all …]
Dqib_driver.c310 u32 qp_num; in qib_rcv_hdrerr() local
346 qp_num = be32_to_cpu(ohdr->bth[1]) & RVT_QPN_MASK; in qib_rcv_hdrerr()
347 if (qp_num != QIB_MULTICAST_QPN) { in qib_rcv_hdrerr()
351 qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in qib_rcv_hdrerr()
/Linux-v5.4/drivers/infiniband/sw/rxe/
Drxe_qp.c192 qp->ibqp.qp_num = 0; in rxe_qp_init_misc()
198 qp->ibqp.qp_num = 1; in rxe_qp_init_misc()
204 qp->ibqp.qp_num = qpn; in rxe_qp_init_misc()
239 (hash_32_generic(qp_num(qp), 14) & 0x3fff); in rxe_qp_init_req()
302 qp_num(qp), qp->rq.max_wr, qp->rq.max_sge, wqe_size); in rxe_qp_init_resp()
663 pr_debug("qp#%d set retry count = %d\n", qp_num(qp), in rxe_qp_from_attr()
670 pr_debug("qp#%d set rnr retry count = %d\n", qp_num(qp), in rxe_qp_from_attr()
677 pr_debug("qp#%d set resp psn = 0x%x\n", qp_num(qp), in rxe_qp_from_attr()
683 pr_debug("qp#%d set min rnr timer = 0x%x\n", qp_num(qp), in rxe_qp_from_attr()
691 pr_debug("qp#%d set req psn = 0x%x\n", qp_num(qp), qp->req.psn); in rxe_qp_from_attr()
[all …]
Drxe_req.c128 pr_debug("qp#%d rnr nak timer fired\n", qp_num(qp)); in rnr_nak_timer()
392 u32 qp_num; in init_req_packet() local
426 qp_num = (pkt->mask & RXE_DETH_MASK) ? ibwr->wr.ud.remote_qpn : in init_req_packet()
434 bth_init(pkt, pkt->opcode, solicited, 0, pad, pkey, qp_num, in init_req_packet()
463 if (qp->ibqp.qp_num == 1) in init_req_packet()
467 deth_set_sqp(pkt, qp->ibqp.qp_num); in init_req_packet()
713 pr_err("qp#%d Failed allocating skb\n", qp_num(qp)); in rxe_requester()
718 pr_debug("qp#%d Error during fill packet\n", qp_num(qp)); in rxe_requester()
Drxe_comp.c428 uwc->qp_num = qp->ibqp.qp_num; in make_send_cqe()
588 pr_debug("qp#%d state = %s\n", qp_num(qp), in rxe_completer()
753 qp_num(qp)); in rxe_completer()
/Linux-v5.4/include/rdma/
Drdma_counter.h56 u32 qp_num, u32 counter_id);
58 u32 qp_num, u32 *counter_id);
60 u32 qp_num, u32 counter_id);
Dib_cm.h384 u32 qp_num; member
412 u32 qp_num; member
603 u32 qp_num; member
Drdma_cm.h95 u32 qp_num; member
103 u32 qp_num; member
/Linux-v5.4/drivers/infiniband/hw/mthca/
Dmthca_mcg.c165 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) { in mthca_multicast_attach()
167 ibqp->qp_num); in mthca_multicast_attach()
171 mgm->qp[i] = cpu_to_be32(ibqp->qp_num | (1 << 31)); in mthca_multicast_attach()
242 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) in mthca_multicast_detach()
249 mthca_err(dev, "QP %06x not found in MGM\n", ibqp->qp_num); in mthca_multicast_detach()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dud.c111 if (qp->ibqp.qp_num > 1) { in ud_loopback()
124 sqp->ibqp.qp_num, qp->ibqp.qp_num, in ud_loopback()
135 if (qp->ibqp.qp_num) { in ud_loopback()
173 if (qp->ibqp.qp_num == 0) in ud_loopback()
239 wc.src_qp = sqp->ibqp.qp_num; in ud_loopback()
300 ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); in hfi1_make_bth_deth()
384 u32 src_qp = qp->ibqp.qp_num; in hfi1_make_ud_req_16B()
916 if (qp->ibqp.qp_num) { in hfi1_ud_rcv()
919 if (qp->ibqp.qp_num > 1) { in hfi1_ud_rcv()
929 src_qp, qp->ibqp.qp_num, in hfi1_ud_rcv()
[all …]
Dtrace_tid.h208 __entry->qpn = qp->ibqp.qp_num;
266 __entry->qpn = qp->ibqp.qp_num;
318 __entry->qpn = qp->ibqp.qp_num;
360 __entry->qpn = qp ? qp->ibqp.qp_num : 0;
430 __entry->qpn = qp->ibqp.qp_num;
468 __entry->qpn = qp->ibqp.qp_num;
515 __entry->qpn = qp->ibqp.qp_num;
653 __entry->qpn = qp->ibqp.qp_num;
695 __entry->qpn = qp->ibqp.qp_num;
769 __entry->qpn = qp->ibqp.qp_num;
[all …]
Dtrace_rc.h74 __entry->qpn = qp->ibqp.qp_num;
134 __entry->qpn = qp->ibqp.qp_num;
Dtrace_iowait.h29 __entry->qpn = iowait_to_qp(wait)->ibqp.qp_num;
/Linux-v5.4/drivers/infiniband/core/
Dcounters.c406 static struct ib_qp *rdma_counter_get_qp(struct ib_device *dev, u32 qp_num) in rdma_counter_get_qp() argument
411 res = rdma_restrack_get_byid(dev, RDMA_RESTRACK_QP, qp_num); in rdma_counter_get_qp()
464 u32 qp_num, u32 counter_id) in rdma_counter_bind_qpn() argument
470 qp = rdma_counter_get_qp(dev, qp_num); in rdma_counter_bind_qpn()
504 u32 qp_num, u32 *counter_id) in rdma_counter_bind_qpn_alloc() argument
516 qp = rdma_counter_get_qp(dev, qp_num); in rdma_counter_bind_qpn_alloc()
554 u32 qp_num, u32 counter_id) in rdma_counter_unbind_qpn() argument
563 qp = rdma_counter_get_qp(dev, qp_num); in rdma_counter_unbind_qpn()
/Linux-v5.4/drivers/crypto/hisilicon/zip/
Dzip_main.c382 qm->debug.curr_qm_qp_num = qm->qp_num; in current_qm_write()
384 vfq_num = (qm->ctrl_qp_num - qm->qp_num) / ctrl->num_vfs; in current_qm_write()
387 qm->qp_num - (ctrl->num_vfs - 1) * vfq_num; in current_qm_write()
705 qm->qp_num = pf_q_num; in hisi_zip_probe()
716 qm->qp_num = HZIP_QUEUE_NUM_V1 - HZIP_PF_DEF_Q_NUM; in hisi_zip_probe()
719 hisi_qm_get_vft(qm, &qm->qp_base, &qm->qp_num); in hisi_zip_probe()
743 u32 qp_num = qm->qp_num; in hisi_zip_vf_q_assign() local
744 u32 q_base = qp_num; in hisi_zip_vf_q_assign()
751 remain_q_num = qm->ctrl_qp_num - qp_num; in hisi_zip_vf_q_assign()
/Linux-v5.4/drivers/infiniband/sw/rdmavt/
Dtrace_qp.h69 __entry->qpn = qp->ibqp.qp_num;
101 __entry->qpn = qp->ibqp.qp_num;
Dtrace_tx.h117 __entry->qpn = qp->ibqp.qp_num;
176 __entry->qpn = qp->ibqp.qp_num;
/Linux-v5.4/drivers/crypto/hisilicon/
Dqm.c1117 qp_id = find_first_zero_bit(qm->qp_bitmap, qm->qp_num); in hisi_qm_create_qp()
1118 if (qp_id >= qm->qp_num) { in hisi_qm_create_qp()
1635 if (qm->qp_num == 0) in __hisi_qm_start()
1643 ret = hisi_qm_set_vft(qm, 0, qm->qp_base, qm->qp_num); in __hisi_qm_start()
1650 QM_INIT_BUF(qm, sqc, qm->qp_num); in __hisi_qm_start()
1651 QM_INIT_BUF(qm, cqc, qm->qp_num); in __hisi_qm_start()
1691 dev_dbg(dev, "qm start with %d queue pairs\n", qm->qp_num); in hisi_qm_start()
1693 if (!qm->qp_num) { in hisi_qm_start()
1699 qm->qp_bitmap = devm_kcalloc(dev, BITS_TO_LONGS(qm->qp_num), in hisi_qm_start()
1701 qm->qp_array = devm_kcalloc(dev, qm->qp_num, in hisi_qm_start()
[all …]
/Linux-v5.4/include/uapi/rdma/
Drdma_user_cm.h187 __u32 qp_num; member
201 __u32 qp_num; member
/Linux-v5.4/drivers/infiniband/ulp/ipoib/
Dipoib_cm.c429 data.qpn = cpu_to_be32(priv->qp->qp_num); in ipoib_cm_send_rep()
437 rep.qp_num = qp->qp_num; in ipoib_cm_send_rep()
741 tx->tx_head, skb->len, tx->qp->qp_num); in ipoib_cm_send()
761 tx->qp->qp_num); in ipoib_cm_send()
885 ret = ib_cm_listen(priv->cm.id, cpu_to_be64(IPOIB_CM_IETF_ID | priv->qp->qp_num), in ipoib_cm_dev_open()
889 IPOIB_CM_IETF_ID | priv->qp->qp_num); in ipoib_cm_dev_open()
1089 data.qpn = cpu_to_be32(priv->qp->qp_num); in ipoib_cm_send_req()
1095 req.qp_num = qp->qp_num; in ipoib_cm_send_req()
1185 p->qp->qp_num, pathrec->dgid.raw, qpn); in ipoib_cm_tx_init()
1208 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail); in ipoib_cm_tx_destroy()
/Linux-v5.4/drivers/infiniband/hw/mlx5/
Dgsi.c168 gsi->ibqp.qp_num = 1; in mlx5_ib_gsi_create_qp()
288 qp->qp_num, ret); in modify_to_rts()
296 qp->qp_num, ret); in modify_to_rts()
305 qp->qp_num, ret); in modify_to_rts()
/Linux-v5.4/drivers/infiniband/ulp/srpt/
Dib_srpt.c232 ch->sess_name, ch->qp->qp_num, in srpt_qp_event()
865 ch->qp->qp_num); in srpt_zerolength_write()
874 pr_debug("%s-%d wc->status %d\n", ch->sess_name, ch->qp->qp_num, in srpt_zerolength_write_done()
884 ch->sess_name, ch->qp->qp_num); in srpt_zerolength_write_done()
1887 ch->sess_name, ch->qp->qp_num, ret); in srpt_close_ch()
1892 ch->sess_name, ch->qp->qp_num, ret); in srpt_close_ch()
1960 pr_debug("ch %s-%d state %d\n", ch->sess_name, ch->qp->qp_num, in srpt_disconnect_ch_sync()
1970 ch->sess_name, ch->qp->qp_num, ch->state); in srpt_disconnect_ch_sync()
2071 pr_debug("%s-%d\n", ch->sess_name, ch->qp->qp_num); in srpt_release_channel_work()
2389 rep_param->ib_cm.qp_num = ch->qp->qp_num; in srpt_cm_req_recv()
[all …]
/Linux-v5.4/drivers/infiniband/hw/i40iw/
Di40iw_utils.c492 u32 qp_num = iwqp->ibqp.qp_num; in i40iw_free_qp() local
497 i40iw_free_qp_resources(iwdev, iwqp, qp_num); in i40iw_free_qp()
642 u32 qp_num; in i40iw_rem_ref() local
653 qp_num = iwqp->ibqp.qp_num; in i40iw_rem_ref()
654 iwdev->qp_table[qp_num] = NULL; in i40iw_rem_ref()
673 i40iw_free_qp_resources(iwdev, iwqp, qp_num); in i40iw_rem_ref()

1234