Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/crypto/caam/caampkc.c rsa_edesc_alloc() -> dma_to_sec4_sg_one()

Type Parameter Key Value
PARAM_VALUE 0 sec4_sg_ptr 4096-ptr_max
PARAM_VALUE 2 len 1-u32max
PARAM_VALUE 3 offset 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 sec4_sg_ptr unit_byte
UNITS 2 len unit_byte

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

Type Parameter Key Value
PARAM_VALUE 3 offset 0
CAPPED_DATA 2 len 1
DATA_SOURCE 0 sec4_sg_ptr $2 [m]
DATA_SOURCE 3 offset $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 sec4_sg_ptr->len
NO_OVERFLOW_SIMPLE 2 len
UNITS 0 sec4_sg_ptr unit_byte
UNITS 1 dma unit_byte
UNITS 2 len unit_byte

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

Type Parameter Key Value
PARAM_VALUE 3 offset 0
CAPPED_DATA 2 len 1
DATA_SOURCE 0 sec4_sg_ptr $2 [m]
DATA_SOURCE 3 offset $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 sec4_sg_ptr->len 1-s32max[c]
USER_DATA 2 len 1-s32max[c]
UNITS 0 sec4_sg_ptr unit_byte
UNITS 1 dma unit_byte
UNITS 2 len unit_byte

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

Type Parameter Key Value
PARAM_VALUE 0 sec4_sg_ptr 4096-ptr_max
PARAM_VALUE 1 dma 0-18446744073709551614
PARAM_VALUE 2 len 1-u32max
PARAM_VALUE 3 offset 0
DATA_SOURCE 1 dma r dma_map_single_attrs
DATA_SOURCE 2 len r crypto_skcipher_ivsize
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 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() -> dma_to_sec4_sg_one()

Type Parameter Key Value
PARAM_VALUE 0 sec4_sg_ptr 4096-ptr_max
PARAM_VALUE 1 dma 0-18446744073709551614
PARAM_VALUE 2 len 1-u32max
PARAM_VALUE 3 offset 0
DATA_SOURCE 1 dma r dma_map_single_attrs
DATA_SOURCE 2 len r crypto_skcipher_ivsize
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 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 buf_map_to_sec4_sg() -> dma_to_sec4_sg_one()

Type Parameter Key Value
PARAM_VALUE 1 dma 0-18446744073709551614
PARAM_VALUE 2 len 1-u32max
PARAM_VALUE 3 offset 0
DATA_SOURCE 0 sec4_sg_ptr $1
DATA_SOURCE 1 dma r dma_map_single_attrs
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte

drivers/crypto/caam/caamhash.c ctx_map_to_sec4_sg() -> dma_to_sec4_sg_one()

Type Parameter Key Value
PARAM_VALUE 1 dma 0-18446744073709551614
PARAM_VALUE 3 offset 0
DATA_SOURCE 0 sec4_sg_ptr $3
DATA_SOURCE 1 dma r dma_map_single_attrs
DATA_SOURCE 2 len $2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte

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

Type Parameter Key Value
PARAM_VALUE 0 sec4_sg_ptr 4096-u64max
PARAM_VALUE 3 offset 0
CAPPED_DATA 2 len 1
DATA_SOURCE 0 sec4_sg_ptr $2 [m]
DATA_SOURCE 3 offset $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 sec4_sg_ptr->len 0-u32max[c]
USER_DATA 2 len 1-s32max[c]
UNITS 1 dma unit_byte
UNITS 2 len unit_byte