/linux-6.1.9/drivers/infiniband/core/ |
D | uverbs_std_types_qp.c | 45 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 …]
|
D | cm_msgs.h | 38 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()
|
D | cma_trace.h | 189 __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,
|
D | security.c | 580 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()
|
D | counters.c | 88 param->qp_type = qp->qp_type; in auto_mode_init_counter() 232 match &= (param->qp_type == qp->qp_type); in auto_mode_match() 454 if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in rdma_counter_get_qp()
|
/linux-6.1.9/include/rdma/ |
D | rdma_cm.h | 120 enum ib_qp_type qp_type; member 128 enum ib_qp_type qp_type, const char *caller); 132 enum ib_qp_type qp_type); 150 #define rdma_create_id(net, event_handler, context, ps, qp_type) \ argument 151 __rdma_create_kernel_id(net, event_handler, context, ps, qp_type, \
|
/linux-6.1.9/drivers/infiniband/sw/rxe/ |
D | rxe_qp.c | 65 switch (init->qp_type) { in rxe_qp_chk_init() 83 if (init->qp_type == IB_QPT_GSI) { in rxe_qp_chk_init() 91 if (init->qp_type == IB_QPT_GSI && port->qp_gsi_index) { in rxe_qp_chk_init() 161 switch (init->qp_type) { in rxe_qp_init_misc() 251 if (init->qp_type == IB_QPT_RC) { in rxe_qp_init_req() 387 init->qp_type = qp->ibqp.qp_type; in rxe_qp_to_init() 404 if (!ib_modify_qp_is_ok(cur_state, new_state, qp_type(qp), mask)) { in rxe_qp_chk_attr() 488 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_reset() 532 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_reset() 545 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_drain() [all …]
|
D | rxe_loc.h | 123 static inline enum ib_qp_type qp_type(struct rxe_qp *qp) in qp_type() function 125 return qp->ibqp.qp_type; in qp_type() 135 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) in qp_mtu() 188 return rxe_wr_opcode_info[opcode].mask[qp->ibqp.qp_type]; in wr_opcode_mask()
|
D | rxe_recv.c | 23 switch (qp_type(qp)) { in check_type_state() 80 if (qp_type(qp) == IB_QPT_UD || qp_type(qp) == IB_QPT_GSI) { in check_keys() 97 if (qp_type(qp) != IB_QPT_RC && qp_type(qp) != IB_QPT_UC) in check_addr()
|
D | rxe_resp.c | 128 switch (qp_type(qp)) { in check_psn() 169 switch (qp_type(qp)) { in check_op_seq() 259 switch (qp_type(qp)) { in check_op_valid() 393 switch (qp_type(qp)) { in check_length() 865 if (qp_type(qp) == IB_QPT_UD || in execute() 866 qp_type(qp) == IB_QPT_GSI) { in execute() 919 else if (qp_type(qp) == IB_QPT_RC) in execute() 1023 if (qp_type(qp) == IB_QPT_RC) in do_complete() 1069 if (qp_type(qp) != IB_QPT_RC) in acknowledge() 1355 if (qp_type(qp) == IB_QPT_RC) { in rxe_responder() [all …]
|
D | rxe_av.c | 113 if (qp_type(pkt->qp) == IB_QPT_RC || qp_type(pkt->qp) == IB_QPT_UC) in rxe_get_av()
|
D | rxe_req.c | 325 switch (qp_type(qp)) { in next_opcode() 374 if ((qp_type(qp) == IB_QPT_RC) || (qp_type(qp) == IB_QPT_UC)) in get_mtu() 497 if (qp_type(qp) == IB_QPT_RC) in update_wqe_state() 691 if (unlikely(qp_type(qp) == IB_QPT_RC && in rxe_requester() 720 if (qp_type(qp) == IB_QPT_UD) { in rxe_requester()
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | ud.c | 55 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 …]
|
D | qp.c | 270 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-6.1.9/drivers/infiniband/hw/mlx4/ |
D | qp.c | 485 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 …]
|
/linux-6.1.9/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 219 if (hr_qp->ibqp.qp_type == IB_QPT_GSI) { in alloc_qpn() 358 if (hr_qp->ibqp.qp_type != IB_QPT_XRC_TGT) in hns_roce_qp_remove() 361 if (hr_qp->ibqp.qp_type != IB_QPT_XRC_INI && in hns_roce_qp_remove() 362 hr_qp->ibqp.qp_type != IB_QPT_XRC_TGT) in hns_roce_qp_remove() 389 if (hr_qp->ibqp.qp_type == IB_QPT_GSI) in free_qpn() 467 hr_qp->ibqp.qp_type != IB_QPT_UD && in set_rq_size() 468 hr_qp->ibqp.qp_type != IB_QPT_GSI) in set_rq_size() 497 if (!(hr_qp->ibqp.qp_type == IB_QPT_GSI || in update_inline_data() 498 hr_qp->ibqp.qp_type == IB_QPT_UD)) in update_inline_data() 541 bool is_ud_or_gsi = (hr_qp->ibqp.qp_type == IB_QPT_GSI || in set_ext_sge_param() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/qib/ |
D | qib_ud.c | 73 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() 346 if (qp->ibqp.qp_type == IB_QPT_SMI) in qib_make_ud_req() 365 bth0 |= qp->ibqp.qp_type == IB_QPT_SMI ? QIB_DEFAULT_P_KEY : in qib_make_ud_req() 366 qib_get_pkey(ibp, qp->ibqp.qp_type == IB_QPT_GSI ? in qib_make_ud_req() 566 wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_rcv()
|
D | qib_ruc.c | 271 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()
|
/linux-6.1.9/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_qp.c | 214 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() 738 if (qp->ibqp.qp_type != IB_QPT_UD && in pvrdma_post_send() 739 qp->ibqp.qp_type != IB_QPT_RC && in pvrdma_post_send() 746 } else if (qp->ibqp.qp_type == IB_QPT_UD || in pvrdma_post_send() [all …]
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/ |
D | qed_rdma.h | 95 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-6.1.9/drivers/infiniband/hw/qedr/ |
D | qedr.h | 410 enum ib_qp_type qp_type; member 621 if (qp->qp_type == IB_QPT_GSI || qp->qp_type == IB_QPT_XRC_TGT) in qedr_qp_has_sq() 629 if (qp->qp_type == IB_QPT_GSI || qp->qp_type == IB_QPT_XRC_INI || in qedr_qp_has_rq() 630 qp->qp_type == IB_QPT_XRC_TGT || qedr_qp_has_srq(qp)) in qedr_qp_has_rq()
|
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | qp.c | 74 static void get_cqs(enum ib_qp_type qp_type, 78 static int is_qp0(enum ib_qp_type qp_type) in is_qp0() argument 80 return qp_type == IB_QPT_SMI; in is_qp0() 83 static int is_sqp(enum ib_qp_type qp_type) in is_sqp() argument 85 return is_qp0(qp_type) || is_qp1(qp_type); in is_sqp() 417 switch (attr->qp_type) { in sq_overhead() 491 if (attr->qp_type == IB_QPT_RC) in get_send_sge() 496 else if (attr->qp_type == IB_QPT_XRC_INI) in get_send_sge() 584 if (attr->qp_type == IB_QPT_RAW_PACKET || in set_user_buf_size() 598 if (attr->qp_type == IB_QPT_XRC_INI || in qp_has_rq() [all …]
|
/linux-6.1.9/drivers/infiniband/sw/rdmavt/ |
D | qp.c | 429 rvt_reset_qp(rdi, qp, qp->ibqp.qp_type); in rvt_free_qp_cb() 694 if (qp->ibqp.qp_type == IB_QPT_SMI || in rvt_qp_mr_clean() 695 qp->ibqp.qp_type == IB_QPT_GSI) in rvt_qp_mr_clean() 1070 switch (init_attr->qp_type) { in rvt_create_qp() 1098 qp->allowed_ops = get_allowed_ops(init_attr->qp_type); in rvt_create_qp() 1101 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp() 1168 init_attr->qp_type, in rvt_create_qp() 1178 rvt_init_qp(rdi, qp, init_attr->qp_type); in rvt_create_qp() 1240 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp() 1428 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in rvt_modify_qp() [all …]
|
D | trace_tx.h | 76 __entry->qpt = qp->ibqp.qp_type; 135 __entry->qpt = qp->ibqp.qp_type;
|
/linux-6.1.9/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 1101 if ((attrs->qp_type != IB_QPT_GSI) && in ocrdma_check_qp_params() 1102 (attrs->qp_type != IB_QPT_RC) && in ocrdma_check_qp_params() 1103 (attrs->qp_type != IB_QPT_UC) && in ocrdma_check_qp_params() 1104 (attrs->qp_type != IB_QPT_UD)) { in ocrdma_check_qp_params() 1106 __func__, dev->id, attrs->qp_type); in ocrdma_check_qp_params() 1110 if ((attrs->qp_type != IB_QPT_GSI) && in ocrdma_check_qp_params() 1147 if (udata && attrs->qp_type == IB_QPT_GSI) { in ocrdma_check_qp_params() 1150 __func__, dev->id, attrs->qp_type); in ocrdma_check_qp_params() 1154 if (attrs->qp_type == IB_QPT_GSI && dev->gsi_qp_created) { in ocrdma_check_qp_params() 1160 if ((attrs->qp_type != IB_QPT_GSI) && (dev->gsi_qp_created)) { in ocrdma_check_qp_params() [all …]
|