qce_write
qce_write(qce, REG_AUTH_SEG_CFG, 0);
qce_write(qce, REG_ENCR_SEG_CFG, 0);
qce_write(qce, REG_ENCR_SEG_SIZE, 0);
qce_write(qce, REG_AUTH_SEG_CFG, auth_cfg);
qce_write(qce, REG_AUTH_SEG_SIZE, req->nbytes);
qce_write(qce, REG_AUTH_SEG_START, 0);
qce_write(qce, REG_ENCR_SEG_CFG, 0);
qce_write(qce, REG_SEG_SIZE, req->nbytes);
qce_write(qce, REG_CONFIG, config);
qce_write(qce, REG_ENCR_XTS_DU_SIZE, cryptlen);
qce_write(qce, REG_AUTH_SEG_CFG, auth_cfg);
qce_write(qce, offset + i * sizeof(u32), val[i]);
qce_write(qce, REG_ENCR_SEG_CFG, encr_cfg);
qce_write(qce, REG_ENCR_SEG_SIZE, rctx->cryptlen);
qce_write(qce, REG_ENCR_SEG_START, 0);
qce_write(qce, REG_CNTR_MASK, ~0);
qce_write(qce, REG_CNTR_MASK0, ~0);
qce_write(qce, REG_CNTR_MASK1, ~0);
qce_write(qce, REG_CNTR_MASK2, ~0);
qce_write(qce, REG_SEG_SIZE, rctx->cryptlen);
qce_write(qce, REG_CONFIG, config);
qce_write(qce, REG_CNTR3_IV3, iv_last_word + 1);
qce_write(qce, REG_CNTR_MASK, ~0);
qce_write(qce, REG_CNTR_MASK0, ~0);
qce_write(qce, REG_CNTR_MASK1, ~0);
qce_write(qce, REG_CNTR_MASK2, ~0);
qce_write(qce, offset + i * sizeof(u32), 0);
qce_write(qce, REG_ENCR_SEG_CFG, encr_cfg);
qce_write(qce, REG_AUTH_SEG_CFG, auth_cfg);
qce_write(qce, REG_ENCR_SEG_SIZE, rctx->cryptlen + ctx->authsize);
qce_write(qce, REG_ENCR_SEG_SIZE, rctx->cryptlen);
qce_write(qce, REG_ENCR_SEG_START, rctx->assoclen & 0xffff);
qce_write(qce, REG_AUTH_SEG_SIZE, totallen);
qce_write(qce, REG_AUTH_SEG_START, 0);
qce_write(qce, REG_SEG_SIZE, totallen + ctx->authsize);
qce_write(qce, REG_SEG_SIZE, totallen);
qce_write(qce, REG_CONFIG, config);
qce_write(qce, REG_STATUS, 0);
qce_write(qce, REG_CONFIG, config);
qce_write(qce, REG_GOPROC, BIT(GO_SHIFT) | BIT(RESULTS_DUMP_SHIFT));
qce_write(qce, REG_GOPROC, BIT(GO_SHIFT));