Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/crypto/caam/caamhash.c ahash_digest() -> ahash_edesc_add_src()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 1 edesc->hw_desc 4096-ptr_max
PARAM_VALUE 1 edesc->src_nents 0-s32max
PARAM_VALUE 2 req 4096-ptr_max
PARAM_VALUE 2 req->sg_head->dma_flags 0-4294967295
PARAM_VALUE 2 req->sg_head->dma_length 0-4294967295
PARAM_VALUE 2 req->sg_head->length 0-4294967295
PARAM_VALUE 2 req->sg_head->offset 0-4294967295
PARAM_VALUE 3 nents 0-s32max
PARAM_VALUE 4 first_sg 0
PARAM_VALUE 5 first_bytes 0
BUF_SIZE 1 edesc s32min-s32max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req->src (-1),64
CAPPED_DATA 2 req->nbytes 1
CAPPED_DATA 3 nents 1
CAPPED_DATA 6 to_hash 1
DATA_SOURCE 0 ctx r crypto_ahash_ctx_dma
DATA_SOURCE 1 edesc r ahash_edesc_alloc
DATA_SOURCE 2 req $0
FUZZY_MAX 3 nents 0
NOSPEC 2 req->nbytes
NOSPEC 6 to_hash
NOSPEC 6 to_hash
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 2 req->nbytes 0-4605,4294963202-u32max[c]
HOST_DATA 2 req->src->length 0-2147483646[c]
HOST_DATA 6 to_hash 0-4605,4294963202-u32max[c]
USER_DATA 2 req->nbytes 0-u32max[c]
USER_DATA 2 req->src->length 1-u32max[c]
USER_DATA 2 req->src->offset 0-2147551739[c]
USER_DATA 2 *req->result 0-255
USER_DATA 2 *req->svirt 0-255
USER_DATA 6 to_hash 0-u32max[c]
NO_OVERFLOW_SIMPLE 3 nents
UNITS 6 to_hash unit_byte
USER_PTR 2 req->result
USER_PTR 2 req->svirt

drivers/crypto/caam/caamhash.c ahash_finup_ctx() -> ahash_edesc_add_src()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->jrdev->dma_io_tlb_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->jrdev->dma_io_tlb_pools.next 4096-ptr_max
PARAM_VALUE 0 ctx->jrdev->dma_io_tlb_pools.next->prev 4096-ptr_max
PARAM_VALUE 0 ctx->jrdev->dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 ctx->jrdev->dma_uses_io_tlb 1
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 1 edesc->hw_desc 4096-ptr_max
PARAM_VALUE 1 edesc->sec4_sg->bpid 0,16384-49152
PARAM_VALUE 1 edesc->sec4_sg->bpid_offset 0
PARAM_VALUE 1 edesc->sec4_sg->format_offset 0,4096-16384
PARAM_VALUE 1 edesc->sec4_sg->len 0-s32max
PARAM_VALUE 1 edesc->src_nents 0-s32max
PARAM_VALUE 2 req 4096-ptr_max
PARAM_VALUE 2 req->sg_head->dma_flags 0-4294967295
PARAM_VALUE 2 req->sg_head->dma_length 0-4294967295
PARAM_VALUE 2 req->sg_head->length 0-4294967295
PARAM_VALUE 2 req->sg_head->offset 0-4294967295
PARAM_VALUE 3 nents 0-s32max
PARAM_VALUE 4 first_sg 1-2
BUF_SIZE 1 edesc s32min-s32max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req->src (-1),64
CAPPED_DATA 2 req->nbytes 1
CAPPED_DATA 3 nents 1
CAPPED_DATA 6 to_hash 1
DATA_SOURCE 0 ctx r crypto_ahash_ctx_dma
DATA_SOURCE 1 edesc r ahash_edesc_alloc
DATA_SOURCE 2 req $0
FUZZY_MAX 3 nents 0
NOSPEC 2 req->nbytes
NOSPEC 6 to_hash
NOSPEC 6 to_hash
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 2 req->nbytes 0-4350,4294963202-u32max[c]
HOST_DATA 2 req->src->length 0-2147483646[c]
HOST_DATA 6 to_hash 0-4350,4294963202-u32max[c]
USER_DATA 2 req->nbytes 0-u32max[c]
USER_DATA 2 req->src->length 1-u32max[c]
USER_DATA 2 req->src->offset 0-2147551739[c]
USER_DATA 2 *req->result 0-255
USER_DATA 2 *req->svirt 0-255
USER_DATA 6 to_hash 0-u32max[c]
NO_OVERFLOW_SIMPLE 3 nents
UNITS 5 first_bytes unit_byte
UNITS 6 to_hash unit_byte
USER_PTR 2 req->result
USER_PTR 2 req->svirt

drivers/crypto/caam/caamhash.c ahash_finup_no_ctx() -> ahash_edesc_add_src()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 1 edesc->hw_desc 4096-ptr_max
PARAM_VALUE 1 edesc->sec4_sg->bpid_offset 0-4294967295
PARAM_VALUE 1 edesc->src_nents 0-s32max
PARAM_VALUE 2 req 4096-ptr_max
PARAM_VALUE 2 req->sg_head->dma_flags 0-4294967295
PARAM_VALUE 2 req->sg_head->dma_length 0-4294967295
PARAM_VALUE 2 req->sg_head->length 0-4294967295
PARAM_VALUE 2 req->sg_head->offset 0-4294967295
PARAM_VALUE 3 nents 0-s32max
PARAM_VALUE 4 first_sg 1
BUF_SIZE 1 edesc s32min-s32max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req->src (-1),64
CAPPED_DATA 1 edesc->sec4_sg_bytes 1
CAPPED_DATA 2 req->nbytes 1
CAPPED_DATA 3 nents 1
CAPPED_DATA 6 to_hash 1
DATA_SOURCE 0 ctx r crypto_ahash_ctx_dma
DATA_SOURCE 1 edesc r ahash_edesc_alloc
DATA_SOURCE 2 req $0
FUZZY_MAX 3 nents 0
NOSPEC 2 req->nbytes
NOSPEC 6 to_hash
NOSPEC 6 to_hash
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 2 req->nbytes 0-4350,4294963202-u32max[c]
HOST_DATA 2 req->src->length 0-2147483646[c]
HOST_DATA 6 to_hash 0-4350,4294963202-u32max[c]
USER_DATA 2 req->nbytes 0-u32max[c]
USER_DATA 2 req->src->length 1-u32max[c]
USER_DATA 2 req->src->offset 0-2147551739[c]
USER_DATA 2 *req->result 0-255
USER_DATA 2 *req->svirt 0-255
USER_DATA 6 to_hash 0-u32max[c]
NO_OVERFLOW_SIMPLE 3 nents
UNITS 5 first_bytes unit_byte
UNITS 6 to_hash unit_byte
USER_PTR 2 req->result
USER_PTR 2 req->svirt

drivers/crypto/caam/caamhash.c ahash_update_first() -> ahash_edesc_add_src()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 1 edesc 4096-ptr_max
PARAM_VALUE 1 edesc->hw_desc 4096-ptr_max
PARAM_VALUE 1 edesc->src_nents 0-s32max
PARAM_VALUE 2 req 4096-ptr_max
PARAM_VALUE 2 req->sg_head->dma_flags 0-4294967295
PARAM_VALUE 2 req->sg_head->dma_length 0-4294967295
PARAM_VALUE 2 req->sg_head->length 0-4294967295
PARAM_VALUE 2 req->sg_head->offset 0-4294967295
PARAM_VALUE 3 nents 0-s32max
PARAM_VALUE 4 first_sg 0
PARAM_VALUE 5 first_bytes 0
PARAM_VALUE 6 to_hash 1-s32max,18446744071562067968-u64max
BUF_SIZE 1 edesc s32min-s32max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req (-1)-s32max
BUF_SIZE 2 req->src (-1),64
CAPPED_DATA 3 nents 1
DATA_SOURCE 0 ctx r crypto_ahash_ctx_dma
DATA_SOURCE 1 edesc r ahash_edesc_alloc
DATA_SOURCE 2 req $0
FUZZY_MAX 3 nents 0
NOSPEC 2 req->nbytes
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 2 req->nbytes 0-4350,4294963202-u32max[c]
HOST_DATA 2 req->src->length 0-2147483646[c]
USER_DATA 2 req->nbytes 0-u32max
USER_DATA 2 req->src->length 1-u32max[c]
USER_DATA 2 req->src->offset 0-2147551739[c]
USER_DATA 2 *req->result 0-255
USER_DATA 2 *req->svirt 0-255
NO_OVERFLOW_SIMPLE 3 nents
UNITS 6 to_hash unit_byte
USER_PTR 2 req->result
USER_PTR 2 req->svirt