/Linux-v5.4/drivers/infiniband/core/ |
D | core_priv.h | 238 enum ib_qp_type qp_type); 293 enum ib_qp_type qp_type) in ib_mad_agent_security_setup() argument 325 enum ib_qp_type qp_type = attr->qp_type; in _ib_create_qp() local 345 is_xrc = qp_type == IB_QPT_XRC_INI || qp_type == IB_QPT_XRC_TGT; in _ib_create_qp() 346 if ((qp_type < IB_QPT_MAX && !is_xrc) || qp_type == IB_QPT_DRIVER) { in _ib_create_qp()
|
D | security.c | 587 bool special_qp = (real_qp->qp_type == IB_QPT_SMI || in ib_security_modify_qp() 588 real_qp->qp_type == IB_QPT_GSI || in ib_security_modify_qp() 589 real_qp->qp_type >= IB_QPT_RESERVED1); in ib_security_modify_qp() 697 enum ib_qp_type qp_type) in ib_mad_agent_security_setup() argument 710 if (qp_type != IB_QPT_SMI) in ib_mad_agent_security_setup() 736 if (agent->qp->qp_type == IB_QPT_SMI) { in ib_mad_agent_security_cleanup() 750 if (map->agent.qp->qp_type == IB_QPT_SMI) { in ib_mad_enforce_security()
|
D | counters.c | 143 param->qp_type = qp->qp_type; in auto_mode_init_counter() 160 match &= (param->qp_type == qp->qp_type); in auto_mode_match() 419 if (qp->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in rdma_counter_get_qp()
|
D | cm_msgs.h | 169 enum ib_qp_type qp_type) in cm_req_set_qp_type() argument 171 switch(qp_type) { in cm_req_set_qp_type() 533 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 535 return (qp_type == IB_QPT_XRC_INI) ? in cm_rep_get_qpn()
|
/Linux-v5.4/drivers/infiniband/hw/mlx5/ |
D | qp.c | 99 static void get_cqs(enum ib_qp_type qp_type, 103 static int is_qp0(enum ib_qp_type qp_type) in is_qp0() argument 105 return qp_type == IB_QPT_SMI; in is_qp0() 108 static int is_sqp(enum ib_qp_type qp_type) in is_sqp() argument 110 return is_qp0(qp_type) || is_qp1(qp_type); in is_sqp() 383 switch (attr->qp_type) { in sq_overhead() 457 if (attr->qp_type == IB_QPT_RC) in get_send_sge() 462 else if (attr->qp_type == IB_QPT_XRC_INI) in get_send_sge() 550 if (attr->qp_type == IB_QPT_RAW_PACKET || in set_user_buf_size() 564 if (attr->qp_type == IB_QPT_XRC_INI || in qp_has_rq() [all …]
|
/Linux-v5.4/drivers/infiniband/sw/rxe/ |
D | rxe_qp.c | 100 if (init->qp_type == IB_QPT_SMI || init->qp_type == IB_QPT_GSI) { in rxe_qp_chk_init() 108 if (init->qp_type == IB_QPT_SMI && port->qp_smi_index) { in rxe_qp_chk_init() 113 if (init->qp_type == IB_QPT_GSI && port->qp_gsi_index) { in rxe_qp_chk_init() 190 switch (init->qp_type) { in rxe_qp_init_misc() 280 if (init->qp_type == IB_QPT_RC) { in rxe_qp_init_req() 405 init->qp_type = qp->ibqp.qp_type; in rxe_qp_to_init() 422 if (!ib_modify_qp_is_ok(cur_state, new_state, qp_type(qp), mask)) { in rxe_qp_chk_attr() 507 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_reset() 549 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_reset() 562 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_drain() [all …]
|
D | rxe_loc.h | 183 static inline enum ib_qp_type qp_type(struct rxe_qp *qp) in qp_type() function 185 return qp->ibqp.qp_type; in qp_type() 195 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) in qp_mtu() 247 return rxe_wr_opcode_info[opcode].mask[qp->ibqp.qp_type]; in wr_opcode_mask() 277 if ((qp_type(qp) != IB_QPT_RC) && in rxe_xmit_packet()
|
D | rxe_recv.c | 45 switch (qp_type(qp)) { in check_type_state() 136 if ((qp_type(qp) == IB_QPT_UD || qp_type(qp) == IB_QPT_GSI) && in check_keys() 159 if (qp_type(qp) != IB_QPT_RC && qp_type(qp) != IB_QPT_UC) in check_addr()
|
D | rxe_resp.c | 150 switch (qp_type(qp)) { in check_psn() 191 switch (qp_type(qp)) { in check_op_seq() 281 switch (qp_type(qp)) { in check_op_valid() 405 switch (qp_type(qp)) { in check_length() 782 if (qp_type(qp) == IB_QPT_UD || in execute() 783 qp_type(qp) == IB_QPT_SMI || in execute() 784 qp_type(qp) == IB_QPT_GSI) { in execute() 824 } else if (qp_type(qp) == IB_QPT_RC) in execute() 945 else if (qp_type(qp) == IB_QPT_RC) in do_complete() 1018 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 | 322 switch (qp_type(qp)) { in next_opcode() 372 if ((qp_type(qp) == IB_QPT_RC) || (qp_type(qp) == IB_QPT_UC)) in get_mtu() 422 pkey = (qp_type(qp) == IB_QPT_GSI) ? in init_req_packet() 516 if (qp_type(qp) == IB_QPT_RC) in update_wqe_state() 660 if (unlikely(qp_type(qp) == IB_QPT_RC && in rxe_requester() 688 if (qp_type(qp) == IB_QPT_UD) { in rxe_requester()
|
/Linux-v5.4/include/rdma/ |
D | rdma_cm.h | 135 enum ib_qp_type qp_type; member 142 enum ib_qp_type qp_type, 161 #define rdma_create_id(net, event_handler, context, ps, qp_type) \ argument 162 __rdma_create_id((net), (event_handler), (context), (ps), (qp_type), \
|
/Linux-v5.4/drivers/infiniband/hw/hfi1/ |
D | ud.c | 97 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 …]
|
D | qp.c | 326 switch (qp->ibqp.qp_type) { in hfi1_setup_wqe() 598 switch (qp->ibqp.qp_type) { in qp_to_sdma_engine() 620 switch (qp->ibqp.qp_type) { in qp_to_send_context() 672 qp_type_str[qp->ibqp.qp_type], in qp_iter_print() 818 if (qp->ibqp.qp_type == IB_QPT_RC) in notify_qp_reset() 941 (qp->ibqp.qp_type != IB_QPT_UC && in hfi1_qp_iter_cb() 942 qp->ibqp.qp_type != IB_QPT_RC) || in hfi1_qp_iter_cb()
|
/Linux-v5.4/drivers/infiniband/hw/mlx4/ |
D | qp.c | 511 if (attr->qp_type == IB_QPT_XRC_INI || attr->qp_type == IB_QPT_XRC_TGT) in qp_has_rq() 741 if (init_attr->qp_type != IB_QPT_RAW_PACKET) { in _mlx4_ib_create_qp_rss() 743 init_attr->qp_type); in _mlx4_ib_create_qp_rss() 1001 enum mlx4_ib_qp_type qp_type = (enum mlx4_ib_qp_type) init_attr->qp_type; in create_qp_common() local 1010 if (init_attr->qp_type == IB_QPT_GSI) in create_qp_common() 1011 qp_type = MLX4_IB_QPT_PROXY_GSI; in create_qp_common() 1015 qp_type = MLX4_IB_QPT_PROXY_SMI_OWNER; in create_qp_common() 1017 qp_type = MLX4_IB_QPT_PROXY_SMI; in create_qp_common() 1032 qp_type = MLX4_IB_QPT_TUN_GSI; in create_qp_common() 1036 qp_type = MLX4_IB_QPT_TUN_SMI_OWNER; in create_qp_common() [all …]
|
D | mad.c | 716 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad() 795 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad() 1319 size = (tun_qp->qp->qp_type == IB_QPT_UD) ? in mlx4_ib_post_pv_qp_buf() 1601 enum ib_qp_type qp_type, int is_tun) in mlx4_ib_alloc_pv_bufs() argument 1607 if (qp_type > IB_QPT_GSI) in mlx4_ib_alloc_pv_bufs() 1610 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_alloc_pv_bufs() 1669 tun_qp->proxy_qpt = qp_type; in mlx4_ib_alloc_pv_bufs() 1696 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-v5.4/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() 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()
|
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-v5.4/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_qp.c | 210 if (init_attr->qp_type != IB_QPT_RC && in pvrdma_create_qp() 211 init_attr->qp_type != IB_QPT_UD && in pvrdma_create_qp() 212 init_attr->qp_type != IB_QPT_GSI) { in pvrdma_create_qp() 214 init_attr->qp_type); in pvrdma_create_qp() 227 switch (init_attr->qp_type) { in pvrdma_create_qp() 362 cmd->qp_type = ib_qp_type_to_pvrdma(init_attr->qp_type); in pvrdma_create_qp() 492 if (!ib_modify_qp_is_ok(cur_state, next_state, ibqp->qp_type, in pvrdma_modify_qp() 685 if (qp->ibqp.qp_type != IB_QPT_UD && in pvrdma_post_send() 686 qp->ibqp.qp_type != IB_QPT_RC && in pvrdma_post_send() 693 } else if (qp->ibqp.qp_type == IB_QPT_UD || in pvrdma_post_send() [all …]
|
/Linux-v5.4/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 252 if ((hr_qp->ibqp.qp_type) != IB_QPT_GSI) { in hns_roce_qp_free() 531 if (hr_dev->caps.max_sq_sg > 2 && hr_qp->ibqp.qp_type == IB_QPT_GSI) { in set_extend_sge_param() 622 if (attr->qp_type == IB_QPT_XRC_TGT || !attr->cap.max_send_wr) in hns_roce_qp_has_sq() 630 if (attr->qp_type == IB_QPT_XRC_INI || in hns_roce_qp_has_rq() 631 attr->qp_type == IB_QPT_XRC_TGT || attr->srq || in hns_roce_qp_has_rq() 707 hr_qp->ibqp.qp_type = init_attr->qp_type; in hns_roce_create_qp_common() 916 if (init_attr->qp_type == IB_QPT_GSI && in hns_roce_create_qp_common() 956 if (init_attr->qp_type == IB_QPT_GSI && in hns_roce_create_qp_common() 1024 switch (init_attr->qp_type) { in hns_roce_create_qp() 1077 init_attr->qp_type); in hns_roce_create_qp() [all …]
|
/Linux-v5.4/drivers/infiniband/sw/rdmavt/ |
D | qp.c | 728 if (qp->ibqp.qp_type == IB_QPT_SMI || in rvt_qp_mr_clean() 729 qp->ibqp.qp_type == IB_QPT_GSI) in rvt_qp_mr_clean() 1078 switch (init_attr->qp_type) { in rvt_create_qp() 1108 qp->allowed_ops = get_allowed_ops(init_attr->qp_type); in rvt_create_qp() 1111 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp() 1179 init_attr->qp_type, in rvt_create_qp() 1187 rvt_init_qp(rdi, qp, init_attr->qp_type); in rvt_create_qp() 1255 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp() 1443 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in rvt_modify_qp() 1492 if (qp->ibqp.qp_type == IB_QPT_SMI || in rvt_modify_qp() [all …]
|
D | trace_tx.h | 118 __entry->qpt = qp->ibqp.qp_type; 177 __entry->qpt = qp->ibqp.qp_type;
|
/Linux-v5.4/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 1114 if ((attrs->qp_type != IB_QPT_GSI) && in ocrdma_check_qp_params() 1115 (attrs->qp_type != IB_QPT_RC) && in ocrdma_check_qp_params() 1116 (attrs->qp_type != IB_QPT_UC) && in ocrdma_check_qp_params() 1117 (attrs->qp_type != IB_QPT_UD)) { in ocrdma_check_qp_params() 1119 __func__, dev->id, attrs->qp_type); in ocrdma_check_qp_params() 1123 if ((attrs->qp_type != IB_QPT_GSI) && in ocrdma_check_qp_params() 1160 if (udata && attrs->qp_type == IB_QPT_GSI) { in ocrdma_check_qp_params() 1163 __func__, dev->id, attrs->qp_type); in ocrdma_check_qp_params() 1167 if (attrs->qp_type == IB_QPT_GSI && dev->gsi_qp_created) { in ocrdma_check_qp_params() 1173 if ((attrs->qp_type != IB_QPT_GSI) && (dev->gsi_qp_created)) { in ocrdma_check_qp_params() [all …]
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | conn.h | 91 enum mlx5_ifc_fpga_qp_type qp_type);
|
/Linux-v5.4/drivers/infiniband/hw/efa/ |
D | efa_verbs.c | 390 qp_init_attr->qp_type = ibqp->qp_type; in efa_query_qp() 608 if (init_attr->qp_type != IB_QPT_DRIVER && in efa_qp_validate_attr() 609 init_attr->qp_type != IB_QPT_UD) { in efa_qp_validate_attr() 611 "Unsupported qp type %d\n", init_attr->qp_type); in efa_qp_validate_attr() 693 if (init_attr->qp_type == IB_QPT_UD) { in efa_create_qp() 694 create_qp_params.qp_type = EFA_ADMIN_QP_TYPE_UD; in efa_create_qp() 696 create_qp_params.qp_type = EFA_ADMIN_QP_TYPE_SRD; in efa_create_qp() 700 init_attr->qp_type, cmd.driver_qp_type); in efa_create_qp() 706 init_attr->qp_type, cmd.driver_qp_type); in efa_create_qp() 748 qp->ibqp.qp_type = init_attr->qp_type; in efa_create_qp()
|