Lines Matching defs:g_pInputDevice
135 static struct input_dev *g_pInputDevice = NULL;
428 g_pInputDevice = input_allocate_device();
429 if (!g_pInputDevice)
434 g_pInputDevice->id.bustype = BUS_PCI;
435 g_pInputDevice->id.vendor = VMMDEV_VENDORID;
436 g_pInputDevice->id.product = VMMDEV_DEVICEID;
437 g_pInputDevice->id.version = VBOX_SHORT_VERSION;
438 g_pInputDevice->open = vboxguestOpenInputDevice;
439 g_pInputDevice->close = vboxguestCloseInputDevice;
441 g_pInputDevice->cdev.dev = &g_pPciDev->dev;
443 g_pInputDevice->dev.parent = &g_pPciDev->dev;
446 int rc = input_register_device(g_pInputDevice);
450 input_free_device(g_pInputDevice);
455 ASMBitSet(g_pInputDevice->evbit, EV_ABS);
456 ASMBitSet(g_pInputDevice->evbit, EV_KEY);
458 ASMBitSet(g_pInputDevice->evbit, EV_SYN);
460 input_set_abs_params(g_pInputDevice, ABS_X, VMMDEV_MOUSE_RANGE_MIN,
462 input_set_abs_params(g_pInputDevice, ABS_Y, VMMDEV_MOUSE_RANGE_MIN,
464 ASMBitSet(g_pInputDevice->keybit, BTN_MOUSE);
466 g_pInputDevice->name = "VirtualBox mouse integration";
479 input_unregister_device(g_pInputDevice);
931 input_report_abs(g_pInputDevice, ABS_X,
933 input_report_abs(g_pInputDevice, ABS_Y,
936 input_sync(g_pInputDevice);