Lines Matching defs:scancode
637 static int input_fetch_keycode(struct input_dev *dev, int scancode)
641 return ((u8 *)dev->keycode)[scancode];
644 return ((u16 *)dev->keycode)[scancode];
647 return ((u32 *)dev->keycode)[scancode];
652 unsigned int scancode,
658 if (scancode >= dev->keycodemax)
661 *keycode = input_fetch_keycode(dev, scancode);
667 unsigned int scancode,
673 if (scancode >= dev->keycodemax)
685 old_keycode = k[scancode];
686 k[scancode] = keycode;
691 old_keycode = k[scancode];
692 k[scancode] = keycode;
697 old_keycode = k[scancode];
698 k[scancode] = keycode;
717 * input_get_keycode - retrieve keycode currently mapped to a given scancode
719 * @scancode: scancode (or its equivalent for device in question) for which
727 unsigned int scancode, unsigned int *keycode)
733 retval = dev->getkeycode(dev, scancode, keycode);
741 * input_get_keycode - assign new keycode to a given scancode
743 * @scancode: scancode (or its equivalent for device in question)
744 * @keycode: new keycode to be assigned to the scancode
750 unsigned int scancode, unsigned int keycode)
761 retval = dev->getkeycode(dev, scancode, &old_keycode);
765 retval = dev->setkeycode(dev, scancode, keycode);