Home
last modified time | relevance | path

Searched refs:sdesc (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v6.1/security/keys/trusted-keys/
Dtrusted_tpm1.c30 struct sdesc { struct
38 static struct sdesc *init_sdesc(struct crypto_shash *alg) in init_sdesc() argument
40 struct sdesc *sdesc; in init_sdesc() local
44 sdesc = kmalloc(size, GFP_KERNEL); in init_sdesc()
45 if (!sdesc) in init_sdesc()
47 sdesc->shash.tfm = alg; in init_sdesc()
48 return sdesc; in init_sdesc()
54 struct sdesc *sdesc; in TSS_sha1() local
57 sdesc = init_sdesc(hashalg); in TSS_sha1()
58 if (IS_ERR(sdesc)) { in TSS_sha1()
[all …]
/Linux-v6.1/Documentation/crypto/
Dapi-samples.rst99 struct sdesc {
104 static struct sdesc *init_sdesc(struct crypto_shash *alg)
106 struct sdesc *sdesc;
110 sdesc = kmalloc(size, GFP_KERNEL);
111 if (!sdesc)
113 sdesc->shash.tfm = alg;
114 return sdesc;
121 struct sdesc *sdesc;
124 sdesc = init_sdesc(alg);
125 if (IS_ERR(sdesc)) {
[all …]
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c195 static inline dma_addr_t get_buf_addr(const struct rx_sw_desc *sdesc) in get_buf_addr() argument
197 return sdesc->dma_addr & ~(dma_addr_t)(RX_LARGE_BUF | RX_UNMAPPED_BUF); in get_buf_addr()
207 static inline bool is_buf_mapped(const struct rx_sw_desc *sdesc) in is_buf_mapped() argument
209 return !(sdesc->dma_addr & RX_UNMAPPED_BUF); in is_buf_mapped()
380 struct tx_sw_desc *sdesc; in free_tx_desc() local
386 sdesc = &tq->sdesc[cidx]; in free_tx_desc()
392 if (sdesc->skb) { in free_tx_desc()
394 unmap_sgl(dev, sdesc->skb, sdesc->sgl, tq); in free_tx_desc()
395 dev_consume_skb_any(sdesc->skb); in free_tx_desc()
396 sdesc->skb = NULL; in free_tx_desc()
[all …]
Dadapter.h143 struct rx_sw_desc *sdesc; /* address of SW RX descriptor ring */ member
249 struct tx_sw_desc *sdesc; /* address of SW TX descriptor ring */ member
/Linux-v6.1/drivers/dma/sh/
Dshdma-base.c56 struct shdma_desc *sdesc; in shdma_chan_xfer_ld_queue() local
63 list_for_each_entry(sdesc, &schan->ld_queue, node) in shdma_chan_xfer_ld_queue()
64 if (sdesc->mark == DESC_SUBMITTED) { in shdma_chan_xfer_ld_queue()
65 ops->start_xfer(schan, sdesc); in shdma_chan_xfer_ld_queue()
159 struct shdma_desc *sdesc; in shdma_get_desc() local
161 list_for_each_entry(sdesc, &schan->ld_free, node) in shdma_get_desc()
162 if (sdesc->mark != DESC_PREPARED) { in shdma_get_desc()
163 BUG_ON(sdesc->mark != DESC_IDLE); in shdma_get_desc()
164 list_del(&sdesc->node); in shdma_get_desc()
165 return sdesc; in shdma_get_desc()
[all …]
Dshdmac.c283 struct shdma_desc *sdesc) in sh_dmae_start_xfer() argument
287 struct sh_dmae_desc *sh_desc = container_of(sdesc, in sh_dmae_start_xfer()
290 sdesc->async_tx.cookie, sh_chan->shdma_chan.id, in sh_dmae_start_xfer()
378 struct shdma_desc *sdesc, in sh_dmae_desc_setup() argument
381 struct sh_dmae_desc *sh_desc = container_of(sdesc, in sh_dmae_desc_setup()
416 struct shdma_desc *sdesc) in sh_dmae_get_partial() argument
420 struct sh_dmae_desc *sh_desc = container_of(sdesc, in sh_dmae_get_partial()
454 struct shdma_desc *sdesc) in sh_dmae_desc_completed() argument
458 struct sh_dmae_desc *sh_desc = container_of(sdesc, in sh_dmae_desc_completed()
463 return (sdesc->direction == DMA_DEV_TO_MEM && in sh_dmae_desc_completed()
[all …]
/Linux-v6.1/drivers/dma/
Dsprd-dma.c512 struct sprd_dma_desc *sdesc) in sprd_dma_set_chn_config() argument
514 struct sprd_dma_chn_hw *cfg = &sdesc->chn_hw; in sprd_dma_set_chn_config()
575 static bool sprd_dma_check_trans_done(struct sprd_dma_desc *sdesc, in sprd_dma_check_trans_done() argument
593 struct sprd_dma_desc *sdesc; in dma_irq_handle() local
606 sdesc = schan->cur_desc; in dma_irq_handle()
607 if (!sdesc) { in dma_irq_handle()
619 vchan_cyclic_callback(&sdesc->vd); in dma_irq_handle()
622 trans_done = sprd_dma_check_trans_done(sdesc, int_type, in dma_irq_handle()
625 vchan_cookie_complete(&sdesc->vd); in dma_irq_handle()
678 struct sprd_dma_desc *sdesc = to_sprd_dma_desc(vd); in sprd_dma_tx_status() local
[all …]
Daltera-msgdma.c537 struct msgdma_sw_desc *sdesc, *next; in msgdma_copy_desc_to_fifo() local
541 list_for_each_entry_safe(sdesc, next, &desc->tx_list, node) in msgdma_copy_desc_to_fifo()
542 msgdma_copy_one(mdev, sdesc); in msgdma_copy_desc_to_fifo()
/Linux-v6.1/drivers/crypto/bcm/
Dutil.c188 struct sdesc { struct
218 struct sdesc *sdesc; in do_shash() local
228 sdesc = kmalloc(size, GFP_KERNEL); in do_shash()
229 if (!sdesc) { in do_shash()
233 sdesc->shash.tfm = hash; in do_shash()
243 rc = crypto_shash_init(&sdesc->shash); in do_shash()
248 rc = crypto_shash_update(&sdesc->shash, data1, data1_len); in do_shash()
254 rc = crypto_shash_update(&sdesc->shash, data2, data2_len); in do_shash()
260 rc = crypto_shash_final(&sdesc->shash, result); in do_shash()
266 kfree(sdesc); in do_shash()
/Linux-v6.1/crypto/
Ddrbg.c1674 struct sdesc { struct
1681 struct sdesc *sdesc; in drbg_init_hash_kernel() argument
1691 sdesc = kzalloc(sizeof(struct shash_desc) + crypto_shash_descsize(tfm), in drbg_init_hash_kernel()
1693 if (!sdesc) { in drbg_init_hash_kernel()
1698 sdesc->shash.tfm = tfm; in drbg_init_hash_kernel()
1699 drbg->priv_data = sdesc; in drbg_init_hash_kernel()
1706 struct sdesc *sdesc = drbg->priv_data; in drbg_fini_hash_kernel() local
1707 if (sdesc) { in drbg_fini_hash_kernel()
1708 crypto_free_shash(sdesc->shash.tfm); in drbg_fini_hash_kernel()
1709 kfree_sensitive(sdesc); in drbg_fini_hash_kernel()
[all …]
/Linux-v6.1/fs/cifs/
Dmisc.c1084 cifs_alloc_hash(const char *name, struct shash_desc **sdesc) in cifs_alloc_hash() argument
1089 if (*sdesc) in cifs_alloc_hash()
1096 *sdesc = NULL; in cifs_alloc_hash()
1100 *sdesc = kmalloc(sizeof(struct shash_desc) + crypto_shash_descsize(alg), GFP_KERNEL); in cifs_alloc_hash()
1101 if (*sdesc == NULL) { in cifs_alloc_hash()
1107 (*sdesc)->tfm = alg; in cifs_alloc_hash()
1118 cifs_free_hash(struct shash_desc **sdesc) in cifs_free_hash() argument
1120 if (unlikely(!sdesc) || !*sdesc) in cifs_free_hash()
1123 if ((*sdesc)->tfm) { in cifs_free_hash()
1124 crypto_free_shash((*sdesc)->tfm); in cifs_free_hash()
[all …]
Dcifsproto.h600 int cifs_alloc_hash(const char *name, struct shash_desc **sdesc);
601 void cifs_free_hash(struct shash_desc **sdesc);
/Linux-v6.1/drivers/dma/xilinx/
Dzynqmp_dma.c302 struct zynqmp_dma_desc_ll *sdesc, in zynqmp_dma_config_sg_ll_desc() argument
306 struct zynqmp_dma_desc_ll *ddesc = sdesc + 1; in zynqmp_dma_config_sg_ll_desc()
308 sdesc->size = ddesc->size = len; in zynqmp_dma_config_sg_ll_desc()
309 sdesc->addr = src; in zynqmp_dma_config_sg_ll_desc()
312 sdesc->ctrl = ddesc->ctrl = ZYNQMP_DMA_DESC_CTRL_SIZE_256; in zynqmp_dma_config_sg_ll_desc()
314 sdesc->ctrl |= ZYNQMP_DMA_DESC_CTRL_COHRNT; in zynqmp_dma_config_sg_ll_desc()
320 ((uintptr_t)sdesc - (uintptr_t)chan->desc_pool_v); in zynqmp_dma_config_sg_ll_desc()
429 struct zynqmp_dma_desc_sw *sdesc) in zynqmp_dma_free_descriptor() argument
434 list_move_tail(&sdesc->node, &chan->free_list); in zynqmp_dma_free_descriptor()
435 list_for_each_entry_safe(child, next, &sdesc->tx_list, node) { in zynqmp_dma_free_descriptor()
/Linux-v6.1/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.c612 kfree(ctx->sdesc); in otx_cpt_aead_exit()
679 struct otx_cpt_sdesc *sdesc; in alloc_sdesc() local
683 sdesc = kmalloc(size, GFP_KERNEL); in alloc_sdesc()
684 if (!sdesc) in alloc_sdesc()
687 sdesc->shash.tfm = alg; in alloc_sdesc()
689 return sdesc; in alloc_sdesc()
750 ctx->sdesc = alloc_sdesc(ctx->hashalg); in aead_hmac_init()
751 if (!ctx->sdesc) in aead_hmac_init()
779 ret = crypto_shash_digest(&ctx->sdesc->shash, ctx->key, in aead_hmac_init()
803 crypto_shash_init(&ctx->sdesc->shash); in aead_hmac_init()
[all …]
Dotx_cptvf_algs.h172 struct otx_cpt_sdesc *sdesc; member
/Linux-v6.1/drivers/firmware/arm_scmi/
Dsensors.c580 const struct scmi_sensor_descriptor *sdesc = st->priv; in iter_sens_descr_process_response() local
583 s->id = le32_to_cpu(sdesc->id); in iter_sens_descr_process_response()
585 attrl = le32_to_cpu(sdesc->attributes_low); in iter_sens_descr_process_response()
600 attrh = le32_to_cpu(sdesc->attributes_high); in iter_sens_descr_process_response()
637 strscpy(s->name, sdesc->name, SCMI_SHORT_NAME_MAX_SIZE); in iter_sens_descr_process_response()
650 s->sensor_power = le32_to_cpu(sdesc->power); in iter_sens_descr_process_response()
651 dsize += sizeof(sdesc->power); in iter_sens_descr_process_response()
655 unsigned int sres = le32_to_cpu(sdesc->resolution); in iter_sens_descr_process_response()
659 dsize += sizeof(sdesc->resolution); in iter_sens_descr_process_response()
662 &sdesc->scalar_attrs); in iter_sens_descr_process_response()
[all …]
/Linux-v6.1/drivers/crypto/marvell/octeontx2/
Dotx2_cptvf_algs.c690 kfree(ctx->sdesc); in otx2_cpt_aead_exit()
735 struct otx2_cpt_sdesc *sdesc; in alloc_sdesc() local
739 sdesc = kmalloc(size, GFP_KERNEL); in alloc_sdesc()
740 if (!sdesc) in alloc_sdesc()
743 sdesc->shash.tfm = alg; in alloc_sdesc()
745 return sdesc; in alloc_sdesc()
805 ctx->sdesc = alloc_sdesc(ctx->hashalg); in aead_hmac_init()
806 if (!ctx->sdesc) in aead_hmac_init()
834 ret = crypto_shash_digest(&ctx->sdesc->shash, ctx->key, in aead_hmac_init()
858 crypto_shash_init(&ctx->sdesc->shash); in aead_hmac_init()
[all …]
Dotx2_cptvf_algs.h162 struct otx2_cpt_sdesc *sdesc; member
/Linux-v6.1/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-hash.c28 struct shash_desc *sdesc; in sun8i_ss_hashkey() local
36 len = sizeof(*sdesc) + crypto_shash_descsize(xtfm); in sun8i_ss_hashkey()
37 sdesc = kmalloc(len, GFP_KERNEL); in sun8i_ss_hashkey()
38 if (!sdesc) { in sun8i_ss_hashkey()
42 sdesc->tfm = xtfm; in sun8i_ss_hashkey()
44 ret = crypto_shash_init(sdesc); in sun8i_ss_hashkey()
49 ret = crypto_shash_finup(sdesc, key, keylen, tfmctx->key); in sun8i_ss_hashkey()
53 kfree(sdesc); in sun8i_ss_hashkey()
/Linux-v6.1/drivers/net/wireless/ath/ath10k/
Dce.c497 struct ce_desc *desc, sdesc; in _ath10k_ce_send_nolock() local
525 sdesc.addr = __cpu_to_le32(buffer); in _ath10k_ce_send_nolock()
526 sdesc.nbytes = __cpu_to_le16(nbytes); in _ath10k_ce_send_nolock()
527 sdesc.flags = __cpu_to_le16(desc_flags); in _ath10k_ce_send_nolock()
529 *desc = sdesc; in _ath10k_ce_send_nolock()
554 struct ce_desc_64 *desc, sdesc; in _ath10k_ce_send_nolock_64() local
592 addr = (__le32 *)&sdesc.addr; in _ath10k_ce_send_nolock_64()
602 sdesc.nbytes = __cpu_to_le16(nbytes); in _ath10k_ce_send_nolock_64()
603 sdesc.flags = __cpu_to_le16(desc_flags); in _ath10k_ce_send_nolock_64()
605 *desc = sdesc; in _ath10k_ce_send_nolock_64()
[all …]
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c242 struct tx_sw_desc *d = &q->sdesc[cidx]; in unmap_skb()
271 d = cidx + 1 == q->size ? q->sdesc : d + 1; in unmap_skb()
297 d = &q->sdesc[cidx]; in free_tx_desc()
310 d = q->sdesc; in free_tx_desc()
386 struct rx_sw_desc *d = &q->sdesc[cidx]; in free_rx_bufs()
508 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; in refill_fl()
551 sd = q->sdesc; in refill_fl()
585 q->sdesc[q->pidx] = q->sdesc[idx]; in recycle_rx_buf()
688 kfree(q->fl[i].sdesc); in t3_free_qset()
700 if (q->txq[i].sdesc) { in t3_free_qset()
[all …]
Dadapter.h115 struct rx_sw_desc *sdesc; /* address of SW Rx descriptor ring */ member
176 struct tx_sw_desc *sdesc; /* address of SW Tx descriptor ring */ member
/Linux-v6.1/drivers/usb/gadget/udc/aspeed-vhub/
Dhub.c339 struct usb_string_descriptor *sdesc = buf; in ast_vhub_collect_languages() local
343 max_langs = (size - hdr_len) / sizeof(sdesc->wData[0]); in ast_vhub_collect_languages()
349 sdesc->wData[nlangs++] = cpu_to_le16(lang_str->language); in ast_vhub_collect_languages()
352 rc = hdr_len + nlangs * sizeof(sdesc->wData[0]); in ast_vhub_collect_languages()
353 sdesc->bLength = rc; in ast_vhub_collect_languages()
354 sdesc->bDescriptorType = USB_DT_STRING; in ast_vhub_collect_languages()
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c319 d = &q->sdesc[cidx]; in free_tx_desc()
332 d = q->sdesc; in free_tx_desc()
441 struct rx_sw_desc *d = &q->sdesc[q->cidx]; in free_rx_bufs()
468 struct rx_sw_desc *d = &q->sdesc[q->cidx]; in unmap_rx_buf()
543 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; in refill_fl()
584 sd = q->sdesc; in refill_fl()
613 sd = q->sdesc; in refill_fl()
1583 sgl_sdesc = &q->q.sdesc[last_desc]; in cxgb4_eth_xmit()
1889 sgl_sdesc = &txq->q.sdesc[last_desc]; in cxgb4_vf_eth_xmit()
3033 q->q.sdesc[last_desc].skb = skb; in service_ofldq()
[all …]
/Linux-v6.1/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c1141 sgl_sdesc = &q->q.sdesc[last_desc]; in chcr_ktls_xmit_wr_complete()
1326 sgl_sdesc = &q->q.sdesc[last_desc]; in chcr_ktls_xmit_wr_short()
1504 sgl_sdesc = &q->q.sdesc[last_desc]; in chcr_ktls_tx_plaintxt()
1604 sgl_sdesc = &q->q.sdesc[last_desc]; in chcr_ktls_tunnel_pkt()

12