Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/media/rc/
H 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 …]
/openbmc/u-boot/tools/
H A Dmxsimage.c344 sb_aes_crypt(ictx, ictx->image_key, ictx->sb_dict_key.key, in sb_encrypt_key_dictionary_key()
354 sb_aes_crypt(ictx, ictx->sb_dict_key.key, ictx->image_key, in sb_decrypt_key_dictionary_key()
429 EVP_DigestFinal(ictx->md_ctx, ictx->digest, NULL); in sb_encrypt_image()
431 sb_aes_crypt(ictx, ictx->digest, ictx->digest, sizeof(ictx->digest)); in sb_encrypt_image()
1487 if (!ictx->in_section && !ictx->in_dcd) { in sb_parse_line()
1579 ictx->sect_tail->size += ictx->sect_tail->cmd_tail->size; in sb_parse_line()
1667 size = fread(&ictx->payload, 1, sizeof(ictx->payload), fp); in sb_verify_image_header()
1709 soprintf(ictx, in sb_verify_image_header()
1868 soprintf(ictx, in sb_verify_command()
2045 EVP_DigestFinal(ictx->md_ctx, ictx->digest, NULL); in sb_verify_image_end()
[all …]
/openbmc/linux/drivers/iommu/iommufd/
H 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 …]
H A Dmain.c123 xa_lock(&ictx->objects); in iommufd_get_object()
224 ictx = kzalloc(sizeof(*ictx), GFP_KERNEL_ACCOUNT); in iommufd_fops_open()
225 if (!ictx) in iommufd_fops_open()
239 xa_init(&ictx->groups); in iommufd_fops_open()
240 ictx->file = filp; in iommufd_fops_open()
276 kfree(ictx); in iommufd_fops_release()
381 ucmd.ictx = ictx; in iommufd_fops_ioctl()
417 get_file(ictx->file); in iommufd_ctx_get()
436 iommufd_ctx_get(ictx); in iommufd_ctx_from_file()
437 return ictx; in iommufd_ctx_from_file()
[all …]
H A Diommufd_private.h93 struct iommufd_ctx *ictx; member
155 void iommufd_object_finalize(struct iommufd_ctx *ictx,
162 __iommufd_object_destroy_user(ictx, obj, false); in iommufd_object_destroy_user()
167 __iommufd_object_destroy_user(ictx, obj, true); in iommufd_object_deref_user()
207 return container_of(iommufd_get_object(ictx, id, in iommufd_get_ioas()
222 struct iommufd_ctx *ictx);
260 iommufd_object_deref_user(ictx, &hwpt->obj); in iommufd_hw_pagetable_put()
268 struct iommufd_ctx *ictx; member
282 struct iommufd_ctx *ictx; member
293 return container_of(iommufd_get_object(ucmd->ictx, id, in iommufd_get_device()
[all …]
H A Ddevice.c75 xa_lock(&ictx->groups); in iommufd_get_group()
78 xa_unlock(&ictx->groups); in iommufd_get_group()
82 xa_unlock(&ictx->groups); in iommufd_get_group()
101 new_igroup->ictx = ictx; in iommufd_get_group()
108 xa_lock(&ictx->groups); in iommufd_get_group()
208 idev->ictx = ictx; in iommufd_device_bind()
210 iommufd_ctx_get(ictx); in iommufd_device_bind()
251 if (!ictx || !group) in iommufd_ctx_has_group()
285 return idev->ictx; in iommufd_device_to_ictx()
798 access->ictx = ictx; in iommufd_access_create()
[all …]
H A Dioas.c46 ioas = iommufd_ioas_alloc(ucmd->ictx); in iommufd_ioas_alloc_ioctl()
54 iommufd_object_finalize(ucmd->ictx, &ioas->obj); in iommufd_ioas_alloc_ioctl()
74 ioas = iommufd_get_ioas(ucmd->ictx, cmd->ioas_id); in iommufd_ioas_iova_ranges()
154 ioas = iommufd_get_ioas(ucmd->ictx, cmd->ioas_id); in iommufd_ioas_allow_iovas()
216 ioas = iommufd_get_ioas(ucmd->ictx, cmd->ioas_id); 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 …]
H A Dhw_pagetable.c74 iommufd_hw_pagetable_alloc(struct iommufd_ctx *ictx, struct iommufd_ioas *ioas, in iommufd_hw_pagetable_alloc() argument
82 hwpt = iommufd_object_alloc(ictx, hwpt, IOMMUFD_OBJ_HW_PAGETABLE); in iommufd_hw_pagetable_alloc()
132 iommufd_object_abort_and_destroy(ictx, &hwpt->obj); in iommufd_hw_pagetable_alloc()
151 ioas = iommufd_get_ioas(ucmd->ictx, cmd->pt_id); in iommufd_hwpt_alloc()
158 hwpt = iommufd_hw_pagetable_alloc(ucmd->ictx, ioas, idev, false); in iommufd_hwpt_alloc()
168 iommufd_object_finalize(ucmd->ictx, &hwpt->obj); in iommufd_hwpt_alloc()
172 iommufd_object_abort_and_destroy(ucmd->ictx, &hwpt->obj); in iommufd_hwpt_alloc()
/openbmc/linux/fs/ntfs/
H 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 …]
H 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 …]
H 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 …]
/openbmc/linux/arch/s390/crypto/
H 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()
H 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()
H 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()
H 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()
H 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()
/openbmc/linux/include/linux/
H A Diommufd.h21 struct iommufd_device *iommufd_device_bind(struct iommufd_ctx *ictx,
48 iommufd_access_create(struct iommufd_ctx *ictx,
55 void iommufd_ctx_get(struct iommufd_ctx *ictx);
60 void iommufd_ctx_put(struct iommufd_ctx *ictx);
61 bool iommufd_ctx_has_group(struct iommufd_ctx *ictx, struct iommu_group *group);
70 int iommufd_vfio_compat_ioas_get_id(struct iommufd_ctx *ictx, u32 *out_ioas_id);
71 int iommufd_vfio_compat_ioas_create(struct iommufd_ctx *ictx);
72 int iommufd_vfio_compat_set_no_iommu(struct iommufd_ctx *ictx);
79 static inline void iommufd_ctx_put(struct iommufd_ctx *ictx) in iommufd_ctx_put() argument
104 static inline int iommufd_vfio_compat_ioas_create(struct iommufd_ctx *ictx) in iommufd_vfio_compat_ioas_create() argument
[all …]
H A Dvfio.h106 struct iommufd_ctx *ictx, u32 *out_device_id);
128 int vfio_iommufd_get_dev_id(struct vfio_device *vdev, struct iommufd_ctx *ictx);
130 struct iommufd_ctx *ictx, u32 *out_device_id);
135 struct iommufd_ctx *ictx, u32 *out_device_id);
147 vfio_iommufd_get_dev_id(struct vfio_device *vdev, struct iommufd_ctx *ictx) in vfio_iommufd_get_dev_id() argument
153 ((int (*)(struct vfio_device *vdev, struct iommufd_ctx *ictx, \
162 ((int (*)(struct vfio_device *vdev, struct iommufd_ctx *ictx, \
/openbmc/linux/drivers/vfio/
H A Diommufd.c14 struct iommufd_ctx *ictx) in vfio_iommufd_device_has_compat_ioas() argument
18 return !iommufd_vfio_compat_ioas_get_id(ictx, &ioas_id); in vfio_iommufd_device_has_compat_ioas()
24 struct iommufd_ctx *ictx = df->iommufd; in vfio_df_iommufd_bind() local
28 return vdev->ops->bind_iommufd(vdev, ictx, &df->devid); in vfio_df_iommufd_bind()
32 struct iommufd_ctx *ictx) in vfio_iommufd_compat_attach_ioas() argument
43 ret = iommufd_vfio_compat_ioas_get_id(ictx, &ioas_id); in vfio_iommufd_compat_attach_ioas()
90 if (vfio_iommufd_device_ictx(vdev) == ictx) in vfio_iommufd_get_dev_id()
97 if (iommufd_ctx_has_group(ictx, group)) in vfio_iommufd_get_dev_id()
114 struct iommufd_ctx *ictx, u32 *out_device_id) in vfio_iommufd_physical_bind() argument
118 idev = iommufd_device_bind(ictx, vdev->dev, out_device_id); in vfio_iommufd_physical_bind()
[all …]
/openbmc/linux/crypto/
H 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 …]
H 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 …]
H 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 …]
H 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 …]
H 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()
150 struct pcrypt_instance_ctx *ictx; in pcrypt_aead_decrypt() local
152 ictx = pcrypt_tfm_ictx(aead); in pcrypt_aead_decrypt()
166 err = padata_do_parallel(ictx->psdec, padata, &ctx->cb_cpu); in pcrypt_aead_decrypt()
179 struct pcrypt_instance_ctx *ictx = aead_instance_ctx(inst); in pcrypt_aead_init_tfm() local
183 cpu_index = (unsigned int)atomic_inc_return(&ictx->tfm_count) % in pcrypt_aead_init_tfm()
190 cipher = crypto_spawn_aead(&ictx->spawn); in pcrypt_aead_init_tfm()
/openbmc/linux/drivers/crypto/allwinner/sun4i-ss/
H 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()

12