Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/crypto/marvell/
Dhash.c29 struct mv_cesa_ahash_req *creq = ahash_request_ctx(req); in mv_cesa_ahash_req_iter_init() local
30 unsigned int len = req->nbytes + creq->cache_ptr; in mv_cesa_ahash_req_iter_init()
32 if (!creq->last_req) in mv_cesa_ahash_req_iter_init()
37 iter->src.op_offset = creq->cache_ptr; in mv_cesa_ahash_req_iter_init()
48 static inline int mv_cesa_ahash_dma_alloc_cache(struct mv_cesa_ahash_req *creq, in mv_cesa_ahash_dma_alloc_cache() argument
51 struct mv_cesa_ahash_dma_req *dreq = &creq->req.dma; in mv_cesa_ahash_dma_alloc_cache()
53 creq->cache = dma_pool_alloc(cesa_dev->dma->cache_pool, flags, in mv_cesa_ahash_dma_alloc_cache()
55 if (!creq->cache) in mv_cesa_ahash_dma_alloc_cache()
61 static inline int mv_cesa_ahash_std_alloc_cache(struct mv_cesa_ahash_req *creq, in mv_cesa_ahash_std_alloc_cache() argument
64 creq->cache = kzalloc(CESA_MAX_HASH_BLOCK_SIZE, flags); in mv_cesa_ahash_std_alloc_cache()
[all …]
Dcipher.c62 struct mv_cesa_ablkcipher_req *creq = ablkcipher_request_ctx(req); in mv_cesa_ablkcipher_dma_cleanup() local
65 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_ablkcipher_dma_cleanup()
67 dma_unmap_sg(cesa_dev->dev, req->src, creq->src_nents, in mv_cesa_ablkcipher_dma_cleanup()
70 dma_unmap_sg(cesa_dev->dev, req->src, creq->src_nents, in mv_cesa_ablkcipher_dma_cleanup()
73 mv_cesa_dma_cleanup(&creq->req.dma); in mv_cesa_ablkcipher_dma_cleanup()
78 struct mv_cesa_ablkcipher_req *creq = ablkcipher_request_ctx(req); in mv_cesa_ablkcipher_cleanup() local
80 if (creq->req.base.type == CESA_DMA_REQ) in mv_cesa_ablkcipher_cleanup()
86 struct mv_cesa_ablkcipher_req *creq = ablkcipher_request_ctx(req); in mv_cesa_ablkcipher_std_step() local
87 struct mv_cesa_ablkcipher_std_req *sreq = &creq->req.std; in mv_cesa_ablkcipher_std_step()
92 len = sg_pcopy_to_buffer(req->src, creq->src_nents, in mv_cesa_ablkcipher_std_step()
[all …]
/linux-4.4.14/crypto/
Dchainiv.c57 ablkcipher_request_set_callback(subreq, req->creq.base.flags & in chainiv_givencrypt()
59 req->creq.base.complete, in chainiv_givencrypt()
60 req->creq.base.data); in chainiv_givencrypt()
61 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in chainiv_givencrypt()
62 req->creq.nbytes, req->creq.info); in chainiv_givencrypt()
181 ablkcipher_request_set_callback(subreq, req->creq.base.flags, in async_chainiv_givencrypt()
182 req->creq.base.complete, in async_chainiv_givencrypt()
183 req->creq.base.data); in async_chainiv_givencrypt()
184 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in async_chainiv_givencrypt()
185 req->creq.nbytes, req->creq.info); in async_chainiv_givencrypt()
Dchacha20poly1305.c129 struct chacha_req *creq = &rctx->u.chacha; in chacha_decrypt() local
133 chacha_iv(creq->iv, req, 1); in chacha_decrypt()
144 ablkcipher_request_set_callback(&creq->req, aead_request_flags(req), in chacha_decrypt()
146 ablkcipher_request_set_tfm(&creq->req, ctx->chacha); in chacha_decrypt()
147 ablkcipher_request_set_crypt(&creq->req, src, dst, in chacha_decrypt()
148 rctx->cryptlen, creq->iv); in chacha_decrypt()
149 err = crypto_ablkcipher_decrypt(&creq->req); in chacha_decrypt()
375 struct chacha_req *creq = &rctx->u.chacha; in poly_genkey() local
386 sg_init_table(creq->src, 1); in poly_genkey()
388 sg_set_buf(creq->src, rctx->key, sizeof(rctx->key)); in poly_genkey()
[all …]
Deseqiv.c89 compl = req->creq.base.complete; in eseqiv_givencrypt()
90 data = req->creq.base.data; in eseqiv_givencrypt()
92 osrc = req->creq.src; in eseqiv_givencrypt()
93 odst = req->creq.dst; in eseqiv_givencrypt()
108 ablkcipher_request_set_callback(subreq, req->creq.base.flags, compl, in eseqiv_givencrypt()
125 req->creq.nbytes + ivsize, in eseqiv_givencrypt()
126 req->creq.info); in eseqiv_givencrypt()
128 memcpy(req->creq.info, ctx->salt, ivsize); in eseqiv_givencrypt()
Dseqiv.c47 memcpy(req->creq.info, subreq->info, crypto_ablkcipher_ivsize(geniv)); in seqiv_complete2()
115 compl = req->creq.base.complete; in seqiv_givencrypt()
116 data = req->creq.base.data; in seqiv_givencrypt()
117 info = req->creq.info; in seqiv_givencrypt()
123 info = kmalloc(ivsize, req->creq.base.flags & in seqiv_givencrypt()
133 ablkcipher_request_set_callback(subreq, req->creq.base.flags, compl, in seqiv_givencrypt()
135 ablkcipher_request_set_crypt(subreq, req->creq.src, req->creq.dst, in seqiv_givencrypt()
136 req->creq.nbytes, info); in seqiv_givencrypt()
142 if (unlikely(info != req->creq.info)) in seqiv_givencrypt()
Dpcrypt.c155 struct aead_request *creq = pcrypt_request_ctx(preq); in pcrypt_aead_encrypt() local
166 aead_request_set_tfm(creq, ctx->child); in pcrypt_aead_encrypt()
167 aead_request_set_callback(creq, flags & ~CRYPTO_TFM_REQ_MAY_SLEEP, in pcrypt_aead_encrypt()
169 aead_request_set_crypt(creq, req->src, req->dst, in pcrypt_aead_encrypt()
171 aead_request_set_ad(creq, req->assoclen); in pcrypt_aead_encrypt()
197 struct aead_request *creq = pcrypt_request_ctx(preq); in pcrypt_aead_decrypt() local
208 aead_request_set_tfm(creq, ctx->child); in pcrypt_aead_decrypt()
209 aead_request_set_callback(creq, flags & ~CRYPTO_TFM_REQ_MAY_SLEEP, in pcrypt_aead_decrypt()
211 aead_request_set_crypt(creq, req->src, req->dst, in pcrypt_aead_decrypt()
213 aead_request_set_ad(creq, req->assoclen); in pcrypt_aead_decrypt()
Dablkcipher.c354 return crypto_ablkcipher_encrypt(&req->creq); in skcipher_null_givencrypt()
359 return crypto_ablkcipher_decrypt(&req->creq); in skcipher_null_givdecrypt()
/linux-4.4.14/fs/ncpfs/
Dsock.c123 if (server->tx.creq) in ncp_tcp_write_space()
156 req = server->rcv.creq; in __abort_ncp_connection()
158 server->rcv.creq = NULL; in __abort_ncp_connection()
163 req = server->tx.creq; in __abort_ncp_connection()
165 server->tx.creq = NULL; in __abort_ncp_connection()
222 rq = server->tx.creq; in __ncptcp_try_send()
240 server->rcv.creq = rq; in __ncptcp_try_send()
241 server->tx.creq = NULL; in __ncptcp_try_send()
282 server->rcv.creq = req; in ncpdgram_start_request()
314 server->tx.creq = req; in ncptcp_start_request()
[all …]
Dncp_fs_sb.h117 struct ncp_request_reply* creq; /* STREAM/DGRAM: awaiting reply from this request */ member
136 struct ncp_request_reply* creq; /* STREAM only: currently transmitted entry */ member
Dinode.c619 server->tx.creq = NULL; in ncp_fill_super()
620 server->rcv.creq = NULL; in ncp_fill_super()
/linux-4.4.14/include/crypto/
Dskcipher.h52 struct ablkcipher_request creq; member
77 return crypto_ablkcipher_reqtfm(&req->creq); in skcipher_givcrypt_reqtfm()
99 req->creq.base.tfm = crypto_ablkcipher_tfm(tfm); in skcipher_givcrypt_set_tfm()
106 struct skcipher_givcrypt_request, creq); in skcipher_givcrypt_cast()
132 ablkcipher_request_set_callback(&req->creq, flags, compl, data); in skcipher_givcrypt_set_callback()
140 ablkcipher_request_set_crypt(&req->creq, src, dst, nbytes, iv); in skcipher_givcrypt_set_crypt()
/linux-4.4.14/include/crypto/internal/
Dskcipher.h78 return ablkcipher_enqueue_request(queue, &request->creq); in skcipher_enqueue_givcrypt()
90 return ablkcipher_request_ctx(&req->creq); in skcipher_givcrypt_reqctx()
102 ablkcipher_request_complete(&req->creq, err); in skcipher_givcrypt_complete()
/linux-4.4.14/drivers/net/can/
Dpch_can.c134 u32 creq; member
296 pch_can_rw_msg_obj(&priv->regs->ifregs[dir].creq, buff_num); in pch_can_set_rxtx()
312 pch_can_rw_msg_obj(&priv->regs->ifregs[dir].creq, buff_num); in pch_can_set_rxtx()
356 pch_can_rw_msg_obj(&priv->regs->ifregs[0].creq, i); in pch_can_clear_if_buffers()
366 pch_can_rw_msg_obj(&priv->regs->ifregs[0].creq, i); in pch_can_config_rx_tx_buffers()
390 pch_can_rw_msg_obj(&priv->regs->ifregs[0].creq, i); in pch_can_config_rx_tx_buffers()
395 pch_can_rw_msg_obj(&priv->regs->ifregs[1].creq, i); in pch_can_config_rx_tx_buffers()
412 pch_can_rw_msg_obj(&priv->regs->ifregs[1].creq, i); in pch_can_config_rx_tx_buffers()
462 pch_can_rw_msg_obj(&priv->regs->ifregs[0].creq, mask); in pch_can_int_clr()
479 pch_can_rw_msg_obj(&priv->regs->ifregs[1].creq, mask); in pch_can_int_clr()
[all …]
/linux-4.4.14/net/wireless/
Dscan.c1186 struct cfg80211_scan_request *creq = NULL; in cfg80211_wext_siwscan() local
1214 creq = kzalloc(sizeof(*creq) + sizeof(struct cfg80211_ssid) + in cfg80211_wext_siwscan()
1217 if (!creq) { in cfg80211_wext_siwscan()
1222 creq->wiphy = wiphy; in cfg80211_wext_siwscan()
1223 creq->wdev = dev->ieee80211_ptr; in cfg80211_wext_siwscan()
1225 creq->ssids = (void *)&creq->channels[n_channels]; in cfg80211_wext_siwscan()
1226 creq->n_channels = n_channels; in cfg80211_wext_siwscan()
1227 creq->n_ssids = 1; in cfg80211_wext_siwscan()
1228 creq->scan_start = jiffies; in cfg80211_wext_siwscan()
1264 creq->channels[i] = &wiphy->bands[band]->channels[j]; in cfg80211_wext_siwscan()
[all …]
/linux-4.4.14/drivers/net/wireless/libertas/
Dcfg.c1266 struct cfg80211_scan_request *creq = NULL; in _new_connect_scan_req() local
1270 creq = kzalloc(sizeof(*creq) + sizeof(struct cfg80211_ssid) + in _new_connect_scan_req()
1273 if (!creq) in _new_connect_scan_req()
1277 creq->ssids = (void *)&creq->channels[n_channels]; in _new_connect_scan_req()
1278 creq->n_channels = n_channels; in _new_connect_scan_req()
1279 creq->n_ssids = 1; in _new_connect_scan_req()
1295 creq->channels[i] = &wiphy->bands[band]->channels[j]; in _new_connect_scan_req()
1301 creq->n_channels = i; in _new_connect_scan_req()
1304 memcpy(creq->ssids[0].ssid, sme->ssid, sme->ssid_len); in _new_connect_scan_req()
1305 creq->ssids[0].ssid_len = sme->ssid_len; in _new_connect_scan_req()
[all …]
/linux-4.4.14/drivers/block/
Dcpqarray.c908 struct request *creq; in do_ida_request() local
913 creq = blk_peek_request(q); in do_ida_request()
914 if (!creq) in do_ida_request()
917 BUG_ON(creq->nr_phys_segments > SG_MAX); in do_ida_request()
922 blk_start_request(creq); in do_ida_request()
925 c->hdr.unit = (drv_info_t *)(creq->rq_disk->private_data) - h->drv; in do_ida_request()
929 c->req.hdr.blk = blk_rq_pos(creq); in do_ida_request()
930 c->rq = creq; in do_ida_request()
933 blk_rq_pos(creq), blk_rq_sectors(creq)); in do_ida_request()
936 seg = blk_rq_map_sg(q, creq, tmp_sg); in do_ida_request()
[all …]
Dcciss.c3307 struct request *creq; in do_cciss_request() local
3317 creq = blk_peek_request(q); in do_cciss_request()
3318 if (!creq) in do_cciss_request()
3321 BUG_ON(creq->nr_phys_segments > h->maxsgentries); in do_cciss_request()
3327 blk_start_request(creq); in do_cciss_request()
3333 c->rq = creq; in do_cciss_request()
3336 drv = creq->rq_disk->private_data; in do_cciss_request()
3348 (rq_data_dir(creq) == READ) ? XFER_READ : XFER_WRITE; in do_cciss_request()
3351 (rq_data_dir(creq) == READ) ? h->cciss_read : h->cciss_write; in do_cciss_request()
3352 start_blk = blk_rq_pos(creq); in do_cciss_request()
[all …]
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_surface.c1434 rep->creq.svga3d_flags = srf->flags; in vmw_gb_surface_reference_ioctl()
1435 rep->creq.format = srf->format; in vmw_gb_surface_reference_ioctl()
1436 rep->creq.mip_levels = srf->mip_levels[0]; in vmw_gb_surface_reference_ioctl()
1437 rep->creq.drm_surface_flags = 0; in vmw_gb_surface_reference_ioctl()
1438 rep->creq.multisample_count = srf->multisample_count; in vmw_gb_surface_reference_ioctl()
1439 rep->creq.autogen_filter = srf->autogen_filter; in vmw_gb_surface_reference_ioctl()
1440 rep->creq.array_size = srf->array_size; in vmw_gb_surface_reference_ioctl()
1441 rep->creq.buffer_handle = backup_handle; in vmw_gb_surface_reference_ioctl()
1442 rep->creq.base_size = srf->base_size; in vmw_gb_surface_reference_ioctl()
/linux-4.4.14/drivers/usb/gadget/function/
Df_fs.c2967 const struct usb_ctrlrequest *creq) in ffs_func_setup() argument
2976 pr_vdebug("creq->bRequestType = %02x\n", creq->bRequestType); in ffs_func_setup()
2977 pr_vdebug("creq->bRequest = %02x\n", creq->bRequest); in ffs_func_setup()
2978 pr_vdebug("creq->wValue = %04x\n", le16_to_cpu(creq->wValue)); in ffs_func_setup()
2979 pr_vdebug("creq->wIndex = %04x\n", le16_to_cpu(creq->wIndex)); in ffs_func_setup()
2980 pr_vdebug("creq->wLength = %04x\n", le16_to_cpu(creq->wLength)); in ffs_func_setup()
2994 switch (creq->bRequestType & USB_RECIP_MASK) { in ffs_func_setup()
2996 ret = ffs_func_revmap_intf(func, le16_to_cpu(creq->wIndex)); in ffs_func_setup()
3002 ret = ffs_func_revmap_ep(func, le16_to_cpu(creq->wIndex)); in ffs_func_setup()
3014 ffs->ev.setup = *creq; in ffs_func_setup()
/linux-4.4.14/include/uapi/drm/
Dvmwgfx_drm.h992 struct drm_vmw_gb_surface_create_req creq; member
/linux-4.4.14/drivers/crypto/caam/
Dcaamalg.c2733 struct ablkcipher_request *req = &greq->creq; in ablkcipher_giv_edesc_alloc()
2827 static int ablkcipher_givencrypt(struct skcipher_givcrypt_request *creq) in ablkcipher_givencrypt() argument
2829 struct ablkcipher_request *req = &creq->creq; in ablkcipher_givencrypt()
2839 edesc = ablkcipher_giv_edesc_alloc(creq, DESC_JOB_IO_LEN * in ablkcipher_givencrypt()