Lines Matching refs:adbhid

210 struct adbhid {  struct
231 static struct adbhid *adbhid[16]; argument
270 if (!adbhid[id]) { in adbhid_keyboard_input()
287 struct adbhid *ahid = adbhid[id]; in adbhid_input_keycode()
394 key = adbhid[id]->keycode[keycode]; in adbhid_input_keycode()
396 input_report_key(adbhid[id]->input, key, !up_flag); in adbhid_input_keycode()
397 input_sync(adbhid[id]->input); in adbhid_input_keycode()
409 if (!adbhid[id]) { in adbhid_mouse_input()
458 switch (adbhid[id]->mouse_kind) in adbhid_mouse_input()
488 input_report_key(adbhid[id]->input, BTN_LEFT, !((data[1] >> 7) & 1)); in adbhid_mouse_input()
489 input_report_key(adbhid[id]->input, BTN_MIDDLE, !((data[2] >> 7) & 1)); in adbhid_mouse_input()
491 if (nb >= 4 && adbhid[id]->mouse_kind != ADBMOUSE_TRACKPAD) in adbhid_mouse_input()
492 input_report_key(adbhid[id]->input, BTN_RIGHT, !((data[3] >> 7) & 1)); in adbhid_mouse_input()
494 input_report_rel(adbhid[id]->input, REL_X, in adbhid_mouse_input()
496 input_report_rel(adbhid[id]->input, REL_Y, in adbhid_mouse_input()
499 input_sync(adbhid[id]->input); in adbhid_mouse_input()
507 if (!adbhid[id]) { in adbhid_buttons_input()
512 switch (adbhid[id]->original_handler_id) { in adbhid_buttons_input()
520 input_report_key(adbhid[id]->input, KEY_SOUND, down); in adbhid_buttons_input()
524 input_report_key(adbhid[id]->input, KEY_MUTE, down); in adbhid_buttons_input()
528 input_report_key(adbhid[id]->input, KEY_VOLUMEDOWN, down); in adbhid_buttons_input()
532 input_report_key(adbhid[id]->input, KEY_VOLUMEUP, down); in adbhid_buttons_input()
554 input_report_key(adbhid[id]->input, KEY_MUTE, down); in adbhid_buttons_input()
558 input_report_key(adbhid[id]->input, KEY_VOLUMEDOWN, down); in adbhid_buttons_input()
562 input_report_key(adbhid[id]->input, KEY_VOLUMEUP, down); in adbhid_buttons_input()
566 input_report_key(adbhid[id]->input, KEY_EJECTCD, down); in adbhid_buttons_input()
574 input_report_key(adbhid[id]->input, KEY_BRIGHTNESSDOWN, down); in adbhid_buttons_input()
582 input_report_key(adbhid[id]->input, KEY_BRIGHTNESSUP, down); in adbhid_buttons_input()
586 input_report_key(adbhid[id]->input, KEY_SWITCHVIDEOMODE, down); in adbhid_buttons_input()
590 input_report_key(adbhid[id]->input, KEY_KBDILLUMTOGGLE, down); in adbhid_buttons_input()
594 input_report_key(adbhid[id]->input, KEY_KBDILLUMDOWN, down); in adbhid_buttons_input()
602 input_report_key(adbhid[id]->input, KEY_KBDILLUMUP, down); in adbhid_buttons_input()
625 input_sync(adbhid[id]->input); in adbhid_buttons_input()
686 struct adbhid *adbhid = input_get_drvdata(dev); in adbhid_kbd_event() local
694 real_leds(leds, adbhid->id); in adbhid_kbd_event()
704 struct adbhid *ahid; in adbhid_kbd_capslock_remember()
708 ahid = adbhid[i]; in adbhid_kbd_capslock_remember()
726 if (adbhid[i]) in adb_message_handler()
727 del_timer_sync(&adbhid[i]->input->timer); in adb_message_handler()
756 struct adbhid *hid; in adbhid_input_register()
762 if (adbhid[id]) { in adbhid_input_register()
767 adbhid[id] = hid = kzalloc(sizeof(struct adbhid), GFP_KERNEL); in adbhid_input_register()
910 adbhid[id] = NULL; in adbhid_input_register()
916 input_unregister_device(adbhid[id]->input); in adbhid_input_unregister()
917 kfree(adbhid[id]->keycode); in adbhid_input_unregister()
918 kfree(adbhid[id]); in adbhid_input_unregister()
919 adbhid[id] = NULL; in adbhid_input_unregister()
927 if (adbhid[id]) { in adbhid_input_reregister()
928 if (adbhid[id]->input->id.product != in adbhid_input_reregister()
945 if (adbhid[i] && !(exist&(1<<i))) in adbhid_input_devcleanup()