Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318362
b: refs/heads/master
c: 991c569
h: refs/heads/master
v: v3
  • Loading branch information
Kim Phillips authored and Herbert Xu committed Jun 27, 2012
1 parent 55ffbf0 commit 6a09a20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: c4b664063ea5c007f05d2d23aa6edc9cfd385aa3
refs/heads/master: 991c569c5df68609b24a0aba5e5fd4879225c4cf
4 changes: 2 additions & 2 deletions trunk/drivers/crypto/caam/desc_constr.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static inline void *sh_desc_pdb(u32 *desc)

static inline void init_desc(u32 *desc, u32 options)
{
*desc = options | HDR_ONE | 1;
*desc = (options | HDR_ONE) + 1;
}

static inline void init_sh_desc(u32 *desc, u32 options)
Expand All @@ -62,7 +62,7 @@ static inline void init_sh_desc(u32 *desc, u32 options)

static inline void init_sh_desc_pdb(u32 *desc, u32 options, size_t pdb_bytes)
{
u32 pdb_len = pdb_bytes / CAAM_CMD_SZ + 1;
u32 pdb_len = (pdb_bytes + CAAM_CMD_SZ - 1) / CAAM_CMD_SZ;

init_sh_desc(desc, (((pdb_len + 1) << HDR_START_IDX_SHIFT) + pdb_len) |
options);
Expand Down

0 comments on commit 6a09a20

Please sign in to comment.