Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/hid/hid-appletb-kbd.c appletb_kbd_inp_event() -> appletb_kbd_set_mode()

Type Parameter Key Value
PARAM_VALUE 0 kbd 4096-ptr_max
PARAM_VALUE 0 kbd->current_mode 1-2
PARAM_VALUE 0 kbd->has_dimmed 0
PARAM_VALUE 0 kbd->has_turned_off 0
PARAM_VALUE 0 kbd->inactivity_work.timer.entry->pprev 4096-ptr_max
PARAM_VALUE 0 kbd->saved_mode 1-2
PARAM_VALUE 1 mode 1-2
BUF_SIZE 0 kbd 480,568,872-s32max
BUF_SIZE 0 kbd 480,568,872-s32max
FUZZY_MAX 1 mode 2
HARD_MAX 1 mode 2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->event_lock
LOCK2 irq
LOCK2 rcu_read
TYPE_LOCK (struct input_dev)->event_lock

drivers/hid/hid-appletb-kbd.c appletb_kbd_inp_event() -> appletb_kbd_set_mode()

Type Parameter Key Value
PARAM_VALUE 0 kbd 4096-ptr_max
PARAM_VALUE 0 kbd->current_mode 1-2
PARAM_VALUE 0 kbd->has_dimmed 0
PARAM_VALUE 0 kbd->has_turned_off 0
PARAM_VALUE 0 kbd->inactivity_work.timer.entry->pprev 4096-ptr_max
BUF_SIZE 0 kbd 480,568,872-s32max
BUF_SIZE 0 kbd 480,568,872-s32max
FUZZY_MAX 0 kbd->current_mode 2
PARAM_COMPARE 0 kbd->current_mode != $0->saved_mode
PARAM_COMPARE 1 mode != $0->current_mode
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->event_lock
LOCK2 irq
LOCK2 rcu_read
TYPE_LOCK (struct input_dev)->event_lock

drivers/hid/hid-appletb-kbd.c appletb_kbd_probe() -> appletb_kbd_set_mode()

Type Parameter Key Value
PARAM_VALUE 0 kbd 4096-ptr_max
PARAM_VALUE 0 kbd->backlight_dev 0,4096-ptr_max
PARAM_VALUE 0 kbd->backlight_dev->dev.kobj.sd 0,4096-ptr_max
PARAM_VALUE 0 kbd->backlight_dev->ops_lock.dep_map->name 0-255
PARAM_VALUE 0 kbd->backlight_dev->ops_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 kbd->backlight_dev->ops_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 kbd->backlight_dev->ops_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 kbd->backlight_dev->ops_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 kbd->backlight_dev->ops_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 kbd->backlight_dev->ops_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 kbd->backlight_dev->update_lock.dep_map->name 0-255
PARAM_VALUE 0 kbd->backlight_dev->update_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 kbd->backlight_dev->update_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 kbd->backlight_dev->update_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 kbd->backlight_dev->update_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 kbd->backlight_dev->update_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 kbd->inactivity_work.cpu 0-s32max
PARAM_VALUE 0 kbd->inactivity_work.timer.entry->pprev 4096-ptr_max
PARAM_VALUE 0 kbd->inp_handler.connect 7594448204439564288
PARAM_VALUE 0 kbd->inp_handler.disconnect 5931807074778910720
PARAM_VALUE 0 kbd->inp_handler.event 1918926846045184000
PARAM_VALUE 0 kbd->inp_handler.h_list.next 4096-ptr_max
PARAM_VALUE 0 kbd->inp_handler.h_list.next->next 4096-ptr_max
PARAM_VALUE 0 kbd->inp_handler.h_list.prev 4096-ptr_max
PARAM_VALUE 0 kbd->inp_handler.h_list.prev->next 4096-ptr_max
PARAM_VALUE 0 kbd->inp_handler.h_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 kbd->inp_handler.id_table 1109378495030136832
PARAM_VALUE 0 kbd->inp_handler.match 3392223026647486464
PARAM_VALUE 0 kbd->inp_handler.name 7542980398407548928
PARAM_VALUE 0 kbd->inp_handler.node.next 5838621647633723392
PARAM_VALUE 0 kbd->inp_handler.node.prev 4096-ptr_max
PARAM_VALUE 0 kbd->inp_handler.private 4096-ptr_max
PARAM_VALUE 0 kbd->mode_field 4096-ptr_max
PARAM_VALUE 0 kbd->mode_field->maxusage 1-u32max
PARAM_VALUE 0 kbd->mode_field->usage 4096-ptr_max
BUF_SIZE 0 kbd 568
BUF_SIZE 0 kbd->inp_handler.id_table 600
BUF_SIZE 0 kbd->inp_handler.name 8
BUF_SIZE 0 kbd->inp_handler.private 568
DATA_SOURCE 0 kbd r devm_kzalloc
FUZZY_MAX 0 kbd->inactivity_work.cpu 0
STR_LEN 0 kbd->inp_handler.name 7
TERMINATED 0 kbd->inp_handler.name 1
MEM_ZERO 0 kbd
RX_PATH
TASK_NOT_RUNNING
LOCK2 &hdev->driver_input_lock
TYPE_LOCK (struct hid_device)->driver_input_lock

drivers/hid/hid-appletb-kbd.c appletb_kbd_remove() -> appletb_kbd_set_mode()

Type Parameter Key Value
PARAM_VALUE 1 mode 3
BUF_SIZE 0 kbd s32min-(-2),1-s32max
BUF_SIZE 0 kbd s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 kbd unit_byte
LOCK2 &hdev->driver_input_lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct hid_device)->driver_input_lock

drivers/hid/hid-appletb-kbd.c appletb_kbd_resume() -> appletb_kbd_set_mode()

Type Parameter Key Value
PARAM_VALUE 0 kbd 4096-ptr_max
BUF_SIZE 0 kbd s32min-(-2),1-s32max
BUF_SIZE 0 kbd s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 kbd unit_byte

drivers/hid/hid-appletb-kbd.c appletb_kbd_suspend() -> appletb_kbd_set_mode()

Type Parameter Key Value
PARAM_VALUE 0 kbd 4096-ptr_max
PARAM_VALUE 1 mode 3
BUF_SIZE 0 kbd s32min-(-2),1-s32max
BUF_SIZE 0 kbd s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 kbd unit_byte

drivers/hid/hid-appletb-kbd.c mode_store() -> appletb_kbd_set_mode()

Type Parameter Key Value
PARAM_VALUE 1 mode 0-3
BUF_SIZE 0 kbd s32min-(-2),1-s32max
BUF_SIZE 0 kbd s32min-(-2),1-s32max
FUZZY_MAX 1 mode 3
HARD_MAX 1 mode 3
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 mode 0-3
NO_OVERFLOW_SIMPLE 1 mode
UNITS 0 kbd unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex