/external/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
D | test_VIDIOC_ENUMINPUT.c | 45 int ret_enum, errno_enum; in test_VIDIOC_ENUMINPUT() local 54 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMINPUT, &input); in test_VIDIOC_ENUMINPUT() 59 __FILE__, __LINE__, ret_enum, errno_enum); in test_VIDIOC_ENUMINPUT() 61 if (ret_enum == 0) { in test_VIDIOC_ENUMINPUT() 62 CU_ASSERT_EQUAL(ret_enum, 0); in test_VIDIOC_ENUMINPUT() 99 CU_ASSERT_EQUAL(ret_enum, -1); in test_VIDIOC_ENUMINPUT() 109 } while (ret_enum == 0); in test_VIDIOC_ENUMINPUT() 115 int ret_enum, errno_enum; in test_VIDIOC_ENUMINPUT_S32_MAX() local 121 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMINPUT, &input); in test_VIDIOC_ENUMINPUT_S32_MAX() 125 __FILE__, __LINE__, ret_enum, errno_enum); in test_VIDIOC_ENUMINPUT_S32_MAX() [all …]
|
D | test_VIDIOC_ENUMAUDOUT.c | 45 int ret_enum, errno_enum; in test_VIDIOC_ENUMAUDOUT() local 54 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMAUDOUT, &audioout); in test_VIDIOC_ENUMAUDOUT() 58 ret_enum, errno_enum); in test_VIDIOC_ENUMAUDOUT() 60 if (ret_enum == 0) { in test_VIDIOC_ENUMAUDOUT() 61 CU_ASSERT_EQUAL(ret_enum, 0); in test_VIDIOC_ENUMAUDOUT() 100 CU_ASSERT_EQUAL(ret_enum, -1); in test_VIDIOC_ENUMAUDOUT() 112 } while (ret_enum == 0); in test_VIDIOC_ENUMAUDOUT() 118 int ret_enum, errno_enum; in test_VIDIOC_ENUMAUDOUT_S32_MAX() local 124 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMAUDOUT, &audioout); in test_VIDIOC_ENUMAUDOUT_S32_MAX() 127 CU_ASSERT_EQUAL(ret_enum, -1); in test_VIDIOC_ENUMAUDOUT_S32_MAX() [all …]
|
D | test_VIDIOC_ENUMAUDIO.c | 40 int ret_enum, errno_enum; in test_VIDIOC_ENUMAUDIO() local 49 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMAUDIO, &audio); in test_VIDIOC_ENUMAUDIO() 54 __FILE__, __LINE__, ret_enum, errno_enum); in test_VIDIOC_ENUMAUDIO() 56 if (ret_enum == 0) { in test_VIDIOC_ENUMAUDIO() 57 CU_ASSERT_EQUAL(ret_enum, 0); in test_VIDIOC_ENUMAUDIO() 93 CU_ASSERT_EQUAL(ret_enum, -1); in test_VIDIOC_ENUMAUDIO() 103 } while (ret_enum == 0); in test_VIDIOC_ENUMAUDIO() 109 int ret_enum, errno_enum; in test_VIDIOC_ENUMAUDIO_S32_MAX() local 115 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMAUDIO, &audio); in test_VIDIOC_ENUMAUDIO_S32_MAX() 118 CU_ASSERT_EQUAL(ret_enum, -1); in test_VIDIOC_ENUMAUDIO_S32_MAX() [all …]
|
D | test_VIDIOC_ENUMOUTPUT.c | 39 int ret_enum, errno_enum; in test_VIDIOC_ENUMOUTPUT() local 48 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMOUTPUT, &output); in test_VIDIOC_ENUMOUTPUT() 53 __FILE__, __LINE__, ret_enum, errno_enum); in test_VIDIOC_ENUMOUTPUT() 55 if (ret_enum == 0) { in test_VIDIOC_ENUMOUTPUT() 56 CU_ASSERT_EQUAL(ret_enum, 0); in test_VIDIOC_ENUMOUTPUT() 104 CU_ASSERT_EQUAL(ret_enum, -1); in test_VIDIOC_ENUMOUTPUT() 116 } while (ret_enum == 0); in test_VIDIOC_ENUMOUTPUT() 122 int ret_enum, errno_enum; in test_VIDIOC_ENUMOUTPUT_S32_MAX() local 128 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMOUTPUT, &output); in test_VIDIOC_ENUMOUTPUT_S32_MAX() 131 CU_ASSERT_EQUAL(ret_enum, -1); in test_VIDIOC_ENUMOUTPUT_S32_MAX() [all …]
|
D | test_VIDIOC_ENUMSTD.c | 48 int ret_enum, errno_enum; in test_VIDIOC_ENUMSTD() local 57 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMSTD, &std); in test_VIDIOC_ENUMSTD() 61 __FILE__, __LINE__, ret_enum, errno_enum); in test_VIDIOC_ENUMSTD() 63 if (ret_enum == 0) { in test_VIDIOC_ENUMSTD() 64 CU_ASSERT_EQUAL(ret_enum, 0); in test_VIDIOC_ENUMSTD() 111 CU_ASSERT_EQUAL(ret_enum, -1); in test_VIDIOC_ENUMSTD() 120 } while (ret_enum == 0); in test_VIDIOC_ENUMSTD() 125 int ret_enum, errno_enum; in test_VIDIOC_ENUMSTD_S32_MAX() local 131 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMSTD, &std); in test_VIDIOC_ENUMSTD_S32_MAX() 134 CU_ASSERT_EQUAL(ret_enum, -1); in test_VIDIOC_ENUMSTD_S32_MAX() [all …]
|
D | test_VIDIOC_ENUM_FMT.c | 44 int ret_enum, errno_enum; in do_enumerate_formats() local 55 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in do_enumerate_formats() 60 __FILE__, __LINE__, i, type, ret_enum, errno_enum); in do_enumerate_formats() 61 if (ret_enum == 0) { in do_enumerate_formats() 62 CU_ASSERT_EQUAL(ret_enum, 0); in do_enumerate_formats() 104 CU_ASSERT_EQUAL(ret_enum, -1); in do_enumerate_formats() 115 } while (ret_enum == 0); in do_enumerate_formats() 134 int ret_enum, errno_enum; in test_VIDIOC_ENUM_FMT_S32_MAX() local 142 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in test_VIDIOC_ENUM_FMT_S32_MAX() 147 __FILE__, __LINE__, format.index, format.type, ret_enum, in test_VIDIOC_ENUM_FMT_S32_MAX() [all …]
|
D | test_VIDIOC_OUTPUT.c | 36 int ret_enum, errno_enum; in valid_output_index() local 48 ret_enum = ioctl(f, VIDIOC_ENUMOUTPUT, &output); in valid_output_index() 50 if (ret_enum == 0 && index == i) { in valid_output_index() 55 } while (ret_enum == 0 && i != 0); in valid_output_index() 91 int ret_enum, errno_enum; in test_VIDIOC_S_OUTPUT_from_enum() local 109 ret_enum = ioctl(f, VIDIOC_ENUMOUTPUT, &output); in test_VIDIOC_S_OUTPUT_from_enum() 114 i, ret_enum, errno_enum); in test_VIDIOC_S_OUTPUT_from_enum() 116 if (ret_enum == 0) { in test_VIDIOC_S_OUTPUT_from_enum() 128 } while (ret_enum == 0 && i != 0); in test_VIDIOC_S_OUTPUT_from_enum() 169 int ret_enum, errno_enum; in test_VIDIOC_S_OUTPUT_invalid_outputs() local [all …]
|
D | test_VIDIOC_INPUT.c | 38 int ret_enum, errno_enum; in valid_input_index() local 50 ret_enum = ioctl(f, VIDIOC_ENUMINPUT, &input); in valid_input_index() 52 if (ret_enum == 0 && index == i) { in valid_input_index() 57 } while (ret_enum == 0 && i != 0); in valid_input_index() 92 int ret_enum, errno_enum; in test_VIDIOC_S_INPUT_from_enum() local 111 ret_enum = ioctl(f, VIDIOC_ENUMINPUT, &input); in test_VIDIOC_S_INPUT_from_enum() 115 ret_enum, errno); in test_VIDIOC_S_INPUT_from_enum() 117 if (ret_enum == 0) { in test_VIDIOC_S_INPUT_from_enum() 129 } while (ret_enum == 0 && i != 0); in test_VIDIOC_S_INPUT_from_enum() 168 int ret_enum, errno_enum; in test_VIDIOC_S_INPUT_invalid_inputs() local [all …]
|
D | test_VIDIOC_ENUM_FRAMESIZES.c | 163 int ret_enum, errno_enum; in do_test_VIDIOC_ENUM_FRAMESIZES_type() local 173 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in do_test_VIDIOC_ENUM_FRAMESIZES_type() 178 __FILE__, __LINE__, i, format.type, ret_enum, errno_enum); in do_test_VIDIOC_ENUM_FRAMESIZES_type() 186 } while (ret_enum == 0 && i != 0); in do_test_VIDIOC_ENUM_FRAMESIZES_type() 293 int ret_enum, errno_enum; in do_test_VIDIOC_ENUM_FRAMESIZES_type_invalid_index() local 303 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in do_test_VIDIOC_ENUM_FRAMESIZES_type_invalid_index() 308 __FILE__, __LINE__, i, format.type, ret_enum, errno_enum); in do_test_VIDIOC_ENUM_FRAMESIZES_type_invalid_index() 317 } while (ret_enum == 0 && i != 0); in do_test_VIDIOC_ENUM_FRAMESIZES_type_invalid_index() 336 int ret_enum, errno_enum; in supported_pixel_format_type() local 347 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &format); in supported_pixel_format_type() [all …]
|
D | test_VIDIOC_FMT.c | 711 int ret_enum, errno_enum; in do_set_formats_enum() local 739 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUM_FMT, &fmtdesc); in do_set_formats_enum() 744 __FILE__, __LINE__, i, type, ret_enum, errno_enum); in do_set_formats_enum() 763 CU_ASSERT_EQUAL(ret_enum, 0); in do_set_formats_enum() 840 CU_ASSERT_EQUAL(ret_enum, 0); in do_set_formats_enum() 923 CU_ASSERT_EQUAL(ret_enum, -1); in do_set_formats_enum() 943 CU_ASSERT_EQUAL(ret_enum, 0); in do_set_formats_enum() 1006 CU_ASSERT_EQUAL(ret_enum, 0); in do_set_formats_enum() 1057 CU_ASSERT_EQUAL(ret_enum, -1); in do_set_formats_enum() 1076 CU_ASSERT_EQUAL(ret_enum, 0); in do_set_formats_enum() [all …]
|
D | test_VIDIOC_AUDIO.c | 201 int ret_enum, errno_enum; in test_VIDIOC_S_AUDIO() local 236 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMAUDIO, &audio_enum); in test_VIDIOC_S_AUDIO() 239 if (ret_enum == 0) { in test_VIDIOC_S_AUDIO() 249 CU_ASSERT_EQUAL(ret_enum, 0); in test_VIDIOC_S_AUDIO() 254 } while (ret_enum == 0); in test_VIDIOC_S_AUDIO() 255 CU_ASSERT_EQUAL(ret_enum, -1); in test_VIDIOC_S_AUDIO()
|
D | test_VIDIOC_STD.c | 313 int ret_enum, errno_enum; in do_test_VIDIOC_S_STD_from_enum() local 335 ret_enum = ioctl(f, VIDIOC_ENUMSTD, &std); in do_test_VIDIOC_S_STD_from_enum() 340 __FILE__, __LINE__, i, ret_enum, errno_enum, std.id); in do_test_VIDIOC_S_STD_from_enum() 342 if (ret_enum == 0) { in do_test_VIDIOC_S_STD_from_enum() 349 } while (ret_enum == 0 && i != 0); in do_test_VIDIOC_S_STD_from_enum()
|
D | test_VIDIOC_AUDOUT.c | 191 int ret_enum, errno_enum; in test_VIDIOC_S_AUDOUT() local 227 ret_enum = in test_VIDIOC_S_AUDOUT() 231 if (ret_enum == 0) { in test_VIDIOC_S_AUDOUT() 247 } while (ret_enum == 0); in test_VIDIOC_S_AUDOUT() 248 CU_ASSERT_EQUAL(ret_enum, -1); in test_VIDIOC_S_AUDOUT()
|