Lines Matching refs:r
69 int r = 0; in omapfb_setup_plane() local
74 r = -EINVAL; in omapfb_setup_plane()
84 r = -EINVAL; in omapfb_setup_plane()
103 r = -EINVAL; in omapfb_setup_plane()
115 r = ovl->disable(ovl); in omapfb_setup_plane()
116 if (r) in omapfb_setup_plane()
121 r = omapfb_setup_overlay(fbi, ovl, pi->pos_x, pi->pos_y, in omapfb_setup_plane()
123 if (r) in omapfb_setup_plane()
135 r = ovl->set_overlay_info(ovl, &info); in omapfb_setup_plane()
136 if (r) in omapfb_setup_plane()
144 r = ovl->enable(ovl); in omapfb_setup_plane()
145 if (r) in omapfb_setup_plane()
181 return r; in omapfb_setup_plane()
216 int r = 0, i; in omapfb_setup_mem() local
236 r = -EBUSY; in omapfb_setup_mem()
251 r = -EBUSY; in omapfb_setup_mem()
257 r = omapfb_realloc_fbmem(fbi, size, mi->type); in omapfb_setup_mem()
258 if (r) { in omapfb_setup_mem()
267 return r; in omapfb_setup_mem()
313 int r; in omapfb_set_update_mode() local
330 r = 0; in omapfb_set_update_mode()
341 r = -EINVAL; in omapfb_set_update_mode()
346 return r; in omapfb_set_update_mode()
379 int r; in _omapfb_set_color_key() local
387 r = mgr->set_manager_info(mgr, &info); in _omapfb_set_color_key()
388 if (r) in _omapfb_set_color_key()
389 return r; in _omapfb_set_color_key()
391 r = mgr->apply(mgr); in _omapfb_set_color_key()
393 return r; in _omapfb_set_color_key()
414 r = mgr->set_manager_info(mgr, &info); in _omapfb_set_color_key()
415 if (r) in _omapfb_set_color_key()
416 return r; in _omapfb_set_color_key()
418 r = mgr->apply(mgr); in _omapfb_set_color_key()
420 return r; in _omapfb_set_color_key()
428 int r; in omapfb_set_color_key() local
442 r = -EINVAL; in omapfb_set_color_key()
446 r = _omapfb_set_color_key(mgr, ck); in omapfb_set_color_key()
450 return r; in omapfb_set_color_key()
459 int r = 0; in omapfb_get_color_key() local
472 r = -EINVAL; in omapfb_get_color_key()
480 return r; in omapfb_get_color_key()
488 int r; in omapfb_memory_read() local
505 r = display->driver->memory_read(display, buf, mr->buffer_size, in omapfb_memory_read()
508 if (r > 0) { in omapfb_memory_read()
510 r = -EFAULT; in omapfb_memory_read()
515 return r; in omapfb_memory_read()
567 int r = 0; in omapfb_wait_for_go() local
572 r = ovl->wait_for_go(ovl); in omapfb_wait_for_go()
573 if (r) in omapfb_wait_for_go()
577 return r; in omapfb_wait_for_go()
604 int r = 0; in omapfb_ioctl() local
615 r = display->driver->sync(display); in omapfb_ioctl()
621 r = -EINVAL; in omapfb_ioctl()
628 r = -EFAULT; in omapfb_ioctl()
632 r = omapfb_update_window(fbi, p.uwnd_o.x, p.uwnd_o.y, in omapfb_ioctl()
639 r = -EINVAL; in omapfb_ioctl()
645 r = -EFAULT; in omapfb_ioctl()
649 r = omapfb_update_window(fbi, p.uwnd.x, p.uwnd.y, in omapfb_ioctl()
657 r = -EFAULT; in omapfb_ioctl()
659 r = omapfb_setup_plane(fbi, &p.plane_info); in omapfb_ioctl()
664 r = omapfb_query_plane(fbi, &p.plane_info); in omapfb_ioctl()
665 if (r < 0) in omapfb_ioctl()
669 r = -EFAULT; in omapfb_ioctl()
676 r = -EFAULT; in omapfb_ioctl()
678 r = omapfb_setup_mem(fbi, &p.mem_info); in omapfb_ioctl()
683 r = omapfb_query_mem(fbi, &p.mem_info); in omapfb_ioctl()
684 if (r < 0) in omapfb_ioctl()
688 r = -EFAULT; in omapfb_ioctl()
694 r = -EINVAL; in omapfb_ioctl()
705 r = -EFAULT; in omapfb_ioctl()
712 r = -EFAULT; in omapfb_ioctl()
715 r = omapfb_get_ovl_colormode(fbdev, &p.ovl_colormode); in omapfb_ioctl()
716 if (r < 0) in omapfb_ioctl()
720 r = -EFAULT; in omapfb_ioctl()
726 r = -EFAULT; in omapfb_ioctl()
728 r = omapfb_set_update_mode(fbi, p.update_mode); in omapfb_ioctl()
733 r = omapfb_get_update_mode(fbi, &p.update_mode); in omapfb_ioctl()
734 if (r) in omapfb_ioctl()
738 r = -EFAULT; in omapfb_ioctl()
745 r = -EFAULT; in omapfb_ioctl()
747 r = omapfb_set_color_key(fbi, &p.color_key); in omapfb_ioctl()
752 r = omapfb_get_color_key(fbi, &p.color_key); in omapfb_ioctl()
753 if (r) in omapfb_ioctl()
757 r = -EFAULT; in omapfb_ioctl()
762 r = -EFAULT; in omapfb_ioctl()
766 r = -ENODEV; in omapfb_ioctl()
774 r = -EINVAL; in omapfb_ioctl()
780 r = mgr->wait_for_vsync(mgr); in omapfb_ioctl()
786 r = -EINVAL; in omapfb_ioctl()
790 r = omapfb_wait_for_go(fbi); in omapfb_ioctl()
798 r = -EFAULT; in omapfb_ioctl()
802 r = -EINVAL; in omapfb_ioctl()
806 r = display->driver->run_test(display, p.test_num); in omapfb_ioctl()
813 r = -EFAULT; in omapfb_ioctl()
817 r = -EINVAL; in omapfb_ioctl()
821 r = display->driver->run_test(display, p.test_num); in omapfb_ioctl()
830 r = -EFAULT; in omapfb_ioctl()
834 r = omapfb_memory_read(fbi, &p.memory_read); in omapfb_ioctl()
851 r = -EFAULT; in omapfb_ioctl()
860 r = -EFAULT; in omapfb_ioctl()
865 r = -ENODEV; in omapfb_ioctl()
869 r = display->driver->enable_te(display, in omapfb_ioctl()
881 r = -ENODEV; in omapfb_ioctl()
902 r = -EFAULT; in omapfb_ioctl()
908 r = -EINVAL; in omapfb_ioctl()
911 if (r < 0) in omapfb_ioctl()
912 DBG("ioctl failed: %d\n", r); in omapfb_ioctl()
914 return r; in omapfb_ioctl()