Lines Matching refs:abs

33 			struct input_absinfo abs = { ABS_X, 0, 2, 0, 0, 0};
35 1, &abs,
69 struct input_absinfo abs = { ABS_X, 0, 2, 0, 0, 0};
71 1, &abs,
115 struct input_absinfo abs = { code, 0, 2, 0, 0, 0};
117 1, &abs,
158 struct input_absinfo abs = { ABS_X, 0, 2, 0, 0, 0};
160 1, &abs,
244 struct input_absinfo abs = { .value = 0, .minimum = 0, .maximum = 2};
247 rc = uinput_device_set_abs_bit(uidev, ABS_X, &abs);
277 struct input_absinfo abs = { .value = 0, .minimum = 0, .maximum = 2};
287 rc = uinput_device_set_abs_bit(uidev, ABS_X, &abs);
320 struct input_absinfo abs[] = {
332 rc = uinput_device_set_abs_bit(uidev, abs[i].value, &abs[i]);
375 struct input_absinfo abs[] = {
382 test_create_abs_device(&uidev, &dev, 4, abs,
398 struct input_absinfo abs[] = {
406 test_create_abs_device(&uidev, &dev, 5, abs,
423 struct input_absinfo abs[] = {
432 test_create_abs_device(&uidev, &dev, 6, abs,
579 struct input_absinfo abs;
586 abs.minimum = 0;
587 abs.maximum = 1000;
588 abs.fuzz = 1;
589 abs.flat = 2;
590 abs.resolution = 3;
591 abs.value = 0;
593 uinput_device_set_abs_bit(uidev, ABS_X, &abs);
594 uinput_device_set_abs_bit(uidev, ABS_MT_POSITION_X, &abs);
596 abs.minimum = -500;
597 abs.maximum = 500;
598 abs.fuzz = 10;
599 abs.flat = 20;
600 abs.resolution = 30;
601 abs.value = 0;
603 uinput_device_set_abs_bit(uidev, ABS_Y, &abs);
604 uinput_device_set_abs_bit(uidev, ABS_MT_POSITION_Y, &abs);
680 struct input_absinfo abs[2];
683 memset(abs, 0, sizeof(abs));
684 abs[0].value = ABS_X;
685 abs[0].maximum = 1000;
687 abs[1].value = ABS_Y;
688 abs[1].maximum = 1000;
691 2, abs,
742 struct input_absinfo abs = { .value = ABS_X, .minimum = 0, .maximum = 2 };
745 test_create_abs_device(&uidev, &dev, 1, &abs,
752 abs.minimum = 0;
753 abs.maximum = 100;
754 abs.fuzz = 1;
755 abs.flat = 2;
756 abs.resolution = 3;
758 ck_assert_int_eq(libevdev_enable_event_code(dev, EV_ABS, ABS_Y, &abs), 0);
786 struct input_absinfo abs = { .value = ABS_X, .minimum = 0, .maximum = 1 };
788 test_create_abs_device(&uidev, &dev, 1, &abs,
791 ck_assert_int_eq(libevdev_enable_event_code(dev, EV_ABS, ABS_MAX + 1, &abs), -1);
792 ck_assert_int_eq(libevdev_enable_event_code(dev, EV_MAX + 1, ABS_MAX + 1, &abs), -1);
800 ck_assert_int_eq(libevdev_enable_event_code(dev, EV_REL, REL_X, &abs), -1);
812 struct input_absinfo abs[2] = {
818 2, abs,
861 struct input_absinfo abs = { .value = ABS_X, .minimum = 0, .maximum = 1 };
863 test_create_abs_device(&uidev, &dev, 1, &abs, -1);
883 struct input_absinfo abs;
889 abs.minimum = 0;
890 abs.maximum = 1000;
891 abs.fuzz = 1;
892 abs.flat = 2;
893 abs.resolution = 3;
894 abs.value = 0;
896 uinput_device_set_abs_bit(uidev, ABS_X, &abs);
910 abs.minimum = 500;
911 abs.maximum = 5000;
912 abs.fuzz = 10;
913 abs.flat = 20;
914 abs.resolution = 30;
915 rc = libevdev_kernel_set_abs_info(dev, ABS_X, &abs);
943 struct input_absinfo abs;
949 abs.minimum = 0;
950 abs.maximum = 1000;
951 abs.fuzz = 1;
952 abs.flat = 2;
953 abs.resolution = 3; /* FIXME: value is unused, we can't test resolution */
954 abs.value = 0;
956 uinput_device_set_abs_bit(uidev, ABS_X, &abs);
964 rc = libevdev_kernel_set_abs_info(dev, ABS_MAX + 1, &abs);
976 struct input_absinfo abs[2];
982 memset(abs, 0, sizeof(abs));
983 abs[0].value = ABS_X;
984 abs[0].maximum = 1000;
986 abs[1].value = ABS_Y;
987 abs[1].maximum = 1000;
995 2, abs,