Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 11 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 0 field 4096-ptr_max
PARAM_VALUE 0 field->report 4096-ptr_max
PARAM_VALUE 1 offset 0
DATA_SOURCE 2 value $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 value 0-3
HALF_LOCKED2 &dev->event_lock
HALF_LOCKED2 &dev->mutex
HALF_LOCKED2 &hdev->driver_input_lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 irq
HALF_LOCKED2 rcu_read

drivers/hid/hid-input.c hidinput_input_event() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 4096-ptr_max
PARAM_VALUE 0 field->maxusage 1-4294967295
PARAM_VALUE 1 offset 0
DATA_SOURCE 1 offset r hidinput_find_field
DATA_SOURCE 2 value $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 value s32min-s32max
HALF_LOCKED2 &dev->event_lock
HALF_LOCKED2 irq

drivers/hid/hid-picolcd_leds.c picolcd_leds_set() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 4096-ptr_max
PARAM_VALUE 0 field->report_count 1
PARAM_VALUE 1 offset 0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 flags
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_backlight.c picolcd_set_brightness() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 4096-ptr_max
PARAM_VALUE 0 field->report_count 1
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 value 0-255
FUZZY_MAX 2 value 0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 value 0-255
USER_DATA 2 value 1-255[c]
LOCK2 &data->lock
LOCK2 flags
HALF_LOCKED2 &bdev->update_lock
HALF_LOCKED2 &connector->mutex
HALF_LOCKED2 &hdev->driver_input_lock
HALF_LOCKED2 &panel->follower_lock
HALF_LOCKED2 global &drm_unplug_srcu
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-appletb-bl.c appletb_bl_set_brightness() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 value 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex
HALF_LOCKED2 &hdev->driver_input_lock

drivers/hid/hid-appletb-bl.c appletb_bl_set_brightness() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 4096-ptr_max
PARAM_VALUE 0 field->report 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 value 1,3-4
DATA_SOURCE 2 value $1
FUZZY_MAX 2 value 4
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex
HALF_LOCKED2 &hdev->driver_input_lock

drivers/hid/hid-picolcd_lcd.c picolcd_set_contrast() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 4096-ptr_max
PARAM_VALUE 0 field->report_count 1
PARAM_VALUE 1 offset 0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 value 0-255[c]
LOCK2 &data->lock
LOCK2 flags
HALF_LOCKED2 &hdev->driver_input_lock
HALF_LOCKED2 &ldev->ops_lock
HALF_LOCKED2 &of->mutex
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_core.c picolcd_operation_mode_store() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 value 0-255
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &of->mutex
LOCK2 flags
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_core.c picolcd_operation_mode_store() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 1
PARAM_VALUE 2 value 0-255
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &of->mutex
LOCK2 flags
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_core.c picolcd_reset() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 value 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 flags
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_core.c picolcd_send_and_wait() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 4096-ptr_max
PARAM_VALUE 0 field->report_count 1-u32max
PARAM_VALUE 1 offset 0-s32max
PARAM_VALUE 2 value 0-255
CAPPED_DATA 1 offset 1
FUZZY_MAX 2 value 0
BIT_INFO 2 value 0x0,0xff
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &data->mutex
LOCK2 flags
HALF_LOCKED2 &data->mutex_flash
TYPE_LOCK (struct picolcd_data)->lock
TYPE_LOCK (struct picolcd_data)->mutex

drivers/hid/usbhid/hid-core.c usbhid_set_leds() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 4096-ptr_max
PARAM_VALUE 0 field->maxusage 1-4294967295
PARAM_VALUE 1 offset 0-s32max
PARAM_VALUE 2 value 0
CAPPED_DATA 1 offset 1
DATA_SOURCE 1 offset r hid_find_field_early
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &usbhid->mutex
HALF_LOCKED2 &hid->driver_input_lock
TYPE_LOCK (struct usbhid_device)->mutex

drivers/hid/hid-sensor-hub.c sensor_hub_set_feature() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 1 offset 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &data->mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &sensor_inst->mutex
TYPE_LOCK (struct sensor_hub_data)->mutex

drivers/hid/hid-sensor-hub.c sensor_hub_set_feature() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 1 offset 0-1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte
LOCK2 &data->mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &sensor_inst->mutex
TYPE_LOCK (struct sensor_hub_data)->mutex

drivers/hid/hid-picolcd_fb.c picolcd_fb_reset() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 4096-ptr_max
PARAM_VALUE 0 field->maxusage 1-u32max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 value 0,4-12
BIT_INFO 2 value 0x0,0xc
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 offset unit_byte
LOCK2 &data->lock
LOCK2 flags
HALF_LOCKED2 &fbdata->lock
HALF_LOCKED2 &fbdefio_state->lock
HALF_LOCKED2 &hdev->driver_input_lock
HALF_LOCKED2 &info->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_reset() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 4096-ptr_max
PARAM_VALUE 0 field->maxusage 1-u32max
PARAM_VALUE 1 offset 1-7
PARAM_VALUE 2 value 0-255
CAPPED_DATA 1 offset 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 offset unit_byte
LOCK2 &data->lock
LOCK2 flags
HALF_LOCKED2 &fbdata->lock
HALF_LOCKED2 &fbdefio_state->lock
HALF_LOCKED2 &hdev->driver_input_lock
HALF_LOCKED2 &info->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_reset() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 4096-ptr_max
PARAM_VALUE 0 field->maxusage 1-u32max
PARAM_VALUE 1 offset 8-s32max
PARAM_VALUE 2 value 0
CAPPED_DATA 1 offset 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 offset unit_byte
LOCK2 &data->lock
LOCK2 flags
HALF_LOCKED2 &fbdata->lock
HALF_LOCKED2 &fbdefio_state->lock
HALF_LOCKED2 &hdev->driver_input_lock
HALF_LOCKED2 &info->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 value 0,4-12
BIT_INFO 2 value 0x0,0xc
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 1
PARAM_VALUE 2 value 2
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 2
PARAM_VALUE 2 value 0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 3
PARAM_VALUE 2 value 0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 4
PARAM_VALUE 2 value 184-191
BIT_INFO 2 value 0xb8,0xbf
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 5
PARAM_VALUE 2 value 0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 6
PARAM_VALUE 2 value 0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 7
PARAM_VALUE 2 value 64
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 8
PARAM_VALUE 2 value 0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 9
PARAM_VALUE 2 value 0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 10
PARAM_VALUE 2 value 32
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 value 1,5-13
BIT_INFO 2 value 0x1,0xd
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 1
PARAM_VALUE 2 value 0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 2
PARAM_VALUE 2 value 0
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 3
PARAM_VALUE 2 value 32
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 11-42
PARAM_VALUE 2 value 0-255
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock

drivers/hid/hid-picolcd_fb.c picolcd_fb_send_tile() -> hid_set_field()

Type Parameter Key Value
PARAM_VALUE 0 field 0,4096-ptr_max
PARAM_VALUE 1 offset 4-35
PARAM_VALUE 2 value 0-255
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &data->lock
LOCK2 &fbdefio_state->lock
LOCK2 &info->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct fb_deferred_io_state)->lock
TYPE_LOCK (struct fb_info)->lock
TYPE_LOCK (struct picolcd_data)->lock