Home
last modified time | relevance | path

Searched refs:ret_get (Results 1 – 16 of 16) sorted by relevance

/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_PRIORITY.c55 int ret_get, errno_get; in do_set_priority() local
68 ret_get = in do_set_priority()
72 CU_ASSERT_EQUAL(ret_get, 0); in do_set_priority()
73 if (ret_get == 0) { in do_set_priority()
83 int ret_get, errno_get; in do_set_invalid_priority() local
98 ret_get = in do_set_invalid_priority()
102 CU_ASSERT_EQUAL(ret_get, 0); in do_set_invalid_priority()
103 if (ret_get == 0) { in do_set_invalid_priority()
111 int ret_get, errno_get; in test_VIDIOC_G_PRIORITY() local
115 ret_get = ioctl(get_video_fd(), VIDIOC_G_PRIORITY, &orig_priority); in test_VIDIOC_G_PRIORITY()
[all …]
Dtest_VIDIOC_MODULATOR.c54 int ret_get, errno_get; in do_get_modulator() local
60 ret_get = ioctl(f, VIDIOC_G_MODULATOR, &modulator); in do_get_modulator()
64 __FILE__, __LINE__, ret_get, errno_get); in do_get_modulator()
66 if (ret_get == 0) { in do_get_modulator()
67 CU_ASSERT_EQUAL(ret_get, 0); in do_get_modulator()
124 __LINE__, ret_get, -1); in do_get_modulator()
127 CU_ASSERT_EQUAL(ret_get, -1); in do_get_modulator()
131 return ret_get; in do_get_modulator()
152 int ret_get, errno_get; in test_VIDIOC_G_MODULATOR_S32_MAX() local
160 ret_get = ioctl(get_video_fd(), VIDIOC_G_MODULATOR, &modulator); in test_VIDIOC_G_MODULATOR_S32_MAX()
[all …]
Dtest_VIDIOC_TUNER.c94 int ret_get, errno_get; in do_get_tuner() local
100 ret_get = ioctl(f, VIDIOC_G_TUNER, &tuner); in do_get_tuner()
104 __FILE__, __LINE__, ret_get, errno_get); in do_get_tuner()
106 if (ret_get == 0) { in do_get_tuner()
107 CU_ASSERT_EQUAL(ret_get, 0); in do_get_tuner()
179 __LINE__, ret_get, -1); in do_get_tuner()
182 CU_ASSERT_EQUAL(ret_get, -1); in do_get_tuner()
186 return ret_get; in do_get_tuner()
207 int ret_get, errno_get; in test_VIDIOC_G_TUNER_S32_MAX() local
215 ret_get = ioctl(get_video_fd(), VIDIOC_G_TUNER, &tuner); in test_VIDIOC_G_TUNER_S32_MAX()
[all …]
Dtest_VIDIOC_OUTPUT.c61 int ret_get, errno_get; in test_VIDIOC_G_OUTPUT() local
68 ret_get = ioctl(f, VIDIOC_G_OUTPUT, &index); in test_VIDIOC_G_OUTPUT()
71 dprintf("\tVIDIOC_G_OUTPUT, ret_get=%i, errno_get=%i\n", ret_get, in test_VIDIOC_G_OUTPUT()
74 if (ret_get == 0) { in test_VIDIOC_G_OUTPUT()
75 CU_ASSERT_EQUAL(ret_get, 0); in test_VIDIOC_G_OUTPUT()
81 CU_ASSERT_EQUAL(ret_get, -1); in test_VIDIOC_G_OUTPUT()
89 int ret_get, errno_get; in test_VIDIOC_S_OUTPUT_from_enum() local
100 ret_get = ioctl(f, VIDIOC_G_OUTPUT, &output_index_orig); in test_VIDIOC_S_OUTPUT_from_enum()
102 if (ret_get == 0) { in test_VIDIOC_S_OUTPUT_from_enum()
103 CU_ASSERT_EQUAL(ret_get, 0); in test_VIDIOC_S_OUTPUT_from_enum()
[all …]
Dtest_VIDIOC_INPUT.c63 int ret_get, errno_get; in test_VIDIOC_G_INPUT() local
70 ret_get = ioctl(f, VIDIOC_G_INPUT, &index); in test_VIDIOC_G_INPUT()
73 dprintf("\tVIDIOC_G_INPUT, ret_get=%i, errno_get=%i\n", ret_get, in test_VIDIOC_G_INPUT()
76 if (ret_get == 0) { in test_VIDIOC_G_INPUT()
77 CU_ASSERT_EQUAL(ret_get, 0); in test_VIDIOC_G_INPUT()
83 CU_ASSERT_EQUAL(ret_get, -1); in test_VIDIOC_G_INPUT()
91 int ret_get, errno_get; in test_VIDIOC_S_INPUT_from_enum() local
102 ret_get = ioctl(f, VIDIOC_G_INPUT, &input_index_orig); in test_VIDIOC_S_INPUT_from_enum()
104 if (ret_get == 0) { in test_VIDIOC_S_INPUT_from_enum()
105 CU_ASSERT_EQUAL(ret_get, 0); in test_VIDIOC_S_INPUT_from_enum()
[all …]
Dtest_VIDIOC_FREQUENCY.c35 int ret_get, errno_get; in test_VIDIOC_G_FREQUENCY() local
43 ret_get = ioctl(get_video_fd(), VIDIOC_G_FREQUENCY, &freq); in test_VIDIOC_G_FREQUENCY()
47 __FILE__, __LINE__, ret_get, errno_get); in test_VIDIOC_G_FREQUENCY()
49 if (ret_get == 0) { in test_VIDIOC_G_FREQUENCY()
50 CU_ASSERT_EQUAL(ret_get, 0); in test_VIDIOC_G_FREQUENCY()
82 CU_ASSERT_EQUAL(ret_get, -1); in test_VIDIOC_G_FREQUENCY()
90 int ret_get, errno_get; in test_VIDIOC_G_FREQUENCY_S32_MAX() local
98 ret_get = ioctl(get_video_fd(), VIDIOC_G_FREQUENCY, &freq); in test_VIDIOC_G_FREQUENCY_S32_MAX()
102 __FILE__, __LINE__, ret_get, errno_get); in test_VIDIOC_G_FREQUENCY_S32_MAX()
104 CU_ASSERT_EQUAL(ret_get, -1); in test_VIDIOC_G_FREQUENCY_S32_MAX()
[all …]
Dtest_VIDIOC_JPEGCOMP.c51 int ret_get, errno_get; in test_VIDIOC_G_JPEGCOMP() local
54 ret_get = ioctl(get_video_fd(), VIDIOC_G_JPEGCOMP, &jpegcomp); in test_VIDIOC_G_JPEGCOMP()
57 dprintf("\tVIDIOC_G_JPEGCOMP, ret_get=%i, errno_get=%i\n", ret_get, in test_VIDIOC_G_JPEGCOMP()
60 if (ret_get == 0) { in test_VIDIOC_G_JPEGCOMP()
61 CU_ASSERT_EQUAL(ret_get, 0); in test_VIDIOC_G_JPEGCOMP()
87 CU_ASSERT_EQUAL(ret_get, -1); in test_VIDIOC_G_JPEGCOMP()
96 int ret_get, errno_get; in test_VIDIOC_G_JPEGCOMP_NULL() local
100 ret_get = ioctl(get_video_fd(), VIDIOC_G_JPEGCOMP, &jpegcomp); in test_VIDIOC_G_JPEGCOMP_NULL()
103 dprintf("\tVIDIOC_G_JPEGCOMP, ret_get=%i, errno_get=%i\n", ret_get, in test_VIDIOC_G_JPEGCOMP_NULL()
112 if (ret_get == 0) { in test_VIDIOC_G_JPEGCOMP_NULL()
[all …]
Dtest_VIDIOC_STD.c193 int ret_get, errno_get; in do_test_VIDIOC_S_STD() local
201 ret_get = ioctl(f, VIDIOC_G_STD, &std_id_orig); in do_test_VIDIOC_S_STD()
206 __FILE__, __LINE__, ret_get, errno_get, std_id_orig); in do_test_VIDIOC_S_STD()
287 if (ret_get == 0) { in do_test_VIDIOC_S_STD()
288 CU_ASSERT_EQUAL(ret_get, 0); in do_test_VIDIOC_S_STD()
297 CU_ASSERT_EQUAL(ret_get, -1); in do_test_VIDIOC_S_STD()
312 int ret_get, errno_get; in do_test_VIDIOC_S_STD_from_enum() local
323 ret_get = ioctl(f, VIDIOC_G_STD, &std_id_orig); in do_test_VIDIOC_S_STD_from_enum()
328 __FILE__, __LINE__, ret_get, errno_get, std_id_orig); in do_test_VIDIOC_S_STD_from_enum()
351 if (ret_get == 0) { in do_test_VIDIOC_S_STD_from_enum()
[all …]
Dtest_VIDIOC_EXT_CTRLS.c32 int ret_get, errno_get; in test_VIDIOC_G_EXT_CTRLS_zero() local
39 ret_get = ioctl(get_video_fd(), VIDIOC_G_EXT_CTRLS, &controls); in test_VIDIOC_G_EXT_CTRLS_zero()
43 __FILE__, __LINE__, ret_get, errno_get); in test_VIDIOC_G_EXT_CTRLS_zero()
45 if (ret_get == 0) { in test_VIDIOC_G_EXT_CTRLS_zero()
46 CU_ASSERT_EQUAL(ret_get, 0); in test_VIDIOC_G_EXT_CTRLS_zero()
56 CU_ASSERT_EQUAL(ret_get, -1); in test_VIDIOC_G_EXT_CTRLS_zero()
64 int ret_get, errno_get; in test_VIDIOC_G_EXT_CTRLS_zero_invalid_count() local
74 ret_get = ioctl(get_video_fd(), VIDIOC_G_EXT_CTRLS, &controls); in test_VIDIOC_G_EXT_CTRLS_zero_invalid_count()
79 __FILE__, __LINE__, count, ret_get, errno_get); in test_VIDIOC_G_EXT_CTRLS_zero_invalid_count()
98 if (ret_get == 0) { in test_VIDIOC_G_EXT_CTRLS_zero_invalid_count()
[all …]
Dtest_VIDIOC_CTRL.c37 int ret_get, errno_get; in do_get_control() local
75 ret_get = ioctl(get_video_fd(), VIDIOC_G_CTRL, &control); in do_get_control()
80 __FILE__, __LINE__, id, id - V4L2_CID_BASE, ret_get, errno_get); in do_get_control()
89 CU_ASSERT_EQUAL(ret_get, 0); in do_get_control()
90 if (ret_get == 0) { in do_get_control()
100 CU_ASSERT_EQUAL(ret_get, -1); in do_get_control()
107 CU_ASSERT_EQUAL(ret_get, -1); in do_get_control()
114 CU_ASSERT_EQUAL(ret_get, -1); in do_get_control()
146 int ret_get, errno_get; in test_VIDIOC_G_CTRL_NULL() local
152 ret_get = -1; in test_VIDIOC_G_CTRL_NULL()
[all …]
Dtest_VIDIOC_AUDOUT.c53 int ret_get, errno_get; in test_VIDIOC_G_AUDOUT() local
58 ret_get = ioctl(get_video_fd(), VIDIOC_G_AUDOUT, &audioout); in test_VIDIOC_G_AUDOUT()
61 dprintf("\tVIDIOC_AUDIOOUT, ret_get=%i, errno_get=%i\n", ret_get, in test_VIDIOC_G_AUDOUT()
64 if (ret_get == 0) { in test_VIDIOC_G_AUDOUT()
65 CU_ASSERT_EQUAL(ret_get, 0); in test_VIDIOC_G_AUDOUT()
103 CU_ASSERT_EQUAL(ret_get, -1); in test_VIDIOC_G_AUDOUT()
154 int ret_get, errno_get; in test_VIDIOC_G_AUDOUT_NULL() local
159 ret_get = ioctl(get_video_fd(), VIDIOC_G_AUDOUT, &audioout); in test_VIDIOC_G_AUDOUT_NULL()
163 __FILE__, __LINE__, ret_get, errno_get); in test_VIDIOC_G_AUDOUT_NULL()
172 if (ret_get == 0) { in test_VIDIOC_G_AUDOUT_NULL()
[all …]
Dtest_VIDIOC_AUDIO.c66 int ret_get, errno_get; in test_VIDIOC_G_AUDIO() local
71 ret_get = ioctl(get_video_fd(), VIDIOC_G_AUDIO, &audio); in test_VIDIOC_G_AUDIO()
75 __FILE__, __LINE__, ret_get, errno_get); in test_VIDIOC_G_AUDIO()
77 if (ret_get == 0) { in test_VIDIOC_G_AUDIO()
78 CU_ASSERT_EQUAL(ret_get, 0); in test_VIDIOC_G_AUDIO()
114 CU_ASSERT_EQUAL(ret_get, -1); in test_VIDIOC_G_AUDIO()
127 int ret_get, errno_get; in test_VIDIOC_G_AUDIO_ignore_index() local
136 ret_get = ioctl(get_video_fd(), VIDIOC_G_AUDIO, &audio); in test_VIDIOC_G_AUDIO_ignore_index()
140 __FILE__, __LINE__, ret_get, errno_get); in test_VIDIOC_G_AUDIO_ignore_index()
150 if (ret_get == 0) { in test_VIDIOC_G_AUDIO_ignore_index()
[all …]
Dtest_VIDIOC_PARM.c81 int ret_get, errno_get; in do_get_param() local
87 ret_get = ioctl(get_video_fd(), VIDIOC_G_PARM, &parm); in do_get_param()
91 __FILE__, __LINE__, type, ret_get, errno_get); in do_get_param()
93 if (ret_get == 0) { in do_get_param()
94 CU_ASSERT_EQUAL(ret_get, 0); in do_get_param()
200 CU_ASSERT_EQUAL(ret_get, -1); in do_get_param()
222 int ret_get, errno_get; in do_get_param_invalid() local
228 ret_get = ioctl(get_video_fd(), VIDIOC_G_PARM, &parm); in do_get_param_invalid()
232 __FILE__, __LINE__, type, ret_get, errno_get); in do_get_param_invalid()
234 CU_ASSERT_EQUAL(ret_get, -1); in do_get_param_invalid()
Dtest_VIDIOC_G_SLICED_VBI_CAP.c92 int ret_get, errno_get; in test_VIDIOC_G_SLICED_VBI_CAP_NULL() local
101 ret_get = in test_VIDIOC_G_SLICED_VBI_CAP_NULL()
105 dprintf("\tVIDIOC_G_SLICED_VBI_CAP ret_get=%i, errno_get=%i\n", ret_get, in test_VIDIOC_G_SLICED_VBI_CAP_NULL()
136 if (ret_get == 0 || ret_set_capture == 0 || ret_set_output == 0) { in test_VIDIOC_G_SLICED_VBI_CAP_NULL()
141 CU_ASSERT_EQUAL(ret_get, -1); in test_VIDIOC_G_SLICED_VBI_CAP_NULL()
Dtest_VIDIOC_CROPCAP.c150 int ret_get, errno_get; in test_VIDIOC_CROPCAP_enum_INPUT() local
161 ret_get = ioctl(f, VIDIOC_G_INPUT, &input_index_orig); in test_VIDIOC_CROPCAP_enum_INPUT()
164 if (ret_get == 0) { in test_VIDIOC_CROPCAP_enum_INPUT()
165 CU_ASSERT_EQUAL(ret_get, 0); in test_VIDIOC_CROPCAP_enum_INPUT()
201 CU_ASSERT_EQUAL(ret_get, -1); in test_VIDIOC_CROPCAP_enum_INPUT()
Dtest_VIDIOC_FMT.c189 int ret_get, errno_get; in do_get_formats() local
197 ret_get = ioctl(get_video_fd(), VIDIOC_G_FMT, &format); in do_get_formats()
201 __FILE__, __LINE__, type, ret_get, errno_get); in do_get_formats()
202 if (ret_get == 0) { in do_get_formats()
203 CU_ASSERT_EQUAL(ret_get, 0); in do_get_formats()
482 CU_ASSERT_EQUAL(ret_get, -1); in do_get_formats()
508 int ret_get, errno_get; in do_get_format_invalid() local
514 ret_get = ioctl(get_video_fd(), VIDIOC_G_FMT, &format); in do_get_format_invalid()
518 __FILE__, __LINE__, type, ret_get, errno_get); in do_get_format_invalid()
520 CU_ASSERT_EQUAL(ret_get, -1); in do_get_format_invalid()
[all …]