Lines Matching full:hi

118 	hid_item_t hi;  in ATF_TC_BODY()  local
126 ATF_REQUIRE(hid_locate(hrd, 0xff000001U, hid_input, &hi, in ATF_TC_BODY()
128 MYd_ATF_CHECK_EQ(hi.logical_minimum, -128); in ATF_TC_BODY()
129 MYd_ATF_CHECK_EQ(hi.logical_maximum, 127); in ATF_TC_BODY()
130 ATF_REQUIRE(hid_locate(hrd, 0xff000002U, hid_input, &hi, in ATF_TC_BODY()
132 MYd_ATF_CHECK_EQ(hi.logical_minimum, -32768); in ATF_TC_BODY()
133 MYd_ATF_CHECK_EQ(hi.logical_maximum, 32767); in ATF_TC_BODY()
134 ATF_REQUIRE(hid_locate(hrd, 0xff000003U, hid_input, &hi, in ATF_TC_BODY()
136 MYd_ATF_CHECK_EQ(hi.logical_minimum, -2147483648); in ATF_TC_BODY()
137 MYd_ATF_CHECK_EQ(hi.logical_maximum, 2147483647); in ATF_TC_BODY()
145 ATF_REQUIRE(hid_locate(hrd, 0xff000011U, hid_input, &hi, in ATF_TC_BODY()
147 ATF_CHECK(hi.logical_minimum > hi.logical_maximum); in ATF_TC_BODY()
148 minimum = (uint32_t)hi.logical_minimum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
150 maximum = (uint32_t)hi.logical_maximum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
152 ATF_REQUIRE(hid_locate(hrd, 0xff000012U, hid_input, &hi, in ATF_TC_BODY()
154 ATF_CHECK(hi.logical_minimum > hi.logical_maximum); in ATF_TC_BODY()
155 minimum = hi.logical_minimum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
157 maximum = hi.logical_maximum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
159 ATF_REQUIRE(hid_locate(hrd, 0xff000013U, hid_input, &hi, in ATF_TC_BODY()
161 ATF_CHECK(hi.logical_minimum > hi.logical_maximum); in ATF_TC_BODY()
162 minimum = hi.logical_minimum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
164 maximum = hi.logical_maximum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
181 hid_item_t hi; in ATF_TC_BODY() local
189 ATF_REQUIRE(hid_locate(hrd, 0xff000001U, hid_input, &hi, in ATF_TC_BODY()
191 MYd_ATF_CHECK_EQ(hi.physical_minimum, -128); in ATF_TC_BODY()
192 MYd_ATF_CHECK_EQ(hi.physical_maximum, 127); in ATF_TC_BODY()
193 ATF_REQUIRE(hid_locate(hrd, 0xff000002U, hid_input, &hi, in ATF_TC_BODY()
195 MYd_ATF_CHECK_EQ(hi.physical_minimum, -32768); in ATF_TC_BODY()
196 MYd_ATF_CHECK_EQ(hi.physical_maximum, 32767); in ATF_TC_BODY()
197 ATF_REQUIRE(hid_locate(hrd, 0xff000003U, hid_input, &hi, in ATF_TC_BODY()
199 MYd_ATF_CHECK_EQ(hi.physical_minimum, -2147483648); in ATF_TC_BODY()
200 MYd_ATF_CHECK_EQ(hi.physical_maximum, 2147483647); in ATF_TC_BODY()
208 ATF_REQUIRE(hid_locate(hrd, 0xff000011U, hid_input, &hi, in ATF_TC_BODY()
210 ATF_CHECK(hi.physical_minimum > hi.physical_maximum); in ATF_TC_BODY()
211 minimum = (uint32_t)hi.physical_minimum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
213 maximum = (uint32_t)hi.physical_maximum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
215 ATF_REQUIRE(hid_locate(hrd, 0xff000012U, hid_input, &hi, in ATF_TC_BODY()
217 ATF_CHECK(hi.physical_minimum > hi.physical_maximum); in ATF_TC_BODY()
218 minimum = hi.physical_minimum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
220 maximum = hi.physical_maximum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
222 ATF_REQUIRE(hid_locate(hrd, 0xff000013U, hid_input, &hi, in ATF_TC_BODY()
224 ATF_CHECK(hi.physical_minimum > hi.physical_maximum); in ATF_TC_BODY()
225 minimum = hi.physical_minimum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
227 maximum = hi.physical_maximum & ((1ULL<<hi.report_size)-1); in ATF_TC_BODY()
243 hid_item_t hi; in ATF_TC_BODY() local
254 ATF_REQUIRE(hid_locate(hrd, 0xff000001U, hid_input, &hi, in ATF_TC_BODY()
256 data = hid_get_data(range_test_minimum_report, &hi); in ATF_TC_BODY()
258 data = hid_get_data(range_test_negative_one_report, &hi); in ATF_TC_BODY()
260 data = hid_get_data(range_test_positive_one_report, &hi); in ATF_TC_BODY()
262 data = hid_get_data(range_test_maximum_report, &hi); in ATF_TC_BODY()
265 ATF_REQUIRE(hid_locate(hrd, 0xff000002U, hid_input, &hi, in ATF_TC_BODY()
267 data = hid_get_data(range_test_minimum_report, &hi); in ATF_TC_BODY()
269 data = hid_get_data(range_test_negative_one_report, &hi); in ATF_TC_BODY()
271 data = hid_get_data(range_test_positive_one_report, &hi); in ATF_TC_BODY()
273 data = hid_get_data(range_test_maximum_report, &hi); in ATF_TC_BODY()
276 ATF_REQUIRE(hid_locate(hrd, 0xff000003U, hid_input, &hi, in ATF_TC_BODY()
278 data = hid_get_data(range_test_minimum_report, &hi); in ATF_TC_BODY()
280 data = hid_get_data(range_test_negative_one_report, &hi); in ATF_TC_BODY()
282 data = hid_get_data(range_test_positive_one_report, &hi); in ATF_TC_BODY()
284 data = hid_get_data(range_test_maximum_report, &hi); in ATF_TC_BODY()
293 ATF_REQUIRE(hid_locate(hrd, 0xff000011U, hid_input, &hi, in ATF_TC_BODY()
295 udat = hid_get_data(unsigned_range_test_minimum_report, &hi); in ATF_TC_BODY()
297 udat = hid_get_data(unsigned_range_test_positive_one_report, &hi); in ATF_TC_BODY()
299 udat = hid_get_data(unsigned_range_test_negative_one_report, &hi); in ATF_TC_BODY()
301 udat = hid_get_data(unsigned_range_test_maximum_report, &hi); in ATF_TC_BODY()
304 ATF_REQUIRE(hid_locate(hrd, 0xff000012U, hid_input, &hi, in ATF_TC_BODY()
306 udat = hid_get_data(unsigned_range_test_minimum_report, &hi); in ATF_TC_BODY()
308 udat = hid_get_data(unsigned_range_test_positive_one_report, &hi); in ATF_TC_BODY()
310 udat = hid_get_data(unsigned_range_test_negative_one_report, &hi); in ATF_TC_BODY()
312 udat = hid_get_data(unsigned_range_test_maximum_report, &hi); in ATF_TC_BODY()
315 ATF_REQUIRE(hid_locate(hrd, 0xff000013U, hid_input, &hi, in ATF_TC_BODY()
317 udat = hid_get_data(unsigned_range_test_minimum_report, &hi); in ATF_TC_BODY()
319 udat = hid_get_data(unsigned_range_test_positive_one_report, &hi); in ATF_TC_BODY()
321 udat = hid_get_data(unsigned_range_test_negative_one_report, &hi); in ATF_TC_BODY()
323 udat = hid_get_data(unsigned_range_test_maximum_report, &hi); in ATF_TC_BODY()
339 hid_item_t hi; in ATF_TC_BODY() local
348 ATF_REQUIRE(hid_locate(hrd, 0xff000001U, hid_input, &hi, in ATF_TC_BODY()
350 hid_set_data(test_data_minimum, &hi, -128); in ATF_TC_BODY()
351 hid_set_data(test_data_negative_one, &hi, -1); in ATF_TC_BODY()
352 hid_set_data(test_data_positive_one, &hi, 1); in ATF_TC_BODY()
353 hid_set_data(test_data_maximum, &hi, 127); in ATF_TC_BODY()
354 ATF_REQUIRE(hid_locate(hrd, 0xff000002U, hid_input, &hi, in ATF_TC_BODY()
356 hid_set_data(test_data_minimum, &hi, -32768); in ATF_TC_BODY()
357 hid_set_data(test_data_negative_one, &hi, -1); in ATF_TC_BODY()
358 hid_set_data(test_data_positive_one, &hi, 1); in ATF_TC_BODY()
359 hid_set_data(test_data_maximum, &hi, 32767); in ATF_TC_BODY()
360 ATF_REQUIRE(hid_locate(hrd, 0xff000003U, hid_input, &hi, in ATF_TC_BODY()
362 hid_set_data(test_data_minimum, &hi, -2147483648); in ATF_TC_BODY()
363 hid_set_data(test_data_negative_one, &hi, -1); in ATF_TC_BODY()
364 hid_set_data(test_data_positive_one, &hi, 1); in ATF_TC_BODY()
365 hid_set_data(test_data_maximum, &hi, 2147483647); in ATF_TC_BODY()
383 ATF_REQUIRE(hid_locate(hrd, 0xff000011U, hid_input, &hi, in ATF_TC_BODY()
385 hid_set_data(test_data_minimum, &hi, 0); in ATF_TC_BODY()
386 hid_set_data(test_data_positive_one, &hi, 1); in ATF_TC_BODY()
387 hid_set_data(test_data_negative_one, &hi, 0xfffffffe); in ATF_TC_BODY()
388 hid_set_data(test_data_maximum, &hi, 0xffffffff); in ATF_TC_BODY()
389 ATF_REQUIRE(hid_locate(hrd, 0xff000012U, hid_input, &hi, in ATF_TC_BODY()
391 hid_set_data(test_data_minimum, &hi, 0); in ATF_TC_BODY()
392 hid_set_data(test_data_positive_one, &hi, 1); in ATF_TC_BODY()
393 hid_set_data(test_data_negative_one, &hi, 0xfffe); in ATF_TC_BODY()
394 hid_set_data(test_data_maximum, &hi, 0xffff); in ATF_TC_BODY()
395 ATF_REQUIRE(hid_locate(hrd, 0xff000013U, hid_input, &hi, in ATF_TC_BODY()
397 hid_set_data(test_data_minimum, &hi, 0); in ATF_TC_BODY()
398 hid_set_data(test_data_positive_one, &hi, 1); in ATF_TC_BODY()
399 hid_set_data(test_data_negative_one, &hi, 0xfffffffe); in ATF_TC_BODY()
400 hid_set_data(test_data_maximum, &hi, 0xffffffff); in ATF_TC_BODY()
428 hid_item_t hi; in ATF_TC_BODY() local
434 while (hid_get_item(hd, &hi) > 0) { in ATF_TC_BODY()