Home
last modified time | relevance | path

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

123

/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.h189 __field(unsigned long, qp_type)
203 __entry->qp_type = id_priv->id.qp_type;
206 __entry->qp_type = 0;
218 rdma_show_qp_type(__entry->qp_type), __entry->send_wr,
H A Dsecurity.c580 bool special_qp = (real_qp->qp_type == IB_QPT_SMI || in ib_security_modify_qp()
581 real_qp->qp_type == IB_QPT_GSI || in ib_security_modify_qp()
582 real_qp->qp_type >= IB_QPT_RESERVED1); in ib_security_modify_qp()
687 enum ib_qp_type qp_type) in ib_mad_agent_security_setup() argument
700 if (qp_type != IB_QPT_SMI) in ib_mad_agent_security_setup()
726 if (agent->qp->qp_type == IB_QPT_SMI) { in ib_mad_agent_security_cleanup()
740 if (map->agent.qp->qp_type == IB_QPT_SMI) { in ib_mad_enforce_security()
H A Drestrack.c203 if (qp->qp_type == IB_QPT_SMI || qp->qp_type == IB_QPT_GSI) in rdma_restrack_add()
209 if (qp->qp_type >= IB_QPT_DRIVER) in rdma_restrack_add()
H A Dcore_priv.h241 enum ib_qp_type qp_type);
296 enum ib_qp_type qp_type) in ib_mad_agent_security_setup() argument
H A Dcma.c1012 enum ib_qp_type qp_type, const struct rdma_id_private *parent) in __rdma_create_id() argument
1025 id_priv->id.qp_type = qp_type; in __rdma_create_id()
1054 enum ib_qp_type qp_type, const char *caller) in __rdma_create_kernel_id() argument
1058 ret = __rdma_create_id(net, event_handler, context, ps, qp_type, NULL); in __rdma_create_kernel_id()
1070 enum ib_qp_type qp_type) in rdma_create_user_id() argument
1075 ps, qp_type, NULL); in rdma_create_user_id()
1143 if (id->qp_type == IB_QPT_UD) in rdma_create_qp()
1276 if (id_priv->id.qp_type == IB_QPT_UD) { in cma_ib_init_qp_attr()
1298 if (!id_priv->cm_id.ib || (id_priv->id.qp_type == IB_QPT_UD)) in rdma_init_qp_attr()
2210 (id_priv->id.qp_type != IB_QPT_UD)) { in cma_ib_handler()
[all …]
H A Dcm.c233 enum ib_qp_type qp_type; member
1125 if (cm_id_priv->qp_type == IB_QPT_XRC_TGT) { in cm_destroy_id()
1364 cm_req_set_qp_type(req_msg, param->qp_type); in cm_format_req()
1375 if (param->qp_type != IB_QPT_XRC_INI) { in cm_format_req()
1495 if (param->qp_type != IB_QPT_RC && param->qp_type != IB_QPT_UC && in cm_validate_req_param()
1496 param->qp_type != IB_QPT_XRC_INI) in cm_validate_req_param()
1565 cm_id_priv->qp_type = param->qp_type; in ib_send_cm_req()
1842 param->qp_type = cm_req_get_qp_type(req_msg); in cm_format_req_event()
2128 cm_id_priv->qp_type = cm_req_get_qp_type(req_msg); in cm_req_handler()
2269 if (cm_id_priv->qp_type != IB_QPT_XRC_TGT) { in cm_format_rep()
[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()
3148 enum ib_qp_type qp_type) in create_mad_qp() argument
[all …]
/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/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 …]
/linux/drivers/infiniband/sw/rxe/
H A Drxe_qp.c113 switch (init->qp_type) { in rxe_qp_chk_init()
131 if (init->qp_type == IB_QPT_GSI) { in rxe_qp_chk_init()
139 if (init->qp_type == IB_QPT_GSI && port->qp_gsi_index) { in rxe_qp_chk_init()
209 switch (init->qp_type) { in rxe_qp_init_misc()
320 if (init->qp_type == IB_QPT_RC) { in rxe_qp_init_req()
481 init->qp_type = qp->ibqp.qp_type; in rxe_qp_to_init()
501 if (!(qp_type(qp) == IB_QPT_RC || qp_type(qp) == IB_QPT_UC)) in rxe_qp_chk_attr()
638 if (!ib_modify_qp_is_ok(cur_state, new_state, qp_type(qp), mask)) in __qp_chk_state()
867 if (qp_type(qp) == IB_QPT_RC && qp->retrans_timer.function && in rxe_qp_do_cleanup()
911 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_do_cleanup()
H A Drxe_av.c142 if (qp_type(pkt->qp) == IB_QPT_RC || qp_type(pkt->qp) == IB_QPT_UC) in rxe_get_av()
/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/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);
/linux/drivers/infiniband/hw/efa/
H A Defa_verbs.c390 qp_init_attr->qp_type = ibqp->qp_type; in efa_query_qp()
658 if (init_attr->qp_type != IB_QPT_DRIVER && in efa_qp_validate_attr()
659 init_attr->qp_type != IB_QPT_UD) { in efa_qp_validate_attr()
661 "Unsupported qp type %d\n", init_attr->qp_type); in efa_qp_validate_attr()
726 if (init_attr->qp_type == IB_QPT_UD) { in efa_create_qp()
727 create_qp_params.qp_type = EFA_ADMIN_QP_TYPE_UD; in efa_create_qp()
729 create_qp_params.qp_type = EFA_ADMIN_QP_TYPE_SRD; in efa_create_qp()
733 init_attr->qp_type, cmd.driver_qp_type); in efa_create_qp()
739 init_attr->qp_type, cmd.driver_qp_type); in efa_create_qp()
947 if (qp->ibqp.qp_type == IB_QPT_DRIVER) in efa_modify_qp_validate()
/linux/drivers/infiniband/hw/ionic/
H A Dionic_controlpath.c1344 .type_state = to_ionic_qp_type(attr->qp_type), in ionic_create_qp_cmd()
1450 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) in ionic_modify_qp_cmd()
2165 if (attr->qp_type == IB_QPT_SMI || attr->qp_type > IB_QPT_UD) in ionic_create_qp()
2180 if (attr->qp_type == IB_QPT_GSI) { in ionic_create_qp()
2203 qp->has_ah = attr->qp_type == IB_QPT_RC; in ionic_create_qp()
2550 if (!ib_modify_qp_is_ok(cur_state, next_state, qp->ibqp.qp_type, mask)) in ionic_check_modify_qp()
2623 init_attr->qp_type = ibqp->qp_type; in ionic_query_qp()
/linux/drivers/infiniband/hw/bnxt_re/
H A Dib_verbs.c1035 if (ib_qp->qp_type == IB_QPT_GSI && rdev->gsi_ctx.gsi_sqp) in bnxt_re_destroy_qp()
1586 qptype = __from_ib_qp_type(init_attr->qp_type); in bnxt_re_init_qp_type()
1594 init_attr->qp_type == IB_QPT_GSI) in bnxt_re_init_qp_type()
1661 if (init_attr->qp_type == IB_QPT_RC) { in bnxt_re_init_qp_attr()
1691 if (init_attr->qp_type == IB_QPT_GSI) in bnxt_re_init_qp_attr()
1698 if (init_attr->qp_type == IB_QPT_GSI) in bnxt_re_init_qp_attr()
1872 if (qp_init_attr->qp_type == IB_QPT_GSI && in bnxt_re_create_qp()
1909 if (qp_init_attr->qp_type == IB_QPT_GSI) in bnxt_re_create_qp()
1920 if (qp_init_attr->qp_type == IB_QPT_RC) { in bnxt_re_create_qp()
1924 } else if (qp_init_attr->qp_type == IB_QPT_UD) { in bnxt_re_create_qp()
[all …]
/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/hns/
H A Dhns_roce_hw_v2.c745 if (ibqp->qp_type == IB_QPT_RC) in hns_roce_v2_post_send()
3020 qp_init_attr.qp_type = IB_QPT_RC; in free_mr_alloc_res()
3066 hr_qp->ibqp.qp_type = IB_QPT_RC; in free_mr_modify_rsv_qp()
4583 hr_reg_write(context, QPC_TST, to_hr_qp_type(ibqp->qp_type)); in modify_qp_reset_to_init()
4594 if (ibqp->qp_type == IB_QPT_XRC_TGT) { in modify_qp_reset_to_init()
4639 hr_reg_write(context, QPC_TST, to_hr_qp_type(ibqp->qp_type)); in modify_qp_init_to_init()
4796 if (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_UD) in get_mtu()
4945 if (udata && ibqp->qp_type == IB_QPT_RC && in modify_qp_init_to_rtr()
4954 (ibqp->qp_type == IB_QPT_RC || ibqp->qp_type == IB_QPT_XRC_TGT) && in modify_qp_init_to_rtr()
5597 if (ibqp->qp_type == IB_QPT_XRC_TGT) in v2_set_flushed_fields()
[all …]

123