Lines Matching refs:__i
756 * @__i: int iteration cursor, for macro-internal use
762 #define for_each_oldnew_connector_in_state(__state, connector, old_connector_state, new_connector_state, __i) \
763 for ((__i) = 0; \
764 (__i) < (__state)->num_connector; \
765 (__i)++) \
766 for_each_if ((__state)->connectors[__i].ptr && \
767 ((connector) = (__state)->connectors[__i].ptr, \
769 (old_connector_state) = (__state)->connectors[__i].old_state, \
770 (new_connector_state) = (__state)->connectors[__i].new_state, 1))
778 * @__i: int iteration cursor, for macro-internal use
784 #define for_each_old_connector_in_state(__state, connector, old_connector_state, __i) \
785 for ((__i) = 0; \
786 (__i) < (__state)->num_connector; \
787 (__i)++) \
788 for_each_if ((__state)->connectors[__i].ptr && \
789 ((connector) = (__state)->connectors[__i].ptr, \
791 (old_connector_state) = (__state)->connectors[__i].old_state, 1))
799 * @__i: int iteration cursor, for macro-internal use
805 #define for_each_new_connector_in_state(__state, connector, new_connector_state, __i) \
806 for ((__i) = 0; \
807 (__i) < (__state)->num_connector; \
808 (__i)++) \
809 for_each_if ((__state)->connectors[__i].ptr && \
810 ((connector) = (__state)->connectors[__i].ptr, \
812 (new_connector_state) = (__state)->connectors[__i].new_state, \
821 * @__i: int iteration cursor, for macro-internal use
827 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \
828 for ((__i) = 0; \
829 (__i) < (__state)->dev->mode_config.num_crtc; \
830 (__i)++) \
831 for_each_if ((__state)->crtcs[__i].ptr && \
832 ((crtc) = (__state)->crtcs[__i].ptr, \
834 (old_crtc_state) = (__state)->crtcs[__i].old_state, \
836 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
844 * @__i: int iteration cursor, for macro-internal use
850 #define for_each_old_crtc_in_state(__state, crtc, old_crtc_state, __i) \
851 for ((__i) = 0; \
852 (__i) < (__state)->dev->mode_config.num_crtc; \
853 (__i)++) \
854 for_each_if ((__state)->crtcs[__i].ptr && \
855 ((crtc) = (__state)->crtcs[__i].ptr, \
857 (old_crtc_state) = (__state)->crtcs[__i].old_state, 1))
864 * @__i: int iteration cursor, for macro-internal use
870 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \
871 for ((__i) = 0; \
872 (__i) < (__state)->dev->mode_config.num_crtc; \
873 (__i)++) \
874 for_each_if ((__state)->crtcs[__i].ptr && \
875 ((crtc) = (__state)->crtcs[__i].ptr, \
877 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
886 * @__i: int iteration cursor, for macro-internal use
892 #define for_each_oldnew_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \
893 for ((__i) = 0; \
894 (__i) < (__state)->dev->mode_config.num_total_plane; \
895 (__i)++) \
896 for_each_if ((__state)->planes[__i].ptr && \
897 ((plane) = (__state)->planes[__i].ptr, \
899 (old_plane_state) = (__state)->planes[__i].old_state,\
900 (new_plane_state) = (__state)->planes[__i].new_state, 1))
909 * @__i: int iteration cursor, for macro-internal use
915 #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __i) \
916 for ((__i) = ((__state)->dev->mode_config.num_total_plane - 1); \
917 (__i) >= 0; \
918 (__i)--) \
919 for_each_if ((__state)->planes[__i].ptr && \
920 ((plane) = (__state)->planes[__i].ptr, \
921 (old_plane_state) = (__state)->planes[__i].old_state,\
922 (new_plane_state) = (__state)->planes[__i].new_state, 1))
930 * @__i: int iteration cursor, for macro-internal use
932 #define for_each_new_plane_in_state_reverse(__state, plane, new_plane_state, __i) \
933 for ((__i) = ((__state)->dev->mode_config.num_total_plane - 1); \
934 (__i) >= 0; \
935 (__i)--) \
936 for_each_if ((__state)->planes[__i].ptr && \
937 ((plane) = (__state)->planes[__i].ptr, \
938 (new_plane_state) = (__state)->planes[__i].new_state, 1))
945 * @__i: int iteration cursor, for macro-internal use
951 #define for_each_old_plane_in_state(__state, plane, old_plane_state, __i) \
952 for ((__i) = 0; \
953 (__i) < (__state)->dev->mode_config.num_total_plane; \
954 (__i)++) \
955 for_each_if ((__state)->planes[__i].ptr && \
956 ((plane) = (__state)->planes[__i].ptr, \
957 (old_plane_state) = (__state)->planes[__i].old_state, 1))
963 * @__i: int iteration cursor, for macro-internal use
969 #define for_each_new_plane_in_state(__state, plane, new_plane_state, __i) \
970 for ((__i) = 0; \
971 (__i) < (__state)->dev->mode_config.num_total_plane; \
972 (__i)++) \
973 for_each_if ((__state)->planes[__i].ptr && \
974 ((plane) = (__state)->planes[__i].ptr, \
976 (new_plane_state) = (__state)->planes[__i].new_state, \
985 * @__i: int iteration cursor, for macro-internal use
991 #define for_each_oldnew_private_obj_in_state(__state, obj, old_obj_state, new_obj_state, __i) \
992 for ((__i) = 0; \
993 (__i) < (__state)->num_private_objs && \
994 ((obj) = (__state)->private_objs[__i].ptr, \
995 (old_obj_state) = (__state)->private_objs[__i].old_state, \
996 (new_obj_state) = (__state)->private_objs[__i].new_state, 1); \
997 (__i)++)
1004 * @__i: int iteration cursor, for macro-internal use
1010 #define for_each_old_private_obj_in_state(__state, obj, old_obj_state, __i) \
1011 for ((__i) = 0; \
1012 (__i) < (__state)->num_private_objs && \
1013 ((obj) = (__state)->private_objs[__i].ptr, \
1014 (old_obj_state) = (__state)->private_objs[__i].old_state, 1); \
1015 (__i)++)
1022 * @__i: int iteration cursor, for macro-internal use
1028 #define for_each_new_private_obj_in_state(__state, obj, new_obj_state, __i) \
1029 for ((__i) = 0; \
1030 (__i) < (__state)->num_private_objs && \
1031 ((obj) = (__state)->private_objs[__i].ptr, \
1033 (new_obj_state) = (__state)->private_objs[__i].new_state, 1); \
1034 (__i)++)