Lines Matching refs:qp_ctx
666 struct mlx4_qp_context *qp_ctx = inbox->buf + 8; in update_gid() local
668 u32 ts = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; in update_gid()
672 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in update_gid()
674 qp_ctx->pri_path.mgid_index = in update_gid()
677 qp_ctx->pri_path.mgid_index = slave | 0x80; in update_gid()
681 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in update_gid()
683 qp_ctx->pri_path.mgid_index += in update_gid()
685 qp_ctx->pri_path.mgid_index &= 0x7f; in update_gid()
687 qp_ctx->pri_path.mgid_index = slave & 0x7F; in update_gid()
691 port = (qp_ctx->alt_path.sched_queue >> 6 & 1) + 1; in update_gid()
693 qp_ctx->alt_path.mgid_index += in update_gid()
695 qp_ctx->alt_path.mgid_index &= 0x7f; in update_gid()
697 qp_ctx->alt_path.mgid_index = slave & 0x7F; in update_gid()
2937 struct mlx4_qp_context *qp_ctx; in verify_qp_parameters() local
2942 qp_ctx = inbox->buf + 8; in verify_qp_parameters()
2943 qp_type = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; in verify_qp_parameters()
2947 qp_ctx->params2 &= ~MLX4_QP_BIT_FPP; in verify_qp_parameters()
2949 if (qp_ctx->rate_limit_params) in verify_qp_parameters()
2965 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in verify_qp_parameters()
2970 if (qp_ctx->pri_path.mgid_index >= num_gids) in verify_qp_parameters()
2974 port = (qp_ctx->alt_path.sched_queue >> 6 & 1) + 1; in verify_qp_parameters()
2979 if (qp_ctx->alt_path.mgid_index >= num_gids) in verify_qp_parameters()
2990 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in verify_qp_parameters()