Lines Matching refs:p
594 } p; in omapfb_ioctl() local
598 memset(&p, 0, sizeof(p)); in omapfb_ioctl()
619 if (copy_from_user(&p.uwnd_o, in omapfb_ioctl()
621 sizeof(p.uwnd_o))) { in omapfb_ioctl()
626 r = omapfb_update_window(fbi, p.uwnd_o.x, p.uwnd_o.y, in omapfb_ioctl()
627 p.uwnd_o.width, p.uwnd_o.height); in omapfb_ioctl()
637 if (copy_from_user(&p.uwnd, (void __user *)arg, in omapfb_ioctl()
638 sizeof(p.uwnd))) { in omapfb_ioctl()
643 r = omapfb_update_window(fbi, p.uwnd.x, p.uwnd.y, in omapfb_ioctl()
644 p.uwnd.width, p.uwnd.height); in omapfb_ioctl()
649 if (copy_from_user(&p.plane_info, (void __user *)arg, in omapfb_ioctl()
650 sizeof(p.plane_info))) in omapfb_ioctl()
653 r = omapfb_setup_plane(fbi, &p.plane_info); in omapfb_ioctl()
658 r = omapfb_query_plane(fbi, &p.plane_info); in omapfb_ioctl()
661 if (copy_to_user((void __user *)arg, &p.plane_info, in omapfb_ioctl()
662 sizeof(p.plane_info))) in omapfb_ioctl()
668 if (copy_from_user(&p.mem_info, (void __user *)arg, in omapfb_ioctl()
669 sizeof(p.mem_info))) in omapfb_ioctl()
672 r = omapfb_setup_mem(fbi, &p.mem_info); in omapfb_ioctl()
677 r = omapfb_query_mem(fbi, &p.mem_info); in omapfb_ioctl()
680 if (copy_to_user((void __user *)arg, &p.mem_info, in omapfb_ioctl()
681 sizeof(p.mem_info))) in omapfb_ioctl()
692 memset(&p.caps, 0, sizeof(p.caps)); in omapfb_ioctl()
694 p.caps.ctrl |= OMAPFB_CAPS_MANUAL_UPDATE; in omapfb_ioctl()
696 p.caps.ctrl |= OMAPFB_CAPS_TEARSYNC; in omapfb_ioctl()
698 if (copy_to_user((void __user *)arg, &p.caps, sizeof(p.caps))) in omapfb_ioctl()
704 if (copy_from_user(&p.ovl_colormode, (void __user *)arg, in omapfb_ioctl()
705 sizeof(p.ovl_colormode))) { in omapfb_ioctl()
709 r = omapfb_get_ovl_colormode(fbdev, &p.ovl_colormode); in omapfb_ioctl()
712 if (copy_to_user((void __user *)arg, &p.ovl_colormode, in omapfb_ioctl()
713 sizeof(p.ovl_colormode))) in omapfb_ioctl()
719 if (get_user(p.update_mode, (int __user *)arg)) in omapfb_ioctl()
722 r = omapfb_set_update_mode(fbi, p.update_mode); in omapfb_ioctl()
727 r = omapfb_get_update_mode(fbi, &p.update_mode); in omapfb_ioctl()
730 if (put_user(p.update_mode, in omapfb_ioctl()
737 if (copy_from_user(&p.color_key, (void __user *)arg, in omapfb_ioctl()
738 sizeof(p.color_key))) in omapfb_ioctl()
741 r = omapfb_set_color_key(fbi, &p.color_key); in omapfb_ioctl()
746 r = omapfb_get_color_key(fbi, &p.color_key); in omapfb_ioctl()
749 if (copy_to_user((void __user *)arg, &p.color_key, in omapfb_ioctl()
750 sizeof(p.color_key))) in omapfb_ioctl()
755 if (get_user(p.crt, (__u32 __user *)arg)) { in omapfb_ioctl()
759 if (p.crt != 0) { in omapfb_ioctl()
796 if (get_user(p.test_num, (int __user *)arg)) { in omapfb_ioctl()
805 r = display->driver->run_test(display, p.test_num); in omapfb_ioctl()
811 if (get_user(p.test_num, (int __user *)arg)) { in omapfb_ioctl()
820 r = display->driver->run_test(display, p.test_num); in omapfb_ioctl()
827 if (copy_from_user(&p.memory_read, (void __user *)arg, in omapfb_ioctl()
828 sizeof(p.memory_read))) { in omapfb_ioctl()
833 r = omapfb_memory_read(fbi, &p.memory_read); in omapfb_ioctl()
844 p.vram_info.total = SZ_1M * 64; in omapfb_ioctl()
845 p.vram_info.free = SZ_1M * 64; in omapfb_ioctl()
846 p.vram_info.largest_free_block = SZ_1M * 64; in omapfb_ioctl()
848 if (copy_to_user((void __user *)arg, &p.vram_info, in omapfb_ioctl()
849 sizeof(p.vram_info))) in omapfb_ioctl()
857 if (copy_from_user(&p.tearsync_info, (void __user *)arg, in omapfb_ioctl()
858 sizeof(p.tearsync_info))) { in omapfb_ioctl()
869 !!p.tearsync_info.enabled); in omapfb_ioctl()
886 p.display_info.xres = xres; in omapfb_ioctl()
887 p.display_info.yres = yres; in omapfb_ioctl()
892 p.display_info.width = w; in omapfb_ioctl()
893 p.display_info.height = h; in omapfb_ioctl()
895 p.display_info.width = 0; in omapfb_ioctl()
896 p.display_info.height = 0; in omapfb_ioctl()
899 if (copy_to_user((void __user *)arg, &p.display_info, in omapfb_ioctl()
900 sizeof(p.display_info))) in omapfb_ioctl()