Searched refs:keypam (Results 1 – 1 of 1) sorted by relevance
51 __u16 keypam[KEY_MAX - BTN_MISC + 1]; member478 __u16 *keypam; in joydev_handle_JSIOCSBTNMAP() local482 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 …]