Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196715
b: refs/heads/master
c: 0c5c6c4
h: refs/heads/master
i:
  196713: 14425e9
  196711: 5921782
v: v3
  • Loading branch information
Uri Simchoni authored and Herbert Xu committed Apr 13, 2010
1 parent efeeef2 commit aff29da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f0d03deaad05d9cc99cd2ee0475c9ecd726c19ae
refs/heads/master: 0c5c6c4bae8fe9ae3d86b44c332eb1267df1ec99
8 changes: 5 additions & 3 deletions trunk/drivers/crypto/mv_cesa.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,11 @@ static void copy_src_to_buf(struct req_progress *p, char *dbuf, int len)
static void setup_data_in(void)
{
struct req_progress *p = &cpg->p;
p->crypt_len =
int data_in_sram =
min(p->hw_nbytes - p->hw_processed_bytes, cpg->max_req_size);
copy_src_to_buf(p, cpg->sram + SRAM_DATA_IN_START,
p->crypt_len);
copy_src_to_buf(p, cpg->sram + SRAM_DATA_IN_START + p->crypt_len,
data_in_sram - p->crypt_len);
p->crypt_len = data_in_sram;
}

static void mv_process_current_q(int first_block)
Expand Down Expand Up @@ -298,6 +299,7 @@ static void dequeue_complete_req(void)
} while (need_copy_len > 0);
}

cpg->p.crypt_len = 0;

BUG_ON(cpg->eng_st != ENGINE_W_DEQUEUE);
if (cpg->p.hw_processed_bytes < cpg->p.hw_nbytes) {
Expand Down

0 comments on commit aff29da

Please sign in to comment.