Rev 6082 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6082 | Rev 6936 | ||
---|---|---|---|
Line 128... | Line 128... | ||
128 | struct drm_crtc *crtc); |
128 | struct drm_crtc *crtc); |
129 | int __must_check |
129 | int __must_check |
130 | drm_atomic_add_affected_planes(struct drm_atomic_state *state, |
130 | drm_atomic_add_affected_planes(struct drm_atomic_state *state, |
131 | struct drm_crtc *crtc); |
131 | struct drm_crtc *crtc); |
Line 132... | Line -... | ||
132 | - | ||
133 | int |
- | |
134 | drm_atomic_connectors_for_crtc(struct drm_atomic_state *state, |
- | |
135 | struct drm_crtc *crtc); |
- | |
136 | 132 | ||
Line 137... | Line 133... | ||
137 | void drm_atomic_legacy_backoff(struct drm_atomic_state *state); |
133 | void drm_atomic_legacy_backoff(struct drm_atomic_state *state); |
138 | 134 | ||
Line 147... | Line 143... | ||
147 | for ((__i) = 0; \ |
143 | for ((__i) = 0; \ |
148 | (__i) < (state)->num_connector && \ |
144 | (__i) < (state)->num_connector && \ |
149 | ((connector) = (state)->connectors[__i], \ |
145 | ((connector) = (state)->connectors[__i], \ |
150 | (connector_state) = (state)->connector_states[__i], 1); \ |
146 | (connector_state) = (state)->connector_states[__i], 1); \ |
151 | (__i)++) \ |
147 | (__i)++) \ |
152 | if (connector) |
148 | for_each_if (connector) |
Line 153... | Line 149... | ||
153 | 149 | ||
154 | #define for_each_crtc_in_state(state, crtc, crtc_state, __i) \ |
150 | #define for_each_crtc_in_state(state, crtc, crtc_state, __i) \ |
155 | for ((__i) = 0; \ |
151 | for ((__i) = 0; \ |
156 | (__i) < (state)->dev->mode_config.num_crtc && \ |
152 | (__i) < (state)->dev->mode_config.num_crtc && \ |
157 | ((crtc) = (state)->crtcs[__i], \ |
153 | ((crtc) = (state)->crtcs[__i], \ |
158 | (crtc_state) = (state)->crtc_states[__i], 1); \ |
154 | (crtc_state) = (state)->crtc_states[__i], 1); \ |
159 | (__i)++) \ |
155 | (__i)++) \ |
Line 160... | Line 156... | ||
160 | if (crtc_state) |
156 | for_each_if (crtc_state) |
161 | 157 | ||
162 | #define for_each_plane_in_state(state, plane, plane_state, __i) \ |
158 | #define for_each_plane_in_state(state, plane, plane_state, __i) \ |
163 | for ((__i) = 0; \ |
159 | for ((__i) = 0; \ |
164 | (__i) < (state)->dev->mode_config.num_total_plane && \ |
160 | (__i) < (state)->dev->mode_config.num_total_plane && \ |
165 | ((plane) = (state)->planes[__i], \ |
161 | ((plane) = (state)->planes[__i], \ |
166 | (plane_state) = (state)->plane_states[__i], 1); \ |
162 | (plane_state) = (state)->plane_states[__i], 1); \ |
167 | (__i)++) \ |
163 | (__i)++) \ |
168 | if (plane_state) |
164 | for_each_if (plane_state) |
169 | static inline bool |
165 | static inline bool |
170 | drm_atomic_crtc_needs_modeset(struct drm_crtc_state *state) |
166 | drm_atomic_crtc_needs_modeset(struct drm_crtc_state *state) |
171 | { |
167 | { |