/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_qp.c | 86 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 D | mlx4_ib_qp.c | 256 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 D | mlx4_ib_mad.c | 686 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad() 757 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad() 1282 size = (tun_qp->qp->qp_type == IB_QPT_UD) ? in mlx4_ib_post_pv_qp_buf() 1558 enum ib_qp_type qp_type, int is_tun) in mlx4_ib_alloc_pv_bufs() argument 1564 if (qp_type > IB_QPT_GSI) in mlx4_ib_alloc_pv_bufs() 1567 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_alloc_pv_bufs() 1625 tun_qp->proxy_qpt = qp_type; in mlx4_ib_alloc_pv_bufs() 1652 enum ib_qp_type qp_type, int is_tun) in mlx4_ib_free_pv_qp_bufs() argument 1658 if (qp_type > IB_QPT_GSI) in mlx4_ib_free_pv_qp_bufs() 1661 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_free_pv_qp_bufs() [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_rdma.h | 154 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 D | cma.c | 483 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 D | compat-1_0.c | 79 enum ibv_qp_type qp_type; member 127 enum ibv_qp_type qp_type; member 409 int is_ud = qp->qp_type == IBV_QPT_UD; in post_send_wrapper_1_0() 883 real_init_attr.qp_type = qp_init_attr->qp_type; in __ibv_create_qp_1_0() 898 qp->qp_type = qp_init_attr->qp_type; in __ibv_create_qp_1_0() 925 init_attr->qp_type = real_init_attr.qp_type; in __ibv_query_qp_1_0()
|
H A D | cmd.c | 886 if (qp_attr->qp_type != IBV_QPT_XRC_SEND) { in create_qp_ex_common() 900 cmd->qp_type = qp_attr->qp_type; in create_qp_ex_common() 955 qp->qp.qp_type = qp_attr->qp_type; in create_qp_handle_resp_common() 1118 cmd->qp_type = attr->qp_type; in ibv_cmd_create_qp() 1180 cmd->qp_type = attr->qp_type; in ibv_cmd_open_qp() 1205 qp->qp.qp_type = attr->qp_type; in ibv_cmd_open_qp() 1302 init_attr->qp_type = qp->qp_type; in ibv_cmd_query_qp() 1486 if (ibqp->qp_type == IBV_QPT_UD) { in ibv_cmd_post_send()
|
/freebsd/sys/ofed/include/rdma/ |
H A D | rdma_cm.h | 158 enum ib_qp_type qp_type; member 177 enum ib_qp_type qp_type);
|
H A D | ib_cm.h | 136 enum ib_qp_type qp_type; member 387 enum ib_qp_type qp_type; member
|
H A D | ib_mad.h | 634 enum ib_qp_type qp_type, 665 enum ib_qp_type qp_type,
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | core_priv.h | 168 qp->qp_type = attr->qp_type; in _ib_create_qp()
|
H A D | ib_verbs.c | 821 qp->qp_type = real_qp->qp_type; in __ib_open_qp() 835 if (qp_open_attr->qp_type != IB_QPT_XRC_TGT) in ib_open_qp() 894 qp->qp_type = qp_init_attr->qp_type; in ib_create_qp() 900 if (qp_init_attr->qp_type == IB_QPT_XRC_TGT) in ib_create_qp() 905 if (qp_init_attr->qp_type == IB_QPT_XRC_INI) { in ib_create_qp() 1323 return (qp->qp_type == IB_QPT_UC || in is_qp_type_connected() 1324 qp->qp_type == IB_QPT_RC || in is_qp_type_connected() 1325 qp->qp_type == IB_QPT_XRC_INI || in is_qp_type_connected() 1326 qp->qp_type == IB_QPT_XRC_TGT); in is_qp_type_connected() 1745 qp->qp_type != IB_QPT_UD || !is_valid_mcast_lid(qp, lid)) in ib_attach_mcast() [all …]
|
H A D | cm_msgs.h | 172 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 D | ib_ucma.c | 345 if (cm_id->qp_type == IB_QPT_UD) in ucma_event_handler() 441 static int ucma_get_qp_type(struct rdma_ucm_create_id *cmd, enum ib_qp_type *qp_type) in ucma_get_qp_type() argument 445 *qp_type = IB_QPT_RC; in ucma_get_qp_type() 449 *qp_type = IB_QPT_UD; in ucma_get_qp_type() 452 *qp_type = cmd->qp_type; in ucma_get_qp_type() 466 enum ib_qp_type qp_type; in ucma_create_id() local 475 ret = ucma_get_qp_type(&cmd, &qp_type); in ucma_create_id() 487 ucma_event_handler, ctx, cmd.ps, qp_type); in ucma_create_id()
|
H A D | ib_mad.c | 132 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() 229 qp_type); in ib_register_mad_agent() 296 if (qp_type == IB_QPT_SMI) { in ib_register_mad_agent() 491 enum ib_qp_type qp_type, in ib_register_mad_snoop() argument 508 qpn = get_spl_qp_index(qp_type); in ib_register_mad_snoop() [all …]
|
H A D | ib_cm.c | 286 enum ib_qp_type qp_type; member 1034 if (cm_id_priv->qp_type == IB_QPT_XRC_TGT) in cm_destroy_id() 1243 cm_req_set_qp_type(req_msg, param->qp_type); in cm_format_req() 1252 if (param->qp_type != IB_QPT_XRC_INI) { in cm_format_req() 1315 if (param->qp_type != IB_QPT_RC && param->qp_type != IB_QPT_UC && in cm_validate_req_param() 1316 param->qp_type != IB_QPT_XRC_INI) in cm_validate_req_param() 1382 cm_id_priv->qp_type = param->qp_type; in ib_send_cm_req() 1537 param->qp_type = cm_req_get_qp_type(req_msg); in cm_format_req_event() 1866 cm_id_priv->qp_type = cm_req_get_qp_type(req_msg); in cm_req_handler() 1898 if (cm_id_priv->qp_type != IB_QPT_XRC_TGT) { in cm_format_rep() [all …]
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | verbs.c | 773 static int sq_overhead(enum ibv_qp_type qp_type) in sq_overhead() argument 781 switch (qp_type) { in sq_overhead() 831 size = sq_overhead(attr->qp_type); in mlx5_calc_send_wqe() 904 qp->max_inline_data = wqe_size - sq_overhead(attr->qp_type) - in mlx5_calc_sq_size() 1092 qp_huge_key = qptype2key(qp->ibv_qp->qp_type); in mlx5_alloc_qp_buf() 1113 if (attr->qp_type == IBV_QPT_RAW_PACKET) { in mlx5_alloc_qp_buf() 1263 (attr->qp_type != IBV_QPT_RAW_PACKET)) in create_qp() 1299 if (attr->qp_type == IBV_QPT_RAW_PACKET) { in create_qp() 1313 if (attr->qp_type == IBV_QPT_RAW_PACKET) { in create_qp() 1341 cmd.sq_buf_addr = (attr->qp_type in create_qp() [all...] |
/freebsd/contrib/ofed/libmlx4/ |
H A D | verbs.c | 825 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 D | ib_user_cm.h | 140 __u32 qp_type; member 244 __u32 qp_type; member
|
/freebsd/contrib/ofed/libirdma/ |
H A D | irdma_uverbs.c | 780 if (ib_qp->qp_type != IBV_QPT_UD && in irdma_process_cqe() 787 if (ib_qp->qp_type == IBV_QPT_UD) { in irdma_process_cqe() 1062 if (ib_qp->qp_type == IBV_QPT_UD) { in irdma_wc_read_wc_flags() 1115 return ib_qp->qp_type == IBV_QPT_UD ? cur_cqe->ud_src_qpn : cur_cqe->qp_id; in irdma_wc_read_src_qp() 1367 if (attr->qp_type != IBV_QPT_RC && attr->qp_type != IBV_QPT_UD) { in irdma_ucreate_qp() 1369 __func__, attr->qp_type); in irdma_ucreate_qp() 1447 iwuqp->qp_type = attr->qp_type; in irdma_ucreate_qp() 1717 if (ib_qp->qp_type == IBV_QPT_UD) { in irdma_upost_send() 1769 if (ib_qp->qp_type != IBV_QPT_RC) { in irdma_upost_send()
|
/freebsd/sys/dev/mlx5/mlx5_fpga/ |
H A D | conn.h | 90 enum mlx5_ifc_fpga_qp_type qp_type);
|
H A D | mlx5_ifc_fpga.h | 57 u8 qp_type[0x2]; member 203 u8 qp_type[0x1]; member
|
/freebsd/contrib/ofed/libibcm/ |
H A D | cm.h | 112 enum ibv_qp_type qp_type; member 357 enum ibv_qp_type qp_type; member
|
/freebsd/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_def.h | 641 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 D | qlnxr_verbs.c | 1953 QL_DPRINT12(ha, "attrs->qp_type = %d\n", attrs->qp_type); in qlnxr_check_qp_attrs() 2009 if ((attrs->qp_type == IB_QPT_GSI) && udata) { in qlnxr_check_qp_attrs() 2020 if (attrs->qp_type != IB_QPT_RC && attrs->qp_type != IB_QPT_GSI) { in qlnxr_check_qp_attrs() 2022 attrs->qp_type); in qlnxr_check_qp_attrs() 2025 if (attrs->qp_type == IB_QPT_GSI && attrs->srq) { in qlnxr_check_qp_attrs() 2064 if (ibpd->uobject && attrs->qp_type == IB_QPT_GSI) { in qlnxr_check_qp_attrs() 2067 attrs->qp_type); in qlnxr_check_qp_attrs() 2071 if (attrs->qp_type == IB_QPT_GSI && dev->gsi_qp_created) { in qlnxr_check_qp_attrs() 2078 if ((attrs->qp_type != IB_QPT_GSI) && (dev->gsi_qp_created)) { in qlnxr_check_qp_attrs() 2217 qp->qp_type = attrs->qp_type; in qlnxr_set_common_qp_params() [all …]
|