Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/platform/chrome/cros_ec_lpc.c cros_ec_lpc_direct_write() -> cros_ec_lpc_write_bytes()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 1 offset 516
PARAM_VALUE 2 length 0-s32max
BUF_SIZE 0 _ (-1),4,24,32,48,64,152,168-s32max
BUF_SIZE 0 _ (-1),4,24,32,48,64,152,168-s32max
BUF_SIZE 3 msg s32min-(-1),1-s32max
BUF_SIZE 3 msg s32min-(-1),1-s32max
CAPPED_DATA 2 length 1
DATA_SOURCE 0 _ $0
DATA_SOURCE 1 offset $1
DATA_SOURCE 2 length $2
DATA_SOURCE 3 msg $3
FUZZY_MAX 2 length 252
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 length 0-65543[c]
USER_DATA 3 *msg 0-255
USER_PTR 3 msg
HALF_LOCKED2 &ec->lock

drivers/platform/chrome/cros_ec_lpc.c cros_ec_lpc_mec_write_bytes() -> cros_ec_lpc_write_bytes()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 1 offset 516,2048,2052
PARAM_VALUE 2 length 0-s32max
BUF_SIZE 0 _ (-1),4,24,32,48,64,152,168-s32max
BUF_SIZE 0 _ (-1),4,24,32,48,64,152,168-s32max
BUF_SIZE 3 msg s32min-(-1),1-s32max
BUF_SIZE 3 msg s32min-(-1),1-s32max
CAPPED_DATA 1 offset 1
CAPPED_DATA 2 length 1
DATA_SOURCE 0 _ $0
DATA_SOURCE 1 offset $1
DATA_SOURCE 2 length $2
DATA_SOURCE 3 msg $3
FUZZY_MAX 2 length 252
HARD_MAX 1 offset 2052
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 length 0-65543[c]
USER_DATA 3 *msg 0-255
USER_PTR 3 msg
HALF_LOCKED2 &ec->lock

drivers/platform/chrome/cros_ec_lpc.c cros_ec_cmd_xfer_lpc() -> (struct cros_ec_lpc)->write()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 1 offset 2052
PARAM_VALUE 2 length 0-252
BUF_SIZE 0 _ (-1),32,48,152,200,800
BUF_SIZE 0 _ (-1),32,48,152,200,800
BUF_SIZE 3 msg (-1),13-u16max
FUZZY_MAX 2 length 252
CONTAINER 0 -40+0 $(-1)
HARD_MAX 2 length 252
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 length 0-252[c]
USER_DATA 3 *msg 0-255
USER_PTR 3 msg
HALF_LOCKED2 &ec->lock

drivers/platform/chrome/cros_ec_lpc.c cros_ec_cmd_xfer_lpc() -> (struct cros_ec_lpc)->write()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 1 offset 2048
PARAM_VALUE 2 length 4
PARAM_VALUE 3 msg 7689504250088513536
BUF_SIZE 0 _ (-1),32,48,152,200,800
BUF_SIZE 0 _ (-1),32,48,152,200,800
BUF_SIZE 3 msg 4
CONTAINER 0 -40+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ec->lock

drivers/platform/chrome/cros_ec_lpc.c cros_ec_cmd_xfer_lpc() -> (struct cros_ec_lpc)->write()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 1 offset 516
PARAM_VALUE 2 length 1
PARAM_VALUE 3 msg 5283473060782321664
BUF_SIZE 0 _ (-1),32,48,152,200,800
BUF_SIZE 0 _ (-1),32,48,152,200,800
CONTAINER 0 -40+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
USER_DATA 3 *msg 0-255
USER_PTR 3 msg
HALF_LOCKED2 &ec->lock

drivers/platform/chrome/cros_ec_lpc.c cros_ec_pkt_xfer_lpc() -> (struct cros_ec_lpc)->write()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 1 offset 2048
PARAM_VALUE 2 length 0-s32max
BUF_SIZE 0 _ (-1),32,48,152,200,800
BUF_SIZE 0 _ (-1),32,48,152,200,800
BUF_SIZE 3 msg s32min-(-2),1-s32max
CAPPED_DATA 2 length 1
DATA_SOURCE 2 length r cros_ec_prepare_tx
CONTAINER 0 -40+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 length 5-65543[c]
USER_DATA 3 msg->checksum 0-255
HALF_LOCKED2 &ec->lock

drivers/platform/chrome/cros_ec_lpc.c cros_ec_pkt_xfer_lpc() -> (struct cros_ec_lpc)->write()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 1 offset 516
PARAM_VALUE 2 length 1
PARAM_VALUE 3 msg 4870155615423660032
PARAM_VALUE 3 *msg 218
BUF_SIZE 0 _ (-1),32,48,152,200,800
BUF_SIZE 0 _ (-1),32,48,152,200,800
CONTAINER 0 -40+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ec->lock