Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/media/rc/
H A Dimon.c494 static void free_imon_context(struct imon_context *ictx) in free_imon_context() argument
496 struct device *dev = ictx->dev; in free_imon_context()
498 usb_free_urb(ictx->tx_urb); in free_imon_context()
499 WARN_ON(ictx->dev_present_intf0); in free_imon_context()
500 usb_free_urb(ictx->rx_urb_intf0); in free_imon_context()
501 WARN_ON(ictx->dev_present_intf1); in free_imon_context()
502 usb_free_urb(ictx->rx_urb_intf1); in free_imon_context()
503 kfree_rcu(ictx, rcu); in free_imon_context()
515 struct imon_context *ictx = NULL; in display_open() local
528 ictx = usb_get_intfdata(interface); in display_open()
[all …]
/OK3568_Linux_fs/u-boot/tools/
H A Dmxsimage.c204 static int sb_aes_init(struct sb_image_ctx *ictx, uint8_t *iv, int enc) in sb_aes_init() argument
211 iv = ictx->image_key; in sb_aes_init()
214 ret = EVP_CipherInit(ctx, EVP_aes_128_cbc(), ictx->image_key, iv, enc); in sb_aes_init()
217 ictx->cipher_ctx = ctx; in sb_aes_init()
222 static int sb_aes_crypt(struct sb_image_ctx *ictx, uint8_t *in_data, in sb_aes_crypt() argument
225 EVP_CIPHER_CTX *ctx = ictx->cipher_ctx; in sb_aes_crypt()
253 static int sb_aes_reinit(struct sb_image_ctx *ictx, int enc) in sb_aes_reinit() argument
256 EVP_CIPHER_CTX *ctx = ictx->cipher_ctx; in sb_aes_reinit()
257 struct sb_boot_image_header *sb_header = &ictx->payload; in sb_aes_reinit()
263 return sb_aes_init(ictx, iv, enc); in sb_aes_reinit()
[all …]
/OK3568_Linux_fs/kernel/fs/ntfs/
H A Dindex.c27 ntfs_index_context *ictx; in ntfs_index_ctx_get() local
29 ictx = kmem_cache_alloc(ntfs_index_ctx_cache, GFP_NOFS); in ntfs_index_ctx_get()
30 if (ictx) in ntfs_index_ctx_get()
31 *ictx = (ntfs_index_context){ .idx_ni = idx_ni }; in ntfs_index_ctx_get()
32 return ictx; in ntfs_index_ctx_get()
43 void ntfs_index_ctx_put(ntfs_index_context *ictx) in ntfs_index_ctx_put() argument
45 if (ictx->entry) { in ntfs_index_ctx_put()
46 if (ictx->is_in_root) { in ntfs_index_ctx_put()
47 if (ictx->actx) in ntfs_index_ctx_put()
48 ntfs_attr_put_search_ctx(ictx->actx); in ntfs_index_ctx_put()
[all …]
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 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 …]
/OK3568_Linux_fs/kernel/arch/s390/crypto/
H A Dsha3_512_s390.c48 const struct sha3_state *ictx = in; in sha3_512_import() local
50 if (unlikely(ictx->rsizw)) in sha3_512_import()
52 sctx->count = ictx->rsiz; in sha3_512_import()
54 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_512_import()
55 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_512_import()
64 const struct sha3_state *ictx = in; in sha3_384_import() local
66 if (unlikely(ictx->rsizw)) in sha3_384_import()
68 sctx->count = ictx->rsiz; in sha3_384_import()
70 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_384_import()
71 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_384_import()
H A Dsha3_256_s390.c47 const struct sha3_state *ictx = in; in sha3_256_import() local
49 sctx->count = ictx->rsiz; in sha3_256_import()
50 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_256_import()
51 memcpy(sctx->buf, ictx->buf, sizeof(ictx->buf)); in sha3_256_import()
60 const struct sha3_state *ictx = in; in sha3_224_import() local
62 sctx->count = ictx->rsiz; in sha3_224_import()
63 memcpy(sctx->state, ictx->st, sizeof(ictx->st)); in sha3_224_import()
64 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()
/OK3568_Linux_fs/kernel/crypto/
H A Dessiv.c265 static int essiv_init_tfm(struct essiv_instance_ctx *ictx, in essiv_init_tfm() argument
272 essiv_cipher = crypto_alloc_cipher(ictx->essiv_cipher_name, 0, 0); in essiv_init_tfm()
276 hash = crypto_alloc_shash(ictx->shash_driver_name, 0, 0); in essiv_init_tfm()
295 struct essiv_instance_ctx *ictx = skcipher_instance_ctx(inst); in essiv_skcipher_init_tfm() local
300 skcipher = crypto_spawn_skcipher(&ictx->u.skcipher_spawn); in essiv_skcipher_init_tfm()
307 err = essiv_init_tfm(ictx, tctx); in essiv_skcipher_init_tfm()
320 struct essiv_instance_ctx *ictx = aead_instance_ctx(inst); in essiv_aead_init_tfm() local
329 aead = crypto_spawn_aead(&ictx->u.aead_spawn); in essiv_aead_init_tfm()
340 err = essiv_init_tfm(ictx, tctx); in essiv_aead_init_tfm()
370 struct essiv_instance_ctx *ictx = skcipher_instance_ctx(inst); in essiv_skcipher_free_instance() local
[all …]
H A Dadiantum.c400 struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); in adiantum_init_tfm() local
408 streamcipher = crypto_spawn_skcipher(&ictx->streamcipher_spawn); in adiantum_init_tfm()
412 blockcipher = crypto_spawn_cipher(&ictx->blockcipher_spawn); in adiantum_init_tfm()
418 hash = crypto_spawn_shash(&ictx->hash_spawn); in adiantum_init_tfm()
460 struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); in adiantum_free_instance() local
462 crypto_drop_skcipher(&ictx->streamcipher_spawn); in adiantum_free_instance()
463 crypto_drop_cipher(&ictx->blockcipher_spawn); in adiantum_free_instance()
464 crypto_drop_shash(&ictx->hash_spawn); in adiantum_free_instance()
497 struct adiantum_instance_ctx *ictx; in adiantum_create() local
507 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in adiantum_create()
[all …]
H A Dauthenc.c117 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in authenc_geniv_ahash_done() local
119 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in authenc_geniv_ahash_done()
137 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_genicv() local
140 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_genicv()
197 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_encrypt() local
202 ictx->reqoff); in crypto_authenc_encrypt()
235 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_decrypt_tail() local
237 struct ahash_request *ahreq = (void *)(areq_ctx->tail + ictx->reqoff); in crypto_authenc_decrypt_tail()
239 ictx->reqoff); in crypto_authenc_decrypt_tail()
284 struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_decrypt() local
[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()
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()
H A Dccm.c396 struct ccm_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_ccm_init_tfm() local
403 mac = crypto_spawn_ahash(&ictx->mac); in crypto_ccm_init_tfm()
407 ctr = crypto_spawn_skcipher(&ictx->ctr); in crypto_ccm_init_tfm()
453 struct ccm_instance_ctx *ictx; in crypto_ccm_create_common() local
462 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in crypto_ccm_create_common()
465 ictx = aead_instance_ctx(inst); in crypto_ccm_create_common()
467 err = crypto_grab_ahash(&ictx->mac, aead_crypto_instance(inst), in crypto_ccm_create_common()
471 mac = crypto_spawn_ahash_alg(&ictx->mac); in crypto_ccm_create_common()
478 err = crypto_grab_skcipher(&ictx->ctr, aead_crypto_instance(inst), in crypto_ccm_create_common()
482 ctr = crypto_spawn_skcipher_alg(&ictx->ctr); in crypto_ccm_create_common()
H A Dxts.c298 struct xts_instance_ctx *ictx = skcipher_instance_ctx(inst); in xts_init_tfm() local
303 child = crypto_spawn_skcipher(&ictx->spawn); in xts_init_tfm()
309 tweak = crypto_alloc_cipher(ictx->name, 0, 0); in xts_init_tfm()
333 struct xts_instance_ctx *ictx = skcipher_instance_ctx(inst); in xts_free_instance() local
335 crypto_drop_skcipher(&ictx->spawn); in xts_free_instance()
H A Drsa-pkcs1pad.c385 struct pkcs1pad_inst_ctx *ictx = akcipher_instance_ctx(inst); in pkcs1pad_sign() local
386 const struct rsa_asn1_template *digest_info = ictx->digest_info; in pkcs1pad_sign()
442 struct pkcs1pad_inst_ctx *ictx = akcipher_instance_ctx(inst); in pkcs1pad_verify_complete() local
443 const struct rsa_asn1_template *digest_info = ictx->digest_info; in pkcs1pad_verify_complete()
572 struct pkcs1pad_inst_ctx *ictx = akcipher_instance_ctx(inst); in pkcs1pad_init_tfm() local
576 child_tfm = crypto_spawn_akcipher(&ictx->spawn); in pkcs1pad_init_tfm()
H A Dcryptd.c189 struct cryptd_instance_ctx *ictx = crypto_instance_ctx(inst); in cryptd_get_queue() local
190 return ictx->queue; in cryptd_get_queue()
337 struct skcipherd_instance_ctx *ictx = skcipher_instance_ctx(inst); in cryptd_skcipher_init_tfm() local
338 struct crypto_skcipher_spawn *spawn = &ictx->spawn; in cryptd_skcipher_init_tfm()
427 struct hashd_instance_ctx *ictx = crypto_instance_ctx(inst); in cryptd_hash_init_tfm() local
428 struct crypto_shash_spawn *spawn = &ictx->spawn; in cryptd_hash_init_tfm()
790 struct aead_instance_ctx *ictx = aead_instance_ctx(inst); in cryptd_aead_init_tfm() local
791 struct crypto_aead_spawn *spawn = &ictx->aead_spawn; in cryptd_aead_init_tfm()
/OK3568_Linux_fs/kernel/drivers/dma/idxd/
H A Dcdev.c28 static struct idxd_cdev_context ictx[IDXD_TYPE_MAX] = { variable
44 cdev_ctx = &ictx[wq->idxd->type]; in idxd_cdev_dev_release()
194 return MAJOR(ictx[idxd->type].devt); in idxd_cdev_get_major()
213 cdev_ctx = &ictx[wq->idxd->type]; in idxd_wq_add_cdev()
253 cdev_ctx = &ictx[wq->idxd->type]; in idxd_wq_del_cdev()
265 ida_init(&ictx[i].minor_ida); in idxd_cdev_register()
266 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register()
267 ictx[i].name); in idxd_cdev_register()
276 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_register()
286 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/vproc/
H A Dmpp_vproc_dev.cpp60 void put_iep_ctx(iep_com_ctx *ictx) in put_iep_ctx() argument
62 if (ictx->ops->release) in put_iep_ctx()
63 ictx->ops->release(ictx); in put_iep_ctx()
/OK3568_Linux_fs/external/mpp/test/
H A Dmpp_event_trigger.c226 struct event_ctx_impl *ictx = (struct event_ctx_impl *)ctx; in event_ctx_release() local
230 if (ictx->flag) { in event_ctx_release()
231 ictx->flag = 0; in event_ctx_release()
232 ictx->semval = 0; in event_ctx_release()
233 pthread_cond_signal(&ictx->condition); in event_ctx_release()
236 pthread_join(ictx->thr, &ret); in event_ctx_release()
238 free(ictx); in event_ctx_release()
H A Dmpp_event_trigger.h39 void event_ctx_release(struct event_ctx *ictx);
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/broadcom/
H A Dcnic.c1699 struct iscsi_context *ictx; in cnic_setup_bnx2x_ctx() local
1710 ictx = cnic_get_bnx2x_ctx(dev, cid, 1, &context_addr); in cnic_setup_bnx2x_ctx()
1711 if (ictx == NULL) in cnic_setup_bnx2x_ctx()
1716 ictx->xstorm_ag_context.hq_prod = 1; in cnic_setup_bnx2x_ctx()
1718 ictx->xstorm_st_context.iscsi.first_burst_length = in cnic_setup_bnx2x_ctx()
1720 ictx->xstorm_st_context.iscsi.max_send_pdu_length = in cnic_setup_bnx2x_ctx()
1722 ictx->xstorm_st_context.iscsi.sq_pbl_base.lo = in cnic_setup_bnx2x_ctx()
1724 ictx->xstorm_st_context.iscsi.sq_pbl_base.hi = in cnic_setup_bnx2x_ctx()
1726 ictx->xstorm_st_context.iscsi.sq_curr_pbe.lo = req2->sq_first_pte.hi; in cnic_setup_bnx2x_ctx()
1727 ictx->xstorm_st_context.iscsi.sq_curr_pbe.hi = req2->sq_first_pte.lo; in cnic_setup_bnx2x_ctx()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/vproc/iep2/
H A Diep2.c72 static MPP_RET iep2_init(IepCtx *ictx) in iep2_init() argument
75 struct iep2_api_ctx *ctx = *ictx; in iep2_init()
213 static MPP_RET iep2_deinit(IepCtx ictx) in iep2_deinit() argument
215 struct iep2_api_ctx *ctx = ictx; in iep2_deinit()
423 static MPP_RET iep2_control(IepCtx ictx, IepCmd cmd, void *iparam) in iep2_control() argument
425 struct iep2_api_ctx *ctx = ictx; in iep2_control()

12