/linux/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_aead.c | 37 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aes_gcm_setkey() local 46 fctx = nctx->u.fctx; in nitrox_aes_gcm_setkey() 61 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aead_setauthsize() local 62 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_setauthsize() 216 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aes_gcm_enc() local 219 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_enc() 234 rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_aes_gcm_enc() 243 return nitrox_process_se_request(nctx->ndev, creq, nitrox_aead_callback, in nitrox_aes_gcm_enc() 250 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aes_gcm_dec() local 253 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_dec() [all …]
|
H A D | nitrox_skcipher.c | 110 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm); in nitrox_skcipher_init() local 114 nctx->ndev = nitrox_get_first_device(); in nitrox_skcipher_init() 115 if (!nctx->ndev) in nitrox_skcipher_init() 119 chdr = crypto_alloc_context(nctx->ndev); in nitrox_skcipher_init() 121 nitrox_put_device(nctx->ndev); in nitrox_skcipher_init() 125 nctx->callback = nitrox_skcipher_callback; in nitrox_skcipher_init() 126 nctx->chdr = chdr; in nitrox_skcipher_init() 127 nctx->u.ctx_handle = (uintptr_t)((u8 *)chdr->vaddr + in nitrox_skcipher_init() 137 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm); in nitrox_cbc_init() local 143 nctx->callback = nitrox_cbc_cipher_callback; in nitrox_cbc_init() [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-riscv-intc.c | 280 unsigned int nctx = 0; in acpi_rintc_get_plic_nr_contexts() local 283 nctx++; in acpi_rintc_get_plic_nr_contexts() 285 return nctx; in acpi_rintc_get_plic_nr_contexts()
|
/linux/drivers/crypto/caam/ |
H A D | caamalg_qi2.h | 88 struct dpaa2_io_notification_ctx nctx; member
|
H A D | caamalg_qi2.c | 4674 static void dpaa2_caam_fqdan_cb(struct dpaa2_io_notification_ctx *nctx) in dpaa2_caam_fqdan_cb() argument 4678 ppriv = container_of(nctx, struct dpaa2_caam_priv_per_cpu, nctx); in dpaa2_caam_fqdan_cb() 4685 struct dpaa2_io_notification_ctx *nctx; in dpaa2_dpseci_dpio_setup() local 4692 nctx = &ppriv->nctx; in dpaa2_dpseci_dpio_setup() 4693 nctx->is_cdan = 0; in dpaa2_dpseci_dpio_setup() 4694 nctx->id = ppriv->rsp_fqid; in dpaa2_dpseci_dpio_setup() 4695 nctx->desired_cpu = cpu; in dpaa2_dpseci_dpio_setup() 4696 nctx->cb = dpaa2_caam_fqdan_cb; in dpaa2_dpseci_dpio_setup() 4700 err = dpaa2_io_service_register(ppriv->dpio, nctx, dev); in dpaa2_dpseci_dpio_setup() 4703 nctx->cb = NULL; in dpaa2_dpseci_dpio_setup() [all …]
|
/linux/drivers/dma/fsl-dpaa2-qdma/ |
H A D | dpaa2-qdma.h | 136 struct dpaa2_io_notification_ctx nctx; member
|
/linux/security/ |
H A D | security.c | 886 struct lsm_ctx *nctx = NULL; in lsm_fill_user_ctx() local 890 nctx_len = ALIGN(struct_size(nctx, ctx, val_len), sizeof(void *)); in lsm_fill_user_ctx() 900 nctx = kzalloc(nctx_len, GFP_KERNEL); in lsm_fill_user_ctx() 901 if (nctx == NULL) { in lsm_fill_user_ctx() 905 nctx->id = id; in lsm_fill_user_ctx() 906 nctx->flags = flags; in lsm_fill_user_ctx() 907 nctx->len = nctx_len; in lsm_fill_user_ctx() 908 nctx->ctx_len = val_len; in lsm_fill_user_ctx() 909 memcpy(nctx->ctx, val, val_len); in lsm_fill_user_ctx() 911 if (copy_to_user(uctx, nctx, nctx_len)) in lsm_fill_user_ctx() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth.c | 2018 err = dpaa2_io_service_rearm(ch->dpio, &ch->nctx); in dpaa2_eth_poll() 2022 ch->nctx.desired_cpu); in dpaa2_eth_poll() 3044 ch = container_of(ctx, struct dpaa2_eth_channel, nctx); in dpaa2_eth_cdan_cb() 3160 struct dpaa2_io_notification_ctx *nctx; in dpaa2_eth_setup_dpio() local 3191 nctx = &channel->nctx; in dpaa2_eth_setup_dpio() 3192 nctx->is_cdan = 1; in dpaa2_eth_setup_dpio() 3193 nctx->cb = dpaa2_eth_cdan_cb; in dpaa2_eth_setup_dpio() 3194 nctx->id = channel->ch_id; in dpaa2_eth_setup_dpio() 3195 nctx->desired_cpu = i; in dpaa2_eth_setup_dpio() 3199 err = dpaa2_io_service_register(channel->dpio, nctx, dev); in dpaa2_eth_setup_dpio() [all …]
|
H A D | dpaa2-switch.h | 97 struct dpaa2_io_notification_ctx nctx; member
|
H A D | dpaa2-eth-debugfs.c | 109 ch->nctx.desired_cpu, in dpaa2_dbg_ch_show()
|
H A D | dpaa2-eth.h | 487 struct dpaa2_io_notification_ctx nctx; member
|
/linux/drivers/gpio/ |
H A D | gpio-tangier.c | 416 size_t nctx = DIV_ROUND_UP(info->ngpio, 32); in devm_tng_gpio_probe() local 420 gpio->ctx = devm_kcalloc(dev, nctx, sizeof(*gpio->ctx), GFP_KERNEL); in devm_tng_gpio_probe()
|
/linux/crypto/ |
H A D | cryptd.c | 452 struct cryptd_hash_ctx *nctx = crypto_ahash_ctx(ntfm); in cryptd_hash_clone_tfm() local 460 nctx->child = hash; in cryptd_hash_clone_tfm()
|