Home
last modified time | relevance | path

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

1234

/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_qp.c86 static void get_cqs(enum ib_qp_type qp_type,
90 static int is_qp0(enum ib_qp_type qp_type) in is_qp0() argument
92 return qp_type == IB_QPT_SMI; in is_qp0()
95 static int is_sqp(enum ib_qp_type qp_type) in is_sqp() argument
97 return is_qp0(qp_type) || is_qp1(qp_type); in is_sqp()
148 qp->ibqp.qp_type); in mlx5_ib_read_user_wqe()
283 switch (attr->qp_type) { in sq_overhead()
355 if (attr->qp_type == IB_QPT_RC) in get_send_sge()
360 else if (attr->qp_type == IB_QPT_XRC_INI) in get_send_sge()
450 if (attr->qp_type == IB_QPT_RAW_PACKET) { in set_user_buf_size()
[all …]
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_qp.c256 if (qp->ibqp.qp_type == IB_QPT_UD) { in post_nop_wqe()
614 if (attr->qp_type == IB_QPT_XRC_INI || attr->qp_type == IB_QPT_XRC_TGT) in qp_has_rq()
652 enum mlx4_ib_qp_type qp_type = (enum mlx4_ib_qp_type) init_attr->qp_type; in create_qp_common() local
661 if (init_attr->qp_type == IB_QPT_GSI) in create_qp_common()
662 qp_type = MLX4_IB_QPT_PROXY_GSI; in create_qp_common()
666 qp_type = MLX4_IB_QPT_PROXY_SMI_OWNER; in create_qp_common()
668 qp_type = MLX4_IB_QPT_PROXY_SMI; in create_qp_common()
683 qp_type = MLX4_IB_QPT_TUN_GSI; in create_qp_common()
687 qp_type = MLX4_IB_QPT_TUN_SMI_OWNER; in create_qp_common()
689 qp_type = MLX4_IB_QPT_TUN_SMI; in create_qp_common()
[all …]
H A Dmlx4_ib_mad.c711 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
782 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
1307 size = (tun_qp->qp->qp_type == IB_QPT_UD) ? in mlx4_ib_post_pv_qp_buf()
1590 enum ib_qp_type qp_type, int is_tun) in mlx4_ib_alloc_pv_bufs() argument
1596 if (qp_type > IB_QPT_GSI) in mlx4_ib_alloc_pv_bufs()
1599 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_alloc_pv_bufs()
1658 tun_qp->proxy_qpt = qp_type; in mlx4_ib_alloc_pv_bufs()
1685 enum ib_qp_type qp_type, int is_tun) in mlx4_ib_free_pv_qp_bufs() argument
1691 if (qp_type > IB_QPT_GSI) in mlx4_ib_free_pv_qp_bufs()
1694 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_free_pv_qp_bufs()
[all …]
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_rdma.h154 enum ecore_rdma_qp_type qp_type; member
227 if ((qp->qp_type == ECORE_RDMA_QP_TYPE_XRC_TGT) || in ecore_rdma_is_xrc_qp()
228 (qp->qp_type == ECORE_RDMA_QP_TYPE_XRC_INI)) in ecore_rdma_is_xrc_qp()
/freebsd/contrib/ofed/librdmacm/
H A Dcma.c483 enum ibv_qp_type qp_type) in ucma_alloc_id() argument
493 id_priv->id.qp_type = qp_type; in ucma_alloc_id()
518 enum rdma_port_space ps, enum ibv_qp_type qp_type) in rdma_create_id2() argument
529 id_priv = ucma_alloc_id(channel, context, ps, qp_type); in rdma_create_id2()
536 cmd.qp_type = qp_type; in rdma_create_id2()
557 enum ibv_qp_type qp_type; in rdma_create_id() local
559 qp_type = (ps == RDMA_PS_IPOIB || ps == RDMA_PS_UDP) ? in rdma_create_id()
561 return rdma_create_id2(channel, id, context, ps, qp_type); in rdma_create_id()
985 static int ucma_is_ud_qp(enum ibv_qp_type qp_type) in ucma_is_ud_qp() argument
987 return (qp_type == IBV_QPT_UD); in ucma_is_ud_qp()
[all …]
/freebsd/contrib/ofed/libibverbs/
H A Dcompat-1_0.c78 enum ibv_qp_type qp_type; member
126 enum ibv_qp_type qp_type; member
408 int is_ud = qp->qp_type == IBV_QPT_UD; in post_send_wrapper_1_0()
882 real_init_attr.qp_type = qp_init_attr->qp_type; in __ibv_create_qp_1_0()
897 qp->qp_type = qp_init_attr->qp_type; in __ibv_create_qp_1_0()
924 init_attr->qp_type = real_init_attr.qp_type; in __ibv_query_qp_1_0()
H A Dcmd.c913 if (qp_attr->qp_type != IBV_QPT_XRC_SEND) { in create_qp_ex_common()
927 cmd->qp_type = qp_attr->qp_type; in create_qp_ex_common()
982 qp->qp.qp_type = qp_attr->qp_type; in create_qp_handle_resp_common()
1145 cmd->qp_type = attr->qp_type; in ibv_cmd_create_qp()
1207 cmd->qp_type = attr->qp_type; in ibv_cmd_open_qp()
1232 qp->qp.qp_type = attr->qp_type; in ibv_cmd_open_qp()
1329 init_attr->qp_type = qp->qp_type; in ibv_cmd_query_qp()
1513 if (ibqp->qp_type == IBV_QPT_UD) { in ibv_cmd_post_send()
/freebsd/sys/ofed/include/rdma/
H A Drdma_cm.h144 enum ib_qp_type qp_type; member
167 enum ib_qp_type qp_type);
H A Dib_cm.h136 enum ib_qp_type qp_type; member
388 enum ib_qp_type qp_type; member
/freebsd/contrib/ofed/libmlx5/
H A Dverbs.c781 static int sq_overhead(enum ibv_qp_type qp_type) in sq_overhead() argument
789 switch (qp_type) { in sq_overhead()
839 size = sq_overhead(attr->qp_type); in mlx5_calc_send_wqe()
912 qp->max_inline_data = wqe_size - sq_overhead(attr->qp_type) - in mlx5_calc_sq_size()
1116 qp_huge_key = qptype2key(qp->ibv_qp->qp_type); in mlx5_alloc_qp_buf()
1137 if (attr->qp_type == IBV_QPT_RAW_PACKET) { in mlx5_alloc_qp_buf()
1300 (attr->qp_type != IBV_QPT_RAW_PACKET)) in create_qp()
1363 if (attr->qp_type == IBV_QPT_RAW_PACKET) { in create_qp()
1377 if (attr->qp_type == IBV_QPT_RAW_PACKET) { in create_qp()
1405 cmd.sq_buf_addr = (attr->qp_type == IBV_QPT_RAW_PACKET) ? in create_qp()
[all …]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dcore_priv.h172 qp->qp_type = attr->qp_type; in _ib_create_qp()
H A Dib_verbs.c1101 qp->qp_type = real_qp->qp_type; in __ib_open_qp()
1115 if (qp_open_attr->qp_type != IB_QPT_XRC_TGT) in ib_open_qp()
1174 qp->qp_type = qp_init_attr->qp_type; in ib_create_qp()
1180 if (qp_init_attr->qp_type == IB_QPT_XRC_TGT) in ib_create_qp()
1185 if (qp_init_attr->qp_type == IB_QPT_XRC_INI) { in ib_create_qp()
1585 return (qp->qp_type == IB_QPT_UC || in is_qp_type_connected()
1586 qp->qp_type == IB_QPT_RC || in is_qp_type_connected()
1587 qp->qp_type == IB_QPT_XRC_INI || in is_qp_type_connected()
1588 qp->qp_type == IB_QPT_XRC_TGT); in is_qp_type_connected()
2084 qp->qp_type != IB_QPT_UD || !is_valid_mcast_lid(qp, lid)) in ib_attach_mcast()
[all …]
H A Dcm_msgs.h172 enum ib_qp_type qp_type) in cm_req_set_qp_type() argument
174 switch(qp_type) { in cm_req_set_qp_type()
536 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
538 return (qp_type == IB_QPT_XRC_INI) ? in cm_rep_get_qpn()
H A Dib_ucma.c348 if (cm_id->qp_type == IB_QPT_UD) in ucma_event_handler()
445 static int ucma_get_qp_type(struct rdma_ucm_create_id *cmd, enum ib_qp_type *qp_type) in ucma_get_qp_type() argument
449 *qp_type = IB_QPT_RC; in ucma_get_qp_type()
453 *qp_type = IB_QPT_UD; in ucma_get_qp_type()
456 *qp_type = cmd->qp_type; in ucma_get_qp_type()
470 enum ib_qp_type qp_type; in ucma_create_id() local
479 ret = ucma_get_qp_type(&cmd, &qp_type); in ucma_create_id()
491 ucma_event_handler, ctx, cmd.ps, qp_type); in ucma_create_id()
H A Dib_mad.c132 static int get_spl_qp_index(enum ib_qp_type qp_type) in get_spl_qp_index() argument
134 switch (qp_type) in get_spl_qp_index()
200 enum ib_qp_type qp_type, in ib_register_mad_agent() argument
220 if ((qp_type == IB_QPT_SMI && !rdma_cap_ib_smi(device, port_num)) || in ib_register_mad_agent()
221 (qp_type == IB_QPT_GSI && !rdma_cap_ib_cm(device, port_num))) in ib_register_mad_agent()
225 qpn = get_spl_qp_index(qp_type); in ib_register_mad_agent()
228 __func__, qp_type); in ib_register_mad_agent()
298 if (qp_type == IB_QPT_SMI) { in ib_register_mad_agent()
495 enum ib_qp_type qp_type, in ib_register_mad_snoop() argument
512 qpn = get_spl_qp_index(qp_type); in ib_register_mad_snoop()
[all …]
H A Dib_cm.c286 enum ib_qp_type qp_type; member
1091 if (cm_id_priv->qp_type == IB_QPT_XRC_TGT) in cm_destroy_id()
1308 cm_req_set_qp_type(req_msg, param->qp_type); in cm_format_req()
1317 if (param->qp_type != IB_QPT_XRC_INI) { in cm_format_req()
1402 if (param->qp_type != IB_QPT_RC && param->qp_type != IB_QPT_UC && in cm_validate_req_param()
1403 param->qp_type != IB_QPT_XRC_INI) in cm_validate_req_param()
1470 cm_id_priv->qp_type = param->qp_type; in ib_send_cm_req()
1708 param->qp_type = cm_req_get_qp_type(req_msg); in cm_format_req_event()
2047 cm_id_priv->qp_type = cm_req_get_qp_type(req_msg); in cm_req_handler()
2079 if (cm_id_priv->qp_type != IB_QPT_XRC_TGT) { in cm_format_rep()
[all …]
H A Dib_cma.c785 enum ib_qp_type qp_type) in rdma_create_id() argument
802 id_priv->id.qp_type = qp_type; in rdma_create_id()
875 if (id->qp_type == IB_QPT_UD) in rdma_create_qp()
1004 if (id_priv->id.qp_type == IB_QPT_UD) { in cma_ib_init_qp_attr()
1026 if (!id_priv->cm_id.ib || (id_priv->id.qp_type == IB_QPT_UD)) in rdma_init_qp_attr()
2095 listen_id->ps, ib_event->param.req_rcvd.qp_type); in cma_ib_new_conn_id()
2200 (ib_event->param.req_rcvd.qp_type == id->qp_type)) || in cma_ib_check_req_qp_type()
2202 (id->qp_type == IB_QPT_UD)) || in cma_ib_check_req_qp_type()
2203 (!id->qp_type)); in cma_ib_check_req_qp_type()
2270 (conn_id->id.qp_type != IB_QPT_UD)) in cma_ib_req_handler()
[all …]
/freebsd/contrib/ofed/libmlx4/
H A Dverbs.c825 if (attr->qp_type == IBV_QPT_XRC_RECV) { in mlx4_create_qp_ex()
828 mlx4_calc_sq_wqe_size(&attr->cap, attr->qp_type, qp); in mlx4_create_qp_ex()
837 if (attr->srq || attr->qp_type == IBV_QPT_XRC_SEND || in mlx4_create_qp_ex()
838 attr->qp_type == IBV_QPT_XRC_RECV) { in mlx4_create_qp_ex()
848 if (mlx4_alloc_qp_buf(context, &attr->cap, attr->qp_type, qp)) in mlx4_create_qp_ex()
898 if (attr->qp_type != IBV_QPT_XRC_RECV) in mlx4_create_qp_ex()
899 mlx4_set_sq_sizes(qp, &attr->cap, attr->qp_type); in mlx4_create_qp_ex()
1011 switch(qp->qp_type) { in mlx4_modify_qp()
/freebsd/sys/ofed/include/uapi/rdma/
H A Dib_user_cm.h140 __u32 qp_type; member
244 __u32 qp_type; member
/freebsd/contrib/ofed/libirdma/
H A Dirdma_uverbs.c785 if (ib_qp->qp_type != IBV_QPT_UD && in irdma_process_cqe()
792 if (ib_qp->qp_type == IBV_QPT_UD) { in irdma_process_cqe()
1071 if (ib_qp->qp_type == IBV_QPT_UD) { in irdma_wc_read_wc_flags()
1124 return ib_qp->qp_type == IBV_QPT_UD ? cur_cqe->ud_src_qpn : cur_cqe->qp_id; in irdma_wc_read_src_qp()
1386 if (attr->qp_type != IBV_QPT_RC && attr->qp_type != IBV_QPT_UD) { in irdma_ucreate_qp()
1388 __func__, attr->qp_type); in irdma_ucreate_qp()
1466 iwuqp->qp_type = attr->qp_type; in irdma_ucreate_qp()
1732 if (ib_qp->qp_type == IBV_QPT_UD) { in irdma_upost_send()
1784 if (ib_qp->qp_type != IBV_QPT_RC || in irdma_upost_send()
/freebsd/contrib/ofed/libibcm/
H A Dcm.h112 enum ibv_qp_type qp_type; member
357 enum ibv_qp_type qp_type; member
/freebsd/sys/dev/mlx5/mlx5_fpga/
H A Dconn.h90 enum mlx5_ifc_fpga_qp_type qp_type);
H A Dmlx5_ifc_fpga.h57 u8 qp_type[0x2]; member
203 u8 qp_type[0x1]; member
/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_def.h641 enum ib_qp_type qp_type; member
803 if (qp->qp_type == IB_QPT_GSI) in qlnxr_qp_has_sq()
811 if (qp->qp_type == IB_QPT_GSI || qlnxr_qp_has_srq(qp)) in qlnxr_qp_has_rq()
H A Dqlnxr_verbs.c1912 QL_DPRINT12(ha, "attrs->qp_type = %d\n", attrs->qp_type); in qlnxr_check_qp_attrs()
1968 if ((attrs->qp_type == IB_QPT_GSI) && udata) { in qlnxr_check_qp_attrs()
1979 if (attrs->qp_type != IB_QPT_RC && attrs->qp_type != IB_QPT_GSI) { in qlnxr_check_qp_attrs()
1981 attrs->qp_type); in qlnxr_check_qp_attrs()
1984 if (attrs->qp_type == IB_QPT_GSI && attrs->srq) { in qlnxr_check_qp_attrs()
2023 if (ibpd->uobject && attrs->qp_type == IB_QPT_GSI) { in qlnxr_check_qp_attrs()
2026 attrs->qp_type); in qlnxr_check_qp_attrs()
2030 if (attrs->qp_type == IB_QPT_GSI && dev->gsi_qp_created) { in qlnxr_check_qp_attrs()
2037 if ((attrs->qp_type != IB_QPT_GSI) && (dev->gsi_qp_created)) { in qlnxr_check_qp_attrs()
2176 qp->qp_type = attrs->qp_type; in qlnxr_set_common_qp_params()
[all …]

1234