Lines Matching refs:qp_ctx
690 struct mlx4_qp_context *qp_ctx = inbox->buf + 8; in update_gid() local
692 u32 ts = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; in update_gid()
696 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in update_gid()
698 qp_ctx->pri_path.mgid_index = in update_gid()
701 qp_ctx->pri_path.mgid_index = slave | 0x80; in update_gid()
705 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in update_gid()
707 qp_ctx->pri_path.mgid_index += in update_gid()
709 qp_ctx->pri_path.mgid_index &= 0x7f; in update_gid()
711 qp_ctx->pri_path.mgid_index = slave & 0x7F; in update_gid()
715 port = (qp_ctx->alt_path.sched_queue >> 6 & 1) + 1; in update_gid()
717 qp_ctx->alt_path.mgid_index += in update_gid()
719 qp_ctx->alt_path.mgid_index &= 0x7f; in update_gid()
721 qp_ctx->alt_path.mgid_index = slave & 0x7F; in update_gid()
3109 struct mlx4_qp_context *qp_ctx; in verify_qp_parameters() local
3114 qp_ctx = inbox->buf + 8; in verify_qp_parameters()
3115 qp_type = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; in verify_qp_parameters()
3119 qp_ctx->params2 &= ~MLX4_QP_BIT_FPP; in verify_qp_parameters()
3121 if (qp_ctx->rate_limit_params) in verify_qp_parameters()
3137 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in verify_qp_parameters()
3142 if (qp_ctx->pri_path.mgid_index >= num_gids) in verify_qp_parameters()
3146 port = (qp_ctx->alt_path.sched_queue >> 6 & 1) + 1; in verify_qp_parameters()
3151 if (qp_ctx->alt_path.mgid_index >= num_gids) in verify_qp_parameters()
3163 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in verify_qp_parameters()