Lines Matching refs:idev
14 struct input_dev *idev; member
44 input_event(vi->idev, in virtinput_recv_events()
80 if (vi->idev->mt && type == EV_MSC && code == MSC_TIMESTAMP) in virtinput_send_status()
119 static int virtinput_status(struct input_dev *idev, unsigned int type, in virtinput_status() argument
122 struct virtio_input *vi = input_get_drvdata(idev); in virtinput_status()
169 __set_bit(subsel, vi->idev->evbit); in virtinput_cfg_bits()
182 input_set_abs_params(vi->idev, abs, mi, ma, fu, fl); in virtinput_cfg_abs()
183 input_abs_set_res(vi->idev, abs, re); in virtinput_cfg_abs()
240 vi->idev = input_allocate_device(); in virtinput_probe()
241 if (!vi->idev) { in virtinput_probe()
245 input_set_drvdata(vi->idev, vi); in virtinput_probe()
257 vi->idev->name = vi->name; in virtinput_probe()
258 vi->idev->phys = vi->phys; in virtinput_probe()
259 vi->idev->uniq = vi->serial; in virtinput_probe()
264 u.ids.bustype, &vi->idev->id.bustype); in virtinput_probe()
266 u.ids.vendor, &vi->idev->id.vendor); in virtinput_probe()
268 u.ids.product, &vi->idev->id.product); in virtinput_probe()
270 u.ids.version, &vi->idev->id.version); in virtinput_probe()
272 vi->idev->id.bustype = BUS_VIRTUAL; in virtinput_probe()
276 vi->idev->propbit, INPUT_PROP_CNT); in virtinput_probe()
279 __set_bit(EV_REP, vi->idev->evbit); in virtinput_probe()
281 vi->idev->dev.parent = &vdev->dev; in virtinput_probe()
282 vi->idev->event = virtinput_status; in virtinput_probe()
286 vi->idev->keybit, KEY_CNT); in virtinput_probe()
288 vi->idev->relbit, REL_CNT); in virtinput_probe()
290 vi->idev->absbit, ABS_CNT); in virtinput_probe()
292 vi->idev->mscbit, MSC_CNT); in virtinput_probe()
294 vi->idev->swbit, SW_CNT); in virtinput_probe()
298 vi->idev->ledbit, LED_CNT); in virtinput_probe()
300 vi->idev->sndbit, SND_CNT); in virtinput_probe()
302 if (test_bit(EV_ABS, vi->idev->evbit)) { in virtinput_probe()
304 if (!test_bit(abs, vi->idev->absbit)) in virtinput_probe()
309 if (test_bit(ABS_MT_SLOT, vi->idev->absbit)) { in virtinput_probe()
310 nslots = input_abs_get_max(vi->idev, ABS_MT_SLOT) + 1; in virtinput_probe()
311 err = input_mt_init_slots(vi->idev, nslots, 0); in virtinput_probe()
319 err = input_register_device(vi->idev); in virtinput_probe()
331 input_free_device(vi->idev); in virtinput_probe()
349 input_unregister_device(vi->idev); in virtinput_remove()