Home
last modified time | relevance | path

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

12

/drivers/infiniband/hw/qib/
Dqib_ud.c82 if (qp->ibqp.qp_num > 1) { in qib_ud_loopback()
94 sqp->ibqp.qp_num, qp->ibqp.qp_num, in qib_ud_loopback()
106 if (qp->ibqp.qp_num) { in qib_ud_loopback()
118 sqp->ibqp.qp_num, qp->ibqp.qp_num, in qib_ud_loopback()
154 if (qp->ibqp.qp_num == 0) in qib_ud_loopback()
211 wc.src_qp = sqp->ibqp.qp_num; in qib_ud_loopback()
382 ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); in qib_make_ud_req()
465 if (qp->ibqp.qp_num) { in qib_ud_rcv()
469 if (qp->ibqp.qp_num > 1) { in qib_ud_rcv()
479 src_qp, qp->ibqp.qp_num, in qib_ud_rcv()
[all …]
Dqib_qp.c227 unsigned n = qpn_hash(dev, qp->ibqp.qp_num); in insert_qp()
232 if (qp->ibqp.qp_num == 0) in insert_qp()
234 else if (qp->ibqp.qp_num == 1) in insert_qp()
251 unsigned n = qpn_hash(dev, qp->ibqp.qp_num); in remove_qp()
357 if (qp->ibqp.qp_num == qpn) { in qib_lookup_qpn()
1117 qp->ibqp.qp_num = err; in qib_create_qp()
1188 free_qpn(&dev->qpn_table, qp->ibqp.qp_num); in qib_create_qp()
1236 free_qpn(&dev->qpn_table, qp->ibqp.qp_num); in qib_destroy_qp()
1374 qp->ibqp.qp_num, in qib_qp_iter_print()
Dqib_driver.c313 u32 qp_num; in qib_rcv_hdrerr() local
349 qp_num = be32_to_cpu(ohdr->bth[1]) & QIB_QPN_MASK; in qib_rcv_hdrerr()
350 if (qp_num != QIB_MULTICAST_QPN) { in qib_rcv_hdrerr()
352 qp = qib_lookup_qpn(ibp, qp_num); in qib_rcv_hdrerr()
Dqib_verbs_mcast.c234 if (ibqp->qp_num <= 1 || qp->state == IB_QPS_RESET) { in qib_multicast_attach()
294 if (ibqp->qp_num <= 1 || qp->state == IB_QPS_RESET) in qib_multicast_detach()
Dqib_cq.c91 wc->uqueue[head].qp_num = entry->qp->qp_num; in qib_cq_enter()
/drivers/infiniband/hw/ehca/
Dehca_qp.c824 my_qp->ib_qp.qp_num = ib_qp_num; in internal_create_qp()
892 resp.qp_num = my_qp->real_qp_num; in internal_create_qp()
1077 int qp_num = my_qp->ib_qp.qp_num; in prepare_sqe_rts() local
1086 my_qp, qp_num, h_ret); in prepare_sqe_rts()
1091 qp_num, bad_send_wqe_p); in prepare_sqe_rts()
1095 ehca_dmp(bad_send_wqe_v, 32, "qp_num=%x bad_wqe", qp_num); in prepare_sqe_rts()
1099 " bad_send_wqe_p=%p", qp_num, bad_send_wqe_p); in prepare_sqe_rts()
1108 ehca_dmp(wqe, 32, "qp_num=%x wqe", qp_num); in prepare_sqe_rts()
1120 qp_num, (*bad_wqe_cnt)-1); in prepare_sqe_rts()
1165 int qp_num = my_qp->ib_qp.qp_num; in check_for_left_cqes() local
[all …]
Dehca_uverbs.c205 ehca_dbg(qp->ib_qp.device, "qp_num=%x fw", qp->ib_qp.qp_num); in ehca_mmap_qp()
210 ret, qp->ib_qp.qp_num); in ehca_mmap_qp()
216 ehca_dbg(qp->ib_qp.device, "qp_num=%x rq", qp->ib_qp.qp_num); in ehca_mmap_qp()
222 ret, qp->ib_qp.qp_num); in ehca_mmap_qp()
228 ehca_dbg(qp->ib_qp.device, "qp_num=%x sq", qp->ib_qp.qp_num); in ehca_mmap_qp()
234 ret, qp->ib_qp.qp_num); in ehca_mmap_qp()
241 rsrc_type, qp->ib_qp.qp_num); in ehca_mmap_qp()
298 ret, qp->ib_qp.qp_num); in ehca_mmap()
Dehca_mcast.c91 "h_ret=%lli", my_qp, ibqp->qp_num, h_ret); in ehca_attach_mcast()
128 "h_ret=%lli", my_qp, ibqp->qp_num, h_ret); in ehca_detach_mcast()
Dehca_classes.h407 u32 qp_num; member
479 int ehca_cq_unassign_qp(struct ehca_cq *cq, unsigned int qp_num);
480 struct ehca_qp *ehca_cq_get_qp(struct ehca_cq *cq, int qp_num);
Dehca_reqs.c414 "qp_num=%x", my_qp->ib_qp.qp_num); in post_one_send()
433 "qp_num=%x", my_qp->ib_qp.qp_num); in post_one_send()
452 my_qp->state, qp->qp_num); in ehca_post_send()
475 ehca_dbg(qp->device, "posted circ wr qp_num=%x", qp->qp_num); in ehca_post_send()
494 my_qp, qp->qp_num, wqe_cnt, ret); in ehca_post_send()
592 my_qp->state, qp->qp_num); in ehca_post_recv()
Dehca_cq.c57 unsigned int qp_num = qp->real_qp_num; in ehca_cq_assign_qp() local
58 unsigned int key = qp_num & (QP_HASHTAB_LEN-1); in ehca_cq_assign_qp()
66 cq->cq_number, qp_num); in ehca_cq_assign_qp()
/drivers/ntb/
Dntb_transport.c104 u8 qp_num; /* Only 64 QP's are allowed. 0-63 */ member
501 unsigned int qp_num) in ntb_transport_setup_qp_mw() argument
503 struct ntb_transport_qp *qp = &nt->qps[qp_num]; in ntb_transport_setup_qp_mw()
509 mw_num = QP_TO_MW(nt->ndev, qp_num); in ntb_transport_setup_qp_mw()
519 qp->rx_buff = nt->mw[mw_num].virt_addr + qp_num / mw_max * rx_size; in ntb_transport_setup_qp_mw()
611 dev_info(&pdev->dev, "qp %d: Link Down\n", qp->qp_num); in ntb_qp_link_cleanup()
829 rc = ntb_write_remote_spad(nt->ndev, QP_LINKS, val | 1 << qp->qp_num); in ntb_qp_link_work()
832 val | 1 << qp->qp_num, QP_LINKS); in ntb_qp_link_work()
842 if (1 << qp->qp_num & val) { in ntb_qp_link_work()
845 dev_info(&pdev->dev, "qp %d: Link Up\n", qp->qp_num); in ntb_qp_link_work()
[all …]
/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/ipath/
Dipath_ud.c79 if (unlikely(qp->ibqp.qp_num && in ipath_ud_loopback()
216 wc.src_qp = sqp->ibqp.qp_num; in ipath_ud_loopback()
383 ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); in ipath_make_ud_req()
453 if (qp->ibqp.qp_num) { in ipath_ud_rcv()
480 if (qp->ibqp.qp_num > 1 && in ipath_ud_rcv()
507 if (unlikely((qp->ibqp.qp_num == 0 && in ipath_ud_rcv()
510 (qp->ibqp.qp_num == 1 && in ipath_ud_rcv()
535 if (qp->ibqp.qp_num == 0) in ipath_ud_rcv()
Dipath_qp.c218 qp->ibqp.qp_num = ret; in ipath_alloc_qpn()
251 qpp = &qpt->table[qp->ibqp.qp_num % qpt->max]; in ipath_free_qp()
309 if (qp->ibqp.qp_num == qpn) { in ipath_lookup_qpn()
942 free_qpn(&dev->qp_table, qp->ibqp.qp_num); in ipath_create_qp()
1000 free_qpn(&dev->qp_table, qp->ibqp.qp_num); in ipath_destroy_qp()
Dipath_cq.c87 wc->uqueue[head].qp_num = entry->qp->qp_num; in ipath_cq_enter()
/drivers/infiniband/ulp/ipoib/
Dipoib_verbs.c207 priv->dev->dev_addr[1] = (priv->qp->qp_num >> 16) & 0xff; in ipoib_transport_dev_init()
208 priv->dev->dev_addr[2] = (priv->qp->qp_num >> 8) & 0xff; in ipoib_transport_dev_init()
209 priv->dev->dev_addr[3] = (priv->qp->qp_num ) & 0xff; in ipoib_transport_dev_init()
Dipoib_cm.c427 data.qpn = cpu_to_be32(priv->qp->qp_num); in ipoib_cm_send_rep()
435 rep.qp_num = qp->qp_num; in ipoib_cm_send_rep()
727 tx->tx_head, skb->len, tx->qp->qp_num); in ipoib_cm_send()
763 tx->qp->qp_num); in ipoib_cm_send()
856 ret = ib_cm_listen(priv->cm.id, cpu_to_be64(IPOIB_CM_IETF_ID | priv->qp->qp_num), in ipoib_cm_dev_open()
860 IPOIB_CM_IETF_ID | priv->qp->qp_num); in ipoib_cm_dev_open()
1058 data.qpn = cpu_to_be32(priv->qp->qp_num); in ipoib_cm_send_req()
1064 req.qp_num = qp->qp_num; in ipoib_cm_send_req()
1153 p->qp->qp_num, pathrec->dgid.raw, qpn); in ipoib_cm_tx_init()
1177 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail); in ipoib_cm_tx_destroy()
/drivers/infiniband/core/
Dcma.c142 u32 qp_num; member
582 id_priv->qp_num = qp->qp_num; in rdma_create_qp()
1110 event->param.conn.qp_num = rep_data->remote_qpn; in cma_set_rep_event_data()
1277 event->param.conn.qp_num = req_data->remote_qpn; in cma_set_req_event_data()
2687 event.param.ud.qp_num = rep->qpn; in cma_sidr_rep_handler()
2815 req.qp_num = id_priv->qp_num; in cma_connect_ib()
2866 iw_param.qpn = id_priv->id.qp ? id_priv->qp_num : conn_param->qp_num; in cma_connect_iw()
2869 iw_param.qpn = id_priv->qp_num; in cma_connect_iw()
2890 id_priv->qp_num = conn_param->qp_num; in rdma_connect()
2933 rep.qp_num = id_priv->qp_num; in cma_accept_ib()
[all …]
Ducma.c210 dst->qp_num = src->qp_num; in ucma_copy_conn_event()
221 dst->qp_num = src->qp_num; in ucma_copy_ud_event()
921 dst->qp_num = src->qp_num; in ucma_copy_conn_param()
Dmad.c1711 static int validate_mad(struct ib_mad *mad, u32 qp_num) in validate_mad() argument
1725 if (qp_num == 0) in validate_mad()
1729 if (qp_num != 0) in validate_mad()
1982 if (!validate_mad(&recv->mad.mad, qp_info->qp->qp_num)) in ib_mad_recv_done_handler()
2031 qp_info->qp->qp_num); in ib_mad_recv_done_handler()
2053 qp_info->qp->qp_num); in ib_mad_recv_done_handler()
2070 port_priv->device, port_num, qp_info->qp->qp_num); in ib_mad_recv_done_handler()
2783 attr->qkey = (qp->qp_num == 0) ? 0 : IB_QP1_QKEY; in ib_mad_port_start()
2844 event->event, qp_info->qp->qp_num); in qp_event_handler()
Dverbs.c410 qp->qp_num = real_qp->qp_num; in __ib_open_qp()
431 if (real_qp->qp_num == qp_open_attr->qp_num) { in ib_open_qp()
/drivers/infiniband/hw/mlx4/
Dqp.c1115 qp->ibqp.qp_num = qp->mqp.qpn; in mlx4_ib_create_qp()
1134 qp->ibqp.qp_num = init_attr->qp_type == IB_QPT_SMI ? 0 : 1; in mlx4_ib_create_qp()
1910 ibqp->qp_num, cur_state, new_state, in mlx4_ib_modify_qp()
1919 ibqp->qp_num, attr->port_num, cur_state, in mlx4_ib_modify_qp()
1934 ibqp->qp_num, attr->pkey_index, cur_state, in mlx4_ib_modify_qp()
1944 ibqp->qp_num, attr->max_rd_atomic, cur_state, in mlx4_ib_modify_qp()
1953 ibqp->qp_num, attr->max_dest_rd_atomic, cur_state, in mlx4_ib_modify_qp()
2196 mlx->flags |= cpu_to_be32((!sqp->qp.ibqp.qp_num ? MLX4_WQE_MLX_VL15 : 0) | in build_mlx_header()
2252 sqp->ud_header.lrh.virtual_lane = !sqp->qp.ibqp.qp_num ? 15 : 0; in build_mlx_header()
2257 if (!sqp->qp.ibqp.qp_num) in build_mlx_header()
[all …]
/drivers/infiniband/hw/nes/
Dnes_verbs.c1120 u32 qp_num = 0; in nes_create_qp() local
1163 nesadapter->max_qp, &qp_num, &nesadapter->next_qp, NES_RESOURCE_QP); in nes_create_qp()
1171 nes_free_resource(nesadapter, nesadapter->allocated_qps, qp_num); in nes_create_qp()
1186 nes_free_resource(nesadapter, nesadapter->allocated_qps, qp_num); in nes_create_qp()
1213 nes_free_resource(nesadapter, nesadapter->allocated_qps, qp_num); in nes_create_qp()
1228 nes_free_resource(nesadapter, nesadapter->allocated_qps, qp_num); in nes_create_qp()
1241 nes_free_resource(nesadapter, nesadapter->allocated_qps, qp_num); in nes_create_qp()
1251 nes_free_resource(nesadapter, nesadapter->allocated_qps, qp_num); in nes_create_qp()
1264 nesqp->hwqp.qp_id = qp_num; in nes_create_qp()
1265 nesqp->ibqp.qp_num = nesqp->hwqp.qp_id; in nes_create_qp()
[all …]
/drivers/infiniband/hw/usnic/
Dusnic_ib_qp_grp.c70 qp_grp->ibqp.qp_num, in usnic_ib_qp_grp_dump_rows()
718 qp_grp->ibqp.qp_num = qp_grp->grp_id; in usnic_ib_qp_grp_create()

12