Lines Matching refs:jrdev
50 struct device *jrdev; member
78 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctx->jrdev->parent); in aead_set_sh_desc()
202 struct device *jrdev = ctx->jrdev; in aead_setkey() local
203 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_setkey()
211 dev_err(jrdev, "keylen %d enckeylen %d authkeylen %d\n", in aead_setkey()
233 dma_sync_single_for_device(jrdev, ctx->key_dma, in aead_setkey()
239 ret = gen_split_key(jrdev, ctx->key, &ctx->adata, keys.authkey, in aead_setkey()
247 dma_sync_single_for_device(jrdev, ctx->key_dma, ctx->adata.keylen_pad + in aead_setkey()
267 dev_err(jrdev, "driver enc context update failed\n"); in aead_setkey()
276 dev_err(jrdev, "driver dec context update failed\n"); in aead_setkey()
346 struct device *jrdev = ctx->jrdev; in gcm_setkey() local
355 dma_sync_single_for_device(jrdev, ctx->key_dma, keylen, ctx->dir); in gcm_setkey()
367 dev_err(jrdev, "driver enc context update failed\n"); in gcm_setkey()
376 dev_err(jrdev, "driver dec context update failed\n"); in gcm_setkey()
442 struct device *jrdev = ctx->jrdev; in rfc4106_setkey() local
459 dma_sync_single_for_device(jrdev, ctx->key_dma, ctx->cdata.keylen, in rfc4106_setkey()
471 dev_err(jrdev, "driver enc context update failed\n"); in rfc4106_setkey()
480 dev_err(jrdev, "driver dec context update failed\n"); in rfc4106_setkey()
546 struct device *jrdev = ctx->jrdev; in rfc4543_setkey() local
563 dma_sync_single_for_device(jrdev, ctx->key_dma, ctx->cdata.keylen, in rfc4543_setkey()
575 dev_err(jrdev, "driver enc context update failed\n"); in rfc4543_setkey()
584 dev_err(jrdev, "driver dec context update failed\n"); in rfc4543_setkey()
598 struct device *jrdev = ctx->jrdev; in ablkcipher_setkey() local
645 dev_err(jrdev, "driver enc context update failed\n"); in ablkcipher_setkey()
654 dev_err(jrdev, "driver dec context update failed\n"); in ablkcipher_setkey()
663 dev_err(jrdev, "driver givenc context update failed\n"); in ablkcipher_setkey()
678 struct device *jrdev = ctx->jrdev; in xts_ablkcipher_setkey() local
682 dev_err(jrdev, "key size mismatch\n"); in xts_ablkcipher_setkey()
699 dev_err(jrdev, "driver enc context update failed\n"); in xts_ablkcipher_setkey()
708 dev_err(jrdev, "driver dec context update failed\n"); in xts_ablkcipher_setkey()
2546 ctx->jrdev = caam_jr_alloc(); in caam_init_common()
2547 if (IS_ERR(ctx->jrdev)) { in caam_init_common()
2549 return PTR_ERR(ctx->jrdev); in caam_init_common()
2552 priv = dev_get_drvdata(ctx->jrdev->parent); in caam_init_common()
2558 ctx->key_dma = dma_map_single(ctx->jrdev, ctx->key, sizeof(ctx->key), in caam_init_common()
2560 if (dma_mapping_error(ctx->jrdev, ctx->key_dma)) { in caam_init_common()
2561 dev_err(ctx->jrdev, "unable to map key\n"); in caam_init_common()
2562 caam_jr_free(ctx->jrdev); in caam_init_common()
2607 dma_unmap_single(ctx->jrdev, ctx->key_dma, sizeof(ctx->key), ctx->dir); in caam_exit_common()
2609 caam_jr_free(ctx->jrdev); in caam_exit_common()