Lines Matching refs:__i
696 * @__i: int iteration cursor, for macro-internal use
702 #define for_each_oldnew_connector_in_state(__state, connector, old_connector_state, new_connector_state, __i) \
703 for ((__i) = 0; \
704 (__i) < (__state)->num_connector; \
705 (__i)++) \
706 for_each_if ((__state)->connectors[__i].ptr && \
707 ((connector) = (__state)->connectors[__i].ptr, \
709 (old_connector_state) = (__state)->connectors[__i].old_state, \
710 (new_connector_state) = (__state)->connectors[__i].new_state, 1))
718 * @__i: int iteration cursor, for macro-internal use
724 #define for_each_old_connector_in_state(__state, connector, old_connector_state, __i) \
725 for ((__i) = 0; \
726 (__i) < (__state)->num_connector; \
727 (__i)++) \
728 for_each_if ((__state)->connectors[__i].ptr && \
729 ((connector) = (__state)->connectors[__i].ptr, \
731 (old_connector_state) = (__state)->connectors[__i].old_state, 1))
739 * @__i: int iteration cursor, for macro-internal use
745 #define for_each_new_connector_in_state(__state, connector, new_connector_state, __i) \
746 for ((__i) = 0; \
747 (__i) < (__state)->num_connector; \
748 (__i)++) \
749 for_each_if ((__state)->connectors[__i].ptr && \
750 ((connector) = (__state)->connectors[__i].ptr, \
752 (new_connector_state) = (__state)->connectors[__i].new_state, \
761 * @__i: int iteration cursor, for macro-internal use
767 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \
768 for ((__i) = 0; \
769 (__i) < (__state)->dev->mode_config.num_crtc; \
770 (__i)++) \
771 for_each_if ((__state)->crtcs[__i].ptr && \
772 ((crtc) = (__state)->crtcs[__i].ptr, \
774 (old_crtc_state) = (__state)->crtcs[__i].old_state, \
776 (new_crtc_state) = (__state)->crtcs[__i].new_state, 1))
783 * @__i: int iteration cursor, for macro-internal use
789 #define for_each_old_crtc_in_state(__state, crtc, old_crtc_state, __i) \
790 for ((__i) = 0; \
791 (__i) < (__state)->dev->mode_config.num_crtc; \
792 (__i)++) \
793 for_each_if ((__state)->crtcs[__i].ptr && \
794 ((crtc) = (__state)->crtcs[__i].ptr, \
795 (old_crtc_state) = (__state)->crtcs[__i].old_state, 1))
802 * @__i: int iteration cursor, for macro-internal use
808 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \
809 for ((__i) = 0; \
810 (__i) < (__state)->dev->mode_config.num_crtc; \
811 (__i)++) \
812 for_each_if ((__state)->crtcs[__i].ptr && \
813 ((crtc) = (__state)->crtcs[__i].ptr, \
815 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
824 * @__i: int iteration cursor, for macro-internal use
830 #define for_each_oldnew_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \
831 for ((__i) = 0; \
832 (__i) < (__state)->dev->mode_config.num_total_plane; \
833 (__i)++) \
834 for_each_if ((__state)->planes[__i].ptr && \
835 ((plane) = (__state)->planes[__i].ptr, \
837 (old_plane_state) = (__state)->planes[__i].old_state,\
838 (new_plane_state) = (__state)->planes[__i].new_state, 1))
847 * @__i: int iteration cursor, for macro-internal use
853 #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __i) \
854 for ((__i) = ((__state)->dev->mode_config.num_total_plane - 1); \
855 (__i) >= 0; \
856 (__i)--) \
857 for_each_if ((__state)->planes[__i].ptr && \
858 ((plane) = (__state)->planes[__i].ptr, \
859 (old_plane_state) = (__state)->planes[__i].old_state,\
860 (new_plane_state) = (__state)->planes[__i].new_state, 1))
867 * @__i: int iteration cursor, for macro-internal use
873 #define for_each_old_plane_in_state(__state, plane, old_plane_state, __i) \
874 for ((__i) = 0; \
875 (__i) < (__state)->dev->mode_config.num_total_plane; \
876 (__i)++) \
877 for_each_if ((__state)->planes[__i].ptr && \
878 ((plane) = (__state)->planes[__i].ptr, \
879 (old_plane_state) = (__state)->planes[__i].old_state, 1))
885 * @__i: int iteration cursor, for macro-internal use
891 #define for_each_new_plane_in_state(__state, plane, new_plane_state, __i) \
892 for ((__i) = 0; \
893 (__i) < (__state)->dev->mode_config.num_total_plane; \
894 (__i)++) \
895 for_each_if ((__state)->planes[__i].ptr && \
896 ((plane) = (__state)->planes[__i].ptr, \
898 (new_plane_state) = (__state)->planes[__i].new_state, \
907 * @__i: int iteration cursor, for macro-internal use
913 #define for_each_oldnew_private_obj_in_state(__state, obj, old_obj_state, new_obj_state, __i) \
914 for ((__i) = 0; \
915 (__i) < (__state)->num_private_objs && \
916 ((obj) = (__state)->private_objs[__i].ptr, \
917 (old_obj_state) = (__state)->private_objs[__i].old_state, \
918 (new_obj_state) = (__state)->private_objs[__i].new_state, 1); \
919 (__i)++)
926 * @__i: int iteration cursor, for macro-internal use
932 #define for_each_old_private_obj_in_state(__state, obj, old_obj_state, __i) \
933 for ((__i) = 0; \
934 (__i) < (__state)->num_private_objs && \
935 ((obj) = (__state)->private_objs[__i].ptr, \
936 (old_obj_state) = (__state)->private_objs[__i].old_state, 1); \
937 (__i)++)
944 * @__i: int iteration cursor, for macro-internal use
950 #define for_each_new_private_obj_in_state(__state, obj, new_obj_state, __i) \
951 for ((__i) = 0; \
952 (__i) < (__state)->num_private_objs && \
953 ((obj) = (__state)->private_objs[__i].ptr, \
954 (new_obj_state) = (__state)->private_objs[__i].new_state, 1); \
955 (__i)++)