Home
last modified time | relevance | path

Searched refs:queryctrl (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_QUERYCTRL.c72 struct v4l2_queryctrl queryctrl; in test_VIDIOC_QUERYCTRL() local
92 memset(&queryctrl, 0xff, sizeof(queryctrl)); in test_VIDIOC_QUERYCTRL()
93 queryctrl.id = i; in test_VIDIOC_QUERYCTRL()
94 ret_query = ioctl(get_video_fd(), VIDIOC_QUERYCTRL, &queryctrl); in test_VIDIOC_QUERYCTRL()
104 CU_ASSERT_EQUAL(queryctrl.id, i); in test_VIDIOC_QUERYCTRL()
106 CU_ASSERT(0 < strlen((char *)queryctrl.name)); in test_VIDIOC_QUERYCTRL()
108 ((char *)queryctrl.name, in test_VIDIOC_QUERYCTRL()
109 sizeof(queryctrl.name))); in test_VIDIOC_QUERYCTRL()
111 CU_ASSERT(valid_control_type(queryctrl.type)); in test_VIDIOC_QUERYCTRL()
113 switch (queryctrl.type) { in test_VIDIOC_QUERYCTRL()
[all …]
Dtest_VIDIOC_CTRL.c38 struct v4l2_queryctrl queryctrl; in do_get_control() local
45 memset(&queryctrl, 0, sizeof(queryctrl)); in do_get_control()
46 queryctrl.id = id; in do_get_control()
47 ret_query = ioctl(get_video_fd(), VIDIOC_QUERYCTRL, &queryctrl); in do_get_control()
61 queryctrl.id, in do_get_control()
62 queryctrl.type, in do_get_control()
63 queryctrl.name, in do_get_control()
64 queryctrl.minimum, in do_get_control()
65 queryctrl.maximum, in do_get_control()
66 queryctrl.step, in do_get_control()
[all …]
Dtest_VIDIOC_QUERYMENU.c142 struct v4l2_queryctrl queryctrl; in test_VIDIOC_QUERYMENU() local
147 memset(&queryctrl, 0, sizeof(queryctrl)); in test_VIDIOC_QUERYMENU()
148 queryctrl.id = i; in test_VIDIOC_QUERYMENU()
149 ret_query = ioctl(get_video_fd(), VIDIOC_QUERYCTRL, &queryctrl); in test_VIDIOC_QUERYMENU()
159 CU_ASSERT_EQUAL(queryctrl.id, i); in test_VIDIOC_QUERYMENU()
165 ".reserved[]={ 0x%X, 0x%X } }\n", queryctrl.id, in test_VIDIOC_QUERYMENU()
166 queryctrl.type, queryctrl.name, queryctrl.minimum, in test_VIDIOC_QUERYMENU()
167 queryctrl.maximum, queryctrl.step, in test_VIDIOC_QUERYMENU()
168 queryctrl.default_value, queryctrl.flags, in test_VIDIOC_QUERYMENU()
169 queryctrl.reserved[0], queryctrl.reserved[1] in test_VIDIOC_QUERYMENU()
[all …]
Dtest_VIDIOC_EXT_CTRLS.c182 struct v4l2_queryctrl queryctrl; in do_get_ext_control_one() local
190 memset(&queryctrl, 0, sizeof(queryctrl)); in do_get_ext_control_one()
191 queryctrl.id = id; in do_get_ext_control_one()
192 ret_query = ioctl(get_video_fd(), VIDIOC_QUERYCTRL, &queryctrl); in do_get_ext_control_one()
206 queryctrl.id, in do_get_ext_control_one()
207 queryctrl.type, in do_get_ext_control_one()
208 queryctrl.name, in do_get_ext_control_one()
209 queryctrl.minimum, in do_get_ext_control_one()
210 queryctrl.maximum, in do_get_ext_control_one()
211 queryctrl.step, in do_get_ext_control_one()
[all …]