Home
last modified time | relevance | path

Searched refs:ictx (Results 1 – 25 of 38) sorted by relevance

12

/linux-6.3-rc2/drivers/media/rc/
A Dimon.c529 if (!ictx || ictx->disconnected || !refcount_inc_not_zero(&ictx->users)) { in display_open()
1372 ictx->last_keycode = ictx->kc; in imon_mouse_event()
1539 ictx->kc = ictx->last_keycode; in imon_parse_press_type()
1544 ictx->kc = ictx->last_keycode; in imon_parse_press_type()
1549 ictx->kc = ictx->last_keycode; in imon_parse_press_type()
1618 ictx->pad_mouse = !ictx->pad_mouse; in imon_incoming_packet()
1677 ictx->last_keycode = ictx->kc; in imon_incoming_packet()
2035 ictx->vendor, ictx->product); in imon_init_idev()
2084 ictx->vendor, ictx->product); in imon_init_touch()
2274 ictx->idev = imon_init_idev(ictx); in imon_init_intf0()
[all …]
/linux-6.3-rc2/drivers/iommu/iommufd/
A Dmain.c110 xa_lock(&ictx->objects); in iommufd_get_object()
142 if (ictx->vfio_ioas && &ictx->vfio_ioas->obj == obj) in iommufd_object_destroy_user()
171 ictx = kzalloc(sizeof(*ictx), GFP_KERNEL_ACCOUNT); in iommufd_fops_open()
172 if (!ictx) in iommufd_fops_open()
186 ictx->file = filp; in iommufd_fops_open()
221 kfree(ictx); in iommufd_fops_release()
320 ucmd.ictx = ictx; in iommufd_fops_ioctl()
356 get_file(ictx->file); in iommufd_ctx_get()
375 iommufd_ctx_get(ictx); in iommufd_ctx_from_file()
376 return ictx; in iommufd_ctx_from_file()
[all …]
A Dvfio_compat.c19 xa_lock(&ictx->objects); in get_compat_ioas()
20 if (!ictx->vfio_ioas || !iommufd_lock_obj(&ictx->vfio_ioas->obj)) in get_compat_ioas()
22 ioas = ictx->vfio_ioas; in get_compat_ioas()
24 xa_unlock(&ictx->objects); in get_compat_ioas()
59 xa_lock(&ictx->objects); in iommufd_vfio_compat_set_no_iommu()
60 if (!ictx->vfio_ioas) { in iommufd_vfio_compat_set_no_iommu()
61 ictx->no_iommu_mode = 1; in iommufd_vfio_compat_set_no_iommu()
66 xa_unlock(&ictx->objects); in iommufd_vfio_compat_set_no_iommu()
89 xa_lock(&ictx->objects); in iommufd_vfio_compat_ioas_create()
99 if (ictx->vfio_ioas && iommufd_lock_obj(&ictx->vfio_ioas->obj)) { in iommufd_vfio_compat_ioas_create()
[all …]
A Diommufd_private.h92 struct iommufd_ctx *ictx; member
98 int iommufd_vfio_ioctl(struct iommufd_ctx *ictx, unsigned int cmd,
174 void iommufd_object_abort_and_destroy(struct iommufd_ctx *ictx,
176 void iommufd_object_finalize(struct iommufd_ctx *ictx,
178 bool iommufd_object_destroy_user(struct iommufd_ctx *ictx,
186 ictx, \
217 return container_of(iommufd_get_object(ucmd->ictx, id, in iommufd_get_ioas()
232 struct iommufd_ctx *ictx);
264 struct iommufd_ctx *ictx; member
279 iommufd_device_selftest_attach(struct iommufd_ctx *ictx,
[all …]
A Ddevice.c25 struct iommufd_ctx *ictx; member
42 iommufd_ctx_put(idev->ictx); in iommufd_device_destroy()
79 rc = iommu_device_claim_dma_owner(dev, ictx); in iommufd_device_bind()
88 idev->ictx = ictx; in iommufd_device_bind()
89 iommufd_ctx_get(ictx); in iommufd_device_bind()
104 iommufd_object_finalize(ictx, &idev->obj); in iommufd_device_bind()
416 iommufd_ctx_put(access->ictx); in iommufd_access_destroy_object()
470 access->ictx = ictx; in iommufd_access_create()
471 iommufd_ctx_get(ictx); in iommufd_access_create()
477 iommufd_object_abort(ictx, &access->obj); in iommufd_access_create()
[all …]
A Dioas.c27 ioas = iommufd_object_alloc(ictx, ioas, IOMMUFD_OBJ_IOAS); in iommufd_ioas_alloc()
46 ioas = iommufd_ioas_alloc(ucmd->ictx); in iommufd_ioas_alloc_ioctl()
54 iommufd_object_finalize(ucmd->ictx, &ioas->obj); in iommufd_ioas_alloc_ioctl()
58 iommufd_object_abort_and_destroy(ucmd->ictx, &ioas->obj); in iommufd_ioas_alloc_ioctl()
222 rc = iopt_map_user_pages(ucmd->ictx, &ioas->iopt, &iova, in iommufd_ioas_map()
323 struct iommufd_ctx *ictx) in iommufd_option_rlimit_mode() argument
338 xa_lock(&ictx->objects); in iommufd_option_rlimit_mode()
339 if (!xa_empty(&ictx->objects)) { in iommufd_option_rlimit_mode()
343 ictx->account_mode = IOPT_PAGES_ACCOUNT_USER; in iommufd_option_rlimit_mode()
345 ictx->account_mode = IOPT_PAGES_ACCOUNT_MM; in iommufd_option_rlimit_mode()
[all …]
A Dhw_pagetable.c30 iommufd_hw_pagetable_alloc(struct iommufd_ctx *ictx, struct iommufd_ioas *ioas, in iommufd_hw_pagetable_alloc() argument
36 hwpt = iommufd_object_alloc(ictx, hwpt, IOMMUFD_OBJ_HW_PAGETABLE); in iommufd_hw_pagetable_alloc()
55 iommufd_object_abort(ictx, &hwpt->obj); in iommufd_hw_pagetable_alloc()
/linux-6.3-rc2/fs/ntfs/
A Dindex.h75 extern void ntfs_index_ctx_put(ntfs_index_context *ictx);
78 ntfs_index_context *ictx);
97 static inline void ntfs_index_entry_flush_dcache_page(ntfs_index_context *ictx) in ntfs_index_entry_flush_dcache_page() argument
99 if (ictx->is_in_root) in ntfs_index_entry_flush_dcache_page()
100 flush_dcache_mft_record_page(ictx->actx->ntfs_ino); in ntfs_index_entry_flush_dcache_page()
102 flush_dcache_page(ictx->page); in ntfs_index_entry_flush_dcache_page()
123 static inline void ntfs_index_entry_mark_dirty(ntfs_index_context *ictx) in ntfs_index_entry_mark_dirty() argument
125 if (ictx->is_in_root) in ntfs_index_entry_mark_dirty()
126 mark_mft_record_dirty(ictx->actx->ntfs_ino); in ntfs_index_entry_mark_dirty()
128 mark_ntfs_record_dirty(ictx->page, in ntfs_index_entry_mark_dirty()
[all …]
A Dindex.c30 if (ictx) in ntfs_index_ctx_get()
32 return ictx; in ntfs_index_ctx_get()
45 if (ictx->entry) { in ntfs_index_ctx_put()
47 if (ictx->actx) in ntfs_index_ctx_put()
49 if (ictx->base_ni) in ntfs_index_ctx_put()
196 ictx->ir = ir; in ntfs_index_lookup()
197 ictx->actx = actx; in ntfs_index_lookup()
199 ictx->ia = NULL; in ntfs_index_lookup()
200 ictx->page = NULL; in ntfs_index_lookup()
202 ictx->entry = ie; in ntfs_index_lookup()
[all …]
A Dquota.c25 ntfs_index_context *ictx; in ntfs_mark_quotas_out_of_date() local
38 ictx = ntfs_index_ctx_get(NTFS_I(vol->quota_q_ino)); in ntfs_mark_quotas_out_of_date()
39 if (!ictx) { in ntfs_mark_quotas_out_of_date()
43 err = ntfs_index_lookup(&qid, sizeof(qid), ictx); in ntfs_mark_quotas_out_of_date()
53 if (ictx->data_len < offsetof(QUOTA_CONTROL_ENTRY, sid)) { in ntfs_mark_quotas_out_of_date()
58 qce = (QUOTA_CONTROL_ENTRY*)ictx->data; in ntfs_mark_quotas_out_of_date()
83 ntfs_index_entry_flush_dcache_page(ictx); in ntfs_mark_quotas_out_of_date()
84 ntfs_index_entry_mark_dirty(ictx); in ntfs_mark_quotas_out_of_date()
86 ntfs_index_ctx_put(ictx); in ntfs_mark_quotas_out_of_date()
97 if (ictx) in ntfs_mark_quotas_out_of_date()
[all …]
/linux-6.3-rc2/arch/s390/crypto/
A Dsha3_512_s390.c47 const struct sha3_state *ictx = in; in sha3_512_import() local
49 if (unlikely(ictx->rsizw)) in sha3_512_import()
51 sctx->count = ictx->rsiz; in sha3_512_import()
53 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_512_import()
54 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_512_import()
63 const struct sha3_state *ictx = in; in sha3_384_import() local
65 if (unlikely(ictx->rsizw)) in sha3_384_import()
67 sctx->count = ictx->rsiz; in sha3_384_import()
69 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_384_import()
70 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_384_import()
A Dsha3_256_s390.c46 const struct sha3_state *ictx = in; in sha3_256_import() local
48 sctx->count = ictx->rsiz; in sha3_256_import()
49 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_256_import()
50 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_256_import()
59 const struct sha3_state *ictx = in; in sha3_224_import() local
61 sctx->count = ictx->rsiz; in sha3_224_import()
62 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_224_import()
63 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_224_import()
A Dsha1_s390.c59 const struct sha1_state *ictx = in; in s390_sha1_import() local
61 sctx->count = ictx->count; in s390_sha1_import()
62 memcpy(sctx->state, ictx->state, sizeof(ictx->state)); in s390_sha1_import()
63 memcpy(sctx->buf, ictx->buffer, sizeof(ictx->buffer)); in s390_sha1_import()
A Dsha512_s390.c54 const struct sha512_state *ictx = in; in sha512_import() local
56 if (unlikely(ictx->count[1])) in sha512_import()
58 sctx->count = ictx->count[0]; in sha512_import()
60 memcpy(sctx->state, ictx->state, sizeof(ictx->state)); in sha512_import()
61 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha512_import()
A Dsha256_s390.c52 const struct sha256_state *ictx = in; in sha256_import() local
54 sctx->count = ictx->count; in sha256_import()
55 memcpy(sctx->state, ictx->state, sizeof(ictx->state)); in sha256_import()
56 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha256_import()
/linux-6.3-rc2/include/linux/
A Diommufd.h20 struct iommufd_device *iommufd_device_bind(struct iommufd_ctx *ictx,
43 iommufd_access_create(struct iommufd_ctx *ictx, u32 ioas_id,
47 void iommufd_ctx_get(struct iommufd_ctx *ictx);
51 void iommufd_ctx_put(struct iommufd_ctx *ictx);
60 int iommufd_vfio_compat_ioas_get_id(struct iommufd_ctx *ictx, u32 *out_ioas_id);
61 int iommufd_vfio_compat_ioas_create(struct iommufd_ctx *ictx);
62 int iommufd_vfio_compat_set_no_iommu(struct iommufd_ctx *ictx);
69 static inline void iommufd_ctx_put(struct iommufd_ctx *ictx) in iommufd_ctx_put() argument
94 static inline int iommufd_vfio_compat_ioas_create(struct iommufd_ctx *ictx) in iommufd_vfio_compat_ioas_create() argument
99 static inline int iommufd_vfio_compat_set_no_iommu(struct iommufd_ctx *ictx) in iommufd_vfio_compat_set_no_iommu() argument
A Dvfio.h97 struct iommufd_ctx *ictx, u32 *out_device_id);
118 struct iommufd_ctx *ictx, u32 *out_device_id);
122 struct iommufd_ctx *ictx, u32 *out_device_id);
127 ((int (*)(struct vfio_device *vdev, struct iommufd_ctx *ictx, \
134 ((int (*)(struct vfio_device *vdev, struct iommufd_ctx *ictx, \
/linux-6.3-rc2/crypto/
A Dessiv.c312 err = essiv_init_tfm(ictx, tctx); in essiv_skcipher_init_tfm()
334 aead = crypto_spawn_aead(&ictx->u.aead_spawn); in essiv_aead_init_tfm()
345 err = essiv_init_tfm(ictx, tctx); in essiv_aead_init_tfm()
377 crypto_drop_skcipher(&ictx->u.skcipher_spawn); in essiv_skcipher_free_instance()
385 crypto_drop_aead(&ictx->u.aead_spawn); in essiv_aead_free_instance()
452 struct essiv_instance_ctx *ictx; in essiv_create() local
480 sizeof(*ictx), GFP_KERNEL); in essiv_create()
485 ictx = crypto_instance_ctx(inst); in essiv_create()
499 sizeof(*ictx), GFP_KERNEL); in essiv_create()
504 ictx = crypto_instance_ctx(inst); in essiv_create()
[all …]
A Dhctr2.c345 xctr = crypto_spawn_skcipher(&ictx->xctr_spawn); in hctr2_init_tfm()
355 polyval = crypto_spawn_shash(&ictx->polyval_spawn); in hctr2_init_tfm()
398 crypto_drop_cipher(&ictx->blockcipher_spawn); in hctr2_free_instance()
399 crypto_drop_skcipher(&ictx->xctr_spawn); in hctr2_free_instance()
400 crypto_drop_shash(&ictx->polyval_spawn); in hctr2_free_instance()
411 struct hctr2_instance_ctx *ictx; in hctr2_create_common() local
426 ictx = skcipher_instance_ctx(inst); in hctr2_create_common()
429 err = crypto_grab_skcipher(&ictx->xctr_spawn, in hctr2_create_common()
434 xctr_alg = crypto_spawn_skcipher_alg(&ictx->xctr_spawn); in hctr2_create_common()
448 err = crypto_grab_cipher(&ictx->blockcipher_spawn, in hctr2_create_common()
[all …]
A Dadiantum.c417 hash = crypto_spawn_shash(&ictx->hash_spawn); in adiantum_init_tfm()
461 crypto_drop_skcipher(&ictx->streamcipher_spawn); in adiantum_free_instance()
462 crypto_drop_cipher(&ictx->blockcipher_spawn); in adiantum_free_instance()
463 crypto_drop_shash(&ictx->hash_spawn); in adiantum_free_instance()
496 struct adiantum_instance_ctx *ictx; in adiantum_create() local
506 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in adiantum_create()
509 ictx = skcipher_instance_ctx(inst); in adiantum_create()
512 err = crypto_grab_skcipher(&ictx->streamcipher_spawn, in adiantum_create()
520 err = crypto_grab_cipher(&ictx->blockcipher_spawn, in adiantum_create()
531 err = crypto_grab_shash(&ictx->hash_spawn, in adiantum_create()
[all …]
A Dauthenc.c117 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in authenc_geniv_ahash_done() local
137 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_genicv() local
196 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_encrypt() local
201 ictx->reqoff); in crypto_authenc_encrypt()
234 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_decrypt_tail() local
238 ictx->reqoff); in crypto_authenc_decrypt_tail()
282 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_decrypt() local
308 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_init_tfm() local
315 auth = crypto_spawn_ahash(&ictx->auth); in crypto_authenc_init_tfm()
319 enc = crypto_spawn_skcipher(&ictx->enc); in crypto_authenc_init_tfm()
[all …]
A Dpcrypt.c101 struct pcrypt_instance_ctx *ictx; in pcrypt_aead_encrypt() local
103 ictx = pcrypt_tfm_ictx(aead); in pcrypt_aead_encrypt()
117 err = padata_do_parallel(ictx->psenc, padata, &ctx->cb_cpu); in pcrypt_aead_encrypt()
148 struct pcrypt_instance_ctx *ictx; in pcrypt_aead_decrypt() local
150 ictx = pcrypt_tfm_ictx(aead); in pcrypt_aead_decrypt()
164 err = padata_do_parallel(ictx->psdec, padata, &ctx->cb_cpu); in pcrypt_aead_decrypt()
175 struct pcrypt_instance_ctx *ictx = aead_instance_ctx(inst); in pcrypt_aead_init_tfm() local
179 cpu_index = (unsigned int)atomic_inc_return(&ictx->tfm_count) % in pcrypt_aead_init_tfm()
186 cipher = crypto_spawn_aead(&ictx->spawn); in pcrypt_aead_init_tfm()
/linux-6.3-rc2/drivers/vfio/
A Diommufd.c13 int vfio_iommufd_bind(struct vfio_device *vdev, struct iommufd_ctx *ictx) in vfio_iommufd_bind() argument
30 if (!iommufd_vfio_compat_ioas_get_id(ictx, &ioas_id)) in vfio_iommufd_bind()
42 ret = vdev->ops->bind_iommufd(vdev, ictx, &device_id); in vfio_iommufd_bind()
46 ret = iommufd_vfio_compat_ioas_get_id(ictx, &ioas_id); in vfio_iommufd_bind()
82 struct iommufd_ctx *ictx, u32 *out_device_id) in vfio_iommufd_physical_bind() argument
86 idev = iommufd_device_bind(ictx, vdev->dev, out_device_id); in vfio_iommufd_physical_bind()
139 struct iommufd_ctx *ictx, u32 *out_device_id) in vfio_iommufd_emulated_bind() argument
143 vdev->iommufd_ictx = ictx; in vfio_iommufd_emulated_bind()
144 iommufd_ctx_get(ictx); in vfio_iommufd_emulated_bind()
/linux-6.3-rc2/drivers/dma/idxd/
A Dcdev.c28 static struct idxd_cdev_context ictx[IDXD_TYPE_MAX] = { variable
47 cdev_ctx = &ictx[wq->idxd->data->type]; in idxd_cdev_dev_release()
241 return MAJOR(ictx[idxd->data->type].devt); in idxd_cdev_get_major()
261 cdev_ctx = &ictx[wq->idxd->data->type]; in idxd_wq_add_cdev()
385 ida_init(&ictx[i].minor_ida); in idxd_cdev_register()
386 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register()
387 ictx[i].name); in idxd_cdev_register()
396 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_register()
406 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
407 ida_destroy(&ictx[i].minor_ida); in idxd_cdev_remove()
/linux-6.3-rc2/drivers/crypto/allwinner/sun4i-ss/
A Dsun4i-ss-hash.c88 const struct md5_state *ictx = in; in sun4i_hash_import_md5() local
93 op->byte_count = ictx->byte_count & ~0x3F; in sun4i_hash_import_md5()
94 op->len = ictx->byte_count & 0x3F; in sun4i_hash_import_md5()
96 memcpy(op->buf, ictx->block, op->len); in sun4i_hash_import_md5()
99 op->hash[i] = ictx->hash[i]; in sun4i_hash_import_md5()
131 const struct sha1_state *ictx = in; in sun4i_hash_import_sha1() local
136 op->byte_count = ictx->count & ~0x3F; in sun4i_hash_import_sha1()
137 op->len = ictx->count & 0x3F; in sun4i_hash_import_sha1()
139 memcpy(op->buf, ictx->buffer, op->len); in sun4i_hash_import_sha1()
142 op->hash[i] = ictx->state[i]; in sun4i_hash_import_sha1()

Completed in 45 milliseconds

12