dma_desc 30 arch/mips/include/asm/mach-rc32434/dma.h #define DMA_DESC_SIZ sizeof(struct dma_desc) dma_desc 294 drivers/crypto/talitos.c request->dma_desc = dma_map_single(dev, &desc->hdr1, dma_desc 298 drivers/crypto/talitos.c request->dma_desc = dma_map_single(dev, desc, dma_desc 314 drivers/crypto/talitos.c upper_32_bits(request->dma_desc)); dma_desc 316 drivers/crypto/talitos.c lower_32_bits(request->dma_desc)); dma_desc 369 drivers/crypto/talitos.c dma_unmap_single(dev, request->dma_desc, dma_desc 480 drivers/crypto/talitos.c while (priv->chan[ch].fifo[iter].dma_desc != cur_desc && dma_desc 82 drivers/crypto/talitos.h dma_addr_t dma_desc; dma_desc 437 drivers/dma/mv_xor.c dma_addr_t dma_desc; dma_desc 460 drivers/dma/mv_xor.c dma_desc = mv_chan->dma_desc_pool; dma_desc 461 drivers/dma/mv_xor.c slot->async_tx.phys = dma_desc + idx * MV_XOR_SLOT_SIZE; dma_desc 154 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc; dma_desc 277 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc; dma_desc 283 drivers/dma/tegra20-apb-dma.c list_for_each_entry(dma_desc, &tdc->free_dma_desc, node) { dma_desc 284 drivers/dma/tegra20-apb-dma.c if (async_tx_test_ack(&dma_desc->txd) && !dma_desc->cb_count) { dma_desc 285 drivers/dma/tegra20-apb-dma.c list_del(&dma_desc->node); dma_desc 287 drivers/dma/tegra20-apb-dma.c dma_desc->txd.flags = 0; dma_desc 288 drivers/dma/tegra20-apb-dma.c return dma_desc; dma_desc 295 drivers/dma/tegra20-apb-dma.c dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT); dma_desc 296 drivers/dma/tegra20-apb-dma.c if (!dma_desc) dma_desc 299 drivers/dma/tegra20-apb-dma.c dma_async_tx_descriptor_init(&dma_desc->txd, &tdc->dma_chan); dma_desc 300 drivers/dma/tegra20-apb-dma.c dma_desc->txd.tx_submit = tegra_dma_tx_submit; dma_desc 301 drivers/dma/tegra20-apb-dma.c dma_desc->txd.flags = 0; dma_desc 302 drivers/dma/tegra20-apb-dma.c return dma_desc; dma_desc 306 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc) dma_desc 311 drivers/dma/tegra20-apb-dma.c if (!list_empty(&dma_desc->tx_list)) dma_desc 312 drivers/dma/tegra20-apb-dma.c list_splice_init(&dma_desc->tx_list, &tdc->free_sg_req); dma_desc 313 drivers/dma/tegra20-apb-dma.c list_add_tail(&dma_desc->node, &tdc->free_dma_desc); dma_desc 545 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc; dma_desc 552 drivers/dma/tegra20-apb-dma.c dma_desc = sgreq->dma_desc; dma_desc 553 drivers/dma/tegra20-apb-dma.c dma_desc->dma_status = DMA_ERROR; dma_desc 554 drivers/dma/tegra20-apb-dma.c list_add_tail(&dma_desc->node, &tdc->free_dma_desc); dma_desc 557 drivers/dma/tegra20-apb-dma.c if (!dma_desc->cb_count) dma_desc 558 drivers/dma/tegra20-apb-dma.c list_add_tail(&dma_desc->cb_node, dma_desc 560 drivers/dma/tegra20-apb-dma.c dma_desc->cb_count++; dma_desc 600 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc; dma_desc 604 drivers/dma/tegra20-apb-dma.c dma_desc = sgreq->dma_desc; dma_desc 605 drivers/dma/tegra20-apb-dma.c dma_desc->bytes_transferred += sgreq->req_len; dma_desc 609 drivers/dma/tegra20-apb-dma.c dma_desc->dma_status = DMA_COMPLETE; dma_desc 610 drivers/dma/tegra20-apb-dma.c dma_cookie_complete(&dma_desc->txd); dma_desc 611 drivers/dma/tegra20-apb-dma.c if (!dma_desc->cb_count) dma_desc 612 drivers/dma/tegra20-apb-dma.c list_add_tail(&dma_desc->cb_node, &tdc->cb_desc); dma_desc 613 drivers/dma/tegra20-apb-dma.c dma_desc->cb_count++; dma_desc 614 drivers/dma/tegra20-apb-dma.c list_add_tail(&dma_desc->node, &tdc->free_dma_desc); dma_desc 629 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc; dma_desc 633 drivers/dma/tegra20-apb-dma.c dma_desc = sgreq->dma_desc; dma_desc 635 drivers/dma/tegra20-apb-dma.c dma_desc->bytes_transferred = dma_desc 636 drivers/dma/tegra20-apb-dma.c (dma_desc->bytes_transferred + sgreq->req_len) % dma_desc 637 drivers/dma/tegra20-apb-dma.c dma_desc->bytes_requested; dma_desc 640 drivers/dma/tegra20-apb-dma.c if (!dma_desc->cb_count) dma_desc 641 drivers/dma/tegra20-apb-dma.c list_add_tail(&dma_desc->cb_node, &tdc->cb_desc); dma_desc 642 drivers/dma/tegra20-apb-dma.c dma_desc->cb_count++; dma_desc 652 drivers/dma/tegra20-apb-dma.c dma_desc->dma_status = DMA_ERROR; dma_desc 660 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc; dma_desc 666 drivers/dma/tegra20-apb-dma.c dma_desc = list_first_entry(&tdc->cb_desc, dma_desc 667 drivers/dma/tegra20-apb-dma.c typeof(*dma_desc), cb_node); dma_desc 668 drivers/dma/tegra20-apb-dma.c list_del(&dma_desc->cb_node); dma_desc 669 drivers/dma/tegra20-apb-dma.c dmaengine_desc_get_callback(&dma_desc->txd, &cb); dma_desc 670 drivers/dma/tegra20-apb-dma.c cb_count = dma_desc->cb_count; dma_desc 671 drivers/dma/tegra20-apb-dma.c dma_desc->cb_count = 0; dma_desc 708 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc = txd_to_tegra_dma_desc(txd); dma_desc 714 drivers/dma/tegra20-apb-dma.c dma_desc->dma_status = DMA_IN_PROGRESS; dma_desc 715 drivers/dma/tegra20-apb-dma.c cookie = dma_cookie_assign(&dma_desc->txd); dma_desc 716 drivers/dma/tegra20-apb-dma.c list_splice_tail_init(&dma_desc->tx_list, &tdc->pending_sg_req); dma_desc 752 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc; dma_desc 783 drivers/dma/tegra20-apb-dma.c sgreq->dma_desc->bytes_transferred += dma_desc 792 drivers/dma/tegra20-apb-dma.c dma_desc = list_first_entry(&tdc->cb_desc, dma_desc 793 drivers/dma/tegra20-apb-dma.c typeof(*dma_desc), cb_node); dma_desc 794 drivers/dma/tegra20-apb-dma.c list_del(&dma_desc->cb_node); dma_desc 795 drivers/dma/tegra20-apb-dma.c dma_desc->cb_count = 0; dma_desc 864 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc; dma_desc 878 drivers/dma/tegra20-apb-dma.c list_for_each_entry(dma_desc, &tdc->free_dma_desc, node) { dma_desc 879 drivers/dma/tegra20-apb-dma.c if (dma_desc->txd.cookie == cookie) { dma_desc 880 drivers/dma/tegra20-apb-dma.c ret = dma_desc->dma_status; dma_desc 887 drivers/dma/tegra20-apb-dma.c dma_desc = sg_req->dma_desc; dma_desc 888 drivers/dma/tegra20-apb-dma.c if (dma_desc->txd.cookie == cookie) { dma_desc 890 drivers/dma/tegra20-apb-dma.c ret = dma_desc->dma_status; dma_desc 896 drivers/dma/tegra20-apb-dma.c dma_desc = NULL; dma_desc 899 drivers/dma/tegra20-apb-dma.c if (dma_desc && txstate) { dma_desc 900 drivers/dma/tegra20-apb-dma.c residual = dma_desc->bytes_requested - dma_desc 901 drivers/dma/tegra20-apb-dma.c ((dma_desc->bytes_transferred + bytes) % dma_desc 902 drivers/dma/tegra20-apb-dma.c dma_desc->bytes_requested); dma_desc 1006 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc; dma_desc 1051 drivers/dma/tegra20-apb-dma.c dma_desc = tegra_dma_desc_get(tdc); dma_desc 1052 drivers/dma/tegra20-apb-dma.c if (!dma_desc) { dma_desc 1056 drivers/dma/tegra20-apb-dma.c INIT_LIST_HEAD(&dma_desc->tx_list); dma_desc 1057 drivers/dma/tegra20-apb-dma.c INIT_LIST_HEAD(&dma_desc->cb_node); dma_desc 1058 drivers/dma/tegra20-apb-dma.c dma_desc->cb_count = 0; dma_desc 1059 drivers/dma/tegra20-apb-dma.c dma_desc->bytes_requested = 0; dma_desc 1060 drivers/dma/tegra20-apb-dma.c dma_desc->bytes_transferred = 0; dma_desc 1061 drivers/dma/tegra20-apb-dma.c dma_desc->dma_status = DMA_IN_PROGRESS; dma_desc 1074 drivers/dma/tegra20-apb-dma.c tegra_dma_desc_put(tdc, dma_desc); dma_desc 1081 drivers/dma/tegra20-apb-dma.c tegra_dma_desc_put(tdc, dma_desc); dma_desc 1086 drivers/dma/tegra20-apb-dma.c dma_desc->bytes_requested += len; dma_desc 1096 drivers/dma/tegra20-apb-dma.c sg_req->dma_desc = dma_desc; dma_desc 1099 drivers/dma/tegra20-apb-dma.c list_add_tail(&sg_req->node, &dma_desc->tx_list); dma_desc 1103 drivers/dma/tegra20-apb-dma.c dma_desc->txd.flags = DMA_CTRL_ACK; dma_desc 1115 drivers/dma/tegra20-apb-dma.c tegra_dma_desc_put(tdc, dma_desc); dma_desc 1120 drivers/dma/tegra20-apb-dma.c return &dma_desc->txd; dma_desc 1129 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc = NULL; dma_desc 1198 drivers/dma/tegra20-apb-dma.c dma_desc = tegra_dma_desc_get(tdc); dma_desc 1199 drivers/dma/tegra20-apb-dma.c if (!dma_desc) { dma_desc 1204 drivers/dma/tegra20-apb-dma.c INIT_LIST_HEAD(&dma_desc->tx_list); dma_desc 1205 drivers/dma/tegra20-apb-dma.c INIT_LIST_HEAD(&dma_desc->cb_node); dma_desc 1206 drivers/dma/tegra20-apb-dma.c dma_desc->cb_count = 0; dma_desc 1208 drivers/dma/tegra20-apb-dma.c dma_desc->bytes_transferred = 0; dma_desc 1209 drivers/dma/tegra20-apb-dma.c dma_desc->bytes_requested = buf_len; dma_desc 1217 drivers/dma/tegra20-apb-dma.c tegra_dma_desc_put(tdc, dma_desc); dma_desc 1230 drivers/dma/tegra20-apb-dma.c sg_req->dma_desc = dma_desc; dma_desc 1233 drivers/dma/tegra20-apb-dma.c list_add_tail(&sg_req->node, &dma_desc->tx_list); dma_desc 1239 drivers/dma/tegra20-apb-dma.c dma_desc->txd.flags = DMA_CTRL_ACK; dma_desc 1251 drivers/dma/tegra20-apb-dma.c tegra_dma_desc_put(tdc, dma_desc); dma_desc 1256 drivers/dma/tegra20-apb-dma.c return &dma_desc->txd; dma_desc 1279 drivers/dma/tegra20-apb-dma.c struct tegra_dma_desc *dma_desc; dma_desc 1303 drivers/dma/tegra20-apb-dma.c dma_desc = list_first_entry(&dma_desc_list, dma_desc 1304 drivers/dma/tegra20-apb-dma.c typeof(*dma_desc), node); dma_desc 1305 drivers/dma/tegra20-apb-dma.c list_del(&dma_desc->node); dma_desc 1306 drivers/dma/tegra20-apb-dma.c kfree(dma_desc); dma_desc 145 drivers/dma/timb_dma.c static int td_fill_desc(struct timb_dma_chan *td_chan, u8 *dma_desc, dma_desc 161 drivers/dma/timb_dma.c dma_desc, (unsigned long long)sg_dma_address(sg)); dma_desc 163 drivers/dma/timb_dma.c dma_desc[7] = (sg_dma_address(sg) >> 24) & 0xff; dma_desc 164 drivers/dma/timb_dma.c dma_desc[6] = (sg_dma_address(sg) >> 16) & 0xff; dma_desc 165 drivers/dma/timb_dma.c dma_desc[5] = (sg_dma_address(sg) >> 8) & 0xff; dma_desc 166 drivers/dma/timb_dma.c dma_desc[4] = (sg_dma_address(sg) >> 0) & 0xff; dma_desc 168 drivers/dma/timb_dma.c dma_desc[3] = (sg_dma_len(sg) >> 8) & 0xff; dma_desc 169 drivers/dma/timb_dma.c dma_desc[2] = (sg_dma_len(sg) >> 0) & 0xff; dma_desc 171 drivers/dma/timb_dma.c dma_desc[1] = 0x00; dma_desc 172 drivers/dma/timb_dma.c dma_desc[0] = 0x21 | (last ? 0x02 : 0); /* tran, valid */ dma_desc 359 drivers/i2c/busses/i2c-tegra.c struct dma_async_tx_descriptor *dma_desc; dma_desc 367 drivers/i2c/busses/i2c-tegra.c dma_desc = dmaengine_prep_slave_single(chan, i2c_dev->dma_phys, dma_desc 370 drivers/i2c/busses/i2c-tegra.c if (!dma_desc) { dma_desc 375 drivers/i2c/busses/i2c-tegra.c dma_desc->callback = tegra_i2c_dma_complete; dma_desc 376 drivers/i2c/busses/i2c-tegra.c dma_desc->callback_param = i2c_dev; dma_desc 377 drivers/i2c/busses/i2c-tegra.c dmaengine_submit(dma_desc); dma_desc 106 drivers/media/platform/atmel/atmel-isi.c struct isi_dma_desc dma_desc[VIDEO_MAX_FRAME]; dma_desc 1234 drivers/media/platform/atmel/atmel-isi.c isi->dma_desc[i].p_fbd = isi->p_fb_descriptors + i; dma_desc 1235 drivers/media/platform/atmel/atmel-isi.c isi->dma_desc[i].fbd_phys = isi->fb_descriptors_phys + dma_desc 1237 drivers/media/platform/atmel/atmel-isi.c list_add(&isi->dma_desc[i].list, &isi->dma_desc_head); dma_desc 197 drivers/media/platform/marvell-ccic/mcam-core.c struct mcam_dma_desc *dma_desc; /* Descriptor virtual address */ dma_desc 1241 drivers/media/platform/marvell-ccic/mcam-core.c mvb->dma_desc = dma_alloc_coherent(cam->dev, dma_desc 1244 drivers/media/platform/marvell-ccic/mcam-core.c if (mvb->dma_desc == NULL) { dma_desc 1256 drivers/media/platform/marvell-ccic/mcam-core.c struct mcam_dma_desc *desc = mvb->dma_desc; dma_desc 1276 drivers/media/platform/marvell-ccic/mcam-core.c mvb->dma_desc, mvb->dma_desc_pa); dma_desc 184 drivers/mmc/host/bcm2835.c struct dma_async_tx_descriptor *dma_desc; dma_desc 516 drivers/mmc/host/bcm2835.c host->dma_desc = desc; dma_desc 523 drivers/mmc/host/bcm2835.c dmaengine_submit(host->dma_desc); dma_desc 532 drivers/mmc/host/bcm2835.c if (host->dma_desc) { dma_desc 558 drivers/mmc/host/bcm2835.c if (!host->dma_desc) { dma_desc 608 drivers/mmc/host/bcm2835.c host->dma_desc = NULL; dma_desc 804 drivers/mmc/host/bcm2835.c if (host->data && host->dma_desc) dma_desc 963 drivers/mmc/host/bcm2835.c if (!host->dma_desc) { dma_desc 1221 drivers/mmc/host/bcm2835.c if (host->data && host->dma_desc) { dma_desc 1396 drivers/mmc/host/bcm2835.c host->dma_desc = NULL; dma_desc 790 drivers/mmc/host/mmci.c struct dma_async_tx_descriptor **dma_desc) dma_desc 841 drivers/mmc/host/mmci.c *dma_desc = desc; dma_desc 666 drivers/mmc/host/sdhci.c struct sdhci_adma2_64_desc *dma_desc = *desc; dma_desc 669 drivers/mmc/host/sdhci.c dma_desc->cmd = cpu_to_le16(cmd); dma_desc 670 drivers/mmc/host/sdhci.c dma_desc->len = cpu_to_le16(len); dma_desc 671 drivers/mmc/host/sdhci.c dma_desc->addr_lo = cpu_to_le32(lower_32_bits(addr)); dma_desc 674 drivers/mmc/host/sdhci.c dma_desc->addr_hi = cpu_to_le32(upper_32_bits(addr)); dma_desc 692 drivers/mmc/host/sdhci.c struct sdhci_adma2_64_desc *dma_desc = desc; dma_desc 695 drivers/mmc/host/sdhci.c dma_desc->cmd |= cpu_to_le16(ADMA2_END); dma_desc 2883 drivers/mmc/host/sdhci.c struct sdhci_adma2_64_desc *dma_desc = desc; dma_desc 2888 drivers/mmc/host/sdhci.c le32_to_cpu(dma_desc->addr_hi), dma_desc 2889 drivers/mmc/host/sdhci.c le32_to_cpu(dma_desc->addr_lo), dma_desc 2890 drivers/mmc/host/sdhci.c le16_to_cpu(dma_desc->len), dma_desc 2891 drivers/mmc/host/sdhci.c le16_to_cpu(dma_desc->cmd)); dma_desc 2895 drivers/mmc/host/sdhci.c le32_to_cpu(dma_desc->addr_lo), dma_desc 2896 drivers/mmc/host/sdhci.c le16_to_cpu(dma_desc->len), dma_desc 2897 drivers/mmc/host/sdhci.c le16_to_cpu(dma_desc->cmd)); dma_desc 2902 drivers/mmc/host/sdhci.c if (dma_desc->cmd & cpu_to_le16(ADMA2_END)) dma_desc 184 drivers/mtd/nand/raw/brcmnand/brcmnand.c struct brcm_nand_dma_desc *dma_desc; dma_desc 1707 drivers/mtd/nand/raw/brcmnand/brcmnand.c brcmnand_fill_dma_desc(host, ctrl->dma_desc, addr, buf_pa, len, dma_desc 1714 drivers/mtd/nand/raw/brcmnand/brcmnand.c if (ctrl->dma_desc->status_valid & FLASH_DMA_ECC_ERROR) dma_desc 1716 drivers/mtd/nand/raw/brcmnand/brcmnand.c else if (ctrl->dma_desc->status_valid & FLASH_DMA_CORR_ERROR) dma_desc 2626 drivers/mtd/nand/raw/brcmnand/brcmnand.c ctrl->dma_desc = dmam_alloc_coherent(dev, dma_desc 2627 drivers/mtd/nand/raw/brcmnand/brcmnand.c sizeof(*ctrl->dma_desc), dma_desc 2629 drivers/mtd/nand/raw/brcmnand/brcmnand.c if (!ctrl->dma_desc) { dma_desc 286 drivers/mtd/nand/raw/qcom_nandc.c struct dma_async_tx_descriptor *dma_desc; dma_desc 737 drivers/mtd/nand/raw/qcom_nandc.c struct dma_async_tx_descriptor *dma_desc; dma_desc 774 drivers/mtd/nand/raw/qcom_nandc.c dma_desc = dmaengine_prep_slave_sg(chan, sgl, sgl_cnt, dir_eng, dma_desc 777 drivers/mtd/nand/raw/qcom_nandc.c if (!dma_desc) { dma_desc 784 drivers/mtd/nand/raw/qcom_nandc.c desc->dma_desc = dma_desc; dma_desc 788 drivers/mtd/nand/raw/qcom_nandc.c bam_txn->last_cmd_desc = dma_desc; dma_desc 790 drivers/mtd/nand/raw/qcom_nandc.c bam_txn->last_data_desc = dma_desc; dma_desc 897 drivers/mtd/nand/raw/qcom_nandc.c struct dma_async_tx_descriptor *dma_desc; dma_desc 944 drivers/mtd/nand/raw/qcom_nandc.c dma_desc = dmaengine_prep_slave_sg(nandc->chan, sgl, 1, dir_eng, 0); dma_desc 945 drivers/mtd/nand/raw/qcom_nandc.c if (!dma_desc) { dma_desc 951 drivers/mtd/nand/raw/qcom_nandc.c desc->dma_desc = dma_desc; dma_desc 1313 drivers/mtd/nand/raw/qcom_nandc.c cookie = dmaengine_submit(desc->dma_desc); dma_desc 362 drivers/net/ethernet/aurora/nb8800.c nb8800_writel(priv, NB8800_TX_DESC_ADDR, txb->dma_desc); dma_desc 434 drivers/net/ethernet/aurora/nb8800.c txb->dma_desc + offsetof(struct nb8800_tx_desc, buf); dma_desc 435 drivers/net/ethernet/aurora/nb8800.c desc->n_addr = txb->dma_desc + sizeof(txd->desc[0]); dma_desc 442 drivers/net/ethernet/aurora/nb8800.c desc->n_addr = priv->tx_bufs[next].dma_desc; dma_desc 806 drivers/net/ethernet/aurora/nb8800.c dma_addr_t r_dma = txb->dma_desc + dma_desc 858 drivers/net/ethernet/aurora/nb8800.c priv->tx_bufs[i].dma_desc = dma_desc 902 drivers/net/ethernet/aurora/nb8800.c txb->dma_desc + offsetof(struct nb8800_tx_desc, buf); dma_desc 910 drivers/net/ethernet/aurora/nb8800.c nb8800_writel(priv, NB8800_TX_DESC_ADDR, txb->dma_desc); dma_desc 222 drivers/net/ethernet/aurora/nb8800.h dma_addr_t dma_desc; dma_desc 67 drivers/net/ethernet/broadcom/b44.c #define B44_RX_RING_BYTES (sizeof(struct dma_desc) * \ dma_desc 71 drivers/net/ethernet/broadcom/b44.c #define B44_TX_RING_BYTES (sizeof(struct dma_desc) * \ dma_desc 623 drivers/net/ethernet/broadcom/b44.c cur /= sizeof(struct dma_desc); dma_desc 660 drivers/net/ethernet/broadcom/b44.c struct dma_desc *dp; dma_desc 735 drivers/net/ethernet/broadcom/b44.c struct dma_desc *src_desc, *dest_desc; dma_desc 786 drivers/net/ethernet/broadcom/b44.c prod /= sizeof(struct dma_desc); dma_desc 861 drivers/net/ethernet/broadcom/b44.c bw32(bp, B44_DMARX_PTR, cons * sizeof(struct dma_desc)); dma_desc 1042 drivers/net/ethernet/broadcom/b44.c bw32(bp, B44_DMATX_PTR, entry * sizeof(struct dma_desc)); dma_desc 1044 drivers/net/ethernet/broadcom/b44.c bw32(bp, B44_DMATX_PTR, entry * sizeof(struct dma_desc)); dma_desc 1211 drivers/net/ethernet/broadcom/b44.c struct dma_desc *rx_ring; dma_desc 1239 drivers/net/ethernet/broadcom/b44.c struct dma_desc *tx_ring; dma_desc 2597 drivers/net/ethernet/broadcom/b44.c dma_desc_sync_size = max_t(unsigned int, dma_desc_align_size, sizeof(struct dma_desc)); dma_desc 363 drivers/net/ethernet/broadcom/b44.h struct dma_desc *rx_ring, *tx_ring; dma_desc 115 drivers/net/ethernet/broadcom/bgmac.c struct bgmac_dma_desc *dma_desc; dma_desc 124 drivers/net/ethernet/broadcom/bgmac.c dma_desc = &ring->cpu_base[i]; dma_desc 125 drivers/net/ethernet/broadcom/bgmac.c dma_desc->addr_low = cpu_to_le32(lower_32_bits(slot->dma_addr)); dma_desc 126 drivers/net/ethernet/broadcom/bgmac.c dma_desc->addr_high = cpu_to_le32(upper_32_bits(slot->dma_addr)); dma_desc 127 drivers/net/ethernet/broadcom/bgmac.c dma_desc->ctl0 = cpu_to_le32(ctl0); dma_desc 128 drivers/net/ethernet/broadcom/bgmac.c dma_desc->ctl1 = cpu_to_le32(ctl1); dma_desc 380 drivers/net/ethernet/broadcom/bgmac.c struct bgmac_dma_desc *dma_desc = ring->cpu_base + desc_idx; dma_desc 391 drivers/net/ethernet/broadcom/bgmac.c dma_desc->addr_low = cpu_to_le32(lower_32_bits(ring->slots[desc_idx].dma_addr)); dma_desc 392 drivers/net/ethernet/broadcom/bgmac.c dma_desc->addr_high = cpu_to_le32(upper_32_bits(ring->slots[desc_idx].dma_addr)); dma_desc 393 drivers/net/ethernet/broadcom/bgmac.c dma_desc->ctl0 = cpu_to_le32(ctl0); dma_desc 394 drivers/net/ethernet/broadcom/bgmac.c dma_desc->ctl1 = cpu_to_le32(ctl1); dma_desc 529 drivers/net/ethernet/broadcom/bgmac.c struct bgmac_dma_desc *dma_desc = ring->cpu_base; dma_desc 534 drivers/net/ethernet/broadcom/bgmac.c u32 ctl1 = le32_to_cpu(dma_desc[i].ctl1); dma_desc 91 drivers/net/ethernet/korina.c #define RD_RING_SIZE (KORINA_NUM_RDS * sizeof(struct dma_desc)) dma_desc 92 drivers/net/ethernet/korina.c #define TD_RING_SIZE (KORINA_NUM_TDS * sizeof(struct dma_desc)) dma_desc 110 drivers/net/ethernet/korina.c struct dma_desc *td_ring; /* transmit descriptor ring */ dma_desc 111 drivers/net/ethernet/korina.c struct dma_desc *rd_ring; /* receive descriptor ring */ dma_desc 187 drivers/net/ethernet/korina.c struct dma_desc *rd) dma_desc 193 drivers/net/ethernet/korina.c struct dma_desc *rd) dma_desc 205 drivers/net/ethernet/korina.c struct dma_desc *td; dma_desc 354 drivers/net/ethernet/korina.c struct dma_desc *rd = &lp->rd_ring[lp->rx_next_done]; dma_desc 526 drivers/net/ethernet/korina.c struct dma_desc *td = &lp->td_ring[lp->tx_next_done]; dma_desc 1079 drivers/net/ethernet/korina.c lp->td_ring = (struct dma_desc *)KSEG1ADDR(lp->td_ring); dma_desc 506 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c dma_addr_t dma_desc; dma_desc 578 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c dma_desc = dma_map_single(dev, desc, desc_sz, DMA_TO_DEVICE); dma_desc 579 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c ret = dma_mapping_error(dev, dma_desc); dma_desc 584 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c arg->arg.buf = dma_desc; dma_desc 601 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c dma_unmap_single(dev, dma_desc, desc_sz, DMA_TO_DEVICE); dma_desc 610 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c int dma_desc; dma_desc 614 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c for (dma_desc = 0; dma_desc < tx_rsize; dma_desc++) { dma_desc 615 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c struct sxgbe_tx_norm_desc *tdesc = txqueue->dma_tx + dma_desc; dma_desc 617 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c if (txqueue->tx_skbuff_dma[dma_desc]) dma_desc 619 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c txqueue->tx_skbuff_dma[dma_desc], dma_desc 623 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c dev_kfree_skb_any(txqueue->tx_skbuff[dma_desc]); dma_desc 624 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c txqueue->tx_skbuff[dma_desc] = NULL; dma_desc 625 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c txqueue->tx_skbuff_dma[dma_desc] = 0; dma_desc 25 drivers/net/ethernet/stmicro/stmmac/chain_mode.c struct dma_desc *desc; dma_desc 118 drivers/net/ethernet/stmicro/stmmac/chain_mode.c struct dma_desc *p = (struct dma_desc *)des; dma_desc 120 drivers/net/ethernet/stmicro/stmmac/chain_mode.c dma_phy += sizeof(struct dma_desc); dma_desc 128 drivers/net/ethernet/stmicro/stmmac/chain_mode.c static void refill_desc3(void *priv_ptr, struct dma_desc *p) dma_desc 141 drivers/net/ethernet/stmicro/stmmac/chain_mode.c sizeof(struct dma_desc))); dma_desc 144 drivers/net/ethernet/stmicro/stmmac/chain_mode.c static void clean_desc3(void *priv_ptr, struct dma_desc *p) dma_desc 158 drivers/net/ethernet/stmicro/stmmac/chain_mode.c * sizeof(struct dma_desc))); dma_desc 167 drivers/net/ethernet/stmicro/stmmac/descs.h struct dma_desc basic; /* Basic descriptors */ dma_desc 22 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void ehn_desc_rx_set_on_ring(struct dma_desc *p, int end, dma_desc 34 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void enh_desc_end_tx_desc_on_ring(struct dma_desc *p, int end) dma_desc 42 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void enh_set_tx_desc_len_on_ring(struct dma_desc *p, int len) dma_desc 54 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void ndesc_rx_set_on_ring(struct dma_desc *p, int end, int bfsize) dma_desc 68 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void ndesc_end_tx_desc_on_ring(struct dma_desc *p, int end) dma_desc 76 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void norm_set_tx_desc_len_on_ring(struct dma_desc *p, int len) dma_desc 91 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void ehn_desc_rx_set_on_chain(struct dma_desc *p) dma_desc 96 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void enh_desc_end_tx_desc_on_chain(struct dma_desc *p) dma_desc 101 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void enh_set_tx_desc_len_on_chain(struct dma_desc *p, int len) dma_desc 107 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void ndesc_rx_set_on_chain(struct dma_desc *p, int end) dma_desc 112 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void ndesc_tx_set_on_chain(struct dma_desc *p) dma_desc 117 drivers/net/ethernet/stmicro/stmmac/descs_com.h static inline void norm_set_tx_desc_len_on_chain(struct dma_desc *p, int len) dma_desc 16 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c struct dma_desc *p, dma_desc 74 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c struct dma_desc *p) dma_desc 174 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static int dwmac4_rd_get_tx_len(struct dma_desc *p) dma_desc 179 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static int dwmac4_get_tx_owner(struct dma_desc *p) dma_desc 184 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_set_tx_owner(struct dma_desc *p) dma_desc 189 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_set_rx_owner(struct dma_desc *p, int disable_rx_ic) dma_desc 197 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static int dwmac4_get_tx_ls(struct dma_desc *p) dma_desc 203 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static int dwmac4_wrback_get_rx_frame_len(struct dma_desc *p, int rx_coe) dma_desc 208 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_rd_enable_tx_timestamp(struct dma_desc *p) dma_desc 213 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static int dwmac4_wrback_get_tx_timestamp_status(struct dma_desc *p) dma_desc 228 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c struct dma_desc *p = (struct dma_desc *)desc; dma_desc 240 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c struct dma_desc *p = (struct dma_desc *)desc; dma_desc 267 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c struct dma_desc *p = (struct dma_desc *)desc; dma_desc 295 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_rd_init_rx_desc(struct dma_desc *p, int disable_rx_ic, dma_desc 301 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_rd_init_tx_desc(struct dma_desc *p, int mode, int end) dma_desc 309 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_rd_prepare_tx_desc(struct dma_desc *p, int is_fs, int len, dma_desc 347 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_rd_prepare_tso_tx_desc(struct dma_desc *p, int is_fs, dma_desc 390 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_release_tx_desc(struct dma_desc *p, int mode) dma_desc 398 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_rd_set_tx_ic(struct dma_desc *p) dma_desc 405 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c struct dma_desc *p = (struct dma_desc *)head; dma_desc 419 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_set_mss_ctxt(struct dma_desc *p, unsigned int mss) dma_desc 427 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_get_addr(struct dma_desc *p, unsigned int *addr) dma_desc 432 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_set_addr(struct dma_desc *p, dma_addr_t addr) dma_desc 438 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_clear(struct dma_desc *p) dma_desc 446 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_set_sarc(struct dma_desc *p, u32 sarc_type) dma_desc 462 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_set_vlan_tag(struct dma_desc *p, u16 tag, u16 inner_tag, dma_desc 489 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_set_vlan(struct dma_desc *p, u32 type) dma_desc 12 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c struct dma_desc *p, void __iomem *ioaddr) dma_desc 26 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c struct dma_desc *p) dma_desc 42 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static int dwxgmac2_get_tx_len(struct dma_desc *p) dma_desc 47 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static int dwxgmac2_get_tx_owner(struct dma_desc *p) dma_desc 52 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_set_tx_owner(struct dma_desc *p) dma_desc 57 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_set_rx_owner(struct dma_desc *p, int disable_rx_ic) dma_desc 65 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static int dwxgmac2_get_tx_ls(struct dma_desc *p) dma_desc 70 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static int dwxgmac2_get_rx_frame_len(struct dma_desc *p, int rx_coe) dma_desc 75 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_enable_tx_timestamp(struct dma_desc *p) dma_desc 80 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static int dwxgmac2_get_tx_timestamp_status(struct dma_desc *p) dma_desc 87 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c struct dma_desc *p = (struct dma_desc *)desc; dma_desc 98 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c struct dma_desc *p = (struct dma_desc *)desc; dma_desc 119 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c struct dma_desc *p = (struct dma_desc *)desc; dma_desc 129 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_init_rx_desc(struct dma_desc *p, int disable_rx_ic, dma_desc 135 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_init_tx_desc(struct dma_desc *p, int mode, int end) dma_desc 143 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_prepare_tx_desc(struct dma_desc *p, int is_fs, int len, dma_desc 181 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_prepare_tso_tx_desc(struct dma_desc *p, int is_fs, dma_desc 221 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_release_tx_desc(struct dma_desc *p, int mode) dma_desc 229 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_set_tx_ic(struct dma_desc *p) dma_desc 234 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_set_mss(struct dma_desc *p, unsigned int mss) dma_desc 242 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_get_addr(struct dma_desc *p, unsigned int *addr) dma_desc 247 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_set_addr(struct dma_desc *p, dma_addr_t addr) dma_desc 253 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_clear(struct dma_desc *p) dma_desc 261 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static int dwxgmac2_get_rx_hash(struct dma_desc *p, u32 *hash, dma_desc 289 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static int dwxgmac2_get_rx_header_len(struct dma_desc *p, unsigned int *len) dma_desc 296 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_set_sec_addr(struct dma_desc *p, dma_addr_t addr) dma_desc 302 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_set_sarc(struct dma_desc *p, u32 sarc_type) dma_desc 309 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_set_vlan_tag(struct dma_desc *p, u16 tag, u16 inner_tag, dma_desc 336 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_set_vlan(struct dma_desc *p, u32 type) dma_desc 16 drivers/net/ethernet/stmicro/stmmac/enh_desc.c struct dma_desc *p, void __iomem *ioaddr) dma_desc 82 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static int enh_desc_get_tx_len(struct dma_desc *p) dma_desc 185 drivers/net/ethernet/stmicro/stmmac/enh_desc.c struct dma_desc *p) dma_desc 257 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_init_rx_desc(struct dma_desc *p, int disable_rx_ic, dma_desc 276 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_init_tx_desc(struct dma_desc *p, int mode, int end) dma_desc 285 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static int enh_desc_get_tx_owner(struct dma_desc *p) dma_desc 290 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_set_tx_owner(struct dma_desc *p) dma_desc 295 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_set_rx_owner(struct dma_desc *p, int disable_rx_ic) dma_desc 300 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static int enh_desc_get_tx_ls(struct dma_desc *p) dma_desc 305 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_release_tx_desc(struct dma_desc *p, int mode) dma_desc 309 drivers/net/ethernet/stmicro/stmmac/enh_desc.c memset(p, 0, offsetof(struct dma_desc, des2)); dma_desc 316 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_prepare_tx_desc(struct dma_desc *p, int is_fs, int len, dma_desc 354 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_set_tx_ic(struct dma_desc *p) dma_desc 359 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static int enh_desc_get_rx_frame_len(struct dma_desc *p, int rx_coe_type) dma_desc 375 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_enable_tx_timestamp(struct dma_desc *p) dma_desc 380 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static int enh_desc_get_tx_timestamp_status(struct dma_desc *p) dma_desc 395 drivers/net/ethernet/stmicro/stmmac/enh_desc.c struct dma_desc *p = (struct dma_desc *)desc; dma_desc 410 drivers/net/ethernet/stmicro/stmmac/enh_desc.c struct dma_desc *p = (struct dma_desc *)desc; dma_desc 440 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_get_addr(struct dma_desc *p, unsigned int *addr) dma_desc 445 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_set_addr(struct dma_desc *p, dma_addr_t addr) dma_desc 450 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_clear(struct dma_desc *p) dma_desc 30 drivers/net/ethernet/stmicro/stmmac/hwif.h struct dma_desc; dma_desc 36 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*init_rx_desc)(struct dma_desc *p, int disable_rx_ic, int mode, dma_desc 39 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*init_tx_desc)(struct dma_desc *p, int mode, int end); dma_desc 41 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*prepare_tx_desc)(struct dma_desc *p, int is_fs, int len, dma_desc 44 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*prepare_tso_tx_desc)(struct dma_desc *p, int is_fs, int len1, dma_desc 48 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*set_tx_owner)(struct dma_desc *p); dma_desc 49 drivers/net/ethernet/stmicro/stmmac/hwif.h int (*get_tx_owner)(struct dma_desc *p); dma_desc 51 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*release_tx_desc)(struct dma_desc *p, int mode); dma_desc 54 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*set_tx_ic)(struct dma_desc *p); dma_desc 56 drivers/net/ethernet/stmicro/stmmac/hwif.h int (*get_tx_ls)(struct dma_desc *p); dma_desc 59 drivers/net/ethernet/stmicro/stmmac/hwif.h struct dma_desc *p, void __iomem *ioaddr); dma_desc 61 drivers/net/ethernet/stmicro/stmmac/hwif.h int (*get_tx_len)(struct dma_desc *p); dma_desc 63 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*set_rx_owner)(struct dma_desc *p, int disable_rx_ic); dma_desc 65 drivers/net/ethernet/stmicro/stmmac/hwif.h int (*get_rx_frame_len)(struct dma_desc *p, int rx_coe_type); dma_desc 68 drivers/net/ethernet/stmicro/stmmac/hwif.h struct dma_desc *p); dma_desc 72 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*enable_tx_timestamp) (struct dma_desc *p); dma_desc 74 drivers/net/ethernet/stmicro/stmmac/hwif.h int (*get_tx_timestamp_status) (struct dma_desc *p); dma_desc 82 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*set_mss)(struct dma_desc *p, unsigned int mss); dma_desc 84 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*get_addr)(struct dma_desc *p, unsigned int *addr); dma_desc 86 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*set_addr)(struct dma_desc *p, dma_addr_t addr); dma_desc 88 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*clear)(struct dma_desc *p); dma_desc 90 drivers/net/ethernet/stmicro/stmmac/hwif.h int (*get_rx_hash)(struct dma_desc *p, u32 *hash, dma_desc 92 drivers/net/ethernet/stmicro/stmmac/hwif.h int (*get_rx_header_len)(struct dma_desc *p, unsigned int *len); dma_desc 93 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*set_sec_addr)(struct dma_desc *p, dma_addr_t addr); dma_desc 94 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*set_sarc)(struct dma_desc *p, u32 sarc_type); dma_desc 95 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*set_vlan_tag)(struct dma_desc *p, u16 tag, u16 inner_tag, dma_desc 97 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*set_vlan)(struct dma_desc *p, u32 type); dma_desc 493 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*init_desc3)(struct dma_desc *p); dma_desc 494 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*refill_desc3) (void *priv, struct dma_desc *p); dma_desc 495 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*clean_desc3) (void *priv, struct dma_desc *p); dma_desc 16 drivers/net/ethernet/stmicro/stmmac/norm_desc.c struct dma_desc *p, void __iomem *ioaddr) dma_desc 64 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static int ndesc_get_tx_len(struct dma_desc *p) dma_desc 74 drivers/net/ethernet/stmicro/stmmac/norm_desc.c struct dma_desc *p) dma_desc 125 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_init_rx_desc(struct dma_desc *p, int disable_rx_ic, int mode, dma_desc 144 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_init_tx_desc(struct dma_desc *p, int mode, int end) dma_desc 153 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static int ndesc_get_tx_owner(struct dma_desc *p) dma_desc 158 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_set_tx_owner(struct dma_desc *p) dma_desc 163 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_set_rx_owner(struct dma_desc *p, int disable_rx_ic) dma_desc 168 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static int ndesc_get_tx_ls(struct dma_desc *p) dma_desc 173 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_release_tx_desc(struct dma_desc *p, int mode) dma_desc 177 drivers/net/ethernet/stmicro/stmmac/norm_desc.c memset(p, 0, offsetof(struct dma_desc, des2)); dma_desc 184 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_prepare_tx_desc(struct dma_desc *p, int is_fs, int len, dma_desc 214 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_set_tx_ic(struct dma_desc *p) dma_desc 219 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static int ndesc_get_rx_frame_len(struct dma_desc *p, int rx_coe_type) dma_desc 238 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_enable_tx_timestamp(struct dma_desc *p) dma_desc 243 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static int ndesc_get_tx_timestamp_status(struct dma_desc *p) dma_desc 250 drivers/net/ethernet/stmicro/stmmac/norm_desc.c struct dma_desc *p = (struct dma_desc *)desc; dma_desc 262 drivers/net/ethernet/stmicro/stmmac/norm_desc.c struct dma_desc *p = (struct dma_desc *)desc; dma_desc 274 drivers/net/ethernet/stmicro/stmmac/norm_desc.c struct dma_desc *p = (struct dma_desc *)head; dma_desc 292 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_get_addr(struct dma_desc *p, unsigned int *addr) dma_desc 297 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_set_addr(struct dma_desc *p, dma_addr_t addr) dma_desc 302 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_clear(struct dma_desc *p) dma_desc 24 drivers/net/ethernet/stmicro/stmmac/ring_mode.c struct dma_desc *desc; dma_desc 27 drivers/net/ethernet/stmicro/stmmac/ring_mode.c desc = (struct dma_desc *)(tx_q->dma_etx + entry); dma_desc 57 drivers/net/ethernet/stmicro/stmmac/ring_mode.c desc = (struct dma_desc *)(tx_q->dma_etx + entry); dma_desc 104 drivers/net/ethernet/stmicro/stmmac/ring_mode.c static void refill_desc3(void *priv_ptr, struct dma_desc *p) dma_desc 115 drivers/net/ethernet/stmicro/stmmac/ring_mode.c static void init_desc3(struct dma_desc *p) dma_desc 120 drivers/net/ethernet/stmicro/stmmac/ring_mode.c static void clean_desc3(void *priv_ptr, struct dma_desc *p) dma_desc 49 drivers/net/ethernet/stmicro/stmmac/stmmac.h struct dma_desc *dma_tx; dma_desc 73 drivers/net/ethernet/stmicro/stmmac/stmmac.h struct dma_desc *dma_rx ____cacheline_aligned_in_smp; dma_desc 433 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *p, struct sk_buff *skb) dma_desc 473 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c static void stmmac_get_rx_hwtstamp(struct stmmac_priv *priv, struct dma_desc *p, dma_desc 474 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *np, struct sk_buff *skb) dma_desc 477 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *desc = p; dma_desc 1206 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c static int stmmac_init_rx_buffers(struct stmmac_priv *priv, struct dma_desc *p, dma_desc 1316 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *p; dma_desc 1392 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *p; dma_desc 1489 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c DMA_RX_SIZE * sizeof(struct dma_desc), dma_desc 1521 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c DMA_TX_SIZE * sizeof(struct dma_desc), dma_desc 1586 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c DMA_RX_SIZE * sizeof(struct dma_desc), dma_desc 1644 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c DMA_TX_SIZE * sizeof(struct dma_desc), dma_desc 1883 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *p; dma_desc 1887 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c p = (struct dma_desc *)(tx_q->dma_etx + entry); dma_desc 2225 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c (DMA_RX_SIZE * sizeof(struct dma_desc)); dma_desc 2816 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *p; dma_desc 2853 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *desc; dma_desc 2913 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *desc, *first, *mss_desc = NULL; dma_desc 3134 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *desc, *first; dma_desc 3175 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c desc = (struct dma_desc *)(tx_q->dma_etx + entry); dma_desc 3204 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c desc = (struct dma_desc *)(tx_q->dma_etx + entry); dma_desc 3394 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *p; dma_desc 3398 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c p = (struct dma_desc *)(rx_q->dma_erx + entry); dma_desc 3444 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c (rx_q->dirty_rx * sizeof(struct dma_desc)); dma_desc 3480 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *np, *p; dma_desc 3505 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c p = (struct dma_desc *)(rx_q->dma_erx + entry); dma_desc 3520 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c np = (struct dma_desc *)(rx_q->dma_erx + next_entry); dma_desc 4041 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct dma_desc *p = (struct dma_desc *)head; dma_desc 795 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c (DMA_RX_SIZE * sizeof(struct dma_desc)); dma_desc 291 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c struct xlgmac_dma_desc *dma_desc; dma_desc 295 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c dma_desc = desc_data->dma_desc; dma_desc 298 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c desc_data->dma_desc, &desc_data->dma_desc_addr); dma_desc 302 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c le32_to_cpu(dma_desc->desc0), dma_desc 303 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c le32_to_cpu(dma_desc->desc1), dma_desc 304 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c le32_to_cpu(dma_desc->desc2), dma_desc 305 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c le32_to_cpu(dma_desc->desc3)); dma_desc 316 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c struct xlgmac_dma_desc *dma_desc; dma_desc 319 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c dma_desc = desc_data->dma_desc; dma_desc 322 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c desc_data->dma_desc, &desc_data->dma_desc_addr); dma_desc 326 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c le32_to_cpu(dma_desc->desc0), dma_desc 327 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c le32_to_cpu(dma_desc->desc1), dma_desc 328 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c le32_to_cpu(dma_desc->desc2), dma_desc 329 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c le32_to_cpu(dma_desc->desc3)); dma_desc 425 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c struct xlgmac_dma_desc *dma_desc; dma_desc 437 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c dma_desc = ring->dma_desc_head; dma_desc 443 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c desc_data->dma_desc = dma_desc; dma_desc 446 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c dma_desc++; dma_desc 462 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c struct xlgmac_dma_desc *dma_desc; dma_desc 474 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c dma_desc = ring->dma_desc_head; dma_desc 480 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c desc_data->dma_desc = dma_desc; dma_desc 486 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c dma_desc++; dma_desc 29 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_tx_complete(struct xlgmac_dma_desc *dma_desc) dma_desc 31 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c return !XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 708 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_dma_desc *dma_desc; dma_desc 759 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc = desc_data->dma_desc; dma_desc 769 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( dma_desc 770 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2, dma_desc 776 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 777 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 783 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 784 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 798 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 799 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 805 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 806 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 812 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 813 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 823 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc = desc_data->dma_desc; dma_desc 827 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc0 = cpu_to_le32(lower_32_bits(desc_data->skb_dma)); dma_desc 828 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc1 = cpu_to_le32(upper_32_bits(desc_data->skb_dma)); dma_desc 831 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( dma_desc 832 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2, dma_desc 839 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( dma_desc 840 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2, dma_desc 851 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( dma_desc 852 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2, dma_desc 858 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 859 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 865 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 866 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 873 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 874 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 881 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 882 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 885 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 886 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 890 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 891 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 899 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 900 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 906 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 907 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 913 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 914 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 923 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc = desc_data->dma_desc; dma_desc 926 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc0 = dma_desc 928 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc1 = dma_desc 932 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( dma_desc 933 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2, dma_desc 939 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 940 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 945 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 946 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 952 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 953 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 960 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 961 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 967 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( dma_desc 968 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2, dma_desc 984 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc = desc_data->dma_desc; dma_desc 985 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 986 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 1011 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_dma_desc *dma_desc) dma_desc 1016 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c tsa = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 1019 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c tsd = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 1023 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c nsec = le32_to_cpu(dma_desc->desc1); dma_desc 1025 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c nsec |= le32_to_cpu(dma_desc->desc0); dma_desc 1039 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_dma_desc *dma_desc = desc_data->dma_desc; dma_desc 1047 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc0 = 0; dma_desc 1048 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc1 = 0; dma_desc 1049 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2 = 0; dma_desc 1050 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = 0; dma_desc 1086 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_dma_desc *dma_desc = desc_data->dma_desc; dma_desc 1112 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc0 = cpu_to_le32(lower_32_bits(hdr_dma)); dma_desc 1113 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc1 = cpu_to_le32(upper_32_bits(hdr_dma)); dma_desc 1114 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc2 = cpu_to_le32(lower_32_bits(buf_dma)); dma_desc 1115 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = cpu_to_le32(upper_32_bits(buf_dma)); dma_desc 1117 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 1118 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 1129 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( dma_desc 1130 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc->desc3, dma_desc 1172 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_is_context_desc(struct xlgmac_dma_desc *dma_desc) dma_desc 1175 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c return XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 1180 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_is_last_desc(struct xlgmac_dma_desc *dma_desc) dma_desc 1183 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c return XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 2644 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_dma_desc *dma_desc; dma_desc 2649 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c dma_desc = desc_data->dma_desc; dma_desc 2653 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 2664 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 2668 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_get_rx_tstamp(pkt_info, dma_desc); dma_desc 2691 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 2701 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 2704 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c desc_data->rx.hdr_len = XLGMAC_GET_REG_BITS_LE(dma_desc->desc2, dma_desc 2712 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 2721 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pkt_info->rss_hash = le32_to_cpu(dma_desc->desc1); dma_desc 2723 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c l34t = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 2739 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c desc_data->rx.len = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 2743 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (!XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 2771 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c err = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 2774 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c etlt = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, dma_desc 2789 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c XLGMAC_GET_REG_BITS_LE(dma_desc->desc0, dma_desc 1041 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_dma_desc *dma_desc; dma_desc 1065 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c dma_desc = desc_data->dma_desc; dma_desc 1067 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (!hw_ops->tx_complete(dma_desc)) dma_desc 1078 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (hw_ops->is_last_desc(dma_desc)) { dma_desc 285 drivers/net/ethernet/synopsys/dwc-xlgmac.h struct xlgmac_dma_desc *dma_desc; dma_desc 399 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*tx_complete)(struct xlgmac_dma_desc *dma_desc); dma_desc 431 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*is_last_desc)(struct xlgmac_dma_desc *dma_desc); dma_desc 432 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*is_context_desc)(struct xlgmac_dma_desc *dma_desc); dma_desc 582 drivers/net/ethernet/ti/netcp_core.c dma_addr_t dma_desc, dma_buf; dma_desc 587 drivers/net/ethernet/ti/netcp_core.c get_words(&dma_desc, 1, &desc->next_desc); dma_desc 589 drivers/net/ethernet/ti/netcp_core.c while (dma_desc) { dma_desc 590 drivers/net/ethernet/ti/netcp_core.c ndesc = knav_pool_desc_unmap(netcp->rx_pool, dma_desc, dma_sz); dma_desc 595 drivers/net/ethernet/ti/netcp_core.c get_pkt_info(&dma_buf, &tmp, &dma_desc, ndesc); dma_desc 647 drivers/net/ethernet/ti/netcp_core.c dma_addr_t dma_desc, dma_buff; dma_desc 653 drivers/net/ethernet/ti/netcp_core.c dma_desc = knav_queue_pop(netcp->rx_queue, &dma_sz); dma_desc 654 drivers/net/ethernet/ti/netcp_core.c if (!dma_desc) dma_desc 657 drivers/net/ethernet/ti/netcp_core.c desc = knav_pool_desc_unmap(netcp->rx_pool, dma_desc, dma_sz); dma_desc 663 drivers/net/ethernet/ti/netcp_core.c get_pkt_info(&dma_buff, &buf_len, &dma_desc, desc); dma_desc 691 drivers/net/ethernet/ti/netcp_core.c while (dma_desc) { dma_desc 694 drivers/net/ethernet/ti/netcp_core.c ndesc = knav_pool_desc_unmap(netcp->rx_pool, dma_desc, dma_sz); dma_desc 700 drivers/net/ethernet/ti/netcp_core.c get_pkt_info(&dma_buff, &buf_len, &dma_desc, ndesc); dma_desc 978 drivers/net/ethernet/ti/netcp_core.c dma_addr_t dma_desc, dma_buf; dma_desc 982 drivers/net/ethernet/ti/netcp_core.c get_pkt_info(&dma_buf, &buf_len, &dma_desc, ndesc); dma_desc 993 drivers/net/ethernet/ti/netcp_core.c if (dma_desc) { dma_desc 994 drivers/net/ethernet/ti/netcp_core.c ndesc = knav_pool_desc_unmap(netcp->tx_pool, dma_desc, dma_desc 2918 drivers/scsi/qla2xxx/qla_nx2.c struct qla8044_pex_dma_descriptor dma_desc; dma_desc 2945 drivers/scsi/qla2xxx/qla_nx2.c dma_desc.cmd.dma_desc_cmd = (m_hdr->dma_desc_cmd & 0xff0f); dma_desc 2946 drivers/scsi/qla2xxx/qla_nx2.c dma_desc.cmd.dma_desc_cmd |= dma_desc 2949 drivers/scsi/qla2xxx/qla_nx2.c dma_desc.dma_bus_addr = rdmem_dma; dma_desc 2950 drivers/scsi/qla2xxx/qla_nx2.c dma_desc.cmd.read_data_size = chunk_size = ISP8044_PEX_DMA_READ_SIZE; dma_desc 2961 drivers/scsi/qla2xxx/qla_nx2.c dma_desc.cmd.read_data_size = chunk_size; dma_desc 2964 drivers/scsi/qla2xxx/qla_nx2.c dma_desc.src_addr = m_hdr->read_addr + read_size; dma_desc 2968 drivers/scsi/qla2xxx/qla_nx2.c m_hdr->desc_card_addr, (void *)&dma_desc, dma_desc 2039 drivers/scsi/qla4xxx/ql4_nx.c struct qla4_83xx_pex_dma_descriptor dma_desc; dma_desc 2068 drivers/scsi/qla4xxx/ql4_nx.c dma_desc.cmd.dma_desc_cmd = (m_hdr->dma_desc_cmd & 0xff0f); dma_desc 2069 drivers/scsi/qla4xxx/ql4_nx.c dma_desc.cmd.dma_desc_cmd |= ((PCI_FUNC(ha->pdev->devfn) & 0xf) << 0x4); dma_desc 2070 drivers/scsi/qla4xxx/ql4_nx.c dma_desc.dma_bus_addr = rdmem_dma; dma_desc 2099 drivers/scsi/qla4xxx/ql4_nx.c dma_desc.dma_bus_addr = rdmem_dma; dma_desc 2102 drivers/scsi/qla4xxx/ql4_nx.c dma_desc.src_addr = m_hdr->read_addr + read_size; dma_desc 2103 drivers/scsi/qla4xxx/ql4_nx.c dma_desc.cmd.read_data_size = size; dma_desc 2108 drivers/scsi/qla4xxx/ql4_nx.c (uint32_t *)&dma_desc, dma_desc 44 drivers/soc/tegra/fuse/fuse-tegra20.c struct dma_async_tx_descriptor *dma_desc; dma_desc 57 drivers/soc/tegra/fuse/fuse-tegra20.c dma_desc = dmaengine_prep_slave_single(fuse->apbdma.chan, dma_desc 61 drivers/soc/tegra/fuse/fuse-tegra20.c if (!dma_desc) dma_desc 64 drivers/soc/tegra/fuse/fuse-tegra20.c dma_desc->callback = apb_dma_complete; dma_desc 65 drivers/soc/tegra/fuse/fuse-tegra20.c dma_desc->callback_param = fuse; dma_desc 71 drivers/soc/tegra/fuse/fuse-tegra20.c dmaengine_submit(dma_desc); dma_desc 126 drivers/staging/comedi/drivers/gsc_hpdi.c struct plx_dma_desc *dma_desc; dma_desc 155 drivers/staging/comedi/drivers/gsc_hpdi.c start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr); dma_desc 170 drivers/staging/comedi/drivers/gsc_hpdi.c start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr); dma_desc 429 drivers/staging/comedi/drivers/gsc_hpdi.c devpriv->dma_desc[i].pci_start_addr = dma_desc 431 drivers/staging/comedi/drivers/gsc_hpdi.c devpriv->dma_desc[i].local_start_addr = cpu_to_le32(FIFO_REG); dma_desc 432 drivers/staging/comedi/drivers/gsc_hpdi.c devpriv->dma_desc[i].transfer_size = cpu_to_le32(len); dma_desc 433 drivers/staging/comedi/drivers/gsc_hpdi.c devpriv->dma_desc[i].next = cpu_to_le32((phys_addr + dma_desc 434 drivers/staging/comedi/drivers/gsc_hpdi.c (i + 1) * sizeof(devpriv->dma_desc[0])) | next_bits); dma_desc 447 drivers/staging/comedi/drivers/gsc_hpdi.c devpriv->dma_desc[i - 1].next = cpu_to_le32(phys_addr | next_bits); dma_desc 497 drivers/staging/comedi/drivers/gsc_hpdi.c if (devpriv->dma_desc) dma_desc 501 drivers/staging/comedi/drivers/gsc_hpdi.c devpriv->dma_desc, dma_desc 633 drivers/staging/comedi/drivers/gsc_hpdi.c devpriv->dma_desc = dma_alloc_coherent(&pcidev->dev, dma_desc 638 drivers/staging/comedi/drivers/gsc_hpdi.c if (!devpriv->dma_desc) { dma_desc 546 drivers/usb/dwc2/hcd_ddma.c struct dwc2_dma_desc *dma_desc = &qh->desc_list[idx]; dma_desc 549 drivers/usb/dwc2/hcd_ddma.c memset(dma_desc, 0, sizeof(*dma_desc)); dma_desc 557 drivers/usb/dwc2/hcd_ddma.c dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); dma_desc 558 drivers/usb/dwc2/hcd_ddma.c dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT & dma_desc 562 drivers/usb/dwc2/hcd_ddma.c dma_desc->status |= HOST_DMA_A; dma_desc 570 drivers/usb/dwc2/hcd_ddma.c dma_desc->status |= HOST_DMA_IOC; dma_desc 694 drivers/usb/dwc2/hcd_ddma.c struct dwc2_dma_desc *dma_desc = &qh->desc_list[n_desc]; dma_desc 714 drivers/usb/dwc2/hcd_ddma.c dma_desc->status = len << HOST_DMA_NBYTES_SHIFT & HOST_DMA_NBYTES_MASK; dma_desc 719 drivers/usb/dwc2/hcd_ddma.c dma_desc->status |= HOST_DMA_SUP; dma_desc 721 drivers/usb/dwc2/hcd_ddma.c dma_desc->buf = (u32)chan->xfer_dma; dma_desc 897 drivers/usb/dwc2/hcd_ddma.c struct dwc2_dma_desc *dma_desc; dma_desc 910 drivers/usb/dwc2/hcd_ddma.c dma_desc = &qh->desc_list[idx]; dma_desc 913 drivers/usb/dwc2/hcd_ddma.c dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); dma_desc 915 drivers/usb/dwc2/hcd_ddma.c remain = (dma_desc->status & HOST_DMA_ISOC_NBYTES_MASK) >> dma_desc 918 drivers/usb/dwc2/hcd_ddma.c if ((dma_desc->status & HOST_DMA_STS_MASK) == HOST_DMA_STS_PKTERR) { dma_desc 955 drivers/usb/dwc2/hcd_ddma.c if (dma_desc->status & HOST_DMA_IOC) dma_desc 1070 drivers/usb/dwc2/hcd_ddma.c struct dwc2_dma_desc *dma_desc, dma_desc 1078 drivers/usb/dwc2/hcd_ddma.c remain = (dma_desc->status & HOST_DMA_NBYTES_MASK) >> dma_desc 1089 drivers/usb/dwc2/hcd_ddma.c if ((dma_desc->status & HOST_DMA_STS_MASK) == HOST_DMA_STS_PKTERR) { dma_desc 1112 drivers/usb/dwc2/hcd_ddma.c if (dma_desc->status & HOST_DMA_A) { dma_desc 1158 drivers/usb/dwc2/hcd_ddma.c struct dwc2_dma_desc *dma_desc; dma_desc 1173 drivers/usb/dwc2/hcd_ddma.c dma_desc = &qh->desc_list[desc_num]; dma_desc 1177 drivers/usb/dwc2/hcd_ddma.c qtd, urb, desc_num, dma_desc, n_bytes); dma_desc 1178 drivers/usb/dwc2/hcd_ddma.c failed = dwc2_update_non_isoc_urb_state_ddma(hsotg, chan, qtd, dma_desc, dma_desc 234 drivers/usb/gadget/udc/gr_udc.c struct gr_dma_desc *dma_desc; dma_desc 236 drivers/usb/gadget/udc/gr_udc.c dma_desc = dma_pool_zalloc(ep->dev->desc_pool, gfp_flags, &paddr); dma_desc 237 drivers/usb/gadget/udc/gr_udc.c if (!dma_desc) { dma_desc 242 drivers/usb/gadget/udc/gr_udc.c dma_desc->paddr = paddr; dma_desc 244 drivers/usb/gadget/udc/gr_udc.c return dma_desc; dma_desc 1754 drivers/usb/gadget/udc/pch_udc.c struct pch_udc_data_dma_desc *dma_desc; dma_desc 1768 drivers/usb/gadget/udc/pch_udc.c dma_desc = dma_pool_alloc(ep->dev->data_requests, gfp, dma_desc 1770 drivers/usb/gadget/udc/pch_udc.c if (NULL == dma_desc) { dma_desc 1775 drivers/usb/gadget/udc/pch_udc.c dma_desc->status |= PCH_UDC_BS_HST_BSY; dma_desc 1776 drivers/usb/gadget/udc/pch_udc.c dma_desc->dataptr = cpu_to_le32(DMA_ADDR_INVALID); dma_desc 1777 drivers/usb/gadget/udc/pch_udc.c req->td_data = dma_desc; dma_desc 1778 drivers/usb/gadget/udc/pch_udc.c req->td_data_last = dma_desc; dma_desc 523 drivers/usb/gadget/udc/snps_udc_core.c struct udc_data_dma *dma_desc; dma_desc 541 drivers/usb/gadget/udc/snps_udc_core.c dma_desc = dma_pool_alloc(ep->dev->data_requests, gfp, dma_desc 543 drivers/usb/gadget/udc/snps_udc_core.c if (!dma_desc) { dma_desc 550 drivers/usb/gadget/udc/snps_udc_core.c req, dma_desc, dma_desc 553 drivers/usb/gadget/udc/snps_udc_core.c dma_desc->status = AMD_ADDBITS(dma_desc->status, dma_desc 556 drivers/usb/gadget/udc/snps_udc_core.c dma_desc->bufptr = cpu_to_le32(DMA_DONT_USE); dma_desc 557 drivers/usb/gadget/udc/snps_udc_core.c req->td_data = dma_desc; dma_desc 149 drivers/usb/musb/musb_cppi41.c struct dma_async_tx_descriptor *dma_desc; dma_desc 162 drivers/usb/musb/musb_cppi41.c dma_desc = dmaengine_prep_slave_single(dc, dma_desc 167 drivers/usb/musb/musb_cppi41.c if (WARN_ON(!dma_desc)) dma_desc 170 drivers/usb/musb/musb_cppi41.c dma_desc->callback_result = cppi41_dma_callback; dma_desc 171 drivers/usb/musb/musb_cppi41.c dma_desc->callback_param = &cppi41_channel->channel; dma_desc 172 drivers/usb/musb/musb_cppi41.c cppi41_channel->cookie = dma_desc->tx_submit(dma_desc); dma_desc 418 drivers/usb/musb/musb_cppi41.c struct dma_async_tx_descriptor *dma_desc; dma_desc 465 drivers/usb/musb/musb_cppi41.c dma_desc = dmaengine_prep_slave_single(dc, dma_addr, len, direction, dma_desc 467 drivers/usb/musb/musb_cppi41.c if (!dma_desc) dma_desc 470 drivers/usb/musb/musb_cppi41.c dma_desc->callback_result = cppi41_dma_callback; dma_desc 471 drivers/usb/musb/musb_cppi41.c dma_desc->callback_param = channel; dma_desc 472 drivers/usb/musb/musb_cppi41.c cppi41_channel->cookie = dma_desc->tx_submit(dma_desc); dma_desc 196 drivers/usb/musb/tusb6010_omap.c struct dma_async_tx_descriptor *dma_desc; dma_desc 303 drivers/usb/musb/tusb6010_omap.c dma_desc = dmaengine_prep_slave_single(dma_data->chan, dma_addr, dma_desc 306 drivers/usb/musb/tusb6010_omap.c if (!dma_desc) { dma_desc 311 drivers/usb/musb/tusb6010_omap.c dma_desc->callback = tusb_omap_dma_cb; dma_desc 312 drivers/usb/musb/tusb6010_omap.c dma_desc->callback_param = channel; dma_desc 313 drivers/usb/musb/tusb6010_omap.c dmaengine_submit(dma_desc); dma_desc 77 drivers/usb/musb/ux500_dma.c struct dma_async_tx_descriptor *dma_desc; dma_desc 114 drivers/usb/musb/ux500_dma.c dma_desc = dmaengine_prep_slave_sg(dma_chan, &sg, 1, direction, dma_desc 116 drivers/usb/musb/ux500_dma.c if (!dma_desc) dma_desc 119 drivers/usb/musb/ux500_dma.c dma_desc->callback = ux500_dma_callback; dma_desc 120 drivers/usb/musb/ux500_dma.c dma_desc->callback_param = channel; dma_desc 121 drivers/usb/musb/ux500_dma.c ux500_channel->cookie = dma_desc->tx_submit(dma_desc); dma_desc 1069 drivers/video/fbdev/pxafb.c struct pxafb_dma_descriptor *dma_desc, *pal_desc; dma_desc 1075 drivers/video/fbdev/pxafb.c dma_desc = &fbi->dma_buff->dma_desc[dma]; dma_desc 1076 drivers/video/fbdev/pxafb.c dma_desc_off = offsetof(struct pxafb_dma_buff, dma_desc[dma]); dma_desc 1078 drivers/video/fbdev/pxafb.c dma_desc->fsadr = start; dma_desc 1079 drivers/video/fbdev/pxafb.c dma_desc->fidr = 0; dma_desc 1080 drivers/video/fbdev/pxafb.c dma_desc->ldcmd = size; dma_desc 1083 drivers/video/fbdev/pxafb.c dma_desc->fdadr = fbi->dma_buff_phys + dma_desc_off; dma_desc 1101 drivers/video/fbdev/pxafb.c dma_desc->fdadr = fbi->dma_buff_phys + pal_desc_off; dma_desc 1133 drivers/video/fbdev/pxafb.c struct pxafb_dma_descriptor *dma_desc; dma_desc 1136 drivers/video/fbdev/pxafb.c dma_desc = &fbi->dma_buff->dma_desc[DMA_CMD]; dma_desc 1137 drivers/video/fbdev/pxafb.c dma_desc_off = offsetof(struct pxafb_dma_buff, dma_desc[DMA_CMD]); dma_desc 1140 drivers/video/fbdev/pxafb.c dma_desc->fdadr = fbi->dma_buff_phys + dma_desc_off; dma_desc 1141 drivers/video/fbdev/pxafb.c dma_desc->fsadr = fbi->dma_buff_phys + cmd_buff_off; dma_desc 1142 drivers/video/fbdev/pxafb.c dma_desc->fidr = 0; dma_desc 1143 drivers/video/fbdev/pxafb.c dma_desc->ldcmd = fbi->n_smart_cmds * sizeof(uint16_t); dma_desc 1145 drivers/video/fbdev/pxafb.c fbi->fdadr[DMA_CMD] = dma_desc->fdadr; dma_desc 64 drivers/video/fbdev/pxafb.h struct pxafb_dma_descriptor dma_desc[DMA_MAX * 2];