| /drivers/infiniband/core/ |
| A 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() 221 attr.qp_type != IB_QPT_XRC_TGT) || in UVERBS_HANDLER() 223 attr.qp_type == IB_QPT_XRC_TGT)) in UVERBS_HANDLER() [all …]
|
| A 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()
|
| A 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()
|
| A 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,
|
| A D | restrack.c | 203 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()
|
| A D | counters.c | 92 param->qp_type = qp->qp_type; in auto_mode_init_counter() 241 match &= (param->qp_type == qp->qp_type); in auto_mode_match() 464 if (qp->qp_type == IB_QPT_RAW_PACKET && !rdma_dev_has_raw_cap(dev)) in rdma_counter_get_qp()
|
| /drivers/infiniband/hw/mlx4/ |
| A D | qp.c | 524 if (attr->qp_type == IB_QPT_XRC_INI || attr->qp_type == IB_QPT_XRC_TGT) in qp_has_rq() 753 init_attr->qp_type); in _mlx4_ib_create_qp_rss() 1004 enum mlx4_ib_qp_type qp_type = (enum mlx4_ib_qp_type) init_attr->qp_type; in create_qp_common() local 1050 init_attr->qp_type == IB_QPT_GSI || qp_type == MLX4_IB_QPT_SMI || in create_qp_common() 1361 switch (qp->ibqp.qp_type) { in get_cqs() 2125 enum ib_qp_type qp_type; in __mlx4_ib_modify_qp() local 2155 qp_type = ibqp->qp_type; in __mlx4_ib_modify_qp() 2197 if (qp_type == IB_QPT_GSI || qp_type == IB_QPT_SMI) in __mlx4_ib_modify_qp() 2450 (qp_type == IB_QPT_GSI || qp_type == IB_QPT_SMI || in __mlx4_ib_modify_qp() 2451 qp_type == IB_QPT_UD || qp_type == IB_QPT_RAW_PACKET)) { in __mlx4_ib_modify_qp() [all …]
|
| A D | mad.c | 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() 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() 1807 if (qp_type > IB_QPT_GSI) in create_pv_sqp() 1810 tun_qp = &ctx->qp[qp_type]; in create_pv_sqp() 1825 qp_init_attr.proxy_qp_type = qp_type; in create_pv_sqp() [all …]
|
| /drivers/infiniband/hw/hfi1/ |
| A D | ud.c | 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() 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() 397 if (qp->ibqp.qp_type == IB_QPT_SMI) in hfi1_make_ud_req_16B() 991 if (qp->ibqp.qp_type == IB_QPT_GSI || in hfi1_ud_rcv() [all …]
|
| A 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/mana/ |
| A D | wr.c | 56 switch (ibqp->qp_type) { in mana_ib_post_recv() 67 ibqp->qp_type); in mana_ib_post_recv() 126 qp->ibqp.qp_type == IB_QPT_GSI ? IB_QP1_QKEY : wr->remote_qkey; in mana_ib_post_send_ud() 151 switch (ibqp->qp_type) { in mana_ib_post_send() 162 ibqp->qp_type); in mana_ib_post_send()
|
| A D | qp.c | 412 switch (attr->qp_type) { in mana_ib_queue_size() 433 switch (attr->qp_type) { in mana_ib_queue_type() 493 switch (qp->ibqp.qp_type) { in mana_table_store_qp() 501 qp->ibqp.qp_type); in mana_table_store_qp() 510 switch (qp->ibqp.qp_type) { in mana_table_remove_qp() 520 qp->ibqp.qp_type); in mana_table_remove_qp() 704 switch (attr->qp_type) { in mana_ib_create_qp() 719 attr->qp_type); in mana_ib_create_qp() 791 switch (ibqp->qp_type) { in mana_ib_modify_qp() 894 switch (ibqp->qp_type) { in mana_ib_destroy_qp() [all …]
|
| /drivers/infiniband/hw/hns/ |
| A D | hns_roce_qp.c | 258 if (hr_qp->ibqp.qp_type == IB_QPT_GSI) { in alloc_qpn() 428 if (hr_qp->ibqp.qp_type == IB_QPT_GSI) in free_qpn() 577 hr_qp->ibqp.qp_type == IB_QPT_UD); in set_ext_sge_param() 762 if (attr->qp_type == IB_QPT_XRC_INI || in hns_roce_qp_has_rq() 1038 if (hr_qp->ibqp.qp_type == IB_QPT_UD || in default_congest_type() 1039 hr_qp->ibqp.qp_type == IB_QPT_GSI) in default_congest_type() 1070 if (hr_qp->ibqp.qp_type == IB_QPT_UD && in set_congest_type() 1316 if (init_attr->qp_type == IB_QPT_GSI) { in hns_roce_create_qp() 1324 init_attr->qp_type, ret); in hns_roce_create_qp() 1333 int to_hr_qp_type(int qp_type) in to_hr_qp_type() argument [all …]
|
| /drivers/infiniband/sw/rxe/ |
| A 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() 271 if (init->qp_type == IB_QPT_RC) { in rxe_qp_init_req() 432 init->qp_type = qp->ibqp.qp_type; in rxe_qp_to_init() 452 if (!(qp_type(qp) == IB_QPT_RC || qp_type(qp) == IB_QPT_UC)) in rxe_qp_chk_attr() 589 if (!ib_modify_qp_is_ok(cur_state, new_state, qp_type(qp), mask)) in __qp_chk_state() 818 if (qp_type(qp) == IB_QPT_RC && qp->retrans_timer.function && in rxe_qp_do_cleanup() 862 if (qp_type(qp) == IB_QPT_RC) in rxe_qp_do_cleanup()
|
| A D | rxe_recv.c | 24 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()
|
| A D | rxe_loc.h | 125 static inline enum ib_qp_type qp_type(struct rxe_qp *qp) in qp_type() function 127 return qp->ibqp.qp_type; in qp_type() 137 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) in qp_mtu() 190 return rxe_wr_opcode_info[opcode].mask[qp->ibqp.qp_type]; in wr_opcode_mask()
|
| A D | rxe_resp.c | 76 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() 1005 if (qp_type(qp) == IB_QPT_UD || in execute() 1006 qp_type(qp) == IB_QPT_GSI) { in execute() 1177 if (qp_type(qp) == IB_QPT_RC) in do_complete() 1236 if (qp_type(qp) != IB_QPT_RC) in acknowledge() 1602 if (qp_type(qp) == IB_QPT_RC) { in rxe_receiver() 1617 if (qp_type(qp) == IB_QPT_RC) { in rxe_receiver() [all …]
|
| A D | rxe_req.c | 358 switch (qp_type(qp)) { in next_opcode() 407 if ((qp_type(qp) == IB_QPT_RC) || (qp_type(qp) == IB_QPT_UC)) in get_mtu() 447 if (qp_type(qp) != IB_QPT_UD && qp_type(qp) != IB_QPT_UC) in init_req_packet() 546 if (qp_type(qp) == IB_QPT_RC) in update_wqe_state() 714 if (unlikely(qp_type(qp) == IB_QPT_RC && in rxe_requester() 745 if (qp_type(qp) == IB_QPT_UD) { in rxe_requester()
|
| /drivers/infiniband/hw/vmw_pvrdma/ |
| A 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() 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() 739 qp->ibqp.qp_type == IB_QPT_GSI) { in pvrdma_post_send() 766 switch (qp->ibqp.qp_type) { in pvrdma_post_send() [all …]
|
| /drivers/infiniband/hw/qedr/ |
| A 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()
|
| A D | verbs.c | 1204 attrs->qp_type); in qedr_check_qp_attrs() 1356 qp->qp_type = attrs->qp_type; in qedr_set_common_qp_params() 1742 params->qp_type = qedr_ib_to_qed_qp_type(attrs->qp_type); in qedr_init_common_qp_in_params() 2148 if (qp->qp_type == IB_QPT_GSI) in qedr_cleanup_kernel() 2246 if (qp->qp_type != IB_QPT_GSI) { in qedr_free_qp_resources() 2492 ibqp->qp_type, attr_mask)) { in qedr_modify_qp() 2713 if (qp->qp_type != IB_QPT_GSI) in qedr_modify_qp() 2820 qp, qp->qp_type); in qedr_destroy_qp() 2857 if (qp->qp_type == IB_QPT_GSI) in qedr_destroy_qp() 3770 if (qp->qp_type == IB_QPT_GSI) in qedr_post_send() [all …]
|
| /drivers/net/ethernet/qlogic/qed/ |
| A 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/sw/rdmavt/ |
| A D | qp.c | 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() 1165 init_attr->qp_type, in rvt_create_qp() 1546 if (qp->ibqp.qp_type == IB_QPT_RC) in rvt_modify_qp() 1689 if (qp->ibqp.qp_type == IB_QPT_RC) { in rvt_destroy_qp() 1765 init_attr->qp_type = qp->ibqp.qp_type; in rvt_query_qp() 1885 if (qp->ibqp.qp_type != IB_QPT_UC && in rvt_qp_valid_operation() 2969 qp->ibqp.qp_type != sqp->ibqp.qp_type) { in rvt_ruc_loopback() 3145 if (qp->ibqp.qp_type == IB_QPT_UC) in rvt_ruc_loopback() [all …]
|
| /drivers/infiniband/hw/mlx5/ |
| A D | qp.c | 92 return qp_type == IB_QPT_SMI; in is_qp0() 97 return is_qp0(qp_type) || is_qp1(qp_type); in is_sqp() 498 switch (attr->qp_type) { in sq_overhead() 2476 if (is_sqp(attr->qp_type)) in create_kernel_qp() 2629 switch (qp_type) { in get_cqs() 2774 switch (attr->qp_type) { in check_qp_type() 2794 *type = attr->qp_type; in check_qp_type() 2814 switch (attr->qp_type) { in check_valid_flow() 2833 attr->qp_type); in check_valid_flow() 2851 switch (qp_type) { in get_dp_ooo_cap() [all …]
|
| /drivers/infiniband/hw/ocrdma/ |
| A D | ocrdma_verbs.c | 1107 (attrs->qp_type != IB_QPT_RC) && in ocrdma_check_qp_params() 1108 (attrs->qp_type != IB_QPT_UC) && in ocrdma_check_qp_params() 1279 qp->qp_type = attrs->qp_type; in ocrdma_set_qp_init_params() 1291 if (attrs->qp_type == IB_QPT_GSI) { in ocrdma_store_gsi_qp_cq() 1476 if (qp->qp_type == IB_QPT_UD) in ocrdma_query_qp() 1886 if (qp->qp_type == IB_QPT_GSI) in ocrdma_build_ud_hdr() 1969 if (qp->qp_type == IB_QPT_UD || qp->qp_type == IB_QPT_GSI) { in ocrdma_build_send() 2106 if (qp->qp_type == IB_QPT_UD && in ocrdma_post_send() 2454 if (qp->qp_type == IB_QPT_UD || qp->qp_type == IB_QPT_GSI) { in ocrdma_set_cqe_status_flushed() 2694 if (qp->qp_type == IB_QPT_UD || qp->qp_type == IB_QPT_GSI) in ocrdma_poll_success_rcqe() [all …]
|