Home
last modified time | relevance | path

Searched refs:qp_type (Results 1 – 25 of 44) sorted by relevance

12

/linux/drivers/infiniband/core/
H A Dcm_msgs.h38 enum ib_qp_type qp_type) in cm_req_set_qp_type() argument
40 switch (qp_type) { in cm_req_set_qp_type()
60 static inline __be32 cm_rep_get_qpn(struct cm_rep_msg *rep_msg, enum ib_qp_type qp_type) in cm_rep_get_qpn() argument
62 return (qp_type == IB_QPT_XRC_INI) ? in cm_rep_get_qpn()
H A Dcma_trace.h190 __field(unsigned long, qp_type)
204 __entry->qp_type = id_priv->id.qp_type;
207 __entry->qp_type = 0;
215 TP_printk("cm.id=%u src=%pISpc dst=%pISpc tos=%u pd.id=%u qp_type=%s"
219 rdma_show_qp_type(__entry->qp_type), __entry->send_wr,
H A Dverbs.c1216 qp->qp_type = real_qp->qp_type; in __ib_open_qp()
1230 if (qp_open_attr->qp_type != IB_QPT_XRC_TGT) in ib_open_qp()
1295 qp->qp_type = attr->qp_type; in create_qp()
1363 if (attr->qp_type == IB_QPT_XRC_TGT) in ib_create_qp_user()
1367 if (attr->qp_type != IB_QPT_XRC_TGT || IS_ERR(qp)) in ib_create_qp_user()
1823 return (qp->qp_type == IB_QPT_UC || in is_qp_type_connected()
1824 qp->qp_type == IB_QPT_RC || in is_qp_type_connected()
1825 qp->qp_type in is_qp_type_connected()
[all...]
H A Ducma.c289 if (ctx->cm_id->qp_type == IB_QPT_UD) in ucma_create_uevent()
427 static int ucma_get_qp_type(struct rdma_ucm_create_id *cmd, enum ib_qp_type *qp_type) in ucma_get_qp_type() argument
431 *qp_type = IB_QPT_RC; in ucma_get_qp_type()
435 *qp_type = IB_QPT_UD; in ucma_get_qp_type()
438 *qp_type = cmd->qp_type; in ucma_get_qp_type()
452 enum ib_qp_type qp_type; in ucma_create_id() local
461 ret = ucma_get_qp_type(&cmd, &qp_type); in ucma_create_id()
470 cm_id = rdma_create_user_id(ucma_event_handler, ctx, cmd.ps, qp_type); in ucma_create_id()
H A Dmad.c151 static int get_spl_qp_index(enum ib_qp_type qp_type) in get_spl_qp_index() argument
153 switch (qp_type) { in get_spl_qp_index()
243 enum ib_qp_type qp_type, in ib_register_mad_agent() argument
262 if ((qp_type == IB_QPT_SMI && !rdma_cap_ib_smi(device, port_num)) || in ib_register_mad_agent()
263 (qp_type == IB_QPT_GSI && !rdma_cap_ib_cm(device, port_num))) in ib_register_mad_agent()
267 qpn = get_spl_qp_index(qp_type); in ib_register_mad_agent()
270 __func__, qp_type); in ib_register_mad_agent()
340 if (qp_type == IB_QPT_SMI) { in ib_register_mad_agent()
429 ret2 = ib_mad_agent_security_setup(&mad_agent_priv->agent, qp_type); in ib_register_mad_agent()
3181 enum ib_qp_type qp_type) in create_mad_qp()
3179 create_mad_qp(struct ib_mad_qp_info * qp_info,enum ib_qp_type qp_type) create_mad_qp() argument
[all...]
H A Dnldev.c557 if (qp->qp_type == IB_QPT_RC || qp->qp_type == IB_QPT_UC) { in fill_res_qp_entry_query()
569 if (qp->qp_type == IB_QPT_RC || qp->qp_type == IB_QPT_UC || in fill_res_qp_entry_query()
570 qp->qp_type == IB_QPT_XRC_INI || qp->qp_type == IB_QPT_XRC_TGT) { in fill_res_qp_entry_query()
575 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_TYPE, qp->qp_type)) in fill_res_qp_entry_query()
647 if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_TYPE, cm_id->qp_type)) in fill_res_cm_id_entry()
961 nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_TYPE, m->param.qp_type)) in fill_stat_counter_mode()
/linux/include/rdma/
H A Drdma_cm.h127 enum ib_qp_type qp_type; member
135 enum ib_qp_type qp_type, const char *caller);
139 enum ib_qp_type qp_type);
157 #define rdma_create_id(net, event_handler, context, ps, qp_type) \ argument
158 __rdma_create_kernel_id(net, event_handler, context, ps, qp_type, \
H A Dib_cm.h106 enum ib_qp_type qp_type; member
357 enum ib_qp_type qp_type; member
H A Drdma_counter.h19 int qp_type; member
/linux/drivers/infiniband/hw/mana/
H A Dwr.c78 switch (ibqp->qp_type) { in mana_ib_post_send_ud()
138 qp->ibqp.qp_type == IB_QPT_GSI ? IB_QP1_QKEY : wr->remote_qkey; in mana_ib_post_send_ud()
195 switch (ibqp->qp_type) {
/linux/drivers/infiniband/hw/hfi1/
H A Dud.c55 sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? in ud_loopback()
56 IB_QPT_UD : sqp->ibqp.qp_type; in ud_loopback()
57 dqptype = qp->ibqp.qp_type == IB_QPT_GSI ? in ud_loopback()
58 IB_QPT_UD : qp->ibqp.qp_type; in ud_loopback()
198 if (qp->ibqp.qp_type == IB_QPT_GSI || qp->ibqp.qp_type == IB_QPT_SMI) { in ud_loopback()
199 if (sqp->ibqp.qp_type == IB_QPT_GSI || in ud_loopback()
200 sqp->ibqp.qp_type == IB_QPT_SMI) in ud_loopback()
210 if (wc.slid == 0 && sqp->ibqp.qp_type == IB_QPT_GSI) in ud_loopback()
242 if (qp->ibqp.qp_type == IB_QPT_GSI || qp->ibqp.qp_type == IB_QPT_SMI) in hfi1_make_bth_deth()
301 if (qp->ibqp.qp_type == IB_QPT_SMI) { in hfi1_make_ud_req_9B()
[all …]
H A Dopfn.c252 if (ibqp->qp_type == IB_QPT_RC && HFI1_CAP_IS_KSET(TID_RDMA)) { in opfn_qp_init()
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_rdma.h95 enum qed_rdma_qp_type qp_type; member
165 if (qp->qp_type == QED_RDMA_QP_TYPE_XRC_TGT || in qed_rdma_is_xrc_qp()
166 qp->qp_type == QED_RDMA_QP_TYPE_XRC_INI) in qed_rdma_is_xrc_qp()
/linux/drivers/infiniband/sw/rxe/
H A Drxe_av.c142 if (qp_type(pkt->qp) == IB_QPT_RC || qp_type(pkt->qp) == IB_QPT_UC) in rxe_get_av()
H A Drxe_net.c181 if (qp_type(qp) == IB_QPT_RC) in rxe_find_route()
211 if (dst && (qp_type(qp) == IB_QPT_RC)) { in rxe_find_route()
/linux/drivers/infiniband/hw/mlx4/
H A Dmad.c734 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
814 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
1323 size = (tun_qp->qp->qp_type == IB_QPT_UD) ? in mlx4_ib_post_pv_qp_buf()
1603 enum ib_qp_type qp_type, int is_tun) in mlx4_ib_alloc_pv_bufs() argument
1610 if (qp_type > IB_QPT_GSI) in mlx4_ib_alloc_pv_bufs()
1613 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_alloc_pv_bufs()
1668 tun_qp->proxy_qpt = qp_type; in mlx4_ib_alloc_pv_bufs()
1695 enum ib_qp_type qp_type, int is_tun) in mlx4_ib_free_pv_qp_bufs() argument
1702 if (qp_type > IB_QPT_GSI) in mlx4_ib_free_pv_qp_bufs()
1705 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_free_pv_qp_bufs()
[all …]
/linux/drivers/infiniband/sw/rdmavt/
H A Dtrace_tx.h76 __entry->qpt = qp->ibqp.qp_type;
135 __entry->qpt = qp->ibqp.qp_type;
/linux/include/linux/mlx5/
H A Dmlx5_ifc_fpga.h41 u8 qp_type[0x2]; member
184 u8 qp_type[0x1]; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dconn.h91 enum mlx5_ifc_fpga_qp_type qp_type);
H A Dconn.c806 enum mlx5_ifc_fpga_qp_type qp_type) in mlx5_fpga_conn_create() argument
881 MLX5_SET(fpga_qpc, conn->fpga_qpc, qp_type, qp_type); in mlx5_fpga_conn_create()
/linux/drivers/infiniband/hw/mlx5/
H A Dgsi.c140 hw_init_attr.qp_type = MLX5_IB_QPT_HW_GSI; in mlx5_ib_create_gsi()
213 .qp_type = IB_QPT_UD, in create_gsi_ud_qp()
/linux/drivers/infiniband/hw/erdma/
H A Derdma_qp.c97 if (params->qp_type == ERDMA_QP_PASSIVE) in erdma_modify_qp_state_to_rts()
463 if (qp->ibqp.qp_type != IB_QPT_RC && send_wr->opcode != IB_WR_SEND && in erdma_push_one_sqe()
540 if (qp->ibqp.qp_type == IB_QPT_RC) { in erdma_push_one_sqe()
H A Derdma_verbs.c58 if (qp->ibqp.qp_type == IB_QPT_RC) in create_qp_cmd()
456 if (erdma_device_iwarp(dev) && attrs->qp_type != IB_QPT_RC) in erdma_dealloc_pd()
459 if (erdma_device_rocev2(dev) && attrs->qp_type != IB_QPT_RC && in erdma_flush_worker()
460 attrs->qp_type != IB_QPT_UD && attrs->qp_type != IB_QPT_GSI) in erdma_flush_worker()
1086 if (qp->ibqp.qp_type == IB_QPT_GSI) { in erdma_create_qp()
1813 if (!ib_modify_qp_is_ok(cur_state, nxt_state, qp->ibqp.qp_type, in erdma_init_mod_qp_params_rocev2()
1984 if (qp->ibqp.qp_type == IB_QPT_RC) in erdma_create_cq()
/linux/include/uapi/rdma/
H A Drdma_user_cm.h96 __u8 qp_type; member
/linux/drivers/infiniband/hw/irdma/
H A Dverbs.c842 if (iwqp->ibqp.qp_type == IB_QPT_GSI && iwqp->ibqp.qp_num != 1) in irdma_roce_fill_and_set_qpctx_info()
913 if (init_attr->qp_type != IB_QPT_RC && in irdma_flush_worker()
914 init_attr->qp_type != IB_QPT_UD && in irdma_flush_worker()
915 init_attr->qp_type != IB_QPT_GSI) in irdma_flush_worker()
918 if (init_attr->qp_type != IB_QPT_RC) in irdma_setup_gsi_qp_rsrc()
1053 if (init_attr->qp_type == IB_QPT_GSI) { in irdma_create_qp()
1103 if (init_attr->qp_type == IB_QPT_RC) { in irdma_create_qp()
1531 iwqp->ibqp.qp_type, attr_mask)) { in irdma_modify_qp_roce()
4203 if (iwqp->ibqp.qp_type == IB_QPT_UD || in irdma_post_send()
4204 iwqp->ibqp.qp_type in irdma_post_send()
[all...]

12