| /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/dma/fsl-dpaa2-qdma/ |
| H A D | dpaa2-qdma.c | 393 struct dpaa2_qdma_priv_per_prio, nctx); in dpaa2_qdma_fqdan_cb() 468 ppriv->nctx.is_cdan = 0; in dpaa2_qdma_dpio_setup() 469 ppriv->nctx.desired_cpu = DPAA2_IO_ANY_CPU; in dpaa2_qdma_dpio_setup() 470 ppriv->nctx.id = ppriv->rsp_fqid; in dpaa2_qdma_dpio_setup() 471 ppriv->nctx.cb = dpaa2_qdma_fqdan_cb; in dpaa2_qdma_dpio_setup() 472 err = dpaa2_io_service_register(NULL, &ppriv->nctx, dev); in dpaa2_qdma_dpio_setup() 491 dpaa2_io_service_deregister(NULL, &ppriv->nctx, dev); in dpaa2_qdma_dpio_setup() 495 dpaa2_io_service_deregister(NULL, &ppriv->nctx, dev); in dpaa2_qdma_dpio_setup() 520 dpaa2_io_service_deregister(NULL, &ppriv->nctx, dev); in dpaa2_dpdmai_dpio_free() 540 rx_queue_cfg.user_ctx = ppriv->nctx.qman64; in dpaa2_dpdmai_bind() [all …]
|
| H A D | dpaa2-qdma.h | 136 struct dpaa2_io_notification_ctx nctx; member
|
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| H A D | dpaa2-switch.c | 3562 err = dpaa2_io_service_rearm(NULL, &fq->nctx); in dpaa2_switch_poll() 3572 static void dpaa2_switch_fqdan_cb(struct dpaa2_io_notification_ctx *nctx) in dpaa2_switch_fqdan_cb() argument 3576 fq = container_of(nctx, struct dpaa2_switch_fq, nctx); in dpaa2_switch_fqdan_cb() 3584 struct dpaa2_io_notification_ctx *nctx; in dpaa2_switch_setup_dpio() local 3588 nctx = ðsw->fq[i].nctx; in dpaa2_switch_setup_dpio() 3594 nctx->is_cdan = 0; in dpaa2_switch_setup_dpio() 3595 nctx->id = ethsw->fq[i].fqid; in dpaa2_switch_setup_dpio() 3596 nctx->desired_cpu = DPAA2_IO_ANY_CPU; in dpaa2_switch_setup_dpio() 3597 nctx->cb = dpaa2_switch_fqdan_cb; in dpaa2_switch_setup_dpio() 3598 err = dpaa2_io_service_register(NULL, nctx, ethsw->dev); in dpaa2_switch_setup_dpio() [all …]
|
| H A D | dpaa2-eth.c | 2019 err = dpaa2_io_service_rearm(ch->dpio, &ch->nctx); in dpaa2_eth_poll() 2023 ch->nctx.desired_cpu); in dpaa2_eth_poll() 3056 ch = container_of(ctx, struct dpaa2_eth_channel, nctx); in dpaa2_eth_cdan_cb() 3172 struct dpaa2_io_notification_ctx *nctx; in dpaa2_eth_setup_dpio() local 3203 nctx = &channel->nctx; in dpaa2_eth_setup_dpio() 3204 nctx->is_cdan = 1; in dpaa2_eth_setup_dpio() 3205 nctx->cb = dpaa2_eth_cdan_cb; in dpaa2_eth_setup_dpio() 3206 nctx->id = channel->ch_id; in dpaa2_eth_setup_dpio() 3207 nctx->desired_cpu = i; in dpaa2_eth_setup_dpio() 3211 err = dpaa2_io_service_register(channel->dpio, nctx, dev); in dpaa2_eth_setup_dpio() [all …]
|
| H A D | dpaa2-eth-debugfs.c | 109 ch->nctx.desired_cpu, in dpaa2_dbg_ch_show()
|
| H A D | dpaa2-switch.h | 101 struct dpaa2_io_notification_ctx nctx; member
|
| H A D | dpaa2-xsk.c | 408 fq = &priv->fq[ch->nctx.desired_cpu]; in dpaa2_xsk_tx()
|
| H A D | dpaa2-eth.h | 487 struct dpaa2_io_notification_ctx nctx; member
|
| /linux/security/ |
| H A D | security.c | 404 struct lsm_ctx *nctx = NULL; in lsm_fill_user_ctx() local 408 nctx_len = ALIGN(struct_size(nctx, ctx, val_len), sizeof(void *)); in lsm_fill_user_ctx() 418 nctx = kzalloc(nctx_len, GFP_KERNEL); in lsm_fill_user_ctx() 419 if (nctx == NULL) { in lsm_fill_user_ctx() 423 nctx->id = id; in lsm_fill_user_ctx() 424 nctx->flags = flags; in lsm_fill_user_ctx() 425 nctx->len = nctx_len; in lsm_fill_user_ctx() 426 nctx->ctx_len = val_len; in lsm_fill_user_ctx() 427 memcpy(nctx->ctx, val, val_len); in lsm_fill_user_ctx() 429 if (copy_to_user(uctx, nctx, nctx_le in lsm_fill_user_ctx() [all...] |
| /linux/drivers/gpu/drm/i915/gem/selftests/ |
| H A D | i915_gem_context.c | 35 const unsigned int nctx = 1024; in live_nop_switch() local 59 ctx = kzalloc_objs(*ctx, nctx); in live_nop_switch() 65 for (n = 0; n < nctx; n++) { in live_nop_switch() 79 for (n = 0; n < nctx; n++) { in live_nop_switch() 95 pr_err("Failed to populated %d contexts\n", nctx); in live_nop_switch() 106 nctx, engine->name, ktime_to_ns(times[1] - times[0])); in live_nop_switch() 120 this = igt_request_alloc(ctx[n % nctx], engine); in live_nop_switch()
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | selftest_execlists.c | 3715 unsigned int nctx, in nop_virtual_engine() argument 3727 GEM_BUG_ON(!nctx || nctx > ARRAY_SIZE(ve)); in nop_virtual_engine() 3729 for (n = 0; n < nctx; n++) { in nop_virtual_engine() 3733 nctx = n; in nop_virtual_engine() 3740 nctx = n; in nop_virtual_engine() 3753 for (nc = 0; nc < nctx; nc++) { in nop_virtual_engine() 3771 for (nc = 0; nc < nctx; nc++) { in nop_virtual_engine() 3788 for (nc = 0; nc < nctx; nc++) { in nop_virtual_engine() 3809 for (nc = 0; nc < nctx; nc++) { in nop_virtual_engine() 3823 nctx, ve[0]->engine->name, ktime_to_ns(times[0]), in nop_virtual_engine() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-tangier.c | 418 size_t nctx = DIV_ROUND_UP(info->ngpio, 32); in devm_tng_gpio_probe() local 422 gpio->ctx = devm_kcalloc(dev, nctx, sizeof(*gpio->ctx), GFP_KERNEL); in devm_tng_gpio_probe()
|
| /linux/fs/ntfs/ |
| H A D | attrib.c | 3367 struct ntfs_attr_search_ctx *nctx; in ntfs_attr_record_move_to() local 3394 nctx = ntfs_attr_get_search_ctx(ni, NULL); in ntfs_attr_record_move_to() 3395 if (!nctx) { in ntfs_attr_record_move_to() 3407 0, nctx); in ntfs_attr_record_move_to() 3425 err = ntfs_make_room_for_attr(ni_mrec, (u8 *) nctx->attr, in ntfs_attr_record_move_to() 3432 memcpy(nctx->attr, a, le32_to_cpu(a->length)); in ntfs_attr_record_move_to() 3433 nctx->attr->instance = nctx->mrec->next_attr_instance; in ntfs_attr_record_move_to() 3434 nctx->mrec->next_attr_instance = in ntfs_attr_record_move_to() 3435 cpu_to_le16((le16_to_cpu(nctx->mrec->next_attr_instance) + 1) & 0xffff); in ntfs_attr_record_move_to() 3443 ctx->al_entry->instance = nctx->attr->instance; in ntfs_attr_record_move_to() [all …]
|