Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/dma/
Dsirf-dma.c126 void (*exec_desc)(struct sirfsoc_dma_desc *sdesc,
132 void (*exec)(struct sirfsoc_dma_desc *sdesc,
162 static void sirfsoc_dma_execute_hw_a7v2(struct sirfsoc_dma_desc *sdesc, in sirfsoc_dma_execute_hw_a7v2() argument
165 if (sdesc->chain) { in sirfsoc_dma_execute_hw_a7v2()
167 writel_relaxed((sdesc->dir << SIRFSOC_DMA_DIR_CTRL_BIT_ATLAS7) | in sirfsoc_dma_execute_hw_a7v2()
168 (sdesc->chain << in sirfsoc_dma_execute_hw_a7v2()
174 writel_relaxed(sdesc->xlen, base + SIRFSOC_DMA_CH_XLEN); in sirfsoc_dma_execute_hw_a7v2()
175 writel_relaxed(sdesc->ylen, base + SIRFSOC_DMA_CH_YLEN); in sirfsoc_dma_execute_hw_a7v2()
176 writel_relaxed(sdesc->width, base + SIRFSOC_DMA_WIDTH_ATLAS7); in sirfsoc_dma_execute_hw_a7v2()
177 writel_relaxed((sdesc->width*((sdesc->ylen+1)>>1)), in sirfsoc_dma_execute_hw_a7v2()
[all …]
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.c536 struct msgdma_sw_desc *sdesc, *next; in msgdma_copy_desc_to_fifo() local
540 list_for_each_entry_safe(sdesc, next, &desc->tx_list, node) in msgdma_copy_desc_to_fifo()
541 msgdma_copy_one(mdev, sdesc); in msgdma_copy_desc_to_fifo()
/kernel/linux/linux-5.10/security/keys/trusted-keys/
Dtrusted_tpm1.c37 struct sdesc { struct
45 static struct sdesc *init_sdesc(struct crypto_shash *alg) in init_sdesc() argument
47 struct sdesc *sdesc; in init_sdesc() local
51 sdesc = kmalloc(size, GFP_KERNEL); in init_sdesc()
52 if (!sdesc) in init_sdesc()
54 sdesc->shash.tfm = alg; in init_sdesc()
55 return sdesc; in init_sdesc()
61 struct sdesc *sdesc; in TSS_sha1() local
64 sdesc = init_sdesc(hashalg); in TSS_sha1()
65 if (IS_ERR(sdesc)) { in TSS_sha1()
[all …]
/kernel/linux/linux-5.10/security/keys/
Ddh.c90 struct kdf_sdesc *sdesc; in kdf_alloc() local
107 sdesc = kmalloc(size, GFP_KERNEL); in kdf_alloc()
108 if (!sdesc) in kdf_alloc()
110 sdesc->shash.tfm = tfm; in kdf_alloc()
112 *sdesc_ret = sdesc; in kdf_alloc()
121 static void kdf_dealloc(struct kdf_sdesc *sdesc) in kdf_dealloc() argument
123 if (!sdesc) in kdf_dealloc()
126 if (sdesc->shash.tfm) in kdf_dealloc()
127 crypto_free_shash(sdesc->shash.tfm); in kdf_dealloc()
129 kfree_sensitive(sdesc); in kdf_dealloc()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.h142 struct rx_sw_desc *sdesc; /* address of SW RX descriptor ring */ member
248 struct tx_sw_desc *sdesc; /* address of SW TX descriptor ring */ member
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/hmdfs/comm/
Dsocket_adapter.c225 msg.sdesc = NULL; in hmdfs_sendmessage_response()
348 msg.sdesc = NULL; in hmdfs_send_async_request()
456 msg.sdesc = NULL; in hmdfs_sendmessage_request()
517 struct slice_descriptor *sdesc, void *slice_buf) in hmdfs_send_slice() argument
522 int content_size = le32_to_cpu(sdesc->content_size); in hmdfs_send_slice()
538 msg.sdesc = sdesc; in hmdfs_send_slice()
556 struct slice_descriptor sdesc; in hmdfs_readfile_response() local
562 sdesc.slice_size = cpu_to_le32(slice_size); in hmdfs_readfile_response()
565 sdesc.num_slices = cpu_to_le32(file_size / slice_size); in hmdfs_readfile_response()
574 sdesc.slice_sn = cpu_to_le32(slice_sn++); in hmdfs_readfile_response()
[all …]
/kernel/linux/linux-5.10/crypto/
Ddrbg.c1646 struct sdesc { struct
1653 struct sdesc *sdesc; in drbg_init_hash_kernel() local
1663 sdesc = kzalloc(sizeof(struct shash_desc) + crypto_shash_descsize(tfm), in drbg_init_hash_kernel()
1665 if (!sdesc) { in drbg_init_hash_kernel()
1670 sdesc->shash.tfm = tfm; in drbg_init_hash_kernel()
1671 drbg->priv_data = sdesc; in drbg_init_hash_kernel()
1678 struct sdesc *sdesc = (struct sdesc *)drbg->priv_data; in drbg_fini_hash_kernel() local
1679 if (sdesc) { in drbg_fini_hash_kernel()
1680 crypto_free_shash(sdesc->shash.tfm); in drbg_fini_hash_kernel()
1681 kfree_sensitive(sdesc); in drbg_fini_hash_kernel()
[all …]
/kernel/linux/linux-5.10/fs/cifs/
Dsmb2transport.c225 struct sdesc *sdesc = NULL; in smb2_calc_signature() local
238 rc = cifs_alloc_hash("hmac(sha256)", &hash, &sdesc); in smb2_calc_signature()
244 shash = &sdesc->shash; in smb2_calc_signature()
292 cifs_free_hash(&hash, &sdesc); in smb2_calc_signature()
543 struct sdesc *sdesc = NULL; in smb3_calc_signature() local
552 rc = cifs_alloc_hash("cmac(aes)", &hash, &sdesc); in smb3_calc_signature()
556 shash = &sdesc->shash; in smb3_calc_signature()
608 cifs_free_hash(&hash, &sdesc); in smb3_calc_signature()
Dmisc.c931 struct crypto_shash **shash, struct sdesc **sdesc) in cifs_alloc_hash() argument
936 if (*sdesc != NULL) in cifs_alloc_hash()
944 *sdesc = NULL; in cifs_alloc_hash()
949 *sdesc = kmalloc(size, GFP_KERNEL); in cifs_alloc_hash()
950 if (*sdesc == NULL) { in cifs_alloc_hash()
957 (*sdesc)->shash.tfm = *shash; in cifs_alloc_hash()
967 cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc) in cifs_free_hash() argument
969 kfree(*sdesc); in cifs_free_hash()
970 *sdesc = NULL; in cifs_free_hash()
Dcifsproto.h602 struct sdesc **sdesc);
603 void cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc);
Dcifsglob.h138 struct sdesc { struct
150 struct sdesc *sdeschmacmd5; /* ctxt to generate ntlmv2 hash, CR1 */ argument
151 struct sdesc *sdescmd5; /* ctxt to generate cifs/smb signature */
152 struct sdesc *sdeschmacsha256; /* ctxt to generate smb2 signature */
153 struct sdesc *sdesccmacaes; /* ctxt to generate smb3 signature */
154 struct sdesc *sdescsha512; /* ctxt to generate smb3.11 signing key */
/kernel/linux/linux-5.10/drivers/dma/xilinx/
Dzynqmp_dma.c305 struct zynqmp_dma_desc_ll *sdesc, in zynqmp_dma_config_sg_ll_desc() argument
309 struct zynqmp_dma_desc_ll *ddesc = sdesc + 1; in zynqmp_dma_config_sg_ll_desc()
311 sdesc->size = ddesc->size = len; in zynqmp_dma_config_sg_ll_desc()
312 sdesc->addr = src; in zynqmp_dma_config_sg_ll_desc()
315 sdesc->ctrl = ddesc->ctrl = ZYNQMP_DMA_DESC_CTRL_SIZE_256; in zynqmp_dma_config_sg_ll_desc()
317 sdesc->ctrl |= ZYNQMP_DMA_DESC_CTRL_COHRNT; in zynqmp_dma_config_sg_ll_desc()
323 ((uintptr_t)sdesc - (uintptr_t)chan->desc_pool_v); in zynqmp_dma_config_sg_ll_desc()
432 struct zynqmp_dma_desc_sw *sdesc) in zynqmp_dma_free_descriptor() argument
437 list_del(&sdesc->node); in zynqmp_dma_free_descriptor()
438 list_add_tail(&sdesc->node, &chan->free_list); in zynqmp_dma_free_descriptor()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.c611 kfree(ctx->sdesc); in otx_cpt_aead_exit()
678 struct otx_cpt_sdesc *sdesc; in alloc_sdesc() local
682 sdesc = kmalloc(size, GFP_KERNEL); in alloc_sdesc()
683 if (!sdesc) in alloc_sdesc()
686 sdesc->shash.tfm = alg; in alloc_sdesc()
688 return sdesc; in alloc_sdesc()
749 ctx->sdesc = alloc_sdesc(ctx->hashalg); in aead_hmac_init()
750 if (!ctx->sdesc) in aead_hmac_init()
778 ret = crypto_shash_digest(&ctx->sdesc->shash, ctx->key, in aead_hmac_init()
802 crypto_shash_init(&ctx->sdesc->shash); in aead_hmac_init()
[all …]
Dotx_cptvf_algs.h172 struct otx_cpt_sdesc *sdesc; member
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c240 struct tx_sw_desc *d = &q->sdesc[cidx]; in unmap_skb()
269 d = cidx + 1 == q->size ? q->sdesc : d + 1; in unmap_skb()
295 d = &q->sdesc[cidx]; in free_tx_desc()
308 d = q->sdesc; in free_tx_desc()
385 struct rx_sw_desc *d = &q->sdesc[cidx]; in free_rx_bufs()
507 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; in refill_fl()
550 sd = q->sdesc; in refill_fl()
584 q->sdesc[q->pidx] = q->sdesc[idx]; in recycle_rx_buf()
687 kfree(q->fl[i].sdesc); in t3_free_qset()
699 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
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/aspeed-vhub/
Dhub.c315 struct usb_string_descriptor *sdesc = buf; in ast_vhub_collect_languages() local
319 max_langs = (size - hdr_len) / sizeof(sdesc->wData[0]); in ast_vhub_collect_languages()
325 sdesc->wData[nlangs++] = cpu_to_le16(lang_str->language); in ast_vhub_collect_languages()
328 rc = hdr_len + nlangs * sizeof(sdesc->wData[0]); in ast_vhub_collect_languages()
329 sdesc->bLength = rc; in ast_vhub_collect_languages()
330 sdesc->bDescriptorType = USB_DT_STRING; in ast_vhub_collect_languages()
/kernel/linux/linux-5.10/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()
1885 sgl_sdesc = &txq->q.sdesc[last_desc]; in cxgb4_vf_eth_xmit()
3027 q->q.sdesc[last_desc].skb = skb; in service_ofldq()
[all …]

12