linux/drivers/gpu/drm/msm/msm_atomic.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2014 Red Hat
 * Author: Rob Clark <[email protected]>
 */

#include <drm/drm_atomic_uapi.h>
#include <drm/drm_vblank.h>

#include "msm_atomic_trace.h"
#include "msm_drv.h"
#include "msm_gem.h"
#include "msm_kms.h"

/*
 * Helpers to control vblanks while we flush.. basically just to ensure
 * that vblank accounting is switched on, so we get valid seqn/timestamp
 * on pageflip events (if requested)
 */

static void vblank_get(struct msm_kms *kms, unsigned crtc_mask)
{}

static void vblank_put(struct msm_kms *kms, unsigned crtc_mask)
{}

static void lock_crtcs(struct msm_kms *kms, unsigned int crtc_mask)
{}

static void unlock_crtcs(struct msm_kms *kms, unsigned int crtc_mask)
{}

static void msm_atomic_async_commit(struct msm_kms *kms, int crtc_idx)
{}

static void msm_atomic_pending_work(struct kthread_work *work)
{}

int msm_atomic_init_pending_timer(struct msm_pending_timer *timer,
		struct msm_kms *kms, int crtc_idx)
{}

void msm_atomic_destroy_pending_timer(struct msm_pending_timer *timer)
{}

static bool can_do_async(struct drm_atomic_state *state,
		struct drm_crtc **async_crtc)
{}

/* Get bitmask of crtcs that will need to be flushed.  The bitmask
 * can be used with for_each_crtc_mask() iterator, to iterate
 * effected crtcs without needing to preserve the atomic state.
 */
static unsigned get_crtc_mask(struct drm_atomic_state *state)
{}

int msm_atomic_check(struct drm_device *dev, struct drm_atomic_state *state)
{}

void msm_atomic_commit_tail(struct drm_atomic_state *state)
{}