/Linux-v5.10/drivers/gpu/drm/msm/ |
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 strncpy(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->spinlock); in msm_fence_context_alloc() 28 return fctx; in msm_fence_context_alloc() 31 void msm_fence_context_free(struct msm_fence_context *fctx) in msm_fence_context_free() argument [all …]
|
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);
|
D | msm_ringbuffer.c | 53 ring->fctx = msm_fence_context_alloc(gpu->dev, name); in msm_ringbuffer_new() 67 msm_fence_context_free(ring->fctx); in msm_ringbuffer_destroy()
|
D | msm_ringbuffer.h | 48 struct msm_fence_context *fctx; member
|
D | msm_gem_submit.c | 242 ret = msm_gem_sync_object(&msm_obj->base, submit->ring->fctx, in submit_fence_sync() 447 if (!dma_fence_match_context(fence, ring->fctx->context)) in msm_wait_deps() 640 if (!dma_fence_match_context(in_fence, ring->fctx->context)) in msm_ioctl_gem_submit() 773 submit->fence = msm_fence_alloc(ring->fctx); in msm_ioctl_gem_submit()
|
D | msm_gem.c | 712 struct msm_fence_context *fctx, bool exclusive) in msm_gem_sync_object() argument 722 if (fence && (fence->context != fctx->context)) { in msm_gem_sync_object() 735 if (fence->context != fctx->context) { in msm_gem_sync_object()
|
/Linux-v5.10/drivers/gpu/drm/nouveau/ |
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, 0); in nouveau_fence_context_del() [all …]
|
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->base); in nv84_fence_context_del() [all …]
|
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->base.emit = nv10_fence_emit; in nv10_fence_context_new() 79 fctx->base.read = nv10_fence_read; in nv10_fence_context_new() [all …]
|
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->base.read = nv04_fence_read; in nv04_fence_context_new() 85 chan->fence = fctx; in nv04_fence_context_new()
|
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->base.read = nv10_fence_read; in nv17_fence_context_new() 93 fctx->base.sync = nv17_fence_sync; in nv17_fence_context_new() [all …]
|
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()
|
D | nvc0_fence.c | 82 struct nv84_fence_chan *fctx = chan->fence; in nvc0_fence_context_new() local 83 fctx->base.emit32 = nvc0_fence_emit32; in nvc0_fence_context_new() 84 fctx->base.sync32 = nvc0_fence_sync32; in nvc0_fence_context_new()
|
/Linux-v5.10/drivers/crypto/cavium/nitrox/ |
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 66 flags.f = be64_to_cpu(fctx->flags.f); in nitrox_aead_setauthsize() 68 fctx->flags.f = cpu_to_be64(flags.f); in nitrox_aead_setauthsize() 220 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_enc() local [all …]
|
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 355 fctx = nctx->u.fctx; in nitrox_aes_xts_setkey() 357 memcpy(fctx->auth.u.key2, (key + keylen), keylen); in nitrox_aes_xts_setkey() [all …]
|
/Linux-v5.10/drivers/crypto/cavium/cpt/ |
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; in cvm_enc_dec() local [all …]
|
D | cptvf_algs.h | 113 struct fc_context fctx; member
|
/Linux-v5.10/drivers/crypto/marvell/octeontx/ |
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->enc.encr_iv, req->iv, crypto_skcipher_ivsize(stfm)); in create_ctx_hdr() 282 fctx->enc.enc_ctrl.flags = cpu_to_be64(fctx->enc.enc_ctrl.cflags); in create_ctx_hdr() [all …]
|
D | otx_cptvf_algs.h | 162 struct otx_cpt_fc_ctx fctx; member
|
/Linux-v5.10/security/apparmor/ |
D | file.c | 484 static void update_file_ctx(struct aa_file_ctx *fctx, struct aa_label *label, in update_file_ctx() argument 490 spin_lock(&fctx->lock); in update_file_ctx() 491 old = rcu_dereference_protected(fctx->label, in update_file_ctx() 492 lockdep_is_held(&fctx->lock)); in update_file_ctx() 496 rcu_assign_pointer(fctx->label, l); in update_file_ctx() 500 fctx->allow |= request; in update_file_ctx() 502 spin_unlock(&fctx->lock); in update_file_ctx() 599 struct aa_file_ctx *fctx; in aa_file_perm() local 607 fctx = file_ctx(file); in aa_file_perm() 610 flabel = rcu_dereference(fctx->label); in aa_file_perm() [all …]
|
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | dmanv04.c | 79 struct nvkm_memory *fctx = device->imem->ramfc; in nv04_fifo_dma_fini() local 98 nvkm_kmap(fctx); in nv04_fifo_dma_fini() 103 u32 cv = (nvkm_ro32(fctx, c->ctxp + data) & ~cm); in nv04_fifo_dma_fini() 104 nvkm_wo32(fctx, c->ctxp + data, cv | (rv << c->ctxs)); in nv04_fifo_dma_fini() 106 nvkm_done(fctx); in nv04_fifo_dma_fini()
|
/Linux-v5.10/fs/ |
D | userfaultfd.c | 634 struct userfaultfd_fork_ctx *fctx; in dup_userfaultfd() local 643 list_for_each_entry(fctx, fcs, list) in dup_userfaultfd() 644 if (fctx->orig == octx) { in dup_userfaultfd() 645 ctx = fctx->new; in dup_userfaultfd() 650 fctx = kmalloc(sizeof(*fctx), GFP_KERNEL); in dup_userfaultfd() 651 if (!fctx) in dup_userfaultfd() 656 kfree(fctx); in dup_userfaultfd() 671 fctx->orig = octx; in dup_userfaultfd() 672 fctx->new = ctx; in dup_userfaultfd() 673 list_add_tail(&fctx->list, fcs); in dup_userfaultfd() [all …]
|
/Linux-v5.10/drivers/block/ |
D | rbd.c | 2544 struct rbd_img_fill_ctx *fctx) in rbd_img_fill_request_nocopy() argument 2549 img_req->data_type = fctx->pos_type; in rbd_img_fill_request_nocopy() 2555 fctx->iter = *fctx->pos; in rbd_img_fill_request_nocopy() 2562 fctx->set_pos_fn, &fctx->iter); in rbd_img_fill_request_nocopy() 2586 struct rbd_img_fill_ctx *fctx) in rbd_img_fill_request() argument 2593 if (fctx->pos_type == OBJ_REQUEST_NODATA || in rbd_img_fill_request() 2596 num_img_extents, fctx); in rbd_img_fill_request() 2607 fctx->iter = *fctx->pos; in rbd_img_fill_request() 2614 fctx->count_fn, &fctx->iter); in rbd_img_fill_request() 2631 fctx->iter = *fctx->pos; in rbd_img_fill_request() [all …]
|
/Linux-v5.10/drivers/gpu/drm/nouveau/dispnv04/ |
D | crtc.c | 1051 struct nouveau_fence_chan *fctx = chan->fence; in nv04_finish_page_flip() local 1059 if (list_empty(&fctx->flip)) { in nv04_finish_page_flip() 1065 s = list_first_entry(&fctx->flip, struct nv04_page_flip_state, head); in nv04_finish_page_flip() 1107 struct nouveau_fence_chan *fctx = chan->fence; in nv04_page_flip_emit() local 1116 list_add_tail(&s->head, &fctx->flip); in nv04_page_flip_emit()
|
/Linux-v5.10/fs/fuse/ |
D | control.c | 331 static int fuse_ctl_fill_super(struct super_block *sb, struct fs_context *fctx) in fuse_ctl_fill_super() argument
|