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_read() -> cros_ec_lpc_read_bytes()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 1 offset 0-2047,2560-u32max
PARAM_VALUE 2 length 1-255
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 dest (-1),2,255
BUF_SIZE 3 dest (-1),2,255
CAPPED_DATA 2 length 1
DATA_SOURCE 0 _ $0
DATA_SOURCE 1 offset $1
DATA_SOURCE 2 length $2
DATA_SOURCE 3 dest $3
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 offset 0-2047,2560-65789[c]
USER_DATA 2 length 1-255[c]
USER_DATA 3 *dest 0-255
USER_PTR 3 dest
HALF_LOCKED2 _T->lock

drivers/platform/chrome/cros_ec_lpc.c cros_ec_lpc_mec_read_bytes() -> cros_ec_lpc_read_bytes()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
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 dest (-1),2,4,8,13-u16max
BUF_SIZE 3 dest (-1),2,4,8,13-u16max
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 dest $3
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 offset 0-65789[c]
USER_DATA 2 length 1-255[c]
USER_DATA 3 *dest 0-255
USER_PTR 3 dest
HALF_LOCKED2 _T->lock

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

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

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

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

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

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 0 _->read 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 dest (-1),13-u16max
CAPPED_DATA 2 length 1
FUZZY_MAX 2 length 252
CONTAINER 0 -32+0 $(-1)
HARD_MAX 2 length 252
RX_PATH
TASK_NOT_RUNNING
USER_DATA 3 *dest 0-255
USER_PTR 3 dest
HALF_LOCKED2 &ec->lock

drivers/platform/chrome/cros_ec_lpc.c cros_ec_lpc_probe() -> (struct cros_ec_lpc)->read()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 0 _->mem32.address_length 0
PARAM_VALUE 0 _->read 6115743491453304832,6615331015828881408
PARAM_VALUE 0 _->write 1080428710910005248,7182399153817313280
PARAM_VALUE 1 offset 2336
PARAM_VALUE 2 length 2
PARAM_VALUE 3 dest 429985923300917248
BUF_SIZE 0 _ 48
BUF_SIZE 3 dest 2
DATA_SOURCE 0 _ r devm_kzalloc
CONTAINER 0 -32+0 $(-1)
BIT_INFO 0 _->read 0x50ce6000001a4000,0x5fdf7ccfef7bc000
BIT_INFO 0 _->write 0x2ac003026488000,0x6fff75f9fefcf000
MEM_ZERO 0 _
RX_PATH
TASK_NOT_RUNNING

drivers/platform/chrome/cros_ec_lpc.c cros_ec_lpc_probe() -> (struct cros_ec_lpc)->read()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 0 _->mem32.address_length 0
PARAM_VALUE 0 _->read 8647220548120850432
PARAM_VALUE 0 _->write 1621202179558277120
PARAM_VALUE 1 offset 32-65567
PARAM_VALUE 2 length 2
PARAM_VALUE 3 dest 429985923300917248
BUF_SIZE 0 _ 48
BUF_SIZE 3 dest 2
DATA_SOURCE 0 _ r devm_kzalloc
CONTAINER 0 -32+0 $(-1)
MEM_ZERO 0 _
RX_PATH
TASK_NOT_RUNNING

drivers/platform/chrome/cros_ec_lpc.c cros_ec_lpc_readmem() -> (struct cros_ec_lpc)->read()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 2 length 1-255
BUF_SIZE 0 _ 32,48,152,200,800
BUF_SIZE 0 _ 32,48,152,200,800
BUF_SIZE 3 dest (-1),2,255
BUF_SIZE 3 dest (-1),2,255
DATA_SOURCE 2 length $2
DATA_SOURCE 3 dest $3
CONTAINER 0 -32+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 offset 0-65789[c]
USER_DATA 2 length 1-255
USER_DATA 3 *dest 0-255
USER_PTR 3 dest
HALF_LOCKED2 _T->lock

drivers/platform/chrome/cros_ec_lpc.c cros_ec_lpc_readmem() -> (struct cros_ec_lpc)->read()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 2 length 1
BUF_SIZE 0 _ 32,48,152,200,800
BUF_SIZE 0 _ 32,48,152,200,800
BUF_SIZE 3 dest (-1),2,255
BUF_SIZE 3 dest (-1),2,255
CONTAINER 0 -32+0 $(-1)
RX_PATH
USER_DATA 1 offset 0-65789[c]
USER_DATA 3 *dest 0-255
USER_PTR 3 dest
LOCK2 _T->lock

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

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

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

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

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

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 0 _->read 4096-ptr_max
PARAM_VALUE 1 offset 2056
BUF_SIZE 0 _ (-1),32,48,152,200,800
BUF_SIZE 0 _ (-1),32,48,152,200,800
BUF_SIZE 3 dest (-1),13-u16max
CAPPED_DATA 2 length 1
CONTAINER 0 -32+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
USER_DATA 3 *dest 0-255
USER_PTR 3 dest
HALF_LOCKED2 &ec->lock

drivers/platform/chrome/cros_ec_lpc.c ec_response_timed_out() -> (struct cros_ec_lpc)->read()

Type Parameter Key Value
PARAM_VALUE 0 _ 4096-ptr_max
PARAM_VALUE 1 offset 516
PARAM_VALUE 2 length 1
PARAM_VALUE 3 dest 644895342200901632
BUF_SIZE 0 _ (-1),4,24,32,48,64,152,168-s32max
BUF_SIZE 0 _ (-1),4,24,32,48,64,152,168-s32max
DATA_SOURCE 0 _ $0
CONTAINER 0 -32+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ec->lock