Lines Matching refs:qp_ctx
699 struct mlx4_qp_context *qp_ctx = inbox->buf + 8; in update_gid() local
701 u32 ts = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; 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()
710 qp_ctx->pri_path.mgid_index = slave | 0x80; in update_gid()
714 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in update_gid()
716 qp_ctx->pri_path.mgid_index += in update_gid()
718 qp_ctx->pri_path.mgid_index &= 0x7f; in update_gid()
720 qp_ctx->pri_path.mgid_index = slave & 0x7F; in update_gid()
724 port = (qp_ctx->alt_path.sched_queue >> 6 & 1) + 1; in update_gid()
726 qp_ctx->alt_path.mgid_index += in update_gid()
728 qp_ctx->alt_path.mgid_index &= 0x7f; in update_gid()
730 qp_ctx->alt_path.mgid_index = slave & 0x7F; in update_gid()
3179 struct mlx4_qp_context *qp_ctx; in verify_qp_parameters() local
3184 qp_ctx = inbox->buf + 8; in verify_qp_parameters()
3185 qp_type = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; in verify_qp_parameters()
3189 qp_ctx->params2 &= ~cpu_to_be32(MLX4_QP_BIT_FPP); in verify_qp_parameters()
3191 if (qp_ctx->rate_limit_params) in verify_qp_parameters()
3207 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in verify_qp_parameters()
3212 if (qp_ctx->pri_path.mgid_index >= num_gids) in verify_qp_parameters()
3216 port = (qp_ctx->alt_path.sched_queue >> 6 & 1) + 1; in verify_qp_parameters()
3221 if (qp_ctx->alt_path.mgid_index >= num_gids) in verify_qp_parameters()
3233 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in verify_qp_parameters()