Lines Matching refs:sec_sqe
150 struct sec_sqe *bd = resp; in sec_req_cb()
206 ret = hisi_qp_send(qp_ctx->qp, &req->sec_sqe); in sec_bd_send()
990 struct sec_sqe *sec_sqe = &req->sec_sqe; in sec_skcipher_bd_fill() local
995 memset(sec_sqe, 0, sizeof(struct sec_sqe)); in sec_skcipher_bd_fill()
997 sec_sqe->type2.c_key_addr = cpu_to_le64(c_ctx->c_key_dma); in sec_skcipher_bd_fill()
998 sec_sqe->type2.c_ivin_addr = cpu_to_le64(c_req->c_ivin_dma); in sec_skcipher_bd_fill()
999 sec_sqe->type2.data_src_addr = cpu_to_le64(c_req->c_in_dma); in sec_skcipher_bd_fill()
1000 sec_sqe->type2.data_dst_addr = cpu_to_le64(c_req->c_out_dma); in sec_skcipher_bd_fill()
1002 sec_sqe->type2.icvw_kmode |= cpu_to_le16(((u16)c_ctx->c_mode) << in sec_skcipher_bd_fill()
1004 sec_sqe->type2.c_alg = c_ctx->c_alg; in sec_skcipher_bd_fill()
1005 sec_sqe->type2.icvw_kmode |= cpu_to_le16(((u16)c_ctx->c_key_len) << in sec_skcipher_bd_fill()
1013 sec_sqe->type_cipher_auth = bd_type | cipher; in sec_skcipher_bd_fill()
1023 sec_sqe->sds_sa_type = (de | scene | sa_type); in sec_skcipher_bd_fill()
1030 sec_sqe->sdm_addr_type |= da_type; in sec_skcipher_bd_fill()
1032 sec_sqe->type2.clen_ivhlen |= cpu_to_le32(c_req->c_len); in sec_skcipher_bd_fill()
1033 sec_sqe->type2.tag = cpu_to_le16((u16)req->req_id); in sec_skcipher_bd_fill()
1123 struct sec_req *req, struct sec_sqe *sec_sqe) in sec_auth_bd_fill_ex() argument
1129 sec_sqe->type2.a_key_addr = cpu_to_le64(ctx->a_key_dma); in sec_auth_bd_fill_ex()
1131 sec_sqe->type2.mac_key_alg = in sec_auth_bd_fill_ex()
1134 sec_sqe->type2.mac_key_alg |= in sec_auth_bd_fill_ex()
1138 sec_sqe->type2.mac_key_alg |= in sec_auth_bd_fill_ex()
1141 sec_sqe->type_cipher_auth |= SEC_AUTH_TYPE1 << SEC_AUTH_OFFSET; in sec_auth_bd_fill_ex()
1144 sec_sqe->sds_sa_type &= SEC_CIPHER_AUTH; in sec_auth_bd_fill_ex()
1146 sec_sqe->sds_sa_type |= SEC_AUTH_CIPHER; in sec_auth_bd_fill_ex()
1148 sec_sqe->type2.alen_ivllen = cpu_to_le32(c_req->c_len + aq->assoclen); in sec_auth_bd_fill_ex()
1150 sec_sqe->type2.cipher_src_offset = cpu_to_le16((u16)aq->assoclen); in sec_auth_bd_fill_ex()
1152 sec_sqe->type2.mac_addr = cpu_to_le64(a_req->out_mac_dma); in sec_auth_bd_fill_ex()
1158 struct sec_sqe *sec_sqe = &req->sec_sqe; in sec_aead_bd_fill() local
1167 sec_auth_bd_fill_ex(auth_ctx, req->c_req.encrypt, req, sec_sqe); in sec_aead_bd_fill()