Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/iio/chemical/sps30_serial.c sps30_serial_clean_fan() -> sps30_serial_command()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->ops 4096-ptr_max
PARAM_VALUE 1 cmd 86
PARAM_VALUE 2 arg 0
PARAM_VALUE 3 arg_size 0
PARAM_VALUE 4 rsp 0
PARAM_VALUE 5 rsp_size 0
DATA_SOURCE 0 state $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/iio/chemical/sps30_serial.c sps30_serial_read_cleaning_period() -> sps30_serial_command()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->ops 4096-ptr_max
PARAM_VALUE 1 cmd 128
PARAM_VALUE 2 arg 4096-ptr_max
PARAM_VALUE 3 arg_size 1
PARAM_VALUE 4 rsp 8270058133736566784
PARAM_VALUE 5 rsp_size 4
BUF_SIZE 2 arg 1
DATA_SOURCE 0 state $0
DATA_SOURCE 4 rsp $1
RX_PATH
TASK_NOT_RUNNING
UNITS 3 arg_size unit_byte
UNITS 5 rsp_size unit_byte
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/iio/chemical/sps30_serial.c sps30_serial_read_meas() -> sps30_serial_command()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->ops 4096-ptr_max
PARAM_VALUE 0 state->state s32min-(-1),1-s32max
PARAM_VALUE 1 cmd 3
PARAM_VALUE 2 arg 0
PARAM_VALUE 3 arg_size 0
PARAM_VALUE 5 rsp_size 4-16
BUF_SIZE 4 rsp 16
DATA_SOURCE 0 state $0
DATA_SOURCE 4 rsp $1
FUZZY_MAX 0 state->state 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock

drivers/iio/chemical/sps30_serial.c sps30_serial_reset() -> sps30_serial_command()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->ops 4096-ptr_max
PARAM_VALUE 1 cmd 211
PARAM_VALUE 2 arg 0
PARAM_VALUE 3 arg_size 0
PARAM_VALUE 4 rsp 0
PARAM_VALUE 5 rsp_size 0
BUF_SIZE 0 state->priv (-1),376
DATA_SOURCE 0 state $0
STR_LEN 0 state->dev (-1),5
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/iio/chemical/sps30_serial.c sps30_serial_show_info() -> sps30_serial_command()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->dev 4096-ptr_max
PARAM_VALUE 0 state->dev->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 state->dev->driver_data 4096-ptr_max
PARAM_VALUE 0 state->lock.dep_map->name 0-255
PARAM_VALUE 0 state->lock.first_waiter 0
PARAM_VALUE 0 state->lock.magic 4096-ptr_max
PARAM_VALUE 0 state->lock.osq.tail.counter 0
PARAM_VALUE 0 state->lock.owner.counter 0
PARAM_VALUE 0 state->ops 2516040012773228544,3149330547294736384
PARAM_VALUE 0 state->ops->reset 4096-ptr_max
PARAM_VALUE 0 state->priv 0,4096-ptr_max
PARAM_VALUE 0 state->state 0
PARAM_VALUE 1 cmd 208
PARAM_VALUE 2 arg 4096-ptr_max
PARAM_VALUE 3 arg_size 1
PARAM_VALUE 4 rsp 4096-ptr_max
PARAM_VALUE 5 rsp_size 32
BUF_SIZE 0 state->dev (-1),1616
BUF_SIZE 0 state->priv (-1),376
BUF_SIZE 2 arg 33
BUF_SIZE 4 rsp 33
DATA_SOURCE 0 state $0
STR_LEN 0 state->dev (-1),5
RX_PATH
TASK_NOT_RUNNING
UNITS 5 rsp_size unit_byte

drivers/iio/chemical/sps30_serial.c sps30_serial_show_info() -> sps30_serial_command()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->dev 4096-ptr_max
PARAM_VALUE 0 state->dev->bus 0,4096-ptr_max
PARAM_VALUE 0 state->dev->class 0,4096-ptr_max
PARAM_VALUE 0 state->dev->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 state->dev->driver 0,4096-ptr_max
PARAM_VALUE 0 state->dev->driver_data 4096-ptr_max
PARAM_VALUE 0 state->lock.dep_map->name 0-255
PARAM_VALUE 0 state->lock.first_waiter 0
PARAM_VALUE 0 state->lock.magic 4096-ptr_max
PARAM_VALUE 0 state->lock.osq.tail.counter 0
PARAM_VALUE 0 state->lock.owner.counter 0
PARAM_VALUE 0 state->ops 2516040012773228544,3149330547294736384
PARAM_VALUE 0 state->ops->reset 4096-ptr_max
PARAM_VALUE 0 state->priv 4096-ptr_max
PARAM_VALUE 0 state->priv->done 0
PARAM_VALUE 0 state->priv->escaped 0
PARAM_VALUE 0 state->priv->new_frame.done 0-4294967293,4294967295
PARAM_VALUE 0 state->priv->new_frame.wait.lock.dep_map->name 0-255
PARAM_VALUE 0 state->priv->new_frame.wait.lock.owner (-1)
PARAM_VALUE 0 state->priv->new_frame.wait.lock.owner_cpu 4294967295
PARAM_VALUE 0 state->priv->num 0
PARAM_VALUE 0 state->state 0
PARAM_VALUE 1 cmd 209
PARAM_VALUE 2 arg 0
PARAM_VALUE 3 arg_size 0
PARAM_VALUE 4 rsp 4096-ptr_max
PARAM_VALUE 5 rsp_size 32
BUF_SIZE 0 state->dev (-1),1616
BUF_SIZE 0 state->priv (-1),376
BUF_SIZE 4 rsp 33
DATA_SOURCE 0 state $0
STR_LEN 0 state->dev (-1),5
RX_PATH
TASK_NOT_RUNNING
UNITS 5 rsp_size unit_byte

drivers/iio/chemical/sps30_serial.c sps30_serial_start_meas() -> sps30_serial_command()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->ops 4096-ptr_max
PARAM_VALUE 0 state->state 0
PARAM_VALUE 1 cmd 0
PARAM_VALUE 2 arg 4096-ptr_max
PARAM_VALUE 3 arg_size 2
PARAM_VALUE 4 rsp 0
PARAM_VALUE 5 rsp_size 0
BUF_SIZE 2 arg 2
DATA_SOURCE 0 state $0
RX_PATH
TASK_NOT_RUNNING
UNITS 3 arg_size unit_byte
LOCK2 _T->lock

drivers/iio/chemical/sps30_serial.c sps30_serial_stop_meas() -> sps30_serial_command()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->ops 4096-ptr_max
PARAM_VALUE 0 state->state 1
PARAM_VALUE 1 cmd 1
PARAM_VALUE 2 arg 0
PARAM_VALUE 3 arg_size 0
PARAM_VALUE 4 rsp 0
PARAM_VALUE 5 rsp_size 0
DATA_SOURCE 0 state $0

drivers/iio/chemical/sps30_serial.c sps30_serial_write_cleaning_period() -> sps30_serial_command()

Type Parameter Key Value
PARAM_VALUE 0 state 4096-ptr_max
PARAM_VALUE 0 state->ops 4096-ptr_max
PARAM_VALUE 1 cmd 128
PARAM_VALUE 2 arg 4096-ptr_max
PARAM_VALUE 3 arg_size 5
PARAM_VALUE 4 rsp 0
PARAM_VALUE 5 rsp_size 0
BUF_SIZE 2 arg 5
DATA_SOURCE 0 state $0
RX_PATH
TASK_NOT_RUNNING
UNITS 3 arg_size unit_byte
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex