Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148798
b: refs/heads/master
c: 19bbbc6
h: refs/heads/master
v: v3
  • Loading branch information
Kim Phillips authored and Herbert Xu committed Jun 2, 2009
1 parent adfe612 commit 3dc4686
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 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: e938e4656b3ee32e046ee8293411a07be9d72eb8
refs/heads/master: 19bbbc635523703ece28409e59694d5b512b819e
26 changes: 16 additions & 10 deletions trunk/drivers/crypto/talitos.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,13 +841,14 @@ static void ipsec_esp_encrypt_done(struct device *dev,
int err)
{
struct aead_request *areq = context;
struct talitos_edesc *edesc =
container_of(desc, struct talitos_edesc, desc);
struct crypto_aead *authenc = crypto_aead_reqtfm(areq);
struct talitos_ctx *ctx = crypto_aead_ctx(authenc);
struct talitos_edesc *edesc;
struct scatterlist *sg;
void *icvdata;

edesc = container_of(desc, struct talitos_edesc, desc);

ipsec_esp_unmap(dev, edesc, areq);

/* copy the generated ICV to dst */
Expand All @@ -869,13 +870,14 @@ static void ipsec_esp_decrypt_swauth_done(struct device *dev,
void *context, int err)
{
struct aead_request *req = context;
struct talitos_edesc *edesc =
container_of(desc, struct talitos_edesc, desc);
struct crypto_aead *authenc = crypto_aead_reqtfm(req);
struct talitos_ctx *ctx = crypto_aead_ctx(authenc);
struct talitos_edesc *edesc;
struct scatterlist *sg;
void *icvdata;

edesc = container_of(desc, struct talitos_edesc, desc);

ipsec_esp_unmap(dev, edesc, req);

if (!err) {
Expand All @@ -901,8 +903,9 @@ static void ipsec_esp_decrypt_hwauth_done(struct device *dev,
void *context, int err)
{
struct aead_request *req = context;
struct talitos_edesc *edesc =
container_of(desc, struct talitos_edesc, desc);
struct talitos_edesc *edesc;

edesc = container_of(desc, struct talitos_edesc, desc);

ipsec_esp_unmap(dev, edesc, req);

Expand Down Expand Up @@ -1308,8 +1311,9 @@ static void ablkcipher_done(struct device *dev,
int err)
{
struct ablkcipher_request *areq = context;
struct talitos_edesc *edesc =
container_of(desc, struct talitos_edesc, desc);
struct talitos_edesc *edesc;

edesc = container_of(desc, struct talitos_edesc, desc);

common_nonsnoop_unmap(dev, edesc, areq);

Expand Down Expand Up @@ -1686,12 +1690,14 @@ struct talitos_crypto_alg {
static int talitos_cra_init(struct crypto_tfm *tfm)
{
struct crypto_alg *alg = tfm->__crt_alg;
struct talitos_crypto_alg *talitos_alg =
container_of(alg, struct talitos_crypto_alg, crypto_alg);
struct talitos_crypto_alg *talitos_alg;
struct talitos_ctx *ctx = crypto_tfm_ctx(tfm);

talitos_alg = container_of(alg, struct talitos_crypto_alg, crypto_alg);

/* update context with ptr to dev */
ctx->dev = talitos_alg->dev;

/* copy descriptor header template value */
ctx->desc_hdr_template = talitos_alg->desc_hdr_template;

Expand Down

0 comments on commit 3dc4686

Please sign in to comment.