Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/crypto/hisilicon/sec2/sec_crypto.c sec_alg_send_message_maybacklog() -> sec_alg_try_enqueue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base | 4096-ptr_max |
| PARAM_VALUE | 0 | req->buf.data_buf.in.entry_length_in_sgl | 4 |
| PARAM_VALUE | 0 | req->buf.data_buf.in.entry_sum_in_chain | 4 |
| PARAM_VALUE | 0 | req->buf.data_buf.in.sge_entries->len | 0-4294967295 |
| PARAM_VALUE | 0 | req->buf.data_buf.out.entry_length_in_sgl | 4 |
| PARAM_VALUE | 0 | req->buf.data_buf.out.entry_sum_in_chain | 4 |
| PARAM_VALUE | 0 | req->buf.data_buf.out.sge_entries->len | 0-4294967295 |
| PARAM_VALUE | 0 | req->buf.in_dma | 0-18446744073709551614 |
| PARAM_VALUE | 0 | req->buf.out_dma | 0-18446744073709551614 |
| PARAM_VALUE | 0 | req->c_req.c_out | 4096-ptr_max |
| PARAM_VALUE | 0 | req->c_req.c_out->entry_length_in_sgl | 0-u16max |
| PARAM_VALUE | 0 | req->c_req.c_out->entry_sum_in_chain | 0-u16max |
| PARAM_VALUE | 0 | req->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | req->ctx->qps | 1-u64max |
| PARAM_VALUE | 0 | req->flag | 1024-u32max |
| PARAM_VALUE | 0 | req->in | 4096-ptr_max |
| PARAM_VALUE | 0 | req->in->entry_length_in_sgl | 0-u16max |
| PARAM_VALUE | 0 | req->in->entry_sum_in_chain | 0-u16max |
| PARAM_VALUE | 0 | req->in->entry_sum_in_sgl | 0-u16max |
| PARAM_VALUE | 0 | req->qp_ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | req->qp_ctx->c_in_pool->count | 0-4294967295 |
| PARAM_VALUE | 0 | req->qp_ctx->c_in_pool->sge_nr | 0-4294967295 |
| PARAM_VALUE | 0 | req->qp_ctx->c_out_pool->count | 0-4294967295 |
| PARAM_VALUE | 0 | req->qp_ctx->c_out_pool->sge_nr | 0-4294967295 |
| PARAM_VALUE | 0 | req->qp_ctx->qp | 4096-ptr_max |
| PARAM_VALUE | 0 | req->sec_sqe.ai_apd_cs | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.huk_key_ci | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.iv_tls_ld | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.rca_key_frm | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.rsvd0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.sdm_addr_type | 0,4 |
| PARAM_VALUE | 0 | req->sec_sqe.sds_sa_type | 0,2,128,130 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.a_ivin_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.a_key_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.alen_ivllen | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.auth_src_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.c_alg | 1-3 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.c_pad_len_field | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.check_sum_i | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.cipher_src_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.counter | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.cph_pad | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.cs_ip_header_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.cs_udp_header_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.dk_len | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.done_flag | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.error_type | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.long_a_data_len | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_i0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_i1 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_i2 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_i3 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_key_alg | 0-1073741823 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.pass_word_len | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.rsvd12 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.rsvd4 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.rsvd5 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.salt0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.salt1 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.salt2 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.salt3 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.tag | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.tls_pad_len_i | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.warning_type | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type_cipher_auth | 18,34 |
| PARAM_VALUE | 0 | req->sec_sqe3.a_key_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.a_len_key | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.auth_ivin.a_ivin_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.auth_ivin.rsvd0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.auth_ivin.rsvd1 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.auth_mac_key | 67108864 |
| PARAM_VALUE | 0 | req->sec_sqe3.auth_src_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.bd_param | 3,515,18435,18947 |
| PARAM_VALUE | 0 | req->sec_sqe3.check_sum.check_sum_i | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.check_sum.hac_sva_status | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.check_sum.rsvd0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.cipher_src_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.counter | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.done_flag | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.error_type | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.huk_iv_seq | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.kek_key_addr_h | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.kek_key_addr_l | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.mac_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.mac_i | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.no_scene.rsvd0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.no_scene.rsvd1 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.no_scene.rsvd2 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.salt | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.skip_data.gran_num | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.skip_data.rsvd0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.stream_scene.c_ivin_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.stream_scene.pad_len_1p3 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.tag | 4096-18446744073709547520 |
| PARAM_VALUE | 0 | req->sec_sqe3.warning_type | 0 |
| PARAM_VALUE | 0 | *req->buf.data_buf.in->sge_entries->page_ctrl | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | *req->buf.data_buf.out->sge_entries->page_ctrl | (-4611686018427387904)-4611686018427387903 |
| BUF_SIZE | 0 | req->aead_req.aead_req | (-1)-s32max |
| BUF_SIZE | 0 | req->base | 48 |
| BUF_SIZE | 0 | req->c_req.sk_req | (-1)-s32max |
| DATA_SOURCE | 0 | req | $0 |
| BIT_INFO | 0 | req->flag | 0x400,0xffffffff |
| NOSPEC | 0 | req->aead_req.aead_req->cryptlen | |
| NOSPEC | 0 | req->c_req.c_len | |
| NOSPEC | 0 | req->c_req.sk_req->cryptlen | |
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | req->aead_req.aead_req->cryptlen | 0-u32max |
| USER_DATA | 0 | req->c_req.c_len | 0-u32max |
| USER_DATA | 0 | req->c_req.sk_req->cryptlen | 1-u32max |
| USER_DATA | 0 | req->sec_sqe.type2.alen_ivllen | 0[u] |
| USER_DATA | 0 | req->sec_sqe.type2.clen_ivhlen | 0-u32max[u] |
| USER_DATA | 0 | req->sec_sqe3.a_len_key | 0[u] |
| USER_DATA | 0 | req->sec_sqe3.c_len_ivin | 0-u32max[u] |
| USER_DATA | 0 | *req->aead_req->a_ivin | 0-255 |
| USER_DATA | 0 | *req->c_req->c_ivin | 0-255 |
| USER_PTR | 0 | req->aead_req.aead_req->iv | |
| USER_PTR | 0 | req->c_req.sk_req->iv |
drivers/crypto/hisilicon/sec2/sec_crypto.c sec_alg_send_message_maybacklog() -> sec_alg_try_enqueue()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base | 4096-ptr_max |
| PARAM_VALUE | 0 | req->buf.data_buf.in.entry_length_in_sgl | 4 |
| PARAM_VALUE | 0 | req->buf.data_buf.in.entry_sum_in_chain | 4 |
| PARAM_VALUE | 0 | req->buf.data_buf.in.sge_entries->len | 0-4294967295 |
| PARAM_VALUE | 0 | req->buf.data_buf.out.entry_length_in_sgl | 4 |
| PARAM_VALUE | 0 | req->buf.data_buf.out.entry_sum_in_chain | 4 |
| PARAM_VALUE | 0 | req->buf.data_buf.out.sge_entries->len | 0-4294967295 |
| PARAM_VALUE | 0 | req->buf.in_dma | 0-18446744073709551614 |
| PARAM_VALUE | 0 | req->buf.out_dma | 0-18446744073709551614 |
| PARAM_VALUE | 0 | req->c_req.c_out | 4096-ptr_max |
| PARAM_VALUE | 0 | req->c_req.c_out->entry_length_in_sgl | 0-u16max |
| PARAM_VALUE | 0 | req->c_req.c_out->entry_sum_in_chain | 0-u16max |
| PARAM_VALUE | 0 | req->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | req->ctx->qps | 1-u64max |
| PARAM_VALUE | 0 | req->flag | 1024-u32max |
| PARAM_VALUE | 0 | req->in | 4096-ptr_max |
| PARAM_VALUE | 0 | req->in->entry_length_in_sgl | 0-u16max |
| PARAM_VALUE | 0 | req->in->entry_sum_in_chain | 0-u16max |
| PARAM_VALUE | 0 | req->in->entry_sum_in_sgl | 0-u16max |
| PARAM_VALUE | 0 | req->qp_ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | req->qp_ctx->c_in_pool->count | 0-4294967295 |
| PARAM_VALUE | 0 | req->qp_ctx->c_in_pool->sge_nr | 0-4294967295 |
| PARAM_VALUE | 0 | req->qp_ctx->c_out_pool->count | 0-4294967295 |
| PARAM_VALUE | 0 | req->qp_ctx->c_out_pool->sge_nr | 0-4294967295 |
| PARAM_VALUE | 0 | req->qp_ctx->qp | 4096-ptr_max |
| PARAM_VALUE | 0 | req->qp_ctx->qp->backlog.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | req->sec_sqe.ai_apd_cs | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.huk_key_ci | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.iv_tls_ld | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.rca_key_frm | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.rsvd0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.sdm_addr_type | 0,4 |
| PARAM_VALUE | 0 | req->sec_sqe.sds_sa_type | 0,2,128,130 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.a_ivin_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.a_key_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.alen_ivllen | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.auth_src_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.c_alg | 1-3 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.c_pad_len_field | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.check_sum_i | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.cipher_src_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.counter | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.cph_pad | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.cs_ip_header_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.cs_udp_header_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.dk_len | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.done_flag | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.error_type | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.long_a_data_len | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_i0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_i1 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_i2 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_i3 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.mac_key_alg | 0-1073741823 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.pass_word_len | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.rsvd12 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.rsvd4 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.rsvd5 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.salt0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.salt1 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.salt2 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.salt3 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.tls_pad_len_i | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type2.warning_type | 0 |
| PARAM_VALUE | 0 | req->sec_sqe.type_cipher_auth | 18,34 |
| PARAM_VALUE | 0 | req->sec_sqe3.a_key_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.a_len_key | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.auth_ivin.a_ivin_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.auth_ivin.rsvd0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.auth_ivin.rsvd1 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.auth_mac_key | 67108864 |
| PARAM_VALUE | 0 | req->sec_sqe3.auth_src_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.bd_param | 3,515,18435,18947 |
| PARAM_VALUE | 0 | req->sec_sqe3.check_sum.check_sum_i | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.check_sum.hac_sva_status | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.check_sum.rsvd0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.cipher_src_offset | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.counter | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.done_flag | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.error_type | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.huk_iv_seq | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.kek_key_addr_h | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.kek_key_addr_l | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.mac_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.mac_i | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.no_scene.rsvd0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.no_scene.rsvd1 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.no_scene.rsvd2 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.salt | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.skip_data.gran_num | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.skip_data.rsvd0 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.stream_scene.c_ivin_addr | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.stream_scene.pad_len_1p3 | 0 |
| PARAM_VALUE | 0 | req->sec_sqe3.tag | 4096-18446744073709547520 |
| PARAM_VALUE | 0 | req->sec_sqe3.warning_type | 0 |
| PARAM_VALUE | 0 | *req->buf.data_buf.in->sge_entries->page_ctrl | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | *req->buf.data_buf.out->sge_entries->page_ctrl | (-4611686018427387904)-4611686018427387903 |
| BUF_SIZE | 0 | req->aead_req.aead_req | (-1)-s32max |
| BUF_SIZE | 0 | req->base | 48 |
| BUF_SIZE | 0 | req->c_req.sk_req | (-1)-s32max |
| DATA_SOURCE | 0 | req | $0 |
| BIT_INFO | 0 | req->flag | 0x400,0xffffffffffffffff |
| NOSPEC | 0 | req->aead_req.aead_req->cryptlen | |
| NOSPEC | 0 | req->c_req.c_len | |
| NOSPEC | 0 | req->c_req.sk_req->cryptlen | |
| PREEMPT_ADD | <- disables preempt | ||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | req->aead_req.aead_req->cryptlen | 0-u32max |
| USER_DATA | 0 | req->c_req.c_len | 0-u32max |
| USER_DATA | 0 | req->c_req.sk_req->cryptlen | 1-u32max |
| USER_DATA | 0 | req->sec_sqe.type2.alen_ivllen | 0[u] |
| USER_DATA | 0 | req->sec_sqe.type2.clen_ivhlen | 0-u32max[u] |
| USER_DATA | 0 | req->sec_sqe3.a_len_key | 0[u] |
| USER_DATA | 0 | req->sec_sqe3.c_len_ivin | 0-u32max[u] |
| USER_DATA | 0 | *req->aead_req->a_ivin | 0-255 |
| USER_DATA | 0 | *req->c_req->c_ivin | 0-255 |
| USER_PTR | 0 | req->aead_req.aead_req->iv | |
| USER_PTR | 0 | req->c_req.sk_req->iv | |
| LOCK2 | &qp->backlog.lock | ||
| LOCK2 | bh | ||
| TYPE_LOCK | (struct instance_backlog)->lock |