Lines Matching refs:mac_hid_emumouse_dev

26 static struct input_dev *mac_hid_emumouse_dev;  variable
36 mac_hid_emumouse_dev = input_allocate_device(); in mac_hid_create_emumouse()
37 if (!mac_hid_emumouse_dev) in mac_hid_create_emumouse()
40 lockdep_set_class(&mac_hid_emumouse_dev->event_lock, in mac_hid_create_emumouse()
42 lockdep_set_class(&mac_hid_emumouse_dev->mutex, in mac_hid_create_emumouse()
45 mac_hid_emumouse_dev->name = "Macintosh mouse button emulation"; in mac_hid_create_emumouse()
46 mac_hid_emumouse_dev->id.bustype = BUS_ADB; in mac_hid_create_emumouse()
47 mac_hid_emumouse_dev->id.vendor = 0x0001; in mac_hid_create_emumouse()
48 mac_hid_emumouse_dev->id.product = 0x0001; in mac_hid_create_emumouse()
49 mac_hid_emumouse_dev->id.version = 0x0100; in mac_hid_create_emumouse()
51 mac_hid_emumouse_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in mac_hid_create_emumouse()
52 mac_hid_emumouse_dev->keybit[BIT_WORD(BTN_MOUSE)] = in mac_hid_create_emumouse()
54 mac_hid_emumouse_dev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); in mac_hid_create_emumouse()
56 err = input_register_device(mac_hid_emumouse_dev); in mac_hid_create_emumouse()
58 input_free_device(mac_hid_emumouse_dev); in mac_hid_create_emumouse()
59 mac_hid_emumouse_dev = NULL; in mac_hid_create_emumouse()
68 input_unregister_device(mac_hid_emumouse_dev); in mac_hid_destroy_emumouse()
69 mac_hid_emumouse_dev = NULL; in mac_hid_destroy_emumouse()
88 input_report_key(mac_hid_emumouse_dev, btn, value); in mac_hid_emumouse_filter()
89 input_sync(mac_hid_emumouse_dev); in mac_hid_emumouse_filter()
102 if (dev == mac_hid_emumouse_dev) in mac_hid_emumouse_connect()