Home
last modified time | relevance | path

Searched refs:creq (Results 1 – 23 of 23) sorted by relevance

/openbmc/linux/drivers/crypto/marvell/cesa/
H A Dhash.c33 if (!creq->last_req) in mv_cesa_ahash_req_iter_init()
188 creq->cache, creq->cache_ptr); in mv_cesa_ahash_std_step()
191 creq->cache, creq->cache_ptr); in mv_cesa_ahash_std_step()
243 i = mv_cesa_ahash_pad_req(creq, creq->cache); in mv_cesa_ahash_std_step()
445 memset(creq, 0, sizeof(*creq)); in mv_cesa_ahash_init()
454 creq->len = 0; in mv_cesa_ahash_init()
482 creq->cache + creq->cache_ptr, in mv_cesa_ahash_cache_req()
534 memcpy(ahashdreq->cache, creq->cache, creq->cache_ptr); in mv_cesa_ahash_dma_add_cache()
730 creq->cache_ptr = req->nbytes + creq->cache_ptr - in mv_cesa_ahash_dma_req_init()
853 memcpy(cache, creq->cache, creq->cache_ptr); in mv_cesa_ahash_export()
[all …]
H A Dcipher.c72 mv_cesa_dma_cleanup(&creq->base); in mv_cesa_skcipher_dma_cleanup()
147 struct mv_cesa_req *basereq = &creq->base; in mv_cesa_skcipher_process()
161 mv_cesa_dma_step(&creq->base); in mv_cesa_skcipher_step()
170 struct mv_cesa_req *basereq = &creq->base; in mv_cesa_skcipher_dma_prepare()
191 creq->base.engine = engine; in mv_cesa_skcipher_prepare()
221 basereq = &creq->base; in mv_cesa_skcipher_complete()
318 struct mv_cesa_req *basereq = &creq->base; in mv_cesa_skcipher_dma_req_init()
434 if (creq->src_nents < 0) { in mv_cesa_skcipher_req_init()
436 return creq->src_nents; in mv_cesa_skcipher_req_init()
439 if (creq->dst_nents < 0) { in mv_cesa_skcipher_req_init()
[all …]
H A Dcesa.c170 struct mv_cesa_req *creq) in mv_cesa_queue_req() argument
173 struct mv_cesa_engine *engine = creq->engine; in mv_cesa_queue_req()
177 if ((mv_cesa_req_get_type(creq) == CESA_DMA_REQ) && in mv_cesa_queue_req()
179 mv_cesa_tdma_chain(engine, creq); in mv_cesa_queue_req()
H A Dcesa.h731 struct mv_cesa_req *creq);
/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_rcfw.c733 struct bnxt_qplib_creq_ctx *creq = &rcfw->creq; in bnxt_qplib_service_creq() local
797 creq = &rcfw->creq; in bnxt_qplib_creq_irq()
798 hwq = &creq->hwq; in bnxt_qplib_creq_irq()
940 creq = &rcfw->creq; in bnxt_qplib_alloc_rcfw_channel()
995 creq = &rcfw->creq; in bnxt_qplib_rcfw_stop_irq()
1019 creq = &rcfw->creq; in bnxt_qplib_disable_rcfw_channel()
1030 creq->msix_vec = 0; in bnxt_qplib_disable_rcfw_channel()
1040 creq = &rcfw->creq; in bnxt_qplib_rcfw_start_irq()
1043 if (creq->requested) in bnxt_qplib_rcfw_start_irq()
1148 creq = &rcfw->creq; in bnxt_qplib_start_rcfw()
[all …]
H A Dmain.c1421 bnxt_re_net_ring_free(rdev, rdev->rcfw.creq.ring_id, type); in bnxt_re_dev_uninit()
1448 struct bnxt_qplib_creq_ctx *creq; in bnxt_re_dev_init() local
1499 creq = &rdev->rcfw.creq; in bnxt_re_dev_init()
1500 rattr.dma_arr = creq->hwq.pbl[PBL_LVL_0].pg_map_arr; in bnxt_re_dev_init()
1501 rattr.pages = creq->hwq.pbl[creq->hwq.level].pg_count; in bnxt_re_dev_init()
1506 rc = bnxt_re_net_ring_alloc(rdev, &rattr, &creq->ring_id); in bnxt_re_dev_init()
1605 bnxt_re_net_ring_free(rdev, rdev->rcfw.creq.ring_id, type); in bnxt_re_dev_init()
H A Dqplib_rcfw.h223 struct bnxt_qplib_creq_ctx creq; member
/openbmc/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_req.h213 struct se_crypto_request creq; member
623 struct se_crypto_request *creq = &nkreq->creq; in alloc_src_req_buf() local
648 struct se_crypto_request *creq = &nkreq->creq; in nitrox_creq_set_src_sg() local
651 sg = creq->src; in nitrox_creq_set_src_sg()
670 struct se_crypto_request *creq = &nkreq->creq; in alloc_dst_req_buf() local
681 struct se_crypto_request *creq = &nkreq->creq; in nitrox_creq_set_orh() local
684 set_orh_value(creq->orh); in nitrox_creq_set_orh()
689 struct se_crypto_request *creq = &nkreq->creq; in nitrox_creq_set_comp() local
692 set_comp_value(creq->comp); in nitrox_creq_set_comp()
704 struct se_crypto_request *creq = &nkreq->creq; in nitrox_creq_set_dst_sg() local
[all …]
H A Dnitrox_aead.c153 struct se_crypto_request *creq = &rctx->nkreq.creq; in nitrox_set_creq() local
157 creq->flags = rctx->flags; in nitrox_set_creq()
161 creq->ctrl.value = 0; in nitrox_set_creq()
162 creq->opcode = FLEXI_CRYPTO_ENCRYPT_HMAC; in nitrox_set_creq()
163 creq->ctrl.s.arg = rctx->ctrl_arg; in nitrox_set_creq()
170 creq->gph.param3 = cpu_to_be16(param3.param); in nitrox_set_creq()
172 creq->ctx_handle = rctx->ctx_handle; in nitrox_set_creq()
218 struct se_crypto_request *creq = &rctx->nkreq.creq; in nitrox_aes_gcm_enc() local
252 struct se_crypto_request *creq = &rctx->nkreq.creq; in nitrox_aes_gcm_dec() local
446 struct se_crypto_request *creq = &aead_rctx->nkreq.creq; in nitrox_rfc4106_enc() local
[all …]
H A Dnitrox_skcipher.c92 if (nkreq->creq.ctrl.s.arg == ENCRYPT) { in nitrox_cbc_cipher_callback()
253 struct se_crypto_request *creq; in nitrox_skcipher_crypt() local
256 creq = &nkreq->creq; in nitrox_skcipher_crypt()
257 creq->flags = skreq->base.flags; in nitrox_skcipher_crypt()
262 creq->ctrl.value = 0; in nitrox_skcipher_crypt()
263 creq->opcode = FLEXI_CRYPTO_ENCRYPT_HMAC; in nitrox_skcipher_crypt()
264 creq->ctrl.s.arg = (enc ? ENCRYPT : DECRYPT); in nitrox_skcipher_crypt()
267 creq->gph.param1 = 0; in nitrox_skcipher_crypt()
269 creq->gph.param2 = cpu_to_be16(ivsize); in nitrox_skcipher_crypt()
270 creq->gph.param3 = 0; in nitrox_skcipher_crypt()
[all …]
H A Dnitrox_reqmgr.c214 struct se_crypto_request *creq) in softreq_map_iobuf() argument
218 ret = dma_map_inbufs(sr, creq); in softreq_map_iobuf()
222 ret = dma_map_outbufs(sr, creq); in softreq_map_iobuf()
/openbmc/linux/crypto/
H A Dchacha20poly1305.c127 struct chacha_req *creq = &rctx->u.chacha; in chacha_decrypt() local
134 chacha_iv(creq->iv, req, 1); in chacha_decrypt()
145 rctx->cryptlen, creq->iv); in chacha_decrypt()
146 err = crypto_skcipher_decrypt(&creq->req); in chacha_decrypt()
365 struct chacha_req *creq = &rctx->u.chacha; in poly_genkey() local
379 chacha_iv(creq->iv, req, 0); in poly_genkey()
384 skcipher_request_set_crypt(&creq->req, creq->src, creq->src, in poly_genkey()
385 POLY1305_KEY_SIZE, creq->iv); in poly_genkey()
387 err = crypto_skcipher_decrypt(&creq->req); in poly_genkey()
410 chacha_iv(creq->iv, req, 1); in chacha_encrypt()
[all …]
H A Dpcrypt.c96 struct aead_request *creq = pcrypt_request_ctx(preq); in pcrypt_aead_encrypt() local
110 aead_request_set_tfm(creq, ctx->child); in pcrypt_aead_encrypt()
111 aead_request_set_callback(creq, flags & ~CRYPTO_TFM_REQ_MAY_SLEEP, in pcrypt_aead_encrypt()
113 aead_request_set_crypt(creq, req->src, req->dst, in pcrypt_aead_encrypt()
115 aead_request_set_ad(creq, req->assoclen); in pcrypt_aead_encrypt()
145 struct aead_request *creq = pcrypt_request_ctx(preq); in pcrypt_aead_decrypt() local
159 aead_request_set_tfm(creq, ctx->child); in pcrypt_aead_decrypt()
160 aead_request_set_callback(creq, flags & ~CRYPTO_TFM_REQ_MAY_SLEEP, in pcrypt_aead_decrypt()
162 aead_request_set_crypt(creq, req->src, req->dst, in pcrypt_aead_decrypt()
164 aead_request_set_ad(creq, req->assoclen); in pcrypt_aead_decrypt()
/openbmc/linux/tools/net/ynl/samples/
H A Dethtool.c13 struct ethtool_channels_get_req_dump creq = {}; in main() local
23 creq._present.header = 1; /* ethtool needs an empty nest, sigh */ in main()
24 channels = ethtool_channels_get_dump(ys, &creq); in main()
/openbmc/linux/drivers/crypto/ccree/
H A Dcc_request_mgr.c47 struct cc_crypto_req creq; member
348 struct cc_crypto_req *creq; in cc_proc_backlog() local
362 creq = &bli->creq; in cc_proc_backlog()
363 req = creq->user_arg; in cc_proc_backlog()
370 creq->user_cb(dev, req, -EINPROGRESS); in cc_proc_backlog()
387 cc_do_send_request(drvdata, &bli->creq, bli->desc, bli->len, in cc_proc_backlog()
435 memcpy(&bli->creq, cc_req, sizeof(*cc_req)); in cc_send_request()
/openbmc/linux/drivers/net/wireless/marvell/libertas/
H A Dcfg.c1278 creq = kzalloc(sizeof(*creq) + sizeof(struct cfg80211_ssid) + in _new_connect_scan_req()
1281 if (!creq) in _new_connect_scan_req()
1285 creq->ssids = (void *)&creq->channels[n_channels]; in _new_connect_scan_req()
1286 creq->n_channels = n_channels; in _new_connect_scan_req()
1287 creq->n_ssids = 1; in _new_connect_scan_req()
1309 creq->n_channels = i; in _new_connect_scan_req()
1316 kfree(creq); in _new_connect_scan_req()
1317 creq = NULL; in _new_connect_scan_req()
1320 return creq; in _new_connect_scan_req()
1335 struct cfg80211_scan_request *creq; in lbs_cfg_connect() local
[all …]
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_surface.c1365 rep->creq = rep_ext.creq.base; in vmw_gb_surface_reference_ioctl()
1629 rep->creq.base.format = metadata->format; in vmw_gb_surface_reference_internal()
1630 rep->creq.base.mip_levels = metadata->mip_levels[0]; in vmw_gb_surface_reference_internal()
1631 rep->creq.base.drm_surface_flags = 0; in vmw_gb_surface_reference_internal()
1634 rep->creq.base.array_size = metadata->array_size; in vmw_gb_surface_reference_internal()
1635 rep->creq.base.buffer_handle = backup_handle; in vmw_gb_surface_reference_internal()
1636 rep->creq.base.base_size = metadata->base_size; in vmw_gb_surface_reference_internal()
1644 rep->creq.version = drm_vmw_gb_surface_v1; in vmw_gb_surface_reference_internal()
1645 rep->creq.svga3d_flags_upper_32_bits = in vmw_gb_surface_reference_internal()
1648 rep->creq.quality_level = metadata->quality_level; in vmw_gb_surface_reference_internal()
[all …]
/openbmc/linux/net/wireless/
H A Dscan.c3171 creq = kzalloc(sizeof(*creq) + sizeof(struct cfg80211_ssid) + in cfg80211_wext_siwscan()
3174 if (!creq) in cfg80211_wext_siwscan()
3177 creq->wiphy = wiphy; in cfg80211_wext_siwscan()
3180 creq->ssids = (void *)&creq->channels[n_channels]; in cfg80211_wext_siwscan()
3182 creq->n_ssids = 1; in cfg80211_wext_siwscan()
3183 creq->scan_start = jiffies; in cfg80211_wext_siwscan()
3231 creq->n_channels = i; in cfg80211_wext_siwscan()
3244 creq->n_ssids = 0; in cfg80211_wext_siwscan()
3255 rdev->scan_req = creq; in cfg80211_wext_siwscan()
3263 creq = NULL; in cfg80211_wext_siwscan()
[all …]
/openbmc/linux/include/uapi/drm/
H A Dvmwgfx_drm.h1009 struct drm_vmw_gb_surface_create_req creq; member
1216 struct drm_vmw_gb_surface_create_ext_req creq; member
/openbmc/linux/drivers/crypto/inside-secure/
H A Dsafexcel_cipher.c1706 struct safexcel_cipher_req *creq = aead_request_ctx(req); in safexcel_aead_encrypt() local
1708 return safexcel_queue_req(&req->base, creq, SAFEXCEL_ENCRYPT); in safexcel_aead_encrypt()
1713 struct safexcel_cipher_req *creq = aead_request_ctx(req); in safexcel_aead_decrypt() local
2761 struct safexcel_cipher_req *creq = aead_request_ctx(req); in safexcel_ccm_encrypt() local
2771 struct safexcel_cipher_req *creq = aead_request_ctx(req); in safexcel_ccm_decrypt() local
2900 struct safexcel_cipher_req *creq = aead_request_ctx(req); in safexcel_aead_chachapoly_crypt() local
2916 return safexcel_queue_req(&req->base, creq, dir); in safexcel_aead_chachapoly_crypt()
3421 struct safexcel_cipher_req *creq = aead_request_ctx(req); in safexcel_aead_sm4cbc_sm3_encrypt() local
3435 struct safexcel_cipher_req *creq = aead_request_ctx(req); in safexcel_aead_sm4cbc_sm3_decrypt() local
3707 struct safexcel_cipher_req *creq = aead_request_ctx(req); in safexcel_rfc4309_ccm_encrypt() local
[all …]
/openbmc/linux/drivers/usb/gadget/function/
H A Df_fs.c3285 const struct usb_ctrlrequest *creq) in ffs_func_setup() argument
3292 pr_vdebug("creq->bRequestType = %02x\n", creq->bRequestType); in ffs_func_setup()
3293 pr_vdebug("creq->bRequest = %02x\n", creq->bRequest); in ffs_func_setup()
3311 switch (creq->bRequestType & USB_RECIP_MASK) { in ffs_func_setup()
3319 ret = ffs_func_revmap_ep(func, le16_to_cpu(creq->wIndex)); in ffs_func_setup()
3328 ret = le16_to_cpu(creq->wIndex); in ffs_func_setup()
3334 ffs->ev.setup = *creq; in ffs_func_setup()
3343 const struct usb_ctrlrequest *creq, in ffs_func_req_match() argument
3351 switch (creq->bRequestType & USB_RECIP_MASK) { in ffs_func_req_match()
3354 le16_to_cpu(creq->wIndex)) >= 0); in ffs_func_req_match()
[all …]
/openbmc/linux/drivers/usb/gadget/udc/
H A Daspeed_udc.c216 void __iomem *creq; member
1001 memcpy_fromio(&crq, udc->creq, sizeof(crq)); in ast_udc_getstatus()
1039 memcpy_fromio(&crq, udc->creq, sizeof(crq)); in ast_udc_ep0_handle_setup()
1520 udc->creq = udc->reg + AST_UDC_SETUP0; in ast_udc_probe()
/openbmc/linux/fs/smb/client/
H A Dsmb2ops.c4228 void *creq; in crypt_message() local
4263 creq = smb2_get_aead_req(tfm, rqst, num_rqst, sign, &iv, &req, &sg, in crypt_message()
4265 if (IS_ERR(creq)) in crypt_message()
4266 return PTR_ERR(creq); in crypt_message()
4294 kvfree_sensitive(creq, sensitive_size); in crypt_message()