/drivers/infiniband/core/ |
H A D | ucma.c | 261 if (cm_id->qp_type == IB_QPT_UD) 350 static int ucma_get_qp_type(struct rdma_ucm_create_id *cmd, enum ib_qp_type *qp_type) argument 354 *qp_type = IB_QPT_RC; 358 *qp_type = IB_QPT_UD; 361 *qp_type = cmd->qp_type; 374 enum ib_qp_type qp_type; local 383 ret = ucma_get_qp_type(&cmd, &qp_type); 394 ctx->cm_id = rdma_create_id(ucma_event_handler, ctx, cmd.ps, qp_type);
|
H A D | cm_msgs.h | 176 enum ib_qp_type qp_type) 178 switch(qp_type) { 540 static inline __be32 cm_rep_get_qpn(struct cm_rep_msg *rep_msg, enum ib_qp_type qp_type) argument 542 return (qp_type == IB_QPT_XRC_INI) ? 175 cm_req_set_qp_type(struct cm_req_msg *req_msg, enum ib_qp_type qp_type) argument
|
H A D | mad.c | 128 static int get_spl_qp_index(enum ib_qp_type qp_type) argument 130 switch (qp_type) 196 enum ib_qp_type qp_type, 217 qpn = get_spl_qp_index(qp_type); 221 qp_type); 288 if (qp_type == IB_QPT_SMI) { 492 enum ib_qp_type qp_type, 509 qpn = get_spl_qp_index(qp_type); 2870 enum ib_qp_type qp_type) 2883 qp_init_attr.qp_type 194 ib_register_mad_agent(struct ib_device *device, u8 port_num, enum ib_qp_type qp_type, struct ib_mad_reg_req *mad_reg_req, u8 rmpp_version, ib_mad_send_handler send_handler, ib_mad_recv_handler recv_handler, void *context, u32 registration_flags) argument 490 ib_register_mad_snoop(struct ib_device *device, u8 port_num, enum ib_qp_type qp_type, int mad_snoop_flags, ib_mad_snoop_handler snoop_handler, ib_mad_recv_handler recv_handler, void *context) argument 2869 create_mad_qp(struct ib_mad_qp_info *qp_info, enum ib_qp_type qp_type) argument [all...] |
H A D | uverbs_cmd.c | 1606 if (cmd.qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) 1620 if (cmd.qp_type == IB_QPT_XRC_TGT) { 1628 if (cmd.qp_type == IB_QPT_XRC_INI) { 1666 attr.qp_type = cmd.qp_type; 1679 if (cmd.qp_type == IB_QPT_XRC_TGT) 1689 if (cmd.qp_type != IB_QPT_XRC_TGT) { 1698 qp->qp_type = attr.qp_type; 1816 attr.qp_type 1972 modify_qp_mask(enum ib_qp_type qp_type, int mask) argument [all...] |
H A D | cm.c | 227 enum ib_qp_type qp_type; member in struct:cm_id_private 897 if (cm_id_priv->qp_type == IB_QPT_XRC_TGT) 1021 cm_req_set_qp_type(req_msg, param->qp_type); 1030 if (param->qp_type != IB_QPT_XRC_INI) { 1093 if (param->qp_type != IB_QPT_RC && param->qp_type != IB_QPT_UC && 1094 param->qp_type != IB_QPT_XRC_INI) 1159 cm_id_priv->qp_type = param->qp_type; 1301 param->qp_type 1754 cm_format_rep_event(struct cm_work *work, enum ib_qp_type qp_type) argument [all...] |
H A D | cma.c | 493 enum ib_qp_type qp_type) 506 id_priv->id.qp_type = qp_type; 574 if (id->qp_type == IB_QPT_UD) 717 if (id_priv->id.qp_type == IB_QPT_UD) { 740 if (!id_priv->cm_id.ib || (id_priv->id.qp_type == IB_QPT_UD)) 1191 listen_id->ps, ib_event->param.req_rcvd.qp_type); 1276 (ib_event->param.req_rcvd.qp_type == id->qp_type)) || 1278 (id->qp_type 491 rdma_create_id(rdma_cm_event_handler event_handler, void *context, enum rdma_port_space ps, enum ib_qp_type qp_type) argument [all...] |
/drivers/infiniband/hw/ehca/ |
H A D | ehca_qp.c | 162 * ib2ehcaqptype maps Ib to ehca qp_type 465 int qp_type, max_send_sge, max_recv_sge, ret; local 486 qp_type = init_attr->qp_type; 497 if (qp_type & 0x80) { 500 parms.ll_comp_flags = qp_type & LLQP_COMP_MASK; 502 qp_type &= 0x1F; 503 init_attr->qp_type &= 0x1F; 509 if (qp_type == IB_QPT_UC) { 540 if (qp_type ! 2143 enum ib_qp_type qp_type; local [all...] |
H A D | ehca_classes.h | 190 u32 qp_type; member in struct:ehca_qp 409 u32 qp_type; member in struct:ehca_create_qp_resp
|
/drivers/infiniband/hw/mlx4/ |
H A D | mad.c | 638 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); 709 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); 1113 size = (tun_qp->qp->qp_type == IB_QPT_UD) ? 1380 enum ib_qp_type qp_type, int is_tun) 1386 if (qp_type > IB_QPT_GSI) 1389 tun_qp = &ctx->qp[qp_type]; 1438 tun_qp->proxy_qpt = qp_type; 1465 enum ib_qp_type qp_type, int is_tun) 1471 if (qp_type > IB_QPT_GSI) 1474 tun_qp = &ctx->qp[qp_type]; 1379 mlx4_ib_alloc_pv_bufs(struct mlx4_ib_demux_pv_ctx *ctx, enum ib_qp_type qp_type, int is_tun) argument 1464 mlx4_ib_free_pv_qp_bufs(struct mlx4_ib_demux_pv_ctx *ctx, enum ib_qp_type qp_type, int is_tun) argument 1565 create_pv_sqp(struct mlx4_ib_demux_pv_ctx *ctx, enum ib_qp_type qp_type, int create_tun) argument [all...] |
H A D | qp.c | 252 if (qp->ibqp.qp_type == IB_QPT_UD) { 605 if (attr->qp_type == IB_QPT_XRC_INI || attr->qp_type == IB_QPT_XRC_TGT) 630 enum mlx4_ib_qp_type qp_type = (enum mlx4_ib_qp_type) init_attr->qp_type; local 637 if (init_attr->qp_type == IB_QPT_GSI) 638 qp_type = MLX4_IB_QPT_PROXY_GSI; 642 qp_type = MLX4_IB_QPT_PROXY_SMI_OWNER; 644 qp_type = MLX4_IB_QPT_PROXY_SMI; 659 qp_type [all...] |
/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma.h | 372 enum ib_qp_type qp_type; member in struct:ocrdma_qp
|
/drivers/infiniband/hw/mlx5/ |
H A D | qp.c | 83 static int is_qp0(enum ib_qp_type qp_type) argument 85 return qp_type == IB_QPT_SMI; 88 static int is_qp1(enum ib_qp_type qp_type) argument 90 return qp_type == IB_QPT_GSI; 93 static int is_sqp(enum ib_qp_type qp_type) argument 95 return is_qp0(qp_type) || is_qp1(qp_type); 202 static int sq_overhead(enum ib_qp_type qp_type) argument 206 switch (qp_type) { 251 size = sq_overhead(attr->qp_type); 797 is_connected(enum ib_qp_type qp_type) argument [all...] |
/drivers/net/ethernet/mellanox/mlx4/ |
H A D | resource_tracker.c | 705 u32 qp_type; local 711 qp_type = (be32_to_cpu(qpc->flags) >> 16) & 0xff; 721 if (qp_type == MLX4_QP_ST_UD || 722 (qp_type == MLX4_QP_ST_MLX && mlx4_is_eth(dev, port))) { 2904 u32 qp_type; local 2912 qp_type = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; 2915 switch (qp_type) {
|