Lines Matching refs:hid_dev
441 struct hid_device *hid_dev; in mousevsc_probe() local
469 hid_dev = hid_allocate_device(); in mousevsc_probe()
470 if (IS_ERR(hid_dev)) { in mousevsc_probe()
471 ret = PTR_ERR(hid_dev); in mousevsc_probe()
475 hid_dev->ll_driver = &mousevsc_ll_driver; in mousevsc_probe()
476 hid_dev->driver = &mousevsc_hid_driver; in mousevsc_probe()
477 hid_dev->bus = BUS_VIRTUAL; in mousevsc_probe()
478 hid_dev->vendor = input_dev->hid_dev_info.vendor; in mousevsc_probe()
479 hid_dev->product = input_dev->hid_dev_info.product; in mousevsc_probe()
480 hid_dev->version = input_dev->hid_dev_info.version; in mousevsc_probe()
481 input_dev->hid_device = hid_dev; in mousevsc_probe()
483 sprintf(hid_dev->name, "%s", "Microsoft Vmbus HID-compliant Mouse"); in mousevsc_probe()
485 hid_set_drvdata(hid_dev, device); in mousevsc_probe()
487 ret = hid_add_device(hid_dev); in mousevsc_probe()
492 ret = hid_parse(hid_dev); in mousevsc_probe()
494 hid_err(hid_dev, "parse failed\n"); in mousevsc_probe()
498 ret = hid_hw_start(hid_dev, HID_CONNECT_HIDINPUT | HID_CONNECT_HIDDEV); in mousevsc_probe()
501 hid_err(hid_dev, "hw start failed\n"); in mousevsc_probe()
513 hid_destroy_device(hid_dev); in mousevsc_probe()