Lines Matching refs:sec_sqe

177 	struct sec_sqe *bd = resp;  in pre_parse_finished_bd()
288 ret = hisi_qp_send(qp_ctx->qp, &req->sec_sqe); in sec_bd_send()
1279 struct sec_sqe *sec_sqe = &req->sec_sqe; in sec_skcipher_bd_fill() local
1284 memset(sec_sqe, 0, sizeof(struct sec_sqe)); in sec_skcipher_bd_fill()
1286 sec_sqe->type2.c_key_addr = cpu_to_le64(c_ctx->c_key_dma); in sec_skcipher_bd_fill()
1287 sec_sqe->type2.c_ivin_addr = cpu_to_le64(c_req->c_ivin_dma); in sec_skcipher_bd_fill()
1288 sec_sqe->type2.data_src_addr = cpu_to_le64(req->in_dma); in sec_skcipher_bd_fill()
1289 sec_sqe->type2.data_dst_addr = cpu_to_le64(c_req->c_out_dma); in sec_skcipher_bd_fill()
1291 sec_sqe->type2.icvw_kmode |= cpu_to_le16(((u16)c_ctx->c_mode) << in sec_skcipher_bd_fill()
1293 sec_sqe->type2.c_alg = c_ctx->c_alg; in sec_skcipher_bd_fill()
1294 sec_sqe->type2.icvw_kmode |= cpu_to_le16(((u16)c_ctx->c_key_len) << in sec_skcipher_bd_fill()
1302 sec_sqe->type_cipher_auth = bd_type | cipher; in sec_skcipher_bd_fill()
1313 sec_sqe->sdm_addr_type |= da_type; in sec_skcipher_bd_fill()
1318 sec_sqe->sds_sa_type = (de | scene | sa_type); in sec_skcipher_bd_fill()
1320 sec_sqe->type2.clen_ivhlen |= cpu_to_le32(c_req->c_len); in sec_skcipher_bd_fill()
1321 sec_sqe->type2.tag = cpu_to_le16((u16)req->req_id); in sec_skcipher_bd_fill()
1541 struct sec_req *req, struct sec_sqe *sec_sqe) in sec_auth_bd_fill_xcm() argument
1547 sec_sqe->type2.icvw_kmode |= cpu_to_le16((u16)ctx->mac_len); in sec_auth_bd_fill_xcm()
1550 sec_sqe->type2.a_key_addr = sec_sqe->type2.c_key_addr; in sec_auth_bd_fill_xcm()
1551 sec_sqe->type2.a_ivin_addr = cpu_to_le64(a_req->a_ivin_dma); in sec_auth_bd_fill_xcm()
1552 sec_sqe->type_cipher_auth |= SEC_NO_AUTH << SEC_AUTH_OFFSET; in sec_auth_bd_fill_xcm()
1555 sec_sqe->sds_sa_type &= SEC_CIPHER_AUTH; in sec_auth_bd_fill_xcm()
1557 sec_sqe->sds_sa_type |= SEC_AUTH_CIPHER; in sec_auth_bd_fill_xcm()
1559 sec_sqe->type2.alen_ivllen = cpu_to_le32(aq->assoclen); in sec_auth_bd_fill_xcm()
1560 sec_sqe->type2.auth_src_offset = cpu_to_le16(0x0); in sec_auth_bd_fill_xcm()
1561 sec_sqe->type2.cipher_src_offset = cpu_to_le16((u16)aq->assoclen); in sec_auth_bd_fill_xcm()
1563 sec_sqe->type2.mac_addr = cpu_to_le64(a_req->out_mac_dma); in sec_auth_bd_fill_xcm()
1592 struct sec_req *req, struct sec_sqe *sec_sqe) in sec_auth_bd_fill_ex() argument
1598 sec_sqe->type2.a_key_addr = cpu_to_le64(ctx->a_key_dma); in sec_auth_bd_fill_ex()
1600 sec_sqe->type2.mac_key_alg = in sec_auth_bd_fill_ex()
1603 sec_sqe->type2.mac_key_alg |= in sec_auth_bd_fill_ex()
1607 sec_sqe->type2.mac_key_alg |= in sec_auth_bd_fill_ex()
1611 sec_sqe->type_cipher_auth |= SEC_AUTH_TYPE1 << SEC_AUTH_OFFSET; in sec_auth_bd_fill_ex()
1612 sec_sqe->sds_sa_type &= SEC_CIPHER_AUTH; in sec_auth_bd_fill_ex()
1614 sec_sqe->type_cipher_auth |= SEC_AUTH_TYPE2 << SEC_AUTH_OFFSET; in sec_auth_bd_fill_ex()
1615 sec_sqe->sds_sa_type |= SEC_AUTH_CIPHER; in sec_auth_bd_fill_ex()
1617 sec_sqe->type2.alen_ivllen = cpu_to_le32(c_req->c_len + aq->assoclen); in sec_auth_bd_fill_ex()
1619 sec_sqe->type2.cipher_src_offset = cpu_to_le16((u16)aq->assoclen); in sec_auth_bd_fill_ex()
1621 sec_sqe->type2.mac_addr = cpu_to_le64(a_req->out_mac_dma); in sec_auth_bd_fill_ex()
1627 struct sec_sqe *sec_sqe = &req->sec_sqe; in sec_aead_bd_fill() local
1638 sec_auth_bd_fill_xcm(auth_ctx, req->c_req.encrypt, req, sec_sqe); in sec_aead_bd_fill()
1640 sec_auth_bd_fill_ex(auth_ctx, req->c_req.encrypt, req, sec_sqe); in sec_aead_bd_fill()