Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/usb/misc/cytherm.c brightness_store() -> vendor_command()

Type Parameter Key Value
PARAM_VALUE 1 request 3
PARAM_VALUE 2 address 44
PARAM_VALUE 4 buf 4096-ptr_max
PARAM_VALUE 5 size 8
BUF_SIZE 4 buf 8
DATA_SOURCE 4 buf r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
USER_DATA 3 data 0-255
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/misc/cytherm.c brightness_store() -> vendor_command()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 request 3
PARAM_VALUE 2 address 43
PARAM_VALUE 3 data 1
PARAM_VALUE 4 buf 4096-ptr_max
PARAM_VALUE 5 size 8
BUF_SIZE 4 buf 8
DATA_SOURCE 4 buf r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/misc/cytherm.c button_show() -> vendor_command()

Type Parameter Key Value
PARAM_VALUE 1 request 2
PARAM_VALUE 2 address 122
PARAM_VALUE 3 data 0
PARAM_VALUE 4 buf 4096-ptr_max
PARAM_VALUE 5 size 8
BUF_SIZE 4 buf 8
DATA_SOURCE 4 buf r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/misc/cytherm.c port0_show() -> vendor_command()

Type Parameter Key Value
PARAM_VALUE 1 request 4
PARAM_VALUE 2 address 0
PARAM_VALUE 3 data 0
PARAM_VALUE 4 buf 4096-ptr_max
PARAM_VALUE 5 size 8
BUF_SIZE 4 buf 8
DATA_SOURCE 4 buf r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/misc/cytherm.c port0_store() -> vendor_command()

Type Parameter Key Value
PARAM_VALUE 1 request 5
PARAM_VALUE 2 address 0
PARAM_VALUE 4 buf 4096-ptr_max
PARAM_VALUE 5 size 8
BUF_SIZE 4 buf 8
DATA_SOURCE 4 buf r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
USER_DATA 3 data 0-255
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/misc/cytherm.c port1_show() -> vendor_command()

Type Parameter Key Value
PARAM_VALUE 1 request 4
PARAM_VALUE 2 address 1
PARAM_VALUE 3 data 0
PARAM_VALUE 4 buf 4096-ptr_max
PARAM_VALUE 5 size 8
BUF_SIZE 4 buf 8
DATA_SOURCE 4 buf r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/misc/cytherm.c port1_store() -> vendor_command()

Type Parameter Key Value
PARAM_VALUE 1 request 5
PARAM_VALUE 2 address 1
PARAM_VALUE 4 buf 4096-ptr_max
PARAM_VALUE 5 size 8
BUF_SIZE 4 buf 8
DATA_SOURCE 4 buf r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
USER_DATA 3 data 0-255
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/misc/cytherm.c temp_show() -> vendor_command()

Type Parameter Key Value
PARAM_VALUE 1 request 2
PARAM_VALUE 2 address 51
PARAM_VALUE 3 data 0
PARAM_VALUE 4 buf 4096-ptr_max
PARAM_VALUE 5 size 8
BUF_SIZE 4 buf 8
DATA_SOURCE 4 buf r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/misc/cytherm.c temp_show() -> vendor_command()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 request 2
PARAM_VALUE 2 address 52
PARAM_VALUE 3 data 0
PARAM_VALUE 4 buf 4096-ptr_max
PARAM_VALUE 5 size 8
BUF_SIZE 4 buf 8
DATA_SOURCE 4 buf r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/misc/cypress_cy7c63.c read_port() -> vendor_command()

Type Parameter Key Value
PARAM_VALUE 1 request 4
PARAM_VALUE 2 address 0,2
PARAM_VALUE 3 data 0
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
DATA_SOURCE 2 address $4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/usb/misc/cypress_cy7c63.c write_port() -> vendor_command()

Type Parameter Key Value
PARAM_VALUE 1 request 5
PARAM_VALUE 2 address 0-1
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
DATA_SOURCE 2 address $5
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex