/kernel/linux/linux-6.6/drivers/gpu/drm/msm/ |
H A D | msm_fence.c | 13 static struct msm_gpu *fctx2gpu(struct msm_fence_context *fctx) in fctx2gpu() argument 15 struct msm_drm_private *priv = fctx->dev->dev_private; in fctx2gpu() 21 struct msm_fence_context *fctx = container_of(t, in deadline_timer() local 24 kthread_queue_work(fctx2gpu(fctx)->worker, &fctx->deadline_work); in deadline_timer() 31 struct msm_fence_context *fctx = container_of(work, in deadline_work() local 35 if (msm_fence_completed(fctx, fctx->next_deadline_fence)) in deadline_work() 38 msm_devfreq_boost(fctx2gpu(fctx), 2); in deadline_work() 46 struct msm_fence_context *fctx; in msm_fence_context_alloc() local 78 msm_fence_context_free(struct msm_fence_context *fctx) msm_fence_context_free() argument 83 msm_fence_completed(struct msm_fence_context *fctx, uint32_t fence) msm_fence_completed() argument 94 msm_update_fence(struct msm_fence_context *fctx, uint32_t fence) msm_update_fence() argument 108 struct msm_fence_context *fctx; global() member 136 struct msm_fence_context *fctx = f->fctx; msm_fence_set_deadline() local 188 msm_fence_init(struct dma_fence *fence, struct msm_fence_context *fctx) msm_fence_init() argument [all...] |
H A D | msm_fence.h | 79 void msm_fence_context_free(struct msm_fence_context *fctx); 81 bool msm_fence_completed(struct msm_fence_context *fctx, uint32_t fence); 82 void msm_update_fence(struct msm_fence_context *fctx, uint32_t fence); 85 void msm_fence_init(struct dma_fence *fence, struct msm_fence_context *fctx);
|
H A D | msm_ringbuffer.c | 17 struct msm_fence_context *fctx = submit->ring->fctx; in msm_job_run() local 22 msm_fence_init(submit->hw_fence, fctx); in msm_job_run() 113 ring->fctx = msm_fence_context_alloc(gpu->dev, &ring->memptrs->fence, name); in msm_ringbuffer_new() 129 msm_fence_context_free(ring->fctx); in msm_ringbuffer_destroy()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/ |
H A D | msm_fence.c | 16 struct msm_fence_context *fctx; in msm_fence_context_alloc() local 18 fctx = kzalloc(sizeof(*fctx), GFP_KERNEL); in msm_fence_context_alloc() 19 if (!fctx) in msm_fence_context_alloc() 22 fctx->dev = dev; in msm_fence_context_alloc() 23 strscpy(fctx->name, name, sizeof(fctx->name)); in msm_fence_context_alloc() 24 fctx->context = dma_fence_context_alloc(1); in msm_fence_context_alloc() 25 init_waitqueue_head(&fctx->event); in msm_fence_context_alloc() 26 spin_lock_init(&fctx in msm_fence_context_alloc() 31 msm_fence_context_free(struct msm_fence_context *fctx) msm_fence_context_free() argument 36 fence_completed(struct msm_fence_context *fctx, uint32_t fence) fence_completed() argument 42 msm_wait_fence(struct msm_fence_context *fctx, uint32_t fence, ktime_t *timeout, bool interruptible) msm_wait_fence() argument 81 msm_update_fence(struct msm_fence_context *fctx, uint32_t fence) msm_update_fence() argument 92 struct msm_fence_context *fctx; global() member 124 msm_fence_alloc(struct msm_fence_context *fctx) msm_fence_alloc() argument [all...] |
H A D | msm_fence.h | 25 void msm_fence_context_free(struct msm_fence_context *fctx); 27 int msm_wait_fence(struct msm_fence_context *fctx, uint32_t fence, 29 void msm_update_fence(struct msm_fence_context *fctx, uint32_t fence); 31 struct dma_fence * msm_fence_alloc(struct msm_fence_context *fctx);
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/ |
H A D | nouveau_fence.c | 63 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); in nouveau_fence_signal() local 65 if (!--fctx->notify_ref) in nouveau_fence_signal() 84 nouveau_fence_context_kill(struct nouveau_fence_chan *fctx, int error) in nouveau_fence_context_kill() argument 89 spin_lock_irqsave(&fctx->lock, flags); in nouveau_fence_context_kill() 90 while (!list_empty(&fctx->pending)) { in nouveau_fence_context_kill() 91 fence = list_entry(fctx->pending.next, typeof(*fence), head); in nouveau_fence_context_kill() 97 nvif_event_block(&fctx->event); in nouveau_fence_context_kill() 99 fctx->killed = 1; in nouveau_fence_context_kill() 100 spin_unlock_irqrestore(&fctx->lock, flags); in nouveau_fence_context_kill() 104 nouveau_fence_context_del(struct nouveau_fence_chan *fctx) in nouveau_fence_context_del() argument 125 nouveau_fence_context_free(struct nouveau_fence_chan *fctx) nouveau_fence_context_free() argument 131 nouveau_fence_update(struct nouveau_channel *chan, struct nouveau_fence_chan *fctx) nouveau_fence_update() argument 152 struct nouveau_fence_chan *fctx = container_of(work, struct nouveau_fence_chan, nouveau_fence_uevent_work() local 176 struct nouveau_fence_chan *fctx = container_of(event, typeof(*fctx), event); nouveau_fence_wait_uevent_handler() local 182 nouveau_fence_context_new(struct nouveau_channel *chan, struct nouveau_fence_chan *fctx) nouveau_fence_context_new() argument 223 struct nouveau_fence_chan *fctx = chan->fence; nouveau_fence_emit() local 263 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); nouveau_fence_done() local 360 struct nouveau_fence_chan *fctx = chan->fence; nouveau_fence_sync() local 461 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); nouveau_fence_get_timeline_name() local 475 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); nouveau_fence_is_signaled() local 516 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); nouveau_fence_release() local 534 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); nouveau_fence_enable_signaling() local [all...] |
H A D | nv84_fence.c | 89 struct nv84_fence_chan *fctx = chan->fence; in nv84_fence_emit() local 90 u64 addr = fctx->vma->addr + nv84_fence_chid(chan) * 16; in nv84_fence_emit() 92 return fctx->base.emit32(chan, addr, fence->base.seqno); in nv84_fence_emit() 99 struct nv84_fence_chan *fctx = chan->fence; in nv84_fence_sync() local 100 u64 addr = fctx->vma->addr + nv84_fence_chid(prev) * 16; in nv84_fence_sync() 102 return fctx->base.sync32(chan, addr, fence->base.seqno); in nv84_fence_sync() 116 struct nv84_fence_chan *fctx = chan->fence; in nv84_fence_context_del() local 118 nouveau_bo_wr32(priv->bo, nv84_fence_chid(chan) * 16 / 4, fctx->base.sequence); in nv84_fence_context_del() 120 nouveau_vma_del(&fctx->vma); in nv84_fence_context_del() 122 nouveau_fence_context_del(&fctx in nv84_fence_context_del() 131 struct nv84_fence_chan *fctx; nv84_fence_context_new() local [all...] |
H A D | nv10_fence.c | 61 struct nv10_fence_chan *fctx = chan->fence; in nv10_fence_context_del() local 62 nouveau_fence_context_del(&fctx->base); in nv10_fence_context_del() 63 nvif_object_dtor(&fctx->sema); in nv10_fence_context_del() 65 nouveau_fence_context_free(&fctx->base); in nv10_fence_context_del() 71 struct nv10_fence_chan *fctx; in nv10_fence_context_new() local 73 fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv10_fence_context_new() 74 if (!fctx) in nv10_fence_context_new() 77 nouveau_fence_context_new(chan, &fctx->base); in nv10_fence_context_new() 78 fctx in nv10_fence_context_new() [all...] |
H A D | nv04_fence.c | 70 struct nv04_fence_chan *fctx = chan->fence; in nv04_fence_context_del() local 71 nouveau_fence_context_del(&fctx->base); in nv04_fence_context_del() 73 nouveau_fence_context_free(&fctx->base); in nv04_fence_context_del() 79 struct nv04_fence_chan *fctx = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv04_fence_context_new() local 80 if (fctx) { in nv04_fence_context_new() 81 nouveau_fence_context_new(chan, &fctx->base); in nv04_fence_context_new() 82 fctx->base.emit = nv04_fence_emit; in nv04_fence_context_new() 83 fctx->base.sync = nv04_fence_sync; in nv04_fence_context_new() 84 fctx in nv04_fence_context_new() [all...] |
H A D | nv50_fence.c | 39 struct nv10_fence_chan *fctx; in nv50_fence_context_new() local 45 fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv50_fence_context_new() 46 if (!fctx) in nv50_fence_context_new() 49 nouveau_fence_context_new(chan, &fctx->base); in nv50_fence_context_new() 50 fctx->base.emit = nv10_fence_emit; in nv50_fence_context_new() 51 fctx->base.read = nv10_fence_read; in nv50_fence_context_new() 52 fctx->base.sync = nv17_fence_sync; in nv50_fence_context_new() 62 &fctx->sema); in nv50_fence_context_new()
|
H A D | nv17_fence.c | 41 struct nv10_fence_chan *fctx = chan->fence; in nv17_fence_sync() local 57 PUSH_MTHD(ppush, NV176E, SET_CONTEXT_DMA_SEMAPHORE, fctx->sema.handle, in nv17_fence_sync() 65 PUSH_MTHD(npush, NV176E, SET_CONTEXT_DMA_SEMAPHORE, fctx->sema.handle, in nv17_fence_sync() 81 struct nv10_fence_chan *fctx; in nv17_fence_context_new() local 86 fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv17_fence_context_new() 87 if (!fctx) in nv17_fence_context_new() 90 nouveau_fence_context_new(chan, &fctx->base); in nv17_fence_context_new() 91 fctx->base.emit = nv10_fence_emit; in nv17_fence_context_new() 92 fctx in nv17_fence_context_new() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
H A D | nouveau_fence.c | 65 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); in nouveau_fence_signal() local 67 if (!--fctx->notify_ref) in nouveau_fence_signal() 90 nouveau_fence_context_kill(struct nouveau_fence_chan *fctx, int error) in nouveau_fence_context_kill() argument 94 spin_lock_irq(&fctx->lock); in nouveau_fence_context_kill() 95 while (!list_empty(&fctx->pending)) { in nouveau_fence_context_kill() 96 fence = list_entry(fctx->pending.next, typeof(*fence), head); in nouveau_fence_context_kill() 102 nvif_notify_put(&fctx->notify); in nouveau_fence_context_kill() 104 spin_unlock_irq(&fctx->lock); in nouveau_fence_context_kill() 108 nouveau_fence_context_del(struct nouveau_fence_chan *fctx) in nouveau_fence_context_del() argument 110 nouveau_fence_context_kill(fctx, in nouveau_fence_context_del() 128 nouveau_fence_context_free(struct nouveau_fence_chan *fctx) nouveau_fence_context_free() argument 134 nouveau_fence_update(struct nouveau_channel *chan, struct nouveau_fence_chan *fctx) nouveau_fence_update() argument 155 struct nouveau_fence_chan *fctx = nouveau_fence_wait_uevent_handler() local 176 nouveau_fence_context_new(struct nouveau_channel *chan, struct nouveau_fence_chan *fctx) nouveau_fence_context_new() argument 212 struct nouveau_fence_chan *fctx = chan->fence; nouveau_fence_emit() local 248 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); nouveau_fence_done() local 344 struct nouveau_fence_chan *fctx = chan->fence; nouveau_fence_sync() local 444 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); nouveau_fence_get_timeline_name() local 458 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); nouveau_fence_is_signaled() local 499 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); nouveau_fence_release() local 517 struct nouveau_fence_chan *fctx = nouveau_fctx(fence); nouveau_fence_enable_signaling() local [all...] |
H A D | nv84_fence.c | 83 struct nv84_fence_chan *fctx = chan->fence; in nv84_fence_emit() local 84 u64 addr = fctx->vma->addr + chan->chid * 16; in nv84_fence_emit() 86 return fctx->base.emit32(chan, addr, fence->base.seqno); in nv84_fence_emit() 93 struct nv84_fence_chan *fctx = chan->fence; in nv84_fence_sync() local 94 u64 addr = fctx->vma->addr + prev->chid * 16; in nv84_fence_sync() 96 return fctx->base.sync32(chan, addr, fence->base.seqno); in nv84_fence_sync() 110 struct nv84_fence_chan *fctx = chan->fence; in nv84_fence_context_del() local 112 nouveau_bo_wr32(priv->bo, chan->chid * 16 / 4, fctx->base.sequence); in nv84_fence_context_del() 114 nouveau_vma_del(&fctx->vma); in nv84_fence_context_del() 116 nouveau_fence_context_del(&fctx in nv84_fence_context_del() 125 struct nv84_fence_chan *fctx; nv84_fence_context_new() local [all...] |
H A D | nv10_fence.c | 61 struct nv10_fence_chan *fctx = chan->fence; in nv10_fence_context_del() local 62 nouveau_fence_context_del(&fctx->base); in nv10_fence_context_del() 63 nvif_object_dtor(&fctx->sema); in nv10_fence_context_del() 65 nouveau_fence_context_free(&fctx->base); in nv10_fence_context_del() 71 struct nv10_fence_chan *fctx; in nv10_fence_context_new() local 73 fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv10_fence_context_new() 74 if (!fctx) in nv10_fence_context_new() 77 nouveau_fence_context_new(chan, &fctx->base); in nv10_fence_context_new() 78 fctx in nv10_fence_context_new() [all...] |
H A D | nv04_fence.c | 70 struct nv04_fence_chan *fctx = chan->fence; in nv04_fence_context_del() local 71 nouveau_fence_context_del(&fctx->base); in nv04_fence_context_del() 73 nouveau_fence_context_free(&fctx->base); in nv04_fence_context_del() 79 struct nv04_fence_chan *fctx = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv04_fence_context_new() local 80 if (fctx) { in nv04_fence_context_new() 81 nouveau_fence_context_new(chan, &fctx->base); in nv04_fence_context_new() 82 fctx->base.emit = nv04_fence_emit; in nv04_fence_context_new() 83 fctx->base.sync = nv04_fence_sync; in nv04_fence_context_new() 84 fctx in nv04_fence_context_new() [all...] |
H A D | nv50_fence.c | 39 struct nv10_fence_chan *fctx; in nv50_fence_context_new() local 45 fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv50_fence_context_new() 46 if (!fctx) in nv50_fence_context_new() 49 nouveau_fence_context_new(chan, &fctx->base); in nv50_fence_context_new() 50 fctx->base.emit = nv10_fence_emit; in nv50_fence_context_new() 51 fctx->base.read = nv10_fence_read; in nv50_fence_context_new() 52 fctx->base.sync = nv17_fence_sync; in nv50_fence_context_new() 62 &fctx->sema); in nv50_fence_context_new()
|
H A D | nv17_fence.c | 41 struct nv10_fence_chan *fctx = chan->fence; in nv17_fence_sync() local 57 PUSH_MTHD(ppush, NV176E, SET_CONTEXT_DMA_SEMAPHORE, fctx->sema.handle, in nv17_fence_sync() 65 PUSH_MTHD(npush, NV176E, SET_CONTEXT_DMA_SEMAPHORE, fctx->sema.handle, in nv17_fence_sync() 80 struct nv10_fence_chan *fctx; in nv17_fence_context_new() local 86 fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv17_fence_context_new() 87 if (!fctx) in nv17_fence_context_new() 90 nouveau_fence_context_new(chan, &fctx->base); in nv17_fence_context_new() 91 fctx->base.emit = nv10_fence_emit; in nv17_fence_context_new() 92 fctx in nv17_fence_context_new() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_aead.c | 39 struct flexi_crypto_context *fctx; in nitrox_aes_gcm_setkey() local 47 fctx = nctx->u.fctx; in nitrox_aes_gcm_setkey() 48 flags.f = be64_to_cpu(fctx->flags.f); in nitrox_aes_gcm_setkey() 50 fctx->flags.f = cpu_to_be64(flags.f); in nitrox_aes_gcm_setkey() 53 memset(&fctx->crypto, 0, sizeof(fctx->crypto)); in nitrox_aes_gcm_setkey() 54 memcpy(fctx->crypto.u.key, key, keylen); in nitrox_aes_gcm_setkey() 63 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_setauthsize() local 220 struct flexi_crypto_context *fctx = nctx->u.fctx; nitrox_aes_gcm_enc() local 254 struct flexi_crypto_context *fctx = nctx->u.fctx; nitrox_aes_gcm_dec() local 348 struct flexi_crypto_context *fctx = nctx->u.fctx; nitrox_aead_exit() local 364 struct flexi_crypto_context *fctx = nctx->u.fctx; nitrox_rfc4106_setkey() local [all...] |
H A D | nitrox_skcipher.c | 153 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_skcipher_exit() local 155 memzero_explicit(&fctx->crypto, sizeof(struct crypto_keys)); in nitrox_skcipher_exit() 156 memzero_explicit(&fctx->auth, sizeof(struct auth_keys)); in nitrox_skcipher_exit() 171 struct flexi_crypto_context *fctx; in nitrox_skcipher_setkey() local 184 fctx = nctx->u.fctx; in nitrox_skcipher_setkey() 185 flags = &fctx->flags; in nitrox_skcipher_setkey() 192 memcpy(fctx->crypto.u.key, key, keylen); in nitrox_skcipher_setkey() 342 struct flexi_crypto_context *fctx; in nitrox_aes_xts_setkey() local 367 struct flexi_crypto_context *fctx; nitrox_aes_ctr_rfc3686_setkey() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_aead.c | 38 struct flexi_crypto_context *fctx; in nitrox_aes_gcm_setkey() local 46 fctx = nctx->u.fctx; in nitrox_aes_gcm_setkey() 47 flags.fu = be64_to_cpu(fctx->flags.f); in nitrox_aes_gcm_setkey() 49 fctx->flags.f = cpu_to_be64(flags.fu); in nitrox_aes_gcm_setkey() 52 memset(&fctx->crypto, 0, sizeof(fctx->crypto)); in nitrox_aes_gcm_setkey() 53 memcpy(fctx->crypto.u.key, key, keylen); in nitrox_aes_gcm_setkey() 62 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_setauthsize() local 219 struct flexi_crypto_context *fctx = nctx->u.fctx; nitrox_aes_gcm_enc() local 253 struct flexi_crypto_context *fctx = nctx->u.fctx; nitrox_aes_gcm_dec() local 347 struct flexi_crypto_context *fctx = nctx->u.fctx; nitrox_aead_exit() local 363 struct flexi_crypto_context *fctx = nctx->u.fctx; nitrox_rfc4106_setkey() local [all...] |
H A D | nitrox_skcipher.c | 153 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_skcipher_exit() local 155 memzero_explicit(&fctx->crypto, sizeof(struct crypto_keys)); in nitrox_skcipher_exit() 156 memzero_explicit(&fctx->auth, sizeof(struct auth_keys)); in nitrox_skcipher_exit() 171 struct flexi_crypto_context *fctx; in nitrox_skcipher_setkey() local 184 fctx = nctx->u.fctx; in nitrox_skcipher_setkey() 185 flags = &fctx->flags; in nitrox_skcipher_setkey() 192 memcpy(fctx->crypto.u.key, key, keylen); in nitrox_skcipher_setkey() 341 struct flexi_crypto_context *fctx; in nitrox_aes_xts_setkey() local 365 struct flexi_crypto_context *fctx; nitrox_aes_ctr_rfc3686_setkey() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 101 struct fc_context *fctx = &rctx->fctx; in create_ctx_hdr() local 121 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr() 122 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr() 123 fctx->enc.enc_ctrl.e.iv_source = FROM_DPTR; in create_ctx_hdr() 126 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2); in create_ctx_hdr() 128 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len); in create_ctx_hdr() 129 ctrl_flags = (__be64 *)&fctx->enc.enc_ctrl.flags; in create_ctx_hdr() 130 *ctrl_flags = cpu_to_be64(fctx->enc.enc_ctrl.flags); in create_ctx_hdr() 142 req_info->in[*argcnt].vptr = (u8 *)fctx; in create_ctx_hdr() 198 struct fc_context *fctx = &rctx->fctx; cvm_enc_dec() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 101 struct fc_context *fctx = &rctx->fctx; in create_ctx_hdr() local 121 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr() 122 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr() 123 fctx->enc.enc_ctrl.e.iv_source = FROM_DPTR; in create_ctx_hdr() 126 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2); in create_ctx_hdr() 128 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len); in create_ctx_hdr() 129 ctrl_flags = (__be64 *)&fctx->enc.enc_ctrl.flags; in create_ctx_hdr() 130 *ctrl_flags = cpu_to_be64(fctx->enc.enc_ctrl.flags); in create_ctx_hdr() 142 req_info->in[*argcnt].vptr = (u8 *)fctx; in create_ctx_hdr() 198 struct fc_context *fctx = &rctx->fctx; cvm_enc_dec() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.c | 106 if (memcmp(rctx->fctx.hmac.s.hmac_calc, in validate_hmac_cipher_null() 107 rctx->fctx.hmac.s.hmac_recv, in validate_hmac_cipher_null() 239 struct otx_cpt_fc_ctx *fctx = &rctx->fctx; in create_ctx_hdr() local 271 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr() 272 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr() 273 fctx->enc.enc_ctrl.e.iv_source = OTX_CPT_FROM_CPTR; in create_ctx_hdr() 276 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2); in create_ctx_hdr() 278 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len); in create_ctx_hdr() 280 memcpy(fctx in create_ctx_hdr() 971 struct otx_cpt_fc_ctx *fctx = &rctx->fctx; create_aead_ctx_hdr() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.c | 107 if (memcmp(rctx->fctx.hmac.s.hmac_calc, in validate_hmac_cipher_null() 108 rctx->fctx.hmac.s.hmac_recv, in validate_hmac_cipher_null() 240 struct otx_cpt_fc_ctx *fctx = &rctx->fctx; in create_ctx_hdr() local 272 fctx->enc.enc_ctrl.e.enc_cipher = ctx->cipher_type; in create_ctx_hdr() 273 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr() 274 fctx->enc.enc_ctrl.e.iv_source = OTX_CPT_FROM_CPTR; in create_ctx_hdr() 277 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2); in create_ctx_hdr() 279 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len); in create_ctx_hdr() 281 memcpy(fctx in create_ctx_hdr() 973 struct otx_cpt_fc_ctx *fctx = &rctx->fctx; create_aead_ctx_hdr() local [all...] |