Lines Matching refs:__state

933  * @__state: &struct drm_atomic_commit pointer
945 #define for_each_oldnew_connector_in_state(__state, connector, old_connector_state, new_connector_state, __i) \
947 (__i) < (__state)->num_connector; \
949 for_each_if ((__state)->connectors[__i].ptr && \
950 ((connector) = (__state)->connectors[__i].ptr, \
952 (old_connector_state) = (__state)->connectors[__i].old_state, \
953 (new_connector_state) = (__state)->connectors[__i].new_state, 1))
957 * @__state: &struct drm_atomic_commit pointer
967 #define for_each_old_connector_in_state(__state, connector, old_connector_state, __i) \
969 (__i) < (__state)->num_connector; \
971 for_each_if ((__state)->connectors[__i].ptr && \
972 ((connector) = (__state)->connectors[__i].ptr, \
974 (old_connector_state) = (__state)->connectors[__i].old_state, 1))
978 * @__state: &struct drm_atomic_commit pointer
988 #define for_each_new_connector_in_state(__state, connector, new_connector_state, __i) \
990 (__i) < (__state)->num_connector; \
992 for_each_if ((__state)->connectors[__i].ptr && \
993 ((connector) = (__state)->connectors[__i].ptr, \
995 (new_connector_state) = (__state)->connectors[__i].new_state, \
1000 * @__state: &struct drm_atomic_commit pointer
1010 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \
1012 (__i) < (__state)->dev->mode_config.num_crtc; \
1014 for_each_if ((__state)->crtcs[__i].ptr && \
1015 ((crtc) = (__state)->crtcs[__i].ptr, \
1017 (old_crtc_state) = (__state)->crtcs[__i].old_state, \
1019 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
1024 * @__state: &struct drm_atomic_commit pointer
1033 #define for_each_old_crtc_in_state(__state, crtc, old_crtc_state, __i) \
1035 (__i) < (__state)->dev->mode_config.num_crtc; \
1037 for_each_if ((__state)->crtcs[__i].ptr && \
1038 ((crtc) = (__state)->crtcs[__i].ptr, \
1040 (old_crtc_state) = (__state)->crtcs[__i].old_state, 1))
1044 * @__state: &struct drm_atomic_commit pointer
1053 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \
1055 (__i) < (__state)->dev->mode_config.num_crtc; \
1057 for_each_if ((__state)->crtcs[__i].ptr && \
1058 ((crtc) = (__state)->crtcs[__i].ptr, \
1060 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
1065 * @__state: &struct drm_atomic_commit pointer
1075 #define for_each_oldnew_colorop_in_state(__state, colorop, old_colorop_state, \
1078 (__i) < (__state)->dev->mode_config.num_colorop; \
1080 for_each_if ((__state)->colorops[__i].ptr && \
1081 ((colorop) = (__state)->colorops[__i].ptr, \
1083 (old_colorop_state) = (__state)->colorops[__i].old_state,\
1084 (new_colorop_state) = (__state)->colorops[__i].new_state, 1))
1088 * @__state: &struct drm_atomic_commit pointer
1097 #define for_each_new_colorop_in_state(__state, colorop, new_colorop_state, __i) \
1099 (__i) < (__state)->dev->mode_config.num_colorop; \
1101 for_each_if ((__state)->colorops[__i].ptr && \
1102 ((colorop) = (__state)->colorops[__i].ptr, \
1104 (new_colorop_state) = (__state)->colorops[__i].new_state,\
1109 * @__state: &struct drm_atomic_commit pointer
1119 #define for_each_oldnew_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \
1121 (__i) < (__state)->dev->mode_config.num_total_plane; \
1123 for_each_if ((__state)->planes[__i].ptr && \
1124 ((plane) = (__state)->planes[__i].ptr, \
1126 (old_plane_state) = (__state)->planes[__i].old_state,\
1127 (new_plane_state) = (__state)->planes[__i].new_state, 1))
1132 * @__state: &struct drm_atomic_commit pointer
1142 #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __i) \
1143 for ((__i) = ((__state)->dev->mode_config.num_total_plane - 1); \
1146 for_each_if ((__state)->planes[__i].ptr && \
1147 ((plane) = (__state)->planes[__i].ptr, \
1148 (old_plane_state) = (__state)->planes[__i].old_state,\
1149 (new_plane_state) = (__state)->planes[__i].new_state, 1))
1154 * @__state: &struct drm_atomic_commit pointer
1159 #define for_each_new_plane_in_state_reverse(__state, plane, new_plane_state, __i) \
1160 for ((__i) = ((__state)->dev->mode_config.num_total_plane - 1); \
1163 for_each_if ((__state)->planes[__i].ptr && \
1164 ((plane) = (__state)->planes[__i].ptr, \
1165 (new_plane_state) = (__state)->planes[__i].new_state, 1))
1169 * @__state: &struct drm_atomic_commit pointer
1178 #define for_each_old_plane_in_state(__state, plane, old_plane_state, __i) \
1180 (__i) < (__state)->dev->mode_config.num_total_plane; \
1182 for_each_if ((__state)->planes[__i].ptr && \
1183 ((plane) = (__state)->planes[__i].ptr, \
1184 (old_plane_state) = (__state)->planes[__i].old_state, 1))
1187 * @__state: &struct drm_atomic_commit pointer
1196 #define for_each_new_plane_in_state(__state, plane, new_plane_state, __i) \
1198 (__i) < (__state)->dev->mode_config.num_total_plane; \
1200 for_each_if ((__state)->planes[__i].ptr && \
1201 ((plane) = (__state)->planes[__i].ptr, \
1203 (new_plane_state) = (__state)->planes[__i].new_state, \
1208 * @__state: &struct drm_atomic_commit pointer
1218 #define for_each_oldnew_private_obj_in_state(__state, obj, old_obj_state, new_obj_state, __i) \
1220 (__i) < (__state)->num_private_objs && \
1221 ((obj) = (__state)->private_objs[__i].ptr, \
1222 (old_obj_state) = (__state)->private_objs[__i].old_state, \
1223 (new_obj_state) = (__state)->private_objs[__i].new_state, 1); \
1228 * @__state: &struct drm_atomic_commit pointer
1237 #define for_each_old_private_obj_in_state(__state, obj, old_obj_state, __i) \
1239 (__i) < (__state)->num_private_objs && \
1240 ((obj) = (__state)->private_objs[__i].ptr, \
1241 (old_obj_state) = (__state)->private_objs[__i].old_state, 1); \
1246 * @__state: &struct drm_atomic_commit pointer
1255 #define for_each_new_private_obj_in_state(__state, obj, new_obj_state, __i) \
1257 (__i) < (__state)->num_private_objs && \
1258 ((obj) = (__state)->private_objs[__i].ptr, \
1260 (new_obj_state) = (__state)->private_objs[__i].new_state, 1); \