Lines Matching refs:id
24 input_dev->id.bustype = BUS_VIRTUAL; in input_test_init()
25 input_dev->id.vendor = 1; in input_test_init()
26 input_dev->id.product = 1; in input_test_init()
27 input_dev->id.version = 1; in input_test_init()
90 struct input_device_id id = { 0 }; in input_test_match_device_id() local
97 id.flags = INPUT_DEVICE_ID_MATCH_BUS; in input_test_match_device_id()
98 id.bustype = BUS_VIRTUAL; in input_test_match_device_id()
99 KUNIT_ASSERT_TRUE(test, input_match_device_id(input_dev, &id)); in input_test_match_device_id()
101 id.bustype = BUS_I2C; in input_test_match_device_id()
102 KUNIT_ASSERT_FALSE(test, input_match_device_id(input_dev, &id)); in input_test_match_device_id()
104 id.flags = INPUT_DEVICE_ID_MATCH_VENDOR; in input_test_match_device_id()
105 id.vendor = 1; in input_test_match_device_id()
106 KUNIT_ASSERT_TRUE(test, input_match_device_id(input_dev, &id)); in input_test_match_device_id()
108 id.vendor = 2; in input_test_match_device_id()
109 KUNIT_ASSERT_FALSE(test, input_match_device_id(input_dev, &id)); in input_test_match_device_id()
111 id.flags = INPUT_DEVICE_ID_MATCH_PRODUCT; in input_test_match_device_id()
112 id.product = 1; in input_test_match_device_id()
113 KUNIT_ASSERT_TRUE(test, input_match_device_id(input_dev, &id)); in input_test_match_device_id()
115 id.product = 2; in input_test_match_device_id()
116 KUNIT_ASSERT_FALSE(test, input_match_device_id(input_dev, &id)); in input_test_match_device_id()
118 id.flags = INPUT_DEVICE_ID_MATCH_VERSION; in input_test_match_device_id()
119 id.version = 1; in input_test_match_device_id()
120 KUNIT_ASSERT_TRUE(test, input_match_device_id(input_dev, &id)); in input_test_match_device_id()
122 id.version = 2; in input_test_match_device_id()
123 KUNIT_ASSERT_FALSE(test, input_match_device_id(input_dev, &id)); in input_test_match_device_id()
125 id.flags = INPUT_DEVICE_ID_MATCH_EVBIT; in input_test_match_device_id()
126 __set_bit(EV_KEY, id.evbit); in input_test_match_device_id()
127 KUNIT_ASSERT_TRUE(test, input_match_device_id(input_dev, &id)); in input_test_match_device_id()
129 __set_bit(EV_ABS, id.evbit); in input_test_match_device_id()
130 KUNIT_ASSERT_FALSE(test, input_match_device_id(input_dev, &id)); in input_test_match_device_id()
139 struct input_device_id id; in input_test_grab() local
143 handler.id_table = &id; in input_test_grab()