Lines Matching refs:ret
184 int ret = -1; in exynos_v4l2_close() local
191 ret = close(fd); in exynos_v4l2_close()
195 return ret; in exynos_v4l2_close()
200 int ret = -1; in exynos_v4l2_enuminput() local
211 ret = ioctl(fd, VIDIOC_ENUMINPUT, &input, 32); in exynos_v4l2_enuminput()
212 if (ret) { in exynos_v4l2_enuminput()
228 int ret = -1; in exynos_v4l2_s_input() local
235 return ret; in exynos_v4l2_s_input()
240 ret = ioctl(fd, VIDIOC_S_INPUT, &input); in exynos_v4l2_s_input()
241 if (ret){ in exynos_v4l2_s_input()
243 return ret; in exynos_v4l2_s_input()
248 return ret; in exynos_v4l2_s_input()
254 int ret; in exynos_v4l2_querycap() local
274 ret = ioctl(fd, VIDIOC_QUERYCAP, &cap); in exynos_v4l2_querycap()
275 if (ret) { in exynos_v4l2_querycap()
322 int ret = -1; in exynos_v4l2_g_fmt() local
328 return ret; in exynos_v4l2_g_fmt()
333 return ret; in exynos_v4l2_g_fmt()
338 return ret; in exynos_v4l2_g_fmt()
341 ret = ioctl(fd, VIDIOC_G_FMT, fmt); in exynos_v4l2_g_fmt()
342 if (ret) { in exynos_v4l2_g_fmt()
344 return ret; in exynos_v4l2_g_fmt()
349 return ret; in exynos_v4l2_g_fmt()
354 int ret = -1; in __v4l2_s_fmt() local
360 return ret; in __v4l2_s_fmt()
365 return ret; in __v4l2_s_fmt()
370 return ret; in __v4l2_s_fmt()
372 ret = ioctl(fd, request, fmt); in __v4l2_s_fmt()
373 if (ret) { in __v4l2_s_fmt()
379 return ret; in __v4l2_s_fmt()
385 return ret; in __v4l2_s_fmt()
400 int ret = -1; in exynos_v4l2_reqbufs() local
407 return ret; in exynos_v4l2_reqbufs()
412 return ret; in exynos_v4l2_reqbufs()
419 return ret; in exynos_v4l2_reqbufs()
424 return ret; in exynos_v4l2_reqbufs()
429 ret = ioctl(fd, VIDIOC_REQBUFS, req); in exynos_v4l2_reqbufs()
430 if (ret) { in exynos_v4l2_reqbufs()
431 ALOGE("failed to ioctl: VIDIOC_REQBUFS (%d - %s)", ret, strerror(errno)); in exynos_v4l2_reqbufs()
432 return ret; in exynos_v4l2_reqbufs()
441 return ret; in exynos_v4l2_reqbufs()
446 int ret = -1; in exynos_v4l2_querybuf() local
452 return ret; in exynos_v4l2_querybuf()
457 return ret; in exynos_v4l2_querybuf()
463 return ret; in exynos_v4l2_querybuf()
468 return ret; in exynos_v4l2_querybuf()
471 ret = ioctl(fd, VIDIOC_QUERYBUF, buf); in exynos_v4l2_querybuf()
472 if (ret) { in exynos_v4l2_querybuf()
474 return ret; in exynos_v4l2_querybuf()
479 return ret; in exynos_v4l2_querybuf()
484 int ret = -1; in exynos_v4l2_qbuf() local
490 return ret; in exynos_v4l2_qbuf()
495 return ret; in exynos_v4l2_qbuf()
502 return ret; in exynos_v4l2_qbuf()
507 return ret; in exynos_v4l2_qbuf()
510 ret = ioctl(fd, VIDIOC_QBUF, buf); in exynos_v4l2_qbuf()
511 if (ret) { in exynos_v4l2_qbuf()
513 return ret; in exynos_v4l2_qbuf()
518 return ret; in exynos_v4l2_qbuf()
523 int ret = -1; in exynos_v4l2_dqbuf() local
529 return ret; in exynos_v4l2_dqbuf()
534 return ret; in exynos_v4l2_dqbuf()
541 return ret; in exynos_v4l2_dqbuf()
546 return ret; in exynos_v4l2_dqbuf()
549 ret = ioctl(fd, VIDIOC_DQBUF, buf); in exynos_v4l2_dqbuf()
550 if (ret) { in exynos_v4l2_dqbuf()
555 return ret; in exynos_v4l2_dqbuf()
560 return ret; in exynos_v4l2_dqbuf()
565 int ret = -1; in exynos_v4l2_streamon() local
571 return ret; in exynos_v4l2_streamon()
576 return ret; in exynos_v4l2_streamon()
579 ret = ioctl(fd, VIDIOC_STREAMON, &type); in exynos_v4l2_streamon()
580 if (ret) { in exynos_v4l2_streamon()
582 return ret; in exynos_v4l2_streamon()
587 return ret; in exynos_v4l2_streamon()
592 int ret = -1; in exynos_v4l2_streamoff() local
598 return ret; in exynos_v4l2_streamoff()
603 return ret; in exynos_v4l2_streamoff()
606 ret = ioctl(fd, VIDIOC_STREAMOFF, &type); in exynos_v4l2_streamoff()
607 if (ret) { in exynos_v4l2_streamoff()
609 return ret; in exynos_v4l2_streamoff()
614 return ret; in exynos_v4l2_streamoff()
619 int ret = -1; in exynos_v4l2_cropcap() local
625 return ret; in exynos_v4l2_cropcap()
630 return ret; in exynos_v4l2_cropcap()
635 return ret; in exynos_v4l2_cropcap()
638 ret = ioctl(fd, VIDIOC_CROPCAP, crop); in exynos_v4l2_cropcap()
639 if (ret) { in exynos_v4l2_cropcap()
641 return ret; in exynos_v4l2_cropcap()
646 return ret; in exynos_v4l2_cropcap()
651 int ret = -1; in exynos_v4l2_g_crop() local
657 return ret; in exynos_v4l2_g_crop()
662 return ret; in exynos_v4l2_g_crop()
667 return ret; in exynos_v4l2_g_crop()
670 ret = ioctl(fd, VIDIOC_G_CROP, crop); in exynos_v4l2_g_crop()
671 if (ret) { in exynos_v4l2_g_crop()
673 return ret; in exynos_v4l2_g_crop()
678 return ret; in exynos_v4l2_g_crop()
683 int ret = -1; in exynos_v4l2_s_crop() local
689 return ret; in exynos_v4l2_s_crop()
694 return ret; in exynos_v4l2_s_crop()
699 return ret; in exynos_v4l2_s_crop()
702 ret = ioctl(fd, VIDIOC_S_CROP, crop); in exynos_v4l2_s_crop()
703 if (ret) { in exynos_v4l2_s_crop()
705 return ret; in exynos_v4l2_s_crop()
710 return ret; in exynos_v4l2_s_crop()
715 int ret = -1; in exynos_v4l2_g_ctrl() local
724 return ret; in exynos_v4l2_g_ctrl()
727 ret = ioctl(fd, VIDIOC_G_CTRL, &ctrl); in exynos_v4l2_g_ctrl()
728 if (ret) { in exynos_v4l2_g_ctrl()
730 return ret; in exynos_v4l2_g_ctrl()
737 return ret; in exynos_v4l2_g_ctrl()
742 int ret = -1; in exynos_v4l2_s_ctrl() local
752 return ret; in exynos_v4l2_s_ctrl()
755 ret = ioctl(fd, VIDIOC_S_CTRL, &ctrl); in exynos_v4l2_s_ctrl()
756 if (ret) { in exynos_v4l2_s_ctrl()
758 return ret; in exynos_v4l2_s_ctrl()
763 return ret; in exynos_v4l2_s_ctrl()
768 int ret = -1; in exynos_v4l2_prepare() local
774 return ret; in exynos_v4l2_prepare()
777 ret = ioctl(fd, VIDIOC_PREPARE_BUF, arg); in exynos_v4l2_prepare()
778 if (ret) { in exynos_v4l2_prepare()
780 return ret; in exynos_v4l2_prepare()
785 return ret; in exynos_v4l2_prepare()
790 int ret = -1; in exynos_v4l2_g_parm() local
796 return ret; in exynos_v4l2_g_parm()
801 return ret; in exynos_v4l2_g_parm()
804 ret = ioctl(fd, VIDIOC_G_PARM, streamparm); in exynos_v4l2_g_parm()
805 if (ret) { in exynos_v4l2_g_parm()
807 return ret; in exynos_v4l2_g_parm()
812 return ret; in exynos_v4l2_g_parm()
817 int ret = -1; in exynos_v4l2_s_parm() local
823 return ret; in exynos_v4l2_s_parm()
828 return ret; in exynos_v4l2_s_parm()
831 ret = ioctl(fd, VIDIOC_S_PARM, streamparm); in exynos_v4l2_s_parm()
832 if (ret) { in exynos_v4l2_s_parm()
834 return ret; in exynos_v4l2_s_parm()
839 return ret; in exynos_v4l2_s_parm()
844 int ret = -1; in exynos_v4l2_g_ext_ctrl() local
850 return ret; in exynos_v4l2_g_ext_ctrl()
855 return ret; in exynos_v4l2_g_ext_ctrl()
858 ret = ioctl(fd, VIDIOC_G_EXT_CTRLS, ctrl); in exynos_v4l2_g_ext_ctrl()
859 if (ret) in exynos_v4l2_g_ext_ctrl()
864 return ret; in exynos_v4l2_g_ext_ctrl()
869 int ret = -1; in exynos_v4l2_s_ext_ctrl() local
875 return ret; in exynos_v4l2_s_ext_ctrl()
880 return ret; in exynos_v4l2_s_ext_ctrl()
883 ret = ioctl(fd, VIDIOC_S_EXT_CTRLS, ctrl); in exynos_v4l2_s_ext_ctrl()
884 if (ret) in exynos_v4l2_s_ext_ctrl()
889 return ret; in exynos_v4l2_s_ext_ctrl()