Home
last modified time | relevance | path

Searched refs:keypam (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/input/
H A Djoydev.c51 __u16 keypam[KEY_MAX - BTN_MISC + 1]; member
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()
505 kfree(keypam); in joydev_handle_JSIOCSBTNMAP()
[all …]