/openbmc/linux/security/keys/trusted-keys/ |
H A D | trusted_tpm1.c | 30 struct sdesc { struct 40 struct sdesc *sdesc; in init_sdesc() local 45 if (!sdesc) in init_sdesc() 48 return sdesc; in init_sdesc() 54 struct sdesc *sdesc; in TSS_sha1() local 58 if (IS_ERR(sdesc)) { in TSS_sha1() 71 struct sdesc *sdesc; in TSS_rawhmac() local 78 if (IS_ERR(sdesc)) { in TSS_rawhmac() 120 struct sdesc *sdesc; in TSS_authhmac() local 185 struct sdesc *sdesc; in TSS_checkhmac1() local [all …]
|
/openbmc/linux/crypto/ |
H A D | jitterentropy-kcapi.c | 187 struct shash_desc *sdesc; member 196 if (rng->sdesc) { in jent_kcapi_cleanup() 197 shash_desc_zero(rng->sdesc); in jent_kcapi_cleanup() 198 kfree(rng->sdesc); in jent_kcapi_cleanup() 200 rng->sdesc = NULL; in jent_kcapi_cleanup() 216 struct shash_desc *sdesc; in jent_kcapi_init() local 238 sdesc = kmalloc(size, GFP_KERNEL); in jent_kcapi_init() 239 if (!sdesc) { in jent_kcapi_init() 244 sdesc->tfm = hash; in jent_kcapi_init() 245 crypto_shash_init(sdesc); in jent_kcapi_init() [all …]
|
H A D | drbg.c | 1674 struct sdesc { struct 1681 struct sdesc *sdesc; in drbg_init_hash_kernel() argument 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() 1709 kfree_sensitive(sdesc); in drbg_fini_hash_kernel() 1718 struct sdesc *sdesc = drbg->priv_data; in drbg_kcapi_hmacsetkey() local 1726 struct sdesc *sdesc = drbg->priv_data; in drbg_kcapi_hash() local [all …]
|
/openbmc/linux/Documentation/crypto/ |
H A D | api-samples.rst | 99 struct sdesc { 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)) { 127 return PTR_ERR(sdesc); [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | sge.c | 386 sdesc = &tq->sdesc[cidx]; in free_tx_desc() 394 unmap_sgl(dev, sdesc->skb, sdesc->sgl, tq); in free_tx_desc() 399 sdesc++; in free_tx_desc() 402 sdesc = tq->sdesc; in free_tx_desc() 476 struct rx_sw_desc *sdesc = &fl->sdesc[fl->cidx]; in free_rx_bufs() local 505 struct rx_sw_desc *sdesc = &fl->sdesc[fl->cidx]; in unmap_rx_buf() local 612 struct rx_sw_desc *sdesc = &fl->sdesc[fl->pidx]; in refill_fl() local 669 sdesc = fl->sdesc; in refill_fl() 698 sdesc = fl->sdesc; in refill_fl() 1718 sdesc = &fl->sdesc[fl->cidx]; in restore_rx_bufs() [all …]
|
H A D | adapter.h | 143 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
|
/openbmc/linux/drivers/dma/sh/ |
H A D | shdma-base.c | 56 struct shdma_desc *sdesc; in shdma_chan_xfer_ld_queue() local 65 ops->start_xfer(schan, sdesc); in shdma_chan_xfer_ld_queue() 159 struct shdma_desc *sdesc; in shdma_get_desc() local 164 list_del(&sdesc->node); in shdma_get_desc() 165 return sdesc; in shdma_get_desc() 829 struct shdma_desc *sdesc; in shdma_tx_status() local 853 struct shdma_desc *sdesc; in shdma_reset() local 878 sdesc->mark = DESC_IDLE; in shdma_reset() 914 struct shdma_desc *sdesc; in chan_irqt() local 921 sdesc->async_tx.cookie, &sdesc->async_tx); in chan_irqt() [all …]
|
H A D | shdmac.c | 282 struct shdma_desc *sdesc) in sh_dmae_start_xfer() argument 286 struct sh_dmae_desc *sh_desc = container_of(sdesc, in sh_dmae_start_xfer() 289 sdesc->async_tx.cookie, sh_chan->shdma_chan.id, in sh_dmae_start_xfer() 377 struct shdma_desc *sdesc, in sh_dmae_desc_setup() argument 380 struct sh_dmae_desc *sh_desc = container_of(sdesc, in sh_dmae_desc_setup() 415 struct shdma_desc *sdesc) in sh_dmae_get_partial() argument 419 struct sh_dmae_desc *sh_desc = container_of(sdesc, in sh_dmae_get_partial() 453 struct shdma_desc *sdesc) in sh_dmae_desc_completed() argument 457 struct sh_dmae_desc *sh_desc = container_of(sdesc, in sh_dmae_desc_completed() 462 return (sdesc->direction == DMA_DEV_TO_MEM && in sh_dmae_desc_completed() [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | sprd-dma.c | 606 sdesc = schan->cur_desc; in dma_irq_handle() 607 if (!sdesc) { in dma_irq_handle() 906 sdesc = kzalloc(sizeof(*sdesc), GFP_NOWAIT); in sprd_dma_prep_dma_memcpy() 907 if (!sdesc) in sprd_dma_prep_dma_memcpy() 910 hw = &sdesc->chn_hw; in sprd_dma_prep_dma_memcpy() 991 sdesc = kzalloc(sizeof(*sdesc), GFP_NOWAIT); in sprd_dma_prep_slave_sg() 992 if (!sdesc) in sprd_dma_prep_slave_sg() 995 sdesc->dir = dir; in sprd_dma_prep_slave_sg() 1024 kfree(sdesc); in sprd_dma_prep_slave_sg() 1032 kfree(sdesc); in sprd_dma_prep_slave_sg() [all …]
|
H A D | altera-msgdma.c | 537 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()
|
/openbmc/linux/drivers/crypto/bcm/ |
H A D | util.c | 188 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()
|
/openbmc/linux/fs/smb/client/ |
H A D | misc.c | 1066 if (*sdesc) in cifs_alloc_hash() 1073 *sdesc = NULL; in cifs_alloc_hash() 1078 if (*sdesc == NULL) { in cifs_alloc_hash() 1084 (*sdesc)->tfm = alg; in cifs_alloc_hash() 1095 cifs_free_hash(struct shash_desc **sdesc) in cifs_free_hash() argument 1097 if (unlikely(!sdesc) || !*sdesc) in cifs_free_hash() 1100 if ((*sdesc)->tfm) { in cifs_free_hash() 1101 crypto_free_shash((*sdesc)->tfm); in cifs_free_hash() 1102 (*sdesc)->tfm = NULL; in cifs_free_hash() 1105 kfree_sensitive(*sdesc); in cifs_free_hash() [all …]
|
H A D | cifsproto.h | 627 int cifs_alloc_hash(const char *name, struct shash_desc **sdesc); 628 void cifs_free_hash(struct shash_desc **sdesc);
|
/openbmc/linux/drivers/dma/xilinx/ |
H A D | zynqmp_dma.c | 303 struct zynqmp_dma_desc_ll *sdesc, in zynqmp_dma_config_sg_ll_desc() argument 307 struct zynqmp_dma_desc_ll *ddesc = sdesc + 1; in zynqmp_dma_config_sg_ll_desc() 309 sdesc->size = ddesc->size = len; in zynqmp_dma_config_sg_ll_desc() 310 sdesc->addr = src; in zynqmp_dma_config_sg_ll_desc() 313 sdesc->ctrl = ddesc->ctrl = ZYNQMP_DMA_DESC_CTRL_SIZE_256; in zynqmp_dma_config_sg_ll_desc() 315 sdesc->ctrl |= ZYNQMP_DMA_DESC_CTRL_COHRNT; in zynqmp_dma_config_sg_ll_desc() 321 ((uintptr_t)sdesc - (uintptr_t)chan->desc_pool_v); in zynqmp_dma_config_sg_ll_desc() 430 struct zynqmp_dma_desc_sw *sdesc) in zynqmp_dma_free_descriptor() argument 435 list_move_tail(&sdesc->node, &chan->free_list); in zynqmp_dma_free_descriptor() 436 list_for_each_entry_safe(child, next, &sdesc->tx_list, node) { in zynqmp_dma_free_descriptor()
|
/openbmc/linux/drivers/firmware/arm_scmi/ |
H A D | sensors.c | 580 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() 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() 663 dsize += sizeof(sdesc->scalar_attrs); in iter_sens_descr_process_response() [all …]
|
/openbmc/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_algs.c | 607 if (!ctx->sdesc) { in cpt_aead_init() 623 kfree(ctx->sdesc); in cpt_aead_init() 631 kfree(ctx->sdesc); in cpt_aead_init() 707 kfree(ctx->sdesc); in otx2_cpt_aead_exit() 752 struct otx2_cpt_sdesc *sdesc; in alloc_sdesc() local 756 sdesc = kmalloc(size, GFP_KERNEL); in alloc_sdesc() 757 if (!sdesc) in alloc_sdesc() 760 sdesc->shash.tfm = alg; in alloc_sdesc() 762 return sdesc; in alloc_sdesc() 871 crypto_shash_init(&ctx->sdesc->shash); in aead_hmac_init() [all …]
|
H A D | otx2_cptvf_algs.h | 162 struct otx2_cpt_sdesc *sdesc; member
|
/openbmc/linux/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.c | 567 ctx->sdesc = alloc_sdesc(ctx->hashalg); in cpt_aead_init() 568 if (!ctx->sdesc) { in cpt_aead_init() 630 kfree(ctx->sdesc); in otx_cpt_aead_exit() 697 struct otx_cpt_sdesc *sdesc; in alloc_sdesc() local 701 sdesc = kmalloc(size, GFP_KERNEL); in alloc_sdesc() 702 if (!sdesc) in alloc_sdesc() 705 sdesc->shash.tfm = alg; in alloc_sdesc() 707 return sdesc; in alloc_sdesc() 816 crypto_shash_init(&ctx->sdesc->shash); in aead_hmac_init() 818 crypto_shash_export(&ctx->sdesc->shash, ipad); in aead_hmac_init() [all …]
|
H A D | otx_cptvf_algs.h | 172 struct otx_cpt_sdesc *sdesc; member
|
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-hash.c | 33 struct shash_desc *sdesc; in sun8i_ss_hashkey() local 41 len = sizeof(*sdesc) + crypto_shash_descsize(xtfm); in sun8i_ss_hashkey() 42 sdesc = kmalloc(len, GFP_KERNEL); in sun8i_ss_hashkey() 43 if (!sdesc) { in sun8i_ss_hashkey() 47 sdesc->tfm = xtfm; in sun8i_ss_hashkey() 49 ret = crypto_shash_init(sdesc); in sun8i_ss_hashkey() 54 ret = crypto_shash_finup(sdesc, key, keylen, tfmctx->key); in sun8i_ss_hashkey() 58 kfree(sdesc); in sun8i_ss_hashkey()
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | ce.c | 430 struct ce_desc *desc, sdesc; in _ath10k_ce_send_nolock() local 458 sdesc.addr = __cpu_to_le32(buffer); in _ath10k_ce_send_nolock() 459 sdesc.nbytes = __cpu_to_le16(nbytes); in _ath10k_ce_send_nolock() 462 *desc = sdesc; in _ath10k_ce_send_nolock() 487 struct ce_desc_64 *desc, sdesc; in _ath10k_ce_send_nolock_64() local 525 addr = (__le32 *)&sdesc.addr; in _ath10k_ce_send_nolock_64() 538 *desc = sdesc; in _ath10k_ce_send_nolock_64() 764 struct ce_desc sdesc; in _ath10k_ce_completed_recv_next_nolock() local 768 sdesc = *desc; in _ath10k_ce_completed_recv_next_nolock() 814 struct ce_desc_64 sdesc; in _ath10k_ce_completed_recv_next_nolock_64() local [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | sge.c | 292 d = &q->sdesc[cidx]; in free_tx_desc() 305 d = q->sdesc; in free_tx_desc() 546 sd = q->sdesc; in refill_fl() 580 q->sdesc[q->pidx] = q->sdesc[idx]; in recycle_rx_buf() 683 kfree(q->fl[i].sdesc); in t3_free_qset() 695 if (q->txq[i].sdesc) { in t3_free_qset() 698 kfree(q->txq[i].sdesc); in t3_free_qset() 1140 sd = q->sdesc; in write_wr_hdr_sgl() 1215 q->sdesc[pidx].skb = NULL; in write_tx_pkt_wr() 1640 q->sdesc[pidx].skb = NULL; in write_ofld_wr() [all …]
|
H A D | adapter.h | 115 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
|
/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/ |
H A D | hub.c | 338 struct usb_string_descriptor *sdesc = buf; in ast_vhub_collect_languages() local 342 max_langs = (size - hdr_len) / sizeof(sdesc->wData[0]); in ast_vhub_collect_languages() 348 sdesc->wData[nlangs++] = cpu_to_le16(lang_str->language); in ast_vhub_collect_languages() 351 rc = hdr_len + nlangs * sizeof(sdesc->wData[0]); in ast_vhub_collect_languages() 352 sdesc->bLength = rc; in ast_vhub_collect_languages() 353 sdesc->bDescriptorType = USB_DT_STRING; in ast_vhub_collect_languages()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | sge.c | 319 d = &q->sdesc[cidx]; in free_tx_desc() 332 d = q->sdesc; in free_tx_desc() 584 sd = q->sdesc; in refill_fl() 613 sd = q->sdesc; in refill_fl() 4557 kfree(fl->sdesc); in t4_sge_alloc_rxq() 4558 fl->sdesc = NULL; in t4_sge_alloc_rxq() 4796 kfree(q->sdesc); in t4_sge_alloc_ofld_txq() 4797 q->sdesc = NULL; in t4_sge_alloc_ofld_txq() 4860 q->sdesc = NULL; in free_txq() 4884 kfree(fl->sdesc); in free_rspq_fl() [all …]
|