treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / display / intel_atomic_plane.h
blob5cedafdddb5570aae0288a0366a3aa37b7c59573
1 /* SPDX-License-Identifier: MIT */
2 /*
3 * Copyright © 2019 Intel Corporation
4 */
6 #ifndef __INTEL_ATOMIC_PLANE_H__
7 #define __INTEL_ATOMIC_PLANE_H__
9 #include <linux/types.h>
11 struct drm_plane;
12 struct drm_property;
13 struct intel_atomic_state;
14 struct intel_crtc;
15 struct intel_crtc_state;
16 struct intel_plane;
17 struct intel_plane_state;
19 extern const struct drm_plane_helper_funcs intel_plane_helper_funcs;
21 unsigned int intel_plane_data_rate(const struct intel_crtc_state *crtc_state,
22 const struct intel_plane_state *plane_state);
23 void intel_plane_copy_uapi_to_hw_state(struct intel_plane_state *plane_state,
24 const struct intel_plane_state *from_plane_state);
25 void intel_update_plane(struct intel_plane *plane,
26 const struct intel_crtc_state *crtc_state,
27 const struct intel_plane_state *plane_state);
28 void intel_disable_plane(struct intel_plane *plane,
29 const struct intel_crtc_state *crtc_state);
30 struct intel_plane *intel_plane_alloc(void);
31 void intel_plane_free(struct intel_plane *plane);
32 struct drm_plane_state *intel_plane_duplicate_state(struct drm_plane *plane);
33 void intel_plane_destroy_state(struct drm_plane *plane,
34 struct drm_plane_state *state);
35 void skl_update_planes_on_crtc(struct intel_atomic_state *state,
36 struct intel_crtc *crtc);
37 void i9xx_update_planes_on_crtc(struct intel_atomic_state *state,
38 struct intel_crtc *crtc);
39 int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_state,
40 struct intel_crtc_state *crtc_state,
41 const struct intel_plane_state *old_plane_state,
42 struct intel_plane_state *intel_state);
43 int intel_plane_atomic_check(struct intel_atomic_state *state,
44 struct intel_plane *plane);
45 int intel_plane_atomic_calc_changes(const struct intel_crtc_state *old_crtc_state,
46 struct intel_crtc_state *crtc_state,
47 const struct intel_plane_state *old_plane_state,
48 struct intel_plane_state *plane_state);
49 bool intel_plane_calc_min_cdclk(struct intel_atomic_state *state,
50 struct intel_plane *plane);
52 #endif /* __INTEL_ATOMIC_PLANE_H__ */