Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/crypto/caam/caampkc.c sg_to_sec4_sg_last() -> sg_to_sec4_sg()

Type Parameter Key Value
PARAM_VALUE 3 offset 0
BUF_SIZE 0 sg (-1),64
BUF_SIZE 0 sg (-1),64
DATA_SOURCE 0 sg $0
DATA_SOURCE 1 len $1
DATA_SOURCE 2 sec4_sg_ptr $2
DATA_SOURCE 3 offset $3
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 sg->length
NO_OVERFLOW_SIMPLE 1 len
UNITS 1 len unit_byte
UNITS 2 sec4_sg_ptr unit_byte

drivers/crypto/caam/caamalg.c sg_to_sec4_sg_last() -> sg_to_sec4_sg()

Type Parameter Key Value
PARAM_VALUE 3 offset 0
CAPPED_DATA 1 len 1
DATA_SOURCE 0 sg $0
DATA_SOURCE 1 len $1
DATA_SOURCE 2 sec4_sg_ptr $2
DATA_SOURCE 3 offset $3
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 sg->length
UNITS 0 sg unit_byte
UNITS 1 len unit_byte
UNITS 2 sec4_sg_ptr unit_byte

drivers/crypto/caam/caamalg.c skcipher_edesc_alloc() -> sg_to_sec4_sg()

Type Parameter Key Value
PARAM_VALUE 3 offset 0
CAPPED_DATA 1 len 1
NOSPEC 1 len
NOSPEC 1 len
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 len 0-s32max[c]
UNITS 0 sg unit_byte
UNITS 1 len unit_byte
UNITS 2 sec4_sg_ptr unit_byte
HALF_LOCKED2 &mkey->sem
HALF_LOCKED2 s->tfm_mutex
HALF_LOCKED2 sk
HALF_LOCKED2 tfm_mutex

drivers/crypto/caam/caamalg.c skcipher_edesc_alloc() -> sg_to_sec4_sg()

Type Parameter Key Value
PARAM_VALUE 3 offset 0
CAPPED_DATA 1 len 1
NOSPEC 1 len
NOSPEC 1 len
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 sg->length 1-2147483646[c]
USER_DATA 0 sg->length 1-u32max[c]
USER_DATA 0 sg->offset 0-2147551739[c]
USER_DATA 1 len 0-s32max[c]
UNITS 0 sg unit_byte
UNITS 1 len unit_byte
UNITS 2 sec4_sg_ptr unit_byte
HALF_LOCKED2 &mkey->sem
HALF_LOCKED2 s->tfm_mutex
HALF_LOCKED2 sk
HALF_LOCKED2 tfm_mutex

drivers/crypto/caam/caamhash.c sg_to_sec4_sg_last() -> sg_to_sec4_sg()

Type Parameter Key Value
PARAM_VALUE 2 sec4_sg_ptr 4096-ptr_max
PARAM_VALUE 3 offset 0
BUF_SIZE 0 sg (-1),64
BUF_SIZE 0 sg (-1),64
CAPPED_DATA 1 len 1
DATA_SOURCE 0 sg $0
DATA_SOURCE 1 len $1
DATA_SOURCE 2 sec4_sg_ptr $2
DATA_SOURCE 3 offset $3
NOSPEC 1 len
NOSPEC 1 len
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 sg->length 0-2147483646[c]
HOST_DATA 1 len 0-4350[c]
USER_DATA 0 sg->length 1-u32max[c]
USER_DATA 0 sg->offset 0-2147551739[c]
USER_DATA 1 len 0-s32max[c]
UNITS 0 sg unit_byte
UNITS 1 len unit_byte