/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() 200 match &= (param->qp_type == qp->qp_type); in auto_mode_match() 422 if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in rdma_counter_get_qp()
|
/drivers/infiniband/sw/rxe/ |
D | rxe_qp.c | 65 switch (init->qp_type) { in rxe_qp_chk_init() 84 if (init->qp_type == IB_QPT_SMI || init->qp_type == IB_QPT_GSI) { in rxe_qp_chk_init() 92 if (init->qp_type == IB_QPT_SMI && port->qp_smi_index) { in rxe_qp_chk_init() 97 if (init->qp_type == IB_QPT_GSI && port->qp_gsi_index) { in rxe_qp_chk_init() 173 switch (init->qp_type) { in rxe_qp_init_misc() 273 if (init->qp_type == IB_QPT_RC) { in rxe_qp_init_req() 400 init->qp_type = qp->ibqp.qp_type; in rxe_qp_to_init() 417 if (!ib_modify_qp_is_ok(cur_state, new_state, qp_type(qp), mask)) { in rxe_qp_chk_attr() 502 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_reset() 544 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_reset() [all …]
|
D | rxe_loc.h | 140 static inline enum ib_qp_type qp_type(struct rxe_qp *qp) in qp_type() function 142 return qp->ibqp.qp_type; in qp_type() 152 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) in qp_mtu() 207 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() 93 if (qp_type(qp) == IB_QPT_UD || qp_type(qp) == IB_QPT_GSI) { in check_keys() 115 if (qp_type(qp) != IB_QPT_RC && qp_type(qp) != IB_QPT_UC) in check_addr()
|
D | rxe_resp.c | 126 switch (qp_type(qp)) { in check_psn() 167 switch (qp_type(qp)) { in check_op_seq() 257 switch (qp_type(qp)) { in check_op_valid() 391 switch (qp_type(qp)) { in check_length() 773 if (qp_type(qp) == IB_QPT_UD || in execute() 774 qp_type(qp) == IB_QPT_SMI || in execute() 775 qp_type(qp) == IB_QPT_GSI) { in execute() 830 else if (qp_type(qp) == IB_QPT_RC) in execute() 938 if (qp_type(qp) == IB_QPT_RC) in do_complete() 1005 if (qp_type(qp) != IB_QPT_RC) in acknowledge() [all …]
|
D | rxe_av.c | 107 if (qp_type(pkt->qp) == IB_QPT_RC || qp_type(pkt->qp) == IB_QPT_UC) in rxe_get_av()
|
D | rxe_req.c | 307 switch (qp_type(qp)) { in next_opcode() 357 if ((qp_type(qp) == IB_QPT_RC) || (qp_type(qp) == IB_QPT_UC)) in get_mtu() 494 if (qp_type(qp) == IB_QPT_RC) in update_wqe_state() 662 if (unlikely(qp_type(qp) == IB_QPT_RC && in rxe_requester() 691 if (qp_type(qp) == IB_QPT_UD) { in rxe_requester()
|
/drivers/infiniband/hw/mlx4/ |
D | qp.c | 489 if (attr->qp_type == IB_QPT_XRC_INI || attr->qp_type == IB_QPT_XRC_TGT) in qp_has_rq() 716 if (init_attr->qp_type != IB_QPT_RAW_PACKET) { in _mlx4_ib_create_qp_rss() 718 init_attr->qp_type); in _mlx4_ib_create_qp_rss() 965 enum mlx4_ib_qp_type qp_type = (enum mlx4_ib_qp_type) init_attr->qp_type; in create_qp_common() local 974 if (init_attr->qp_type == IB_QPT_GSI) in create_qp_common() 975 qp_type = MLX4_IB_QPT_PROXY_GSI; in create_qp_common() 979 qp_type = MLX4_IB_QPT_PROXY_SMI_OWNER; in create_qp_common() 981 qp_type = MLX4_IB_QPT_PROXY_SMI; in create_qp_common() 996 qp_type = MLX4_IB_QPT_TUN_GSI; in create_qp_common() 1000 qp_type = MLX4_IB_QPT_TUN_SMI_OWNER; in create_qp_common() [all …]
|
D | mad.c | 734 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() 1672 tun_qp->proxy_qpt = qp_type; in mlx4_ib_alloc_pv_bufs() 1699 enum ib_qp_type qp_type, int is_tun) in mlx4_ib_free_pv_qp_bufs() argument 1706 if (qp_type > IB_QPT_GSI) in mlx4_ib_free_pv_qp_bufs() 1709 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_free_pv_qp_bufs() [all …]
|
/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()
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 237 if (hr_qp->ibqp.qp_type == IB_QPT_GSI) { in alloc_qpn() 344 if (hr_qp->ibqp.qp_type == IB_QPT_GSI && in alloc_qpc() 405 if (hr_qp->ibqp.qp_type != IB_QPT_XRC_TGT) in hns_roce_qp_remove() 408 if (hr_qp->ibqp.qp_type != IB_QPT_XRC_INI && in hns_roce_qp_remove() 409 hr_qp->ibqp.qp_type != IB_QPT_XRC_TGT) in hns_roce_qp_remove() 422 if (hr_qp->ibqp.qp_type == IB_QPT_GSI && in free_qpc() 441 if (hr_qp->ibqp.qp_type == IB_QPT_GSI) in free_qpn() 519 hr_qp->ibqp.qp_type != IB_QPT_UD && in set_rq_size() 520 hr_qp->ibqp.qp_type != IB_QPT_GSI) in set_rq_size() 534 if (qp->ibqp.qp_type == IB_QPT_GSI || qp->ibqp.qp_type == IB_QPT_UD) in get_wqe_ext_sge_cnt() [all …]
|
/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()
|
/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 …]
|
/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()
|
D | verbs.c | 1206 if (attrs->qp_type != IB_QPT_RC && in qedr_check_qp_attrs() 1207 attrs->qp_type != IB_QPT_GSI && in qedr_check_qp_attrs() 1208 attrs->qp_type != IB_QPT_XRC_INI && in qedr_check_qp_attrs() 1209 attrs->qp_type != IB_QPT_XRC_TGT) { in qedr_check_qp_attrs() 1212 attrs->qp_type); in qedr_check_qp_attrs() 1247 if ((attrs->qp_type != IB_QPT_GSI) && (dev->gsi_qp_created) && in qedr_check_qp_attrs() 1248 (attrs->qp_type != IB_QPT_XRC_TGT) && in qedr_check_qp_attrs() 1249 (attrs->qp_type != IB_QPT_XRC_INI)) { in qedr_check_qp_attrs() 1364 qp->qp_type = attrs->qp_type; in qedr_set_common_qp_params() 1395 pd->pd_id, qp->qp_type, qp->max_inline_data, in qedr_set_common_qp_params() [all …]
|
/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()
|
/drivers/infiniband/hw/mlx5/ |
D | qp.c | 73 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 …]
|
/drivers/infiniband/sw/rdmavt/ |
D | qp.c | 429 rvt_reset_qp(rdi, qp, qp->ibqp.qp_type); in rvt_free_qp_cb() 692 if (qp->ibqp.qp_type == IB_QPT_SMI || in rvt_qp_mr_clean() 693 qp->ibqp.qp_type == IB_QPT_GSI) in rvt_qp_mr_clean() 1068 switch (init_attr->qp_type) { in rvt_create_qp() 1096 qp->allowed_ops = get_allowed_ops(init_attr->qp_type); in rvt_create_qp() 1099 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp() 1166 init_attr->qp_type, in rvt_create_qp() 1176 rvt_init_qp(rdi, qp, init_attr->qp_type); in rvt_create_qp() 1238 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp() 1426 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in rvt_modify_qp() [all …]
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 1099 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 …]
|