Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_std_types_qp.c45 static int check_creation_flags(enum ib_qp_type qp_type, in check_creation_flags() argument
50 if (!create_flags || qp_type == IB_QPT_DRIVER) in check_creation_flags()
53 if (qp_type != IB_QPT_RAW_PACKET && qp_type != IB_QPT_UD) in check_creation_flags()
58 qp_type != IB_QPT_RAW_PACKET) in check_creation_flags()
108 ret = uverbs_get_const(&attr.qp_type, attrs, in UVERBS_HANDLER()
113 switch (attr.qp_type) { in UVERBS_HANDLER()
148 attr.qp_type == IB_QPT_XRC_INI)) in UVERBS_HANDLER()
180 if (attr.qp_type != IB_QPT_XRC_INI) { in UVERBS_HANDLER()
204 ret = check_creation_flags(attr.qp_type, attr.create_flags); in UVERBS_HANDLER()
221 attr.qp_type != IB_QPT_XRC_TGT) || in UVERBS_HANDLER()
[all …]
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()
Dcore_priv.h240 enum ib_qp_type qp_type);
295 enum ib_qp_type qp_type) in ib_mad_agent_security_setup() argument
327 enum ib_qp_type qp_type = attr->qp_type; in _ib_create_qp() local
343 qp->qp_type = attr->qp_type; in _ib_create_qp()
362 is_xrc = qp_type == IB_QPT_XRC_INI || qp_type == IB_QPT_XRC_TGT; in _ib_create_qp()
363 if ((qp_type < IB_QPT_MAX && !is_xrc) || qp_type == IB_QPT_DRIVER) { in _ib_create_qp()
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,
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()
690 enum ib_qp_type qp_type) in ib_mad_agent_security_setup() argument
703 if (qp_type != IB_QPT_SMI) in ib_mad_agent_security_setup()
729 if (agent->qp->qp_type == IB_QPT_SMI) { in ib_mad_agent_security_cleanup()
743 if (map->agent.qp->qp_type == IB_QPT_SMI) { in ib_mad_enforce_security()
Dcounters.c145 param->qp_type = qp->qp_type; in auto_mode_init_counter()
155 match &= (param->qp_type == qp->qp_type); in auto_mode_match()
412 if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in rdma_counter_get_qp()
/kernel/linux/linux-5.10/include/rdma/
Drdma_cm.h109 enum ib_qp_type qp_type; member
116 enum ib_qp_type qp_type, const char *caller);
120 enum ib_qp_type qp_type);
138 #define rdma_create_id(net, event_handler, context, ps, qp_type) \ argument
139 __rdma_create_kernel_id(net, event_handler, context, ps, qp_type, \
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_qp.c73 if (init->qp_type == IB_QPT_SMI || init->qp_type == IB_QPT_GSI) { in rxe_qp_chk_init()
81 if (init->qp_type == IB_QPT_SMI && port->qp_smi_index) { in rxe_qp_chk_init()
86 if (init->qp_type == IB_QPT_GSI && port->qp_gsi_index) { in rxe_qp_chk_init()
162 switch (init->qp_type) { in rxe_qp_init_misc()
251 if (init->qp_type == IB_QPT_RC) { in rxe_qp_init_req()
382 init->qp_type = qp->ibqp.qp_type; in rxe_qp_to_init()
399 if (!ib_modify_qp_is_ok(cur_state, new_state, qp_type(qp), mask)) { in rxe_qp_chk_attr()
484 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_reset()
526 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_reset()
539 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_drain()
[all …]
Drxe_loc.h152 static inline enum ib_qp_type qp_type(struct rxe_qp *qp) in qp_type() function
154 return qp->ibqp.qp_type; in qp_type()
164 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) in qp_mtu()
216 return rxe_wr_opcode_info[opcode].mask[qp->ibqp.qp_type]; in wr_opcode_mask()
246 if ((qp_type(qp) != IB_QPT_RC) && in rxe_xmit_packet()
Drxe_recv.c23 switch (qp_type(qp)) { in check_type_state()
93 if ((qp_type(qp) == IB_QPT_UD || qp_type(qp) == IB_QPT_GSI) && in check_keys()
116 if (qp_type(qp) != IB_QPT_RC && qp_type(qp) != IB_QPT_UC) in check_addr()
Drxe_resp.c123 switch (qp_type(qp)) { in check_psn()
164 switch (qp_type(qp)) { in check_op_seq()
254 switch (qp_type(qp)) { in check_op_valid()
378 switch (qp_type(qp)) { in check_length()
762 if (qp_type(qp) == IB_QPT_UD || in execute()
763 qp_type(qp) == IB_QPT_SMI || in execute()
764 qp_type(qp) == IB_QPT_GSI) { in execute()
804 } else if (qp_type(qp) == IB_QPT_RC) in execute()
925 else if (qp_type(qp) == IB_QPT_RC) in do_complete()
996 if (qp_type(qp) != IB_QPT_RC) in acknowledge()
[all …]
Drxe_av.c107 if (qp_type(pkt->qp) == IB_QPT_RC || qp_type(pkt->qp) == IB_QPT_UC) in rxe_get_av()
Drxe_req.c295 switch (qp_type(qp)) { in next_opcode()
345 if ((qp_type(qp) == IB_QPT_RC) || (qp_type(qp) == IB_QPT_UC)) in get_mtu()
492 if (qp_type(qp) == IB_QPT_RC) in update_wqe_state()
636 if (unlikely(qp_type(qp) == IB_QPT_RC && in rxe_requester()
665 if (qp_type(qp) == IB_QPT_UD) { in rxe_requester()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_qp.c162 if (hr_qp->ibqp.qp_type == IB_QPT_GSI) { in alloc_qpn()
261 if (hr_qp->ibqp.qp_type == IB_QPT_GSI && in alloc_qpc()
334 if (hr_qp->ibqp.qp_type == IB_QPT_GSI && in free_qpc()
347 if (hr_qp->ibqp.qp_type == IB_QPT_GSI) in free_qpn()
424 if (hr_qp->ibqp.qp_type == IB_QPT_GSI || in set_extend_sge_param()
425 hr_qp->ibqp.qp_type == IB_QPT_UD) { in set_extend_sge_param()
587 if (attr->qp_type == IB_QPT_XRC_TGT || !attr->cap.max_send_wr) in hns_roce_qp_has_sq()
595 if (attr->qp_type == IB_QPT_XRC_INI || in hns_roce_qp_has_rq()
596 attr->qp_type == IB_QPT_XRC_TGT || attr->srq || in hns_roce_qp_has_rq()
848 hr_qp->ibqp.qp_type = init_attr->qp_type; in set_qp_param()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dud.c97 sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? in ud_loopback()
98 IB_QPT_UD : sqp->ibqp.qp_type; in ud_loopback()
99 dqptype = qp->ibqp.qp_type == IB_QPT_GSI ? in ud_loopback()
100 IB_QPT_UD : qp->ibqp.qp_type; in ud_loopback()
240 if (qp->ibqp.qp_type == IB_QPT_GSI || qp->ibqp.qp_type == IB_QPT_SMI) { in ud_loopback()
241 if (sqp->ibqp.qp_type == IB_QPT_GSI || in ud_loopback()
242 sqp->ibqp.qp_type == IB_QPT_SMI) in ud_loopback()
252 if (wc.slid == 0 && sqp->ibqp.qp_type == IB_QPT_GSI) in ud_loopback()
284 if (qp->ibqp.qp_type == IB_QPT_GSI || qp->ibqp.qp_type == IB_QPT_SMI) in hfi1_make_bth_deth()
343 if (qp->ibqp.qp_type == IB_QPT_SMI) { in hfi1_make_ud_req_9B()
[all …]
Dqp.c312 switch (qp->ibqp.qp_type) { in hfi1_setup_wqe()
587 switch (qp->ibqp.qp_type) { in qp_to_sdma_engine()
609 switch (qp->ibqp.qp_type) { in qp_to_send_context()
661 qp_type_str[qp->ibqp.qp_type], in qp_iter_print()
807 if (qp->ibqp.qp_type == IB_QPT_RC) in notify_qp_reset()
930 (qp->ibqp.qp_type != IB_QPT_UC && in hfi1_qp_iter_cb()
931 qp->ibqp.qp_type != IB_QPT_RC) || in hfi1_qp_iter_cb()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dqp.c485 if (attr->qp_type == IB_QPT_XRC_INI || attr->qp_type == IB_QPT_XRC_TGT) in qp_has_rq()
712 if (init_attr->qp_type != IB_QPT_RAW_PACKET) { in _mlx4_ib_create_qp_rss()
714 init_attr->qp_type); in _mlx4_ib_create_qp_rss()
961 enum mlx4_ib_qp_type qp_type = (enum mlx4_ib_qp_type) init_attr->qp_type; in create_qp_common() local
970 if (init_attr->qp_type == IB_QPT_GSI) in create_qp_common()
971 qp_type = MLX4_IB_QPT_PROXY_GSI; in create_qp_common()
975 qp_type = MLX4_IB_QPT_PROXY_SMI_OWNER; in create_qp_common()
977 qp_type = MLX4_IB_QPT_PROXY_SMI; in create_qp_common()
992 qp_type = MLX4_IB_QPT_TUN_GSI; in create_qp_common()
996 qp_type = MLX4_IB_QPT_TUN_SMI_OWNER; in create_qp_common()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dqp.c73 static void get_cqs(enum ib_qp_type qp_type,
77 static int is_qp0(enum ib_qp_type qp_type) in is_qp0() argument
79 return qp_type == IB_QPT_SMI; in is_qp0()
82 static int is_sqp(enum ib_qp_type qp_type) in is_sqp() argument
84 return is_qp0(qp_type) || is_qp1(qp_type); in is_sqp()
416 switch (attr->qp_type) { in sq_overhead()
490 if (attr->qp_type == IB_QPT_RC) in get_send_sge()
495 else if (attr->qp_type == IB_QPT_XRC_INI) in get_send_sge()
583 if (attr->qp_type == IB_QPT_RAW_PACKET || in set_user_buf_size()
597 if (attr->qp_type == IB_QPT_XRC_INI || in qp_has_rq()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_ud.c73 sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback()
74 IB_QPT_UD : sqp->ibqp.qp_type; in qib_ud_loopback()
75 dqptype = qp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback()
76 IB_QPT_UD : qp->ibqp.qp_type; in qib_ud_loopback()
206 wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback()
345 if (qp->ibqp.qp_type == IB_QPT_SMI) in qib_make_ud_req()
364 bth0 |= qp->ibqp.qp_type == IB_QPT_SMI ? QIB_DEFAULT_P_KEY : in qib_make_ud_req()
365 qib_get_pkey(ibp, qp->ibqp.qp_type == IB_QPT_GSI ? in qib_make_ud_req()
565 wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_rcv()
Dqib_ruc.c271 if ((qp->ibqp.qp_type == IB_QPT_RC || in qib_do_send()
272 qp->ibqp.qp_type == IB_QPT_UC) && in qib_do_send()
279 if (qp->ibqp.qp_type == IB_QPT_RC) in qib_do_send()
281 else if (qp->ibqp.qp_type == IB_QPT_UC) in qib_do_send()
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c215 if (init_attr->qp_type != IB_QPT_RC && in pvrdma_create_qp()
216 init_attr->qp_type != IB_QPT_UD && in pvrdma_create_qp()
217 init_attr->qp_type != IB_QPT_GSI) { in pvrdma_create_qp()
219 init_attr->qp_type); in pvrdma_create_qp()
232 switch (init_attr->qp_type) { in pvrdma_create_qp()
378 cmd->qp_type = ib_qp_type_to_pvrdma(init_attr->qp_type); in pvrdma_create_qp()
553 if (!ib_modify_qp_is_ok(cur_state, next_state, ibqp->qp_type, in pvrdma_modify_qp()
746 if (qp->ibqp.qp_type != IB_QPT_UD && in pvrdma_post_send()
747 qp->ibqp.qp_type != IB_QPT_RC && in pvrdma_post_send()
754 } else if (qp->ibqp.qp_type == IB_QPT_UD || in pvrdma_post_send()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/
Dqedr.h410 enum ib_qp_type qp_type; member
619 if (qp->qp_type == IB_QPT_GSI || qp->qp_type == IB_QPT_XRC_TGT) in qedr_qp_has_sq()
627 if (qp->qp_type == IB_QPT_GSI || qp->qp_type == IB_QPT_XRC_INI || in qedr_qp_has_rq()
628 qp->qp_type == IB_QPT_XRC_TGT || qedr_qp_has_srq(qp)) in qedr_qp_has_rq()
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
Dqp.c470 rvt_reset_qp(rdi, qp, qp->ibqp.qp_type); in rvt_free_qp_cb()
734 if (qp->ibqp.qp_type == IB_QPT_SMI || in rvt_qp_mr_clean()
735 qp->ibqp.qp_type == IB_QPT_GSI) in rvt_qp_mr_clean()
1108 switch (init_attr->qp_type) { in rvt_create_qp()
1138 qp->allowed_ops = get_allowed_ops(init_attr->qp_type); in rvt_create_qp()
1141 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp()
1212 init_attr->qp_type, in rvt_create_qp()
1223 rvt_init_qp(rdi, qp, init_attr->qp_type); in rvt_create_qp()
1291 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp()
1481 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in rvt_modify_qp()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c1099 if ((attrs->qp_type != IB_QPT_GSI) && in ocrdma_check_qp_params()
1100 (attrs->qp_type != IB_QPT_RC) && in ocrdma_check_qp_params()
1101 (attrs->qp_type != IB_QPT_UC) && in ocrdma_check_qp_params()
1102 (attrs->qp_type != IB_QPT_UD)) { in ocrdma_check_qp_params()
1104 __func__, dev->id, attrs->qp_type); in ocrdma_check_qp_params()
1108 if ((attrs->qp_type != IB_QPT_GSI) && in ocrdma_check_qp_params()
1145 if (udata && attrs->qp_type == IB_QPT_GSI) { in ocrdma_check_qp_params()
1148 __func__, dev->id, attrs->qp_type); in ocrdma_check_qp_params()
1152 if (attrs->qp_type == IB_QPT_GSI && dev->gsi_qp_created) { in ocrdma_check_qp_params()
1158 if ((attrs->qp_type != IB_QPT_GSI) && (dev->gsi_qp_created)) { in ocrdma_check_qp_params()
[all …]

12345