Lines Matching refs:res
490 int res = 0; in zoran_v4l_queue_frame() local
497 res = -ENOMEM; in zoran_v4l_queue_frame()
506 res = -EINVAL; in zoran_v4l_queue_frame()
520 res = -EBUSY; in zoran_v4l_queue_frame()
525 if (!res) { in zoran_v4l_queue_frame()
533 res = -EBUSY; /* what are you doing? */ in zoran_v4l_queue_frame()
555 if (!res && zr->v4l_buffers.active == ZORAN_FREE) in zoran_v4l_queue_frame()
558 return res; in zoran_v4l_queue_frame()
636 int res = 0; in zoran_jpg_queue_frame() local
677 res = -EBUSY; in zoran_jpg_queue_frame()
681 if (!res && zr->codec_mode == BUZ_MODE_IDLE) { in zoran_jpg_queue_frame()
688 if (!res) { in zoran_jpg_queue_frame()
710 res = -EBUSY; /* what are you doing? */ in zoran_jpg_queue_frame()
717 if (!res && zr->jpg_buffers.active == ZORAN_FREE) in zoran_jpg_queue_frame()
720 return res; in zoran_jpg_queue_frame()
726 int res = 0; in jpg_qbuf() local
751 if ((res = zoran_jpg_queue_frame(fh, frame, mode))) in jpg_qbuf()
752 return res; in jpg_qbuf()
755 if (!res && zr->jpg_que_head == 1) in jpg_qbuf()
758 return res; in jpg_qbuf()
909 int res, first_open = 0; in zoran_open() local
919 res = -EBUSY; in zoran_open()
930 res = -ENOMEM; in zoran_open()
942 res = -ENOMEM; in zoran_open()
974 ZR_DEVNAME(zr), res, zr->user); in zoran_open()
976 return res; in zoran_open()
1681 int res = 0; in zoran_try_fmt_vid_out() local
1719 res = zoran_check_jpg_settings(zr, &settings, 1); in zoran_try_fmt_vid_out()
1720 if (res) in zoran_try_fmt_vid_out()
1739 return res; in zoran_try_fmt_vid_out()
1778 int res; in zoran_s_fmt_vid_overlay() local
1787 res = setup_window(fh, fmt->fmt.win.w.left, fmt->fmt.win.w.top, in zoran_s_fmt_vid_overlay()
1792 return res; in zoran_s_fmt_vid_overlay()
1802 int res = 0; in zoran_s_fmt_vid_out() local
1816 res = -EBUSY; in zoran_s_fmt_vid_out()
1852 res = zoran_check_jpg_settings(zr, &settings, 0); in zoran_s_fmt_vid_out()
1853 if (res) in zoran_s_fmt_vid_out()
1878 return res; in zoran_s_fmt_vid_out()
1887 int res = 0; in zoran_s_fmt_vid_cap() local
1907 res = -EBUSY; in zoran_s_fmt_vid_cap()
1917 res = zoran_v4l_set_format(fh, fmt->fmt.pix.width, fmt->fmt.pix.height, in zoran_s_fmt_vid_cap()
1919 if (res) in zoran_s_fmt_vid_cap()
1933 return res; in zoran_s_fmt_vid_cap()
1963 int i, res = 0; in zoran_s_fbuf() local
1977 res = setup_fbuffer(fh, fb->base, &zoran_formats[i], fb->fmt.width, in zoran_s_fbuf()
1981 return res; in zoran_s_fbuf()
1988 int res; in zoran_overlay() local
1991 res = setup_overlay(fh, on); in zoran_overlay()
1994 return res; in zoran_overlay()
2003 int res = 0; in zoran_reqbufs() local
2022 res = -EBUSY; in zoran_reqbufs()
2039 res = -ENOMEM; in zoran_reqbufs()
2056 res = -ENOMEM; in zoran_reqbufs()
2064 res = -EINVAL; in zoran_reqbufs()
2070 return res; in zoran_reqbufs()
2077 int res; in zoran_querybuf() local
2080 res = zoran_v4l2_buffer_status(fh, buf, buf->index); in zoran_querybuf()
2083 return res; in zoran_querybuf()
2090 int res = 0, codec_mode, buf_type; in zoran_qbuf() local
2100 res = -EINVAL; in zoran_qbuf()
2104 res = zoran_v4l_queue_frame(fh, buf->index); in zoran_qbuf()
2105 if (res) in zoran_qbuf()
2125 res = -EINVAL; in zoran_qbuf()
2129 res = zoran_jpg_queue_frame(fh, buf->index, codec_mode); in zoran_qbuf()
2130 if (res != 0) in zoran_qbuf()
2142 res = -EINVAL; in zoran_qbuf()
2148 return res; in zoran_qbuf()
2155 int res = 0, buf_type, num = -1; /* compiler borks here (?) */ in zoran_dqbuf() local
2165 res = -EINVAL; in zoran_dqbuf()
2172 res = -EAGAIN; in zoran_dqbuf()
2175 res = v4l_sync(fh, num); in zoran_dqbuf()
2176 if (res) in zoran_dqbuf()
2179 res = zoran_v4l2_buffer_status(fh, buf, num); in zoran_dqbuf()
2196 res = -EINVAL; in zoran_dqbuf()
2204 res = -EAGAIN; in zoran_dqbuf()
2208 res = jpg_sync(fh, &bs); in zoran_dqbuf()
2209 if (res) in zoran_dqbuf()
2211 res = zoran_v4l2_buffer_status(fh, buf, bs.frame); in zoran_dqbuf()
2219 res = -EINVAL; in zoran_dqbuf()
2225 return res; in zoran_dqbuf()
2232 int res = 0; in zoran_streamon() local
2240 res = -EBUSY; in zoran_streamon()
2259 res = -EBUSY; in zoran_streamon()
2276 res = -EINVAL; in zoran_streamon()
2282 return res; in zoran_streamon()
2289 int i, res = 0; in zoran_streamoff() local
2298 res = -EPERM; /* stay off other's settings! */ in zoran_streamoff()
2329 res = -EPERM; /* stay off other's settings! */ in zoran_streamoff()
2335 res = jpg_qbuf(fh, -1, in zoran_streamoff()
2339 if (res) in zoran_streamoff()
2346 res = -EINVAL; in zoran_streamoff()
2352 return res; in zoran_streamoff()
2420 int res = 0; in zoran_s_std() local
2423 res = zoran_set_norm(zr, std); in zoran_s_std()
2424 if (res) in zoran_s_std()
2427 res = wait_grab_pending(zr); in zoran_s_std()
2430 return res; in zoran_s_std()
2470 int res; in zoran_s_input() local
2473 res = zoran_set_input(zr, input); in zoran_s_input()
2474 if (res) in zoran_s_input()
2478 res = wait_grab_pending(zr); in zoran_s_input()
2481 return res; in zoran_s_input()
2518 int type = cropcap->type, res = 0; in zoran_cropcap() local
2531 res = -EINVAL; in zoran_cropcap()
2543 return res; in zoran_cropcap()
2550 int type = crop->type, res = 0; in zoran_g_crop() local
2564 res = -EINVAL; in zoran_g_crop()
2576 return res; in zoran_g_crop()
2583 int res = 0; in zoran_s_crop() local
2594 res = -EBUSY; in zoran_s_crop()
2604 res = -EINVAL; in zoran_s_crop()
2615 res = zoran_check_jpg_settings(zr, &settings, 0); in zoran_s_crop()
2616 if (res) in zoran_s_crop()
2624 return res; in zoran_s_crop()
2659 int res = 0; in zoran_s_jpegcomp() local
2672 res = -EBUSY; in zoran_s_jpegcomp()
2676 res = zoran_check_jpg_settings(zr, &settings, 0); in zoran_s_jpegcomp()
2677 if (res) in zoran_s_jpegcomp()
2686 return res; in zoran_s_jpegcomp()
2695 int res = 0, frame; in zoran_poll() local
2725 res = POLLIN | POLLRDNORM; in zoran_poll()
2746 res = POLLIN | POLLRDNORM; in zoran_poll()
2748 res = POLLOUT | POLLWRNORM; in zoran_poll()
2759 res = POLLNVAL; in zoran_poll()
2764 return res; in zoran_poll()
2859 int res = 0; in zoran_mmap() local
2882 res = -ENOMEM; in zoran_mmap()
2898 res = -EINVAL; in zoran_mmap()
2909 res = -EBUSY; in zoran_mmap()
2917 res = -ENOMEM; in zoran_mmap()
2939 res = -EAGAIN; in zoran_mmap()
2971 res = -EAGAIN; in zoran_mmap()
2992 return res; in zoran_mmap()