Home
last modified time | relevance | path

Searched refs:nctx (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/drivers/crypto/cavium/nitrox/
Dnitrox_aead.c38 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aes_gcm_setkey() local
49 fctx = nctx->u.fctx; in nitrox_aes_gcm_setkey()
64 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aead_setauthsize() local
65 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_setauthsize()
192 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aes_gcm_enc() local
195 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_enc()
207 rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_aes_gcm_enc()
216 return nitrox_process_se_request(nctx->ndev, creq, nitrox_aead_callback, in nitrox_aes_gcm_enc()
223 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aes_gcm_dec() local
226 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_dec()
[all …]
Dnitrox_skcipher.c52 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm); in nitrox_skcipher_init() local
56 nctx->ndev = nitrox_get_first_device(); in nitrox_skcipher_init()
57 if (!nctx->ndev) in nitrox_skcipher_init()
61 chdr = crypto_alloc_context(nctx->ndev); in nitrox_skcipher_init()
63 nitrox_put_device(nctx->ndev); in nitrox_skcipher_init()
66 nctx->chdr = chdr; in nitrox_skcipher_init()
67 nctx->u.ctx_handle = (uintptr_t)((u8 *)chdr->vaddr + in nitrox_skcipher_init()
76 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm); in nitrox_skcipher_exit() local
79 if (nctx->u.ctx_handle) { in nitrox_skcipher_exit()
80 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_skcipher_exit()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/gt/
Dselftest_lrc.c1674 unsigned int nctx, in nop_virtual_engine() argument
1687 GEM_BUG_ON(!nctx || nctx > ARRAY_SIZE(ctx)); in nop_virtual_engine()
1689 for (n = 0; n < nctx; n++) { in nop_virtual_engine()
1693 nctx = n; in nop_virtual_engine()
1702 nctx = n; in nop_virtual_engine()
1710 nctx = n; in nop_virtual_engine()
1723 for (nc = 0; nc < nctx; nc++) { in nop_virtual_engine()
1737 for (nc = 0; nc < nctx; nc++) { in nop_virtual_engine()
1750 for (nc = 0; nc < nctx; nc++) { in nop_virtual_engine()
1780 nctx, ve[0]->engine->name, ktime_to_ns(times[0]), in nop_virtual_engine()
[all …]
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth.c1164 err = dpaa2_io_service_rearm(ch->dpio, &ch->nctx); in dpaa2_eth_poll()
1168 ch->nctx.desired_cpu); in dpaa2_eth_poll()
2036 ch = container_of(ctx, struct dpaa2_eth_channel, nctx); in cdan_cb()
2154 struct dpaa2_io_notification_ctx *nctx; in setup_dpio() local
2183 nctx = &channel->nctx; in setup_dpio()
2184 nctx->is_cdan = 1; in setup_dpio()
2185 nctx->cb = cdan_cb; in setup_dpio()
2186 nctx->id = channel->ch_id; in setup_dpio()
2187 nctx->desired_cpu = i; in setup_dpio()
2191 err = dpaa2_io_service_register(channel->dpio, nctx, dev); in setup_dpio()
[all …]
Ddpaa2-eth-debugfs.c137 ch->nctx.desired_cpu, in dpaa2_dbg_ch_show()
Ddpaa2-eth.h329 struct dpaa2_io_notification_ctx nctx; member
/Linux-v5.4/drivers/crypto/caam/
Dcaamalg_qi2.h89 struct dpaa2_io_notification_ctx nctx; member
Dcaamalg_qi2.c4626 static void dpaa2_caam_fqdan_cb(struct dpaa2_io_notification_ctx *nctx) in dpaa2_caam_fqdan_cb() argument
4630 ppriv = container_of(nctx, struct dpaa2_caam_priv_per_cpu, nctx); in dpaa2_caam_fqdan_cb()
4637 struct dpaa2_io_notification_ctx *nctx; in dpaa2_dpseci_dpio_setup() local
4644 nctx = &ppriv->nctx; in dpaa2_dpseci_dpio_setup()
4645 nctx->is_cdan = 0; in dpaa2_dpseci_dpio_setup()
4646 nctx->id = ppriv->rsp_fqid; in dpaa2_dpseci_dpio_setup()
4647 nctx->desired_cpu = cpu; in dpaa2_dpseci_dpio_setup()
4648 nctx->cb = dpaa2_caam_fqdan_cb; in dpaa2_dpseci_dpio_setup()
4652 err = dpaa2_io_service_register(ppriv->dpio, nctx, dev); in dpaa2_dpseci_dpio_setup()
4655 nctx->cb = NULL; in dpaa2_dpseci_dpio_setup()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_context.c30 const unsigned int nctx = 1024; in live_nop_switch() local
57 ctx = kcalloc(nctx, sizeof(*ctx), GFP_KERNEL); in live_nop_switch()
63 for (n = 0; n < nctx; n++) { in live_nop_switch()
77 for (n = 0; n < nctx; n++) { in live_nop_switch()
86 pr_err("Failed to populated %d contexts\n", nctx); in live_nop_switch()
95 nctx, engine->name, ktime_to_ns(times[1] - times[0])); in live_nop_switch()
106 rq = igt_request_alloc(ctx[n % nctx], engine); in live_nop_switch()