sec_sqe3
struct sec_sqe3 sec_sqe3;
struct sec_sqe3 *sec_sqe3 = &req->sec_sqe3;
memset(sec_sqe3, 0, sizeof(struct sec_sqe3));
sec_sqe3->c_key_addr = cpu_to_le64(c_ctx->c_key_dma);
sec_sqe3->no_scene.c_ivin_addr = cpu_to_le64(c_req->c_ivin_dma);
sec_sqe3->data_src_addr = cpu_to_le64(req->buf.in_dma);
sec_sqe3->data_dst_addr = cpu_to_le64(req->buf.out_dma);
sec_sqe3->data_src_addr = cpu_to_le64(req->in_dma);
sec_sqe3->data_dst_addr = cpu_to_le64(c_req->c_out_dma);
if (sec_sqe3->data_src_addr != sec_sqe3->data_dst_addr)
sec_sqe3->c_mode_alg = ((u8)c_ctx->c_alg << SEC_CALG_OFFSET_V3) |
sec_sqe3->c_icv_key |= cpu_to_le16(((u16)c_ctx->c_key_len) <<
sec_sqe3->c_icv_key |= cpu_to_le16(cipher);
sec_sqe3->auth_mac_key = cpu_to_le32((u32)SEC_CTR_CNT_ROLLOVER <<
sec_sqe3->bd_param = cpu_to_le32(bd_param);
sec_sqe3->c_len_ivin |= cpu_to_le32(c_req->c_len);
sec_sqe3->tag = cpu_to_le64((unsigned long)req);
struct sec_sqe3 *bd3 = resp;
struct sec_req *req, struct sec_sqe3 *sqe3)
struct sec_req *req, struct sec_sqe3 *sqe3)
struct sec_sqe3 *sec_sqe3 = &req->sec_sqe3;
req, sec_sqe3);
req, sec_sqe3);