Home
last modified time | relevance | path

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

1234

/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()
/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
/linux/drivers/infiniband/hw/mlx4/
H A Dqp.c522 if (attr->qp_type == IB_QPT_XRC_INI || attr->qp_type == IB_QPT_XRC_TGT) in qp_has_rq()
749 if (init_attr->qp_type != IB_QPT_RAW_PACKET) { in _mlx4_ib_create_qp_rss()
751 init_attr->qp_type); in _mlx4_ib_create_qp_rss()
1002 enum mlx4_ib_qp_type qp_type = (enum mlx4_ib_qp_type) init_attr->qp_type; in create_qp_common() local
1011 if (init_attr->qp_type == IB_QPT_GSI) in create_qp_common()
1012 qp_type = MLX4_IB_QPT_PROXY_GSI; in create_qp_common()
1016 qp_type = MLX4_IB_QPT_PROXY_SMI_OWNER; in create_qp_common()
1018 qp_type = MLX4_IB_QPT_PROXY_SMI; in create_qp_common()
1033 qp_type = MLX4_IB_QPT_TUN_GSI; in create_qp_common()
1037 qp_type = MLX4_IB_QPT_TUN_SMI_OWNER; in create_qp_common()
[all …]
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/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 Dqp.c270 switch (qp->ibqp.qp_type) { in hfi1_setup_wqe()
546 switch (qp->ibqp.qp_type) { in qp_to_sdma_engine()
568 switch (qp->ibqp.qp_type) { in qp_to_send_context()
620 qp_type_str[qp->ibqp.qp_type], in qp_iter_print()
766 if (qp->ibqp.qp_type == IB_QPT_RC) in notify_qp_reset()
889 (qp->ibqp.qp_type != IB_QPT_UC && in hfi1_qp_iter_cb()
890 qp->ibqp.qp_type != IB_QPT_RC) || in hfi1_qp_iter_cb()
/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_recv.c24 switch (qp_type(qp)) { in check_type_state()
88 if (qp_type(qp) == IB_QPT_UD || qp_type(qp) == IB_QPT_GSI) { in check_keys()
105 if (qp_type(qp) != IB_QPT_RC && qp_type(qp) != IB_QPT_UC) in check_addr()
H A Drxe_resp.c76 switch (qp_type(qp)) { in check_psn()
117 switch (qp_type(qp)) { in check_op_seq()
231 switch (qp_type(qp)) { in check_op_valid()
347 if ((qp_type(qp) == IB_QPT_GSI) || (qp_type(qp) == IB_QPT_UD)) { in rxe_resp_check_length()
360 if (pkt->mask & RXE_PAYLOAD_MASK && ((qp_type(qp) == IB_QPT_RC) || in rxe_resp_check_length()
361 (qp_type(qp) == IB_QPT_UC))) { in rxe_resp_check_length()
1005 if (qp_type(qp) == IB_QPT_UD || in execute()
1006 qp_type(qp) == IB_QPT_GSI) { in execute()
1063 else if (qp_type(qp) == IB_QPT_RC) in execute()
1177 if (qp_type(qp) == IB_QPT_RC) in do_complete()
[all …]
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/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_qp.c214 if (init_attr->qp_type != IB_QPT_RC && in pvrdma_create_qp()
215 init_attr->qp_type != IB_QPT_UD && in pvrdma_create_qp()
216 init_attr->qp_type != IB_QPT_GSI) { in pvrdma_create_qp()
218 init_attr->qp_type); in pvrdma_create_qp()
231 switch (init_attr->qp_type) { in pvrdma_create_qp()
371 cmd->qp_type = ib_qp_type_to_pvrdma(init_attr->qp_type); in pvrdma_create_qp()
545 if (!ib_modify_qp_is_ok(cur_state, next_state, ibqp->qp_type, in pvrdma_modify_qp()
730 if (qp->ibqp.qp_type != IB_QPT_UD && in pvrdma_post_send()
731 qp->ibqp.qp_type != IB_QPT_RC && in pvrdma_post_send()
738 } else if (qp->ibqp.qp_type == IB_QPT_UD || in pvrdma_post_send()
[all …]
/linux/drivers/infiniband/hw/mana/
H A Dqp.c411 switch (attr->qp_type) { in mana_ib_queue_size()
432 switch (attr->qp_type) { in mana_ib_queue_type()
492 switch (qp->ibqp.qp_type) { in mana_table_store_qp()
500 qp->ibqp.qp_type); in mana_table_store_qp()
509 switch (qp->ibqp.qp_type) { in mana_table_remove_qp()
519 qp->ibqp.qp_type); in mana_table_remove_qp()
670 err = mana_ib_gd_create_ud_qp(mdev, qp, attr, doorbell, attr->qp_type); in mana_ib_create_ud_qp()
703 switch (attr->qp_type) { in mana_ib_create_qp()
718 attr->qp_type); in mana_ib_create_qp()
799 switch (ibqp->qp_type) { in mana_ib_modify_qp()
[all …]
/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/rdmavt/
H A Dqp.c429 rvt_reset_qp(rdi, qp, qp->ibqp.qp_type); in rvt_free_qp_cb()
691 if (qp->ibqp.qp_type == IB_QPT_SMI || in rvt_qp_mr_clean()
692 qp->ibqp.qp_type == IB_QPT_GSI) in rvt_qp_mr_clean()
1067 switch (init_attr->qp_type) { in rvt_create_qp()
1095 qp->allowed_ops = get_allowed_ops(init_attr->qp_type); in rvt_create_qp()
1098 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp()
1164 init_attr->qp_type, in rvt_create_qp()
1174 rvt_init_qp(rdi, qp, init_attr->qp_type); in rvt_create_qp()
1236 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp()
1424 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in rvt_modify_qp()
[all …]
H A Dtrace_tx.h76 __entry->qpt = qp->ibqp.qp_type;
135 __entry->qpt = qp->ibqp.qp_type;
/linux/drivers/infiniband/hw/mlx5/
H A Dqp.c86 static void get_cqs(enum ib_qp_type qp_type,
90 static int is_qp0(enum ib_qp_type qp_type) in is_qp0() argument
92 return qp_type == IB_QPT_SMI; in is_qp0()
95 static int is_sqp(enum ib_qp_type qp_type) in is_sqp() argument
97 return is_qp0(qp_type) || is_qp1(qp_type); in is_sqp()
498 switch (attr->qp_type) { in sq_overhead()
572 if (attr->qp_type == IB_QPT_RC) in get_send_sge()
577 else if (attr->qp_type == IB_QPT_XRC_INI) in get_send_sge()
665 if (attr->qp_type == IB_QPT_RAW_PACKET || in set_user_buf_size()
679 if (attr->qp_type == IB_QPT_XRC_INI || in qp_has_rq()
[all …]
/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_verbs.c1105 if ((attrs->qp_type != IB_QPT_GSI) && in ocrdma_check_qp_params()
1106 (attrs->qp_type != IB_QPT_RC) && in ocrdma_check_qp_params()
1107 (attrs->qp_type != IB_QPT_UC) && in ocrdma_check_qp_params()
1108 (attrs->qp_type != IB_QPT_UD)) { in ocrdma_check_qp_params()
1110 __func__, dev->id, attrs->qp_type); in ocrdma_check_qp_params()
1114 if ((attrs->qp_type != IB_QPT_GSI) && in ocrdma_check_qp_params()
1151 if (udata && attrs->qp_type == IB_QPT_GSI) { in ocrdma_check_qp_params()
1154 __func__, dev->id, attrs->qp_type); in ocrdma_check_qp_params()
1158 if (attrs->qp_type == IB_QPT_GSI && dev->gsi_qp_created) { in ocrdma_check_qp_params()
1164 if ((attrs->qp_type != IB_QPT_GSI) && (dev->gsi_qp_created)) { in ocrdma_check_qp_params()
[all …]
/linux/drivers/infiniband/hw/qedr/
H A Dverbs.c1198 if (attrs->qp_type != IB_QPT_RC && in qedr_check_qp_attrs()
1199 attrs->qp_type != IB_QPT_GSI && in qedr_check_qp_attrs()
1200 attrs->qp_type != IB_QPT_XRC_INI && in qedr_check_qp_attrs()
1201 attrs->qp_type != IB_QPT_XRC_TGT) { in qedr_check_qp_attrs()
1204 attrs->qp_type); in qedr_check_qp_attrs()
1239 if ((attrs->qp_type != IB_QPT_GSI) && (dev->gsi_qp_created) && in qedr_check_qp_attrs()
1240 (attrs->qp_type != IB_QPT_XRC_TGT) && in qedr_check_qp_attrs()
1241 (attrs->qp_type != IB_QPT_XRC_INI)) { in qedr_check_qp_attrs()
1356 qp->qp_type = attrs->qp_type; in qedr_set_common_qp_params()
1387 pd->pd_id, qp->qp_type, qp->max_inline_data, in qedr_set_common_qp_params()
[all …]
/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/usnic/
H A Dusnic_ib_verbs.c405 switch (qp_grp->ibqp.qp_type) { in usnic_ib_query_qp()
410 usnic_err("Unexpected qp_type %d\n", qp_grp->ibqp.qp_type); in usnic_ib_query_qp()
493 if (init_attr->qp_type != IB_QPT_UD) { in usnic_ib_create_qp()
495 dev_name(&us_ibdev->ib_dev.dev), init_attr->qp_type); in usnic_ib_create_qp()

1234