Home
last modified time | relevance | path

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

1234

/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 …]
/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()
/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()
719 pr_err("qp#%d Failed allocating skb\n", qp_num(qp)); in rxe_requester()
724 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()
Drxe_resp.c853 uwc->qp_num = qp->ibqp.qp_num; in do_complete()
887 uwc->qp_num = qp->ibqp.qp_num; in do_complete()
1248 pr_debug("qp#%d state = %s\n", qp_num(qp), in rxe_responder()
1396 pr_warn("qp#%d moved to error state\n", qp_num(qp)); in rxe_responder()
/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()
/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;
Dverbs.c378 u32 qp_num; in hfi1_kdeth_eager_rcv() local
397 qp_num = be32_to_cpu(packet->ohdr->u.tid_rdma.r_req.verbs_qp) & in hfi1_kdeth_eager_rcv()
401 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_kdeth_eager_rcv()
432 u32 qp_num; in hfi1_kdeth_expected_rcv() local
451 qp_num = be32_to_cpu(packet->ohdr->u.tid_rdma.r_rsp.verbs_qp) & in hfi1_kdeth_expected_rcv()
455 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_kdeth_expected_rcv()
497 u32 qp_num; in hfi1_handle_packet() local
540 qp_num = hfi1_16B_get_dest_qpn(packet->mgmt); in hfi1_handle_packet()
542 qp_num = ib_bth_get_qpn(packet->ohdr); in hfi1_handle_packet()
545 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_handle_packet()
[all …]
Dtrace_iowait.h29 __entry->qpn = iowait_to_qp(wait)->ibqp.qp_num;
/drivers/infiniband/core/
Dcounters.c409 static struct ib_qp *rdma_counter_get_qp(struct ib_device *dev, u32 qp_num) in rdma_counter_get_qp() argument
414 res = rdma_restrack_get_byid(dev, RDMA_RESTRACK_QP, qp_num); in rdma_counter_get_qp()
467 u32 qp_num, u32 counter_id) in rdma_counter_bind_qpn() argument
478 qp = rdma_counter_get_qp(dev, qp_num); in rdma_counter_bind_qpn()
512 u32 qp_num, u32 *counter_id) in rdma_counter_bind_qpn_alloc() argument
529 qp = rdma_counter_get_qp(dev, qp_num); in rdma_counter_bind_qpn_alloc()
567 u32 qp_num, u32 counter_id) in rdma_counter_unbind_qpn() argument
576 qp = rdma_counter_get_qp(dev, qp_num); in rdma_counter_unbind_qpn()
Drestrack.c225 ret = xa_insert(&rt->xa, qp->qp_num, res, GFP_KERNEL); in rdma_restrack_add()
226 res->id = ret ? 0 : qp->qp_num; in rdma_restrack_add()
Dcma.c974 id_priv->qp_num = qp->qp_num; in rdma_create_qp()
1917 event->param.conn.qp_num = rep_data->remote_qpn; in cma_set_rep_event_data()
2122 event->param.conn.qp_num = req_data->remote_qpn; in cma_set_req_event_data()
3701 event.param.ud.qp_num = rep->qpn; in cma_sidr_rep_handler()
3836 req.qp_num = id_priv->qp_num; in cma_connect_ib()
3889 iw_param.qpn = id_priv->id.qp ? id_priv->qp_num : conn_param->qp_num; in cma_connect_iw()
3892 iw_param.qpn = id_priv->qp_num; in cma_connect_iw()
3913 id_priv->qp_num = conn_param->qp_num; in rdma_connect()
3951 rep.qp_num = id_priv->qp_num; in cma_accept_ib()
3985 iw_param.qpn = id_priv->qp_num; in cma_accept_iw()
[all …]
/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()
/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;
Dmcast.c289 if (ibqp->qp_num <= 1 || qp->state == IB_QPS_RESET) in rvt_attach_mcast()
354 if (ibqp->qp_num <= 1) in rvt_detach_mcast()
/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 …]
/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()
/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()
/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()
1911 ch->sess_name, ch->qp->qp_num, ret); in srpt_close_ch()
1916 ch->sess_name, ch->qp->qp_num, ret); in srpt_close_ch()
1984 pr_debug("ch %s-%d state %d\n", ch->sess_name, ch->qp->qp_num, in srpt_disconnect_ch_sync()
1994 ch->sess_name, ch->qp->qp_num, ch->state); in srpt_disconnect_ch_sync()
2095 pr_debug("%s-%d\n", ch->sess_name, ch->qp->qp_num); in srpt_release_channel_work()
2413 rep_param->ib_cm.qp_num = ch->qp->qp_num; in srpt_cm_req_recv()
[all …]
/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