Lines Matching refs:sec_sqe

163 	struct sec_sqe *bd = resp;  in pre_parse_finished_bd()
274 ret = hisi_qp_send(qp_ctx->qp, &req->sec_sqe); in sec_bd_send()
1230 struct sec_sqe *sec_sqe = &req->sec_sqe; in sec_skcipher_bd_fill() local
1235 memset(sec_sqe, 0, sizeof(struct sec_sqe)); in sec_skcipher_bd_fill()
1237 sec_sqe->type2.c_key_addr = cpu_to_le64(c_ctx->c_key_dma); in sec_skcipher_bd_fill()
1238 sec_sqe->type2.c_ivin_addr = cpu_to_le64(c_req->c_ivin_dma); in sec_skcipher_bd_fill()
1239 sec_sqe->type2.data_src_addr = cpu_to_le64(req->in_dma); in sec_skcipher_bd_fill()
1240 sec_sqe->type2.data_dst_addr = cpu_to_le64(c_req->c_out_dma); in sec_skcipher_bd_fill()
1242 sec_sqe->type2.icvw_kmode |= cpu_to_le16(((u16)c_ctx->c_mode) << in sec_skcipher_bd_fill()
1244 sec_sqe->type2.c_alg = c_ctx->c_alg; in sec_skcipher_bd_fill()
1245 sec_sqe->type2.icvw_kmode |= cpu_to_le16(((u16)c_ctx->c_key_len) << in sec_skcipher_bd_fill()
1253 sec_sqe->type_cipher_auth = bd_type | cipher; in sec_skcipher_bd_fill()
1264 sec_sqe->sdm_addr_type |= da_type; in sec_skcipher_bd_fill()
1269 sec_sqe->sds_sa_type = (de | scene | sa_type); in sec_skcipher_bd_fill()
1271 sec_sqe->type2.clen_ivhlen |= cpu_to_le32(c_req->c_len); in sec_skcipher_bd_fill()
1272 sec_sqe->type2.tag = cpu_to_le16((u16)req->req_id); in sec_skcipher_bd_fill()
1489 struct sec_req *req, struct sec_sqe *sec_sqe) in sec_auth_bd_fill_xcm() argument
1495 sec_sqe->type2.icvw_kmode |= cpu_to_le16((u16)ctx->mac_len); in sec_auth_bd_fill_xcm()
1498 sec_sqe->type2.a_key_addr = sec_sqe->type2.c_key_addr; in sec_auth_bd_fill_xcm()
1499 sec_sqe->type2.a_ivin_addr = cpu_to_le64(a_req->a_ivin_dma); in sec_auth_bd_fill_xcm()
1500 sec_sqe->type_cipher_auth |= SEC_NO_AUTH << SEC_AUTH_OFFSET; in sec_auth_bd_fill_xcm()
1503 sec_sqe->sds_sa_type &= SEC_CIPHER_AUTH; in sec_auth_bd_fill_xcm()
1505 sec_sqe->sds_sa_type |= SEC_AUTH_CIPHER; in sec_auth_bd_fill_xcm()
1507 sec_sqe->type2.alen_ivllen = cpu_to_le32(aq->assoclen); in sec_auth_bd_fill_xcm()
1508 sec_sqe->type2.auth_src_offset = cpu_to_le16(0x0); in sec_auth_bd_fill_xcm()
1509 sec_sqe->type2.cipher_src_offset = cpu_to_le16((u16)aq->assoclen); in sec_auth_bd_fill_xcm()
1511 sec_sqe->type2.mac_addr = cpu_to_le64(a_req->out_mac_dma); in sec_auth_bd_fill_xcm()
1540 struct sec_req *req, struct sec_sqe *sec_sqe) in sec_auth_bd_fill_ex() argument
1546 sec_sqe->type2.a_key_addr = cpu_to_le64(ctx->a_key_dma); in sec_auth_bd_fill_ex()
1548 sec_sqe->type2.mac_key_alg = in sec_auth_bd_fill_ex()
1551 sec_sqe->type2.mac_key_alg |= in sec_auth_bd_fill_ex()
1555 sec_sqe->type2.mac_key_alg |= in sec_auth_bd_fill_ex()
1559 sec_sqe->type_cipher_auth |= SEC_AUTH_TYPE1 << SEC_AUTH_OFFSET; in sec_auth_bd_fill_ex()
1560 sec_sqe->sds_sa_type &= SEC_CIPHER_AUTH; in sec_auth_bd_fill_ex()
1562 sec_sqe->type_cipher_auth |= SEC_AUTH_TYPE2 << SEC_AUTH_OFFSET; in sec_auth_bd_fill_ex()
1563 sec_sqe->sds_sa_type |= SEC_AUTH_CIPHER; in sec_auth_bd_fill_ex()
1565 sec_sqe->type2.alen_ivllen = cpu_to_le32(c_req->c_len + aq->assoclen); in sec_auth_bd_fill_ex()
1567 sec_sqe->type2.cipher_src_offset = cpu_to_le16((u16)aq->assoclen); in sec_auth_bd_fill_ex()
1569 sec_sqe->type2.mac_addr = cpu_to_le64(a_req->out_mac_dma); in sec_auth_bd_fill_ex()
1575 struct sec_sqe *sec_sqe = &req->sec_sqe; in sec_aead_bd_fill() local
1586 sec_auth_bd_fill_xcm(auth_ctx, req->c_req.encrypt, req, sec_sqe); in sec_aead_bd_fill()
1588 sec_auth_bd_fill_ex(auth_ctx, req->c_req.encrypt, req, sec_sqe); in sec_aead_bd_fill()