Lines Matching refs:keypam
51 __u16 keypam[KEY_MAX - BTN_MISC + 1]; member
304 event->value = !!test_bit(joydev->keypam[event->number], in joydev_generate_startup_event()
355 test_bit(joydev->keypam[i], input->key) ? (1 << i) : 0; in joydev_0x_read()
478 __u16 *keypam; in joydev_handle_JSIOCSBTNMAP() local
482 if (len % sizeof(*keypam)) in joydev_handle_JSIOCSBTNMAP()
485 len = min(len, sizeof(joydev->keypam)); in joydev_handle_JSIOCSBTNMAP()
488 keypam = memdup_user(argp, len); in joydev_handle_JSIOCSBTNMAP()
489 if (IS_ERR(keypam)) in joydev_handle_JSIOCSBTNMAP()
490 return PTR_ERR(keypam); in joydev_handle_JSIOCSBTNMAP()
493 if (keypam[i] > KEY_MAX || keypam[i] < BTN_MISC) { in joydev_handle_JSIOCSBTNMAP()
499 memcpy(joydev->keypam, keypam, len); in joydev_handle_JSIOCSBTNMAP()
502 joydev->keymap[joydev->keypam[i] - BTN_MISC] = i; in joydev_handle_JSIOCSBTNMAP()
505 kfree(keypam); in joydev_handle_JSIOCSBTNMAP()
579 len = min_t(size_t, _IOC_SIZE(cmd), sizeof(joydev->keypam)); in joydev_ioctl_common()
580 return copy_to_user(argp, joydev->keypam, len) ? -EFAULT : len; in joydev_ioctl_common()
957 joydev->keypam[joydev->nkey] = i + BTN_MISC; in joydev_connect()
964 joydev->keypam[joydev->nkey] = i + BTN_MISC; in joydev_connect()