Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/crypto/hisilicon/sec2/sec_crypto.c sec_alg_send_backlog_soft() -> (struct sec_req_op)->buf_unmap()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->req_op 4096-ptr_max
PARAM_VALUE 1 req 4096-ptr_max
CAPPED_DATA 1 &req->list 1
DATA_SOURCE 0 ctx $0
CONTAINER 0 -8-16+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &qp->backlog.lock
LOCK2 bh
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct instance_backlog)->lock

drivers/crypto/hisilicon/sec2/sec_crypto.c sec_req_cb() -> (struct sec_req_op)->buf_unmap()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->req_op 4096-ptr_max
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 1 req->ctx 4096-ptr_max
PARAM_VALUE 1 req->ctx->req_op 4096-ptr_max
PARAM_VALUE 1 req->err_type 0-255
CONTAINER 0 -8-16+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/crypto/hisilicon/sec2/sec_crypto.c sec_req_cb3() -> (struct sec_req_op)->buf_unmap()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->req_op 4096-ptr_max
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 1 req->ctx 4096-ptr_max
PARAM_VALUE 1 req->ctx->req_op 4096-ptr_max
PARAM_VALUE 1 req->err_type 0-255
CONTAINER 0 -8-16+0 $(-1)
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/crypto/hisilicon/sec2/sec_crypto.c sec_request_transfer() -> (struct sec_req_op)->buf_unmap()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->c_ctx.c_alg 1-3
PARAM_VALUE 0 ctx->dev->dma_io_tlb_pools.next->prev 4096-ptr_max
PARAM_VALUE 0 ctx->dev->dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 ctx->dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 0 ctx->qps 1-u64max
PARAM_VALUE 0 ctx->req_op 4096-ptr_max
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 1 req->base 4096-ptr_max
PARAM_VALUE 1 req->buf.data_buf.in.entry_length_in_sgl 4
PARAM_VALUE 1 req->buf.data_buf.in.entry_sum_in_chain 4
PARAM_VALUE 1 req->buf.data_buf.in.sge_entries->len 0
PARAM_VALUE 1 req->buf.data_buf.out.entry_length_in_sgl 4
PARAM_VALUE 1 req->buf.data_buf.out.entry_sum_in_chain 4
PARAM_VALUE 1 req->buf.data_buf.out.sge_entries->len 0
PARAM_VALUE 1 req->buf.in_dma 0-18446744073709551614
PARAM_VALUE 1 req->buf.out_dma 0-18446744073709551614
PARAM_VALUE 1 req->c_req.c_out 4096-ptr_max
PARAM_VALUE 1 req->c_req.c_out->entry_sum_in_chain 0-u16max
PARAM_VALUE 1 req->ctx 4096-ptr_max
PARAM_VALUE 1 req->ctx->qps 1-u64max
PARAM_VALUE 1 req->in 4096-ptr_max
PARAM_VALUE 1 req->in->entry_sum_in_chain 0-u16max
PARAM_VALUE 1 req->qp_ctx 4096-ptr_max
PARAM_VALUE 1 req->qp_ctx->c_in_pool->sge_nr 0-4294967295
PARAM_VALUE 1 req->qp_ctx->c_out_pool->sge_nr 0-4294967295
PARAM_VALUE 1 req->qp_ctx->qp 4096-ptr_max
PARAM_VALUE 1 *req->buf.data_buf.in->sge_entries->page_ctrl (-4611686018427387904)-4611686018427387903
PARAM_VALUE 1 *req->buf.data_buf.out->sge_entries->page_ctrl (-4611686018427387904)-4611686018427387903
BUF_SIZE 1 req->aead_req.aead_req (-1)-s32max
BUF_SIZE 1 req->base 48
BUF_SIZE 1 req->c_req.sk_req (-1)-s32max
DATA_SOURCE 0 ctx $0
DATA_SOURCE 1 req $1
CONTAINER 0 -8-16+0 $(-1)
NOSPEC 1 req->aead_req.aead_req->cryptlen
NOSPEC 1 req->c_req.c_len
NOSPEC 1 req->c_req.sk_req->cryptlen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 req->aead_req.aead_req->cryptlen 0-u32max
USER_DATA 1 req->c_req.c_len 0-u32max
USER_DATA 1 req->c_req.sk_req->cryptlen 1-u32max
USER_DATA 1 req->sec_sqe.type2.alen_ivllen 0-u32max[u]
USER_DATA 1 req->sec_sqe.type2.clen_ivhlen 0-u32max[u]
USER_DATA 1 req->sec_sqe3.a_len_key 0-u32max[u]
USER_DATA 1 req->sec_sqe3.c_len_ivin 0-u32max[u]
USER_DATA 1 *req->aead_req->a_ivin 0-255
USER_DATA 1 *req->c_req->c_ivin 0-255
USER_PTR 1 req->aead_req.aead_req->iv
USER_PTR 1 req->c_req.sk_req->iv

