@@ -736,113 +736,6 @@ void drm_fb_helper_deferred_io(struct fb_info *info, struct list_head *pagerefli
736
736
}
737
737
EXPORT_SYMBOL (drm_fb_helper_deferred_io );
738
738
739
- /**
740
- * drm_fb_helper_sys_read - Implements struct &fb_ops.fb_read for system memory
741
- * @info: fb_info struct pointer
742
- * @buf: userspace buffer to read from framebuffer memory
743
- * @count: number of bytes to read from framebuffer memory
744
- * @ppos: read offset within framebuffer memory
745
- *
746
- * Returns:
747
- * The number of bytes read on success, or an error code otherwise.
748
- */
749
- ssize_t drm_fb_helper_sys_read (struct fb_info * info , char __user * buf ,
750
- size_t count , loff_t * ppos )
751
- {
752
- return fb_sys_read (info , buf , count , ppos );
753
- }
754
- EXPORT_SYMBOL (drm_fb_helper_sys_read );
755
-
756
- /**
757
- * drm_fb_helper_sys_write - Implements struct &fb_ops.fb_write for system memory
758
- * @info: fb_info struct pointer
759
- * @buf: userspace buffer to write to framebuffer memory
760
- * @count: number of bytes to write to framebuffer memory
761
- * @ppos: write offset within framebuffer memory
762
- *
763
- * Returns:
764
- * The number of bytes written on success, or an error code otherwise.
765
- */
766
- ssize_t drm_fb_helper_sys_write (struct fb_info * info , const char __user * buf ,
767
- size_t count , loff_t * ppos )
768
- {
769
- struct drm_fb_helper * helper = info -> par ;
770
- loff_t pos = * ppos ;
771
- ssize_t ret ;
772
- struct drm_rect damage_area ;
773
-
774
- ret = fb_sys_write (info , buf , count , ppos );
775
- if (ret <= 0 )
776
- return ret ;
777
-
778
- if (helper -> funcs -> fb_dirty ) {
779
- drm_fb_helper_memory_range_to_clip (info , pos , ret , & damage_area );
780
- drm_fb_helper_damage (helper , damage_area .x1 , damage_area .y1 ,
781
- drm_rect_width (& damage_area ),
782
- drm_rect_height (& damage_area ));
783
- }
784
-
785
- return ret ;
786
- }
787
- EXPORT_SYMBOL (drm_fb_helper_sys_write );
788
-
789
- /**
790
- * drm_fb_helper_sys_fillrect - wrapper around sys_fillrect
791
- * @info: fbdev registered by the helper
792
- * @rect: info about rectangle to fill
793
- *
794
- * A wrapper around sys_fillrect implemented by fbdev core
795
- */
796
- void drm_fb_helper_sys_fillrect (struct fb_info * info ,
797
- const struct fb_fillrect * rect )
798
- {
799
- struct drm_fb_helper * helper = info -> par ;
800
-
801
- sys_fillrect (info , rect );
802
-
803
- if (helper -> funcs -> fb_dirty )
804
- drm_fb_helper_damage (helper , rect -> dx , rect -> dy , rect -> width , rect -> height );
805
- }
806
- EXPORT_SYMBOL (drm_fb_helper_sys_fillrect );
807
-
808
- /**
809
- * drm_fb_helper_sys_copyarea - wrapper around sys_copyarea
810
- * @info: fbdev registered by the helper
811
- * @area: info about area to copy
812
- *
813
- * A wrapper around sys_copyarea implemented by fbdev core
814
- */
815
- void drm_fb_helper_sys_copyarea (struct fb_info * info ,
816
- const struct fb_copyarea * area )
817
- {
818
- struct drm_fb_helper * helper = info -> par ;
819
-
820
- sys_copyarea (info , area );
821
-
822
- if (helper -> funcs -> fb_dirty )
823
- drm_fb_helper_damage (helper , area -> dx , area -> dy , area -> width , area -> height );
824
- }
825
- EXPORT_SYMBOL (drm_fb_helper_sys_copyarea );
826
-
827
- /**
828
- * drm_fb_helper_sys_imageblit - wrapper around sys_imageblit
829
- * @info: fbdev registered by the helper
830
- * @image: info about image to blit
831
- *
832
- * A wrapper around sys_imageblit implemented by fbdev core
833
- */
834
- void drm_fb_helper_sys_imageblit (struct fb_info * info ,
835
- const struct fb_image * image )
836
- {
837
- struct drm_fb_helper * helper = info -> par ;
838
-
839
- sys_imageblit (info , image );
840
-
841
- if (helper -> funcs -> fb_dirty )
842
- drm_fb_helper_damage (helper , image -> dx , image -> dy , image -> width , image -> height );
843
- }
844
- EXPORT_SYMBOL (drm_fb_helper_sys_imageblit );
845
-
846
739
/**
847
740
* drm_fb_helper_cfb_read - Implements struct &fb_ops.fb_read for I/O memory
848
741
* @info: fb_info struct pointer
0 commit comments