/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 195 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 …]
|
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
|
/drivers/dma/sh/ |
D | shdma-base.c | 56 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 …]
|
D | shdmac.c | 283 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 …]
|
/drivers/dma/ |
D | sprd-dma.c | 512 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 …]
|
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()
|
/drivers/crypto/bcm/ |
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()
|
/drivers/crypto/marvell/octeontx/ |
D | otx_cptvf_algs.c | 612 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 …]
|
D | otx_cptvf_algs.h | 172 struct otx_cpt_sdesc *sdesc; member
|
/drivers/dma/xilinx/ |
D | zynqmp_dma.c | 302 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()
|
/drivers/firmware/arm_scmi/ |
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() 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 …]
|
/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptvf_algs.c | 690 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 …]
|
D | otx2_cptvf_algs.h | 162 struct otx2_cpt_sdesc *sdesc; member
|
/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-hash.c | 28 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()
|
/drivers/net/wireless/ath/ath10k/ |
D | ce.c | 497 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 …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 242 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 …]
|
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
|
/drivers/usb/gadget/udc/aspeed-vhub/ |
D | hub.c | 339 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()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 319 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 …]
|
D | cxgb4.h | 746 struct rx_sw_desc *sdesc; /* address of SW Rx descriptor ring */ member 853 struct tx_sw_desc *sdesc; /* address of SW Tx descriptor ring */ member
|
D | cxgb4_uld.c | 414 kfree(txq->q.sdesc); in free_sge_txq_uld()
|
/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
D | chcr_ktls.c | 1141 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()
|
/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
D | chcr_ipsec.c | 752 sgl_sdesc = &q->q.sdesc[last_desc]; in ch_ipsec_xmit()
|
/drivers/net/usb/ |
D | r8152.c | 4507 struct shash_desc *sdesc; in rtl8152_fw_verify_checksum() local 4524 len = sizeof(*sdesc) + crypto_shash_descsize(alg); in rtl8152_fw_verify_checksum() 4525 sdesc = kmalloc(len, GFP_KERNEL); in rtl8152_fw_verify_checksum() 4526 if (!sdesc) { in rtl8152_fw_verify_checksum() 4530 sdesc->tfm = alg; in rtl8152_fw_verify_checksum() 4533 rc = crypto_shash_digest(sdesc, fw_hdr->version, len, checksum); in rtl8152_fw_verify_checksum() 4534 kfree(sdesc); in rtl8152_fw_verify_checksum()
|