drivers/crypto/hisilicon/sec2/sec_crypto.c sec_request_untransfer() -> (struct sec_req_op)->buf_unmap()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->c_ctx.c_alg 1-3
PARAM_VALUE 0 ctx->dev->dma_io_tlb_pools.next->prev 4096-ptr_max
PARAM_VALUE 0 ctx->dev->dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 ctx->dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 0 ctx->qps 1-u64max
PARAM_VALUE 0 ctx->req_op 4096-ptr_max
PARAM_VALUE 0 ctx->req_op->buf_map 4096-ptr_max
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 1 req->base 4096-ptr_max
PARAM_VALUE 1 req->buf.data_buf.in.entry_length_in_sgl 4
PARAM_VALUE 1 req->buf.data_buf.in.entry_sum_in_chain 4
PARAM_VALUE 1 req->buf.data_buf.in.sge_entries->len 0-4294967295
PARAM_VALUE 1 req->buf.data_buf.out.entry_length_in_sgl 4
PARAM_VALUE 1 req->buf.data_buf.out.entry_sum_in_chain 4
PARAM_VALUE 1 req->buf.data_buf.out.sge_entries->len 0-4294967295
PARAM_VALUE 1 req->buf.in_dma 0-18446744073709551614
PARAM_VALUE 1 req->buf.out_dma 0-18446744073709551614
PARAM_VALUE 1 req->c_req.c_out 4096-ptr_max
PARAM_VALUE 1 req->c_req.c_out->entry_sum_in_chain 0-u16max
PARAM_VALUE 1 req->ctx 4096-ptr_max
PARAM_VALUE 1 req->ctx->qps 1-u64max
PARAM_VALUE 1 req->in 4096-ptr_max
PARAM_VALUE 1 req->in->entry_length_in_sgl 0-u16max
PARAM_VALUE 1 req->in->entry_sum_in_chain 0-u16max
PARAM_VALUE 1 req->in->entry_sum_in_sgl 0-u16max
PARAM_VALUE 1 req->qp_ctx 4096-ptr_max
PARAM_VALUE 1 req->qp_ctx->c_in_pool->count 0-4294967295
PARAM_VALUE 1 req->qp_ctx->c_in_pool->sge_nr 0-4294967295
PARAM_VALUE 1 req->qp_ctx->c_out_pool->count 0-4294967295
PARAM_VALUE 1 req->qp_ctx->c_out_pool->sge_nr 0-4294967295
PARAM_VALUE 1 req->qp_ctx->qp 4096-ptr_max
PARAM_VALUE 1 req->qp_ctx->qp->qp_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 req->qp_ctx->req_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 req->sec_sqe.ai_apd_cs 0
PARAM_VALUE 1 req->sec_sqe.huk_key_ci 0
PARAM_VALUE 1 req->sec_sqe.iv_tls_ld 0
PARAM_VALUE 1 req->sec_sqe.rca_key_frm 0
PARAM_VALUE 1 req->sec_sqe.rsvd0 0
PARAM_VALUE 1 req->sec_sqe.sdm_addr_type 0,4
PARAM_VALUE 1 req->sec_sqe.sds_sa_type 0,2,128,130
PARAM_VALUE 1 req->sec_sqe.type2.a_ivin_addr 0
PARAM_VALUE 1 req->sec_sqe.type2.a_key_addr 0
PARAM_VALUE 1 req->sec_sqe.type2.alen_ivllen 0
PARAM_VALUE 1 req->sec_sqe.type2.auth_src_offset 0
PARAM_VALUE 1 req->sec_sqe.type2.c_alg 1-3
PARAM_VALUE 1 req->sec_sqe.type2.c_pad_len_field 0
PARAM_VALUE 1 req->sec_sqe.type2.check_sum_i 0
PARAM_VALUE 1 req->sec_sqe.type2.cipher_src_offset 0
PARAM_VALUE 1 req->sec_sqe.type2.counter 0
PARAM_VALUE 1 req->sec_sqe.type2.cph_pad 0
PARAM_VALUE 1 req->sec_sqe.type2.cs_ip_header_offset 0
PARAM_VALUE 1 req->sec_sqe.type2.cs_udp_header_offset 0
PARAM_VALUE 1 req->sec_sqe.type2.dk_len 0
PARAM_VALUE 1 req->sec_sqe.type2.done_flag 0
PARAM_VALUE 1 req->sec_sqe.type2.error_type 0
PARAM_VALUE 1 req->sec_sqe.type2.long_a_data_len 0
PARAM_VALUE 1 req->sec_sqe.type2.mac_addr 0
PARAM_VALUE 1 req->sec_sqe.type2.mac_i0 0
PARAM_VALUE 1 req->sec_sqe.type2.mac_i1 0
PARAM_VALUE 1 req->sec_sqe.type2.mac_i2 0
PARAM_VALUE 1 req->sec_sqe.type2.mac_i3 0
PARAM_VALUE 1 req->sec_sqe.type2.mac_key_alg 0-1073741823
PARAM_VALUE 1 req->sec_sqe.type2.pass_word_len 0
PARAM_VALUE 1 req->sec_sqe.type2.rsvd12 0
PARAM_VALUE 1 req->sec_sqe.type2.rsvd4 0
PARAM_VALUE 1 req->sec_sqe.type2.rsvd5 0
PARAM_VALUE 1 req->sec_sqe.type2.salt0 0
PARAM_VALUE 1 req->sec_sqe.type2.salt1 0
PARAM_VALUE 1 req->sec_sqe.type2.salt2 0
PARAM_VALUE 1 req->sec_sqe.type2.salt3 0
PARAM_VALUE 1 req->sec_sqe.type2.tls_pad_len_i 0
PARAM_VALUE 1 req->sec_sqe.type2.warning_type 0
PARAM_VALUE 1 req->sec_sqe.type_cipher_auth 18,34
PARAM_VALUE 1 req->sec_sqe3.a_key_addr 0
PARAM_VALUE 1 req->sec_sqe3.a_len_key 0
PARAM_VALUE 1 req->sec_sqe3.auth_ivin.a_ivin_addr 0
PARAM_VALUE 1 req->sec_sqe3.auth_ivin.rsvd0 0
PARAM_VALUE 1 req->sec_sqe3.auth_ivin.rsvd1 0
PARAM_VALUE 1 req->sec_sqe3.auth_mac_key 67108864
PARAM_VALUE 1 req->sec_sqe3.auth_src_offset 0
PARAM_VALUE 1 req->sec_sqe3.bd_param 3,515,18435,18947
PARAM_VALUE 1 req->sec_sqe3.check_sum.check_sum_i 0
PARAM_VALUE 1 req->sec_sqe3.check_sum.hac_sva_status 0
PARAM_VALUE 1 req->sec_sqe3.check_sum.rsvd0 0
PARAM_VALUE 1 req->sec_sqe3.cipher_src_offset 0
PARAM_VALUE 1 req->sec_sqe3.counter 0
PARAM_VALUE 1 req->sec_sqe3.done_flag 0
PARAM_VALUE 1 req->sec_sqe3.error_type 0
PARAM_VALUE 1 req->sec_sqe3.huk_iv_seq 0
PARAM_VALUE 1 req->sec_sqe3.kek_key_addr_h 0
PARAM_VALUE 1 req->sec_sqe3.kek_key_addr_l 0
PARAM_VALUE 1 req->sec_sqe3.mac_addr 0
PARAM_VALUE 1 req->sec_sqe3.mac_i 0
PARAM_VALUE 1 req->sec_sqe3.no_scene.rsvd0 0
PARAM_VALUE 1 req->sec_sqe3.no_scene.rsvd1 0
PARAM_VALUE 1 req->sec_sqe3.no_scene.rsvd2 0
PARAM_VALUE 1 req->sec_sqe3.salt 0
PARAM_VALUE 1 req->sec_sqe3.skip_data.gran_num 0
PARAM_VALUE 1 req->sec_sqe3.skip_data.rsvd0 0
PARAM_VALUE 1 req->sec_sqe3.stream_scene.c_ivin_addr 0
PARAM_VALUE 1 req->sec_sqe3.stream_scene.pad_len_1p3 0
PARAM_VALUE 1 req->sec_sqe3.tag 4096-18446744073709547520
PARAM_VALUE 1 req->sec_sqe3.warning_type 0
PARAM_VALUE 1 *req->buf.data_buf.in->sge_entries->page_ctrl (-4611686018427387904)-4611686018427387903
PARAM_VALUE 1 *req->buf.data_buf.out->sge_entries->page_ctrl (-4611686018427387904)-4611686018427387903
BUF_SIZE 1 req->aead_req.aead_req (-1)-s32max
BUF_SIZE 1 req->base 48
BUF_SIZE 1 req->c_req.sk_req (-1)-s32max
DATA_SOURCE 0 ctx $0
DATA_SOURCE 1 req $1
CONTAINER 0 -8-16+0 $(-1)
BIT_INFO 0 ctx->c_ctx.c_mode 0x0,0x7
NOSPEC 1 req->aead_req.aead_req->cryptlen
NOSPEC 1 req->c_req.c_len
NOSPEC 1 req->c_req.sk_req->cryptlen
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 req->aead_req.aead_req->cryptlen 0-u32max
USER_DATA 1 req->c_req.c_len 0-u32max
USER_DATA 1 req->c_req.sk_req->cryptlen 1-u32max
USER_DATA 1 req->sec_sqe.type2.alen_ivllen 0[u]
USER_DATA 1 req->sec_sqe.type2.clen_ivhlen 0-u32max[u]
USER_DATA 1 req->sec_sqe3.a_len_key 0[u]
USER_DATA 1 req->sec_sqe3.c_len_ivin 0-u32max[u]
USER_DATA 1 *req->aead_req->a_ivin 0-255
USER_DATA 1 *req->c_req->c_ivin 0-255
USER_PTR 1 req->aead_req.aead_req->iv
USER_PTR 1 req->c_req.sk_req->iv