Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/hid/hid-input.c hidinput_getkeycode() -> hidinput_locate_usage()

Type Parameter Key Value
PARAM_VALUE 2 index 2528791710169362432
BUF_SIZE 0 hid s32min-(-2),1-s32max
BUF_SIZE 0 hid s32min-(-2),1-s32max
DATA_SOURCE 1 ke $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 ke->flags 0-255
USER_DATA 1 ke->index 0-u16max
USER_DATA 1 ke->keycode 0-u32max
USER_DATA 1 ke->len 0-255
UNITS 0 hid unit_byte
USER_PTR 1 ke->scancode
LOCK2 &dev->event_lock
LOCK2 irq
HALF_LOCKED2 &evdev->mutex
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct input_dev)->event_lock

drivers/hid/hid-input.c hidinput_setkeycode() -> hidinput_locate_usage()

Type Parameter Key Value
PARAM_VALUE 1 ke 4096-ptr_max
PARAM_VALUE 1 ke->keycode 0-767
PARAM_VALUE 2 index 0
BUF_SIZE 0 hid s32min-(-2),1-s32max
BUF_SIZE 0 hid s32min-(-2),1-s32max
DATA_SOURCE 1 ke $1
FUZZY_MAX 1 ke->keycode 767
HARD_MAX 1 ke->keycode 767
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 ke->flags 0-255
USER_DATA 1 ke->index 0-u16max
USER_DATA 1 ke->keycode 0-767
USER_DATA 1 ke->len 0-32
UNITS 0 hid unit_byte
USER_PTR 1 ke->scancode
LOCK2 &dev->event_lock
LOCK2 irq
HALF_LOCKED2 &evdev->mutex
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct input_dev)->event_lock