| /linux/drivers/dma/ |
| H A D | tegra20-apb-dma.c | 154 struct tegra_dma_desc *dma_desc; member 267 struct tegra_dma_desc *dma_desc; in tegra_dma_desc_get() local 273 list_for_each_entry(dma_desc, &tdc->free_dma_desc, node) { in tegra_dma_desc_get() 274 if (async_tx_test_ack(&dma_desc->txd) && !dma_desc->cb_count) { in tegra_dma_desc_get() 275 list_del(&dma_desc->node); in tegra_dma_desc_get() 277 dma_desc->txd.flags = 0; in tegra_dma_desc_get() 278 return dma_desc; in tegra_dma_desc_get() 285 dma_desc = kzalloc_obj(*dma_desc, GFP_NOWAIT); in tegra_dma_desc_get() 286 if (!dma_desc) in tegra_dma_desc_get() 289 dma_async_tx_descriptor_init(&dma_desc->txd, &tdc->dma_chan); in tegra_dma_desc_get() [all …]
|
| H A D | timb_dma.c | 145 static int td_fill_desc(struct timb_dma_chan *td_chan, u8 *dma_desc, in td_fill_desc() argument 161 dma_desc, (unsigned long long)sg_dma_address(sg)); in td_fill_desc() 163 dma_desc[7] = (sg_dma_address(sg) >> 24) & 0xff; in td_fill_desc() 164 dma_desc[6] = (sg_dma_address(sg) >> 16) & 0xff; in td_fill_desc() 165 dma_desc[5] = (sg_dma_address(sg) >> 8) & 0xff; in td_fill_desc() 166 dma_desc[4] = (sg_dma_address(sg) >> 0) & 0xff; in td_fill_desc() 168 dma_desc[3] = (sg_dma_len(sg) >> 8) & 0xff; in td_fill_desc() 169 dma_desc[2] = (sg_dma_len(sg) >> 0) & 0xff; in td_fill_desc() 171 dma_desc[1] = 0x00; in td_fill_desc() 172 dma_desc[0] = 0x21 | (last ? 0x02 : 0); /* tran, valid */ in td_fill_desc()
|
| /linux/sound/soc/bcm/ |
| H A D | bcm63xx-pcm-whistler.c | 48 struct i2s_dma_desc *dma_desc; in bcm63xx_pcm_hw_params() local 51 dma_desc = kzalloc_obj(*dma_desc, GFP_NOWAIT); in bcm63xx_pcm_hw_params() 52 if (!dma_desc) in bcm63xx_pcm_hw_params() 55 snd_soc_dai_set_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream, dma_desc); in bcm63xx_pcm_hw_params() 63 struct i2s_dma_desc *dma_desc; in bcm63xx_pcm_hw_free() local 66 dma_desc = snd_soc_dai_get_dma_data(snd_soc_rtd_to_cpu(rtd, 0), substream); in bcm63xx_pcm_hw_free() 67 kfree(dma_desc); in bcm63xx_pcm_hw_free() 144 struct i2s_dma_desc *dma_desc; in bcm63xx_pcm_prepare() local 151 dma_desc in bcm63xx_pcm_prepare() 240 struct i2s_dma_desc *dma_desc; i2s_dma_isr() local [all...] |
| /linux/drivers/net/ethernet/synopsys/ |
| H A D | dwc-xlgmac-hw.c | 29 static int xlgmac_tx_complete(struct xlgmac_dma_desc *dma_desc) in xlgmac_tx_complete() argument 31 return !XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_tx_complete() 708 struct xlgmac_dma_desc *dma_desc; in xlgmac_dev_xmit() local 759 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit() 769 dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit() 770 dma_desc->desc2, in xlgmac_dev_xmit() 776 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit() 777 dma_desc->desc3, in xlgmac_dev_xmit() 783 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit() 784 dma_desc->desc3, in xlgmac_dev_xmit() [all …]
|
| H A D | dwc-xlgmac-common.c | 289 struct xlgmac_dma_desc *dma_desc; in xlgmac_dump_tx_desc() local 293 dma_desc = desc_data->dma_desc; in xlgmac_dump_tx_desc() 296 desc_data->dma_desc, &desc_data->dma_desc_addr); in xlgmac_dump_tx_desc() 300 le32_to_cpu(dma_desc->desc0), in xlgmac_dump_tx_desc() 301 le32_to_cpu(dma_desc->desc1), in xlgmac_dump_tx_desc() 302 le32_to_cpu(dma_desc->desc2), in xlgmac_dump_tx_desc() 303 le32_to_cpu(dma_desc->desc3)); in xlgmac_dump_tx_desc() 314 struct xlgmac_dma_desc *dma_desc; in xlgmac_dump_rx_desc() local 317 dma_desc = desc_data->dma_desc; in xlgmac_dump_rx_desc() 320 desc_data->dma_desc, &desc_data->dma_desc_addr); in xlgmac_dump_rx_desc() [all …]
|
| H A D | dwc-xlgmac-desc.c | 421 struct xlgmac_dma_desc *dma_desc; in xlgmac_tx_desc_init() local 433 dma_desc = ring->dma_desc_head; in xlgmac_tx_desc_init() 439 desc_data->dma_desc = dma_desc; in xlgmac_tx_desc_init() 442 dma_desc++; in xlgmac_tx_desc_init() 458 struct xlgmac_dma_desc *dma_desc; in xlgmac_rx_desc_init() local 470 dma_desc = ring->dma_desc_head; in xlgmac_rx_desc_init() 476 desc_data->dma_desc = dma_desc; in xlgmac_rx_desc_init() 482 dma_desc++; in xlgmac_rx_desc_init()
|
| H A D | dwc-xlgmac.h | 286 struct xlgmac_dma_desc *dma_desc; member 400 int (*tx_complete)(struct xlgmac_dma_desc *dma_desc); 432 int (*is_last_desc)(struct xlgmac_dma_desc *dma_desc); 433 int (*is_context_desc)(struct xlgmac_dma_desc *dma_desc);
|
| H A D | dwc-xlgmac-net.c | 1041 struct xlgmac_dma_desc *dma_desc; in xlgmac_tx_poll() local 1065 dma_desc = desc_data->dma_desc; in xlgmac_tx_poll() 1067 if (!hw_ops->tx_complete(dma_desc)) in xlgmac_tx_poll() 1078 if (hw_ops->is_last_desc(dma_desc)) { in xlgmac_tx_poll()
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | chain_mode.c | 25 struct dma_desc *desc; in jumbo_frm() 119 struct dma_desc *p = (struct dma_desc *)des; in init_dma_chain() 121 dma_phy += sizeof(struct dma_desc); in init_dma_chain() 129 static void refill_desc3(struct stmmac_rx_queue *rx_q, struct dma_desc *p) in refill_desc3() 141 sizeof(struct dma_desc))); in refill_desc3() 144 static void clean_desc3(struct stmmac_tx_queue *tx_q, struct dma_desc *p) in clean_desc3() 158 * sizeof(struct dma_desc))); in clean_desc3()
|
| H A D | hwif.h | 34 struct dma_desc; 41 void (*init_rx_desc)(struct dma_desc *p, int disable_rx_ic, 44 void (*init_tx_desc)(struct dma_desc *p, u8 descriptor_mode, int end); 46 void (*prepare_tx_desc)(struct dma_desc *p, int is_fs, int len, 49 void (*prepare_tso_tx_desc)(struct dma_desc *p, int is_fs, int len1, 53 void (*set_tx_owner)(struct dma_desc *p); 55 void (*release_tx_desc)(struct dma_desc *p, u8 descriptor_mode); 58 void (*set_tx_ic)(struct dma_desc *p); 60 u16 (*get_rx_vlan_tci)(struct dma_desc *p); 62 bool (*get_rx_vlan_valid)(struct dma_desc *p); [all …]
|
| H A D | ring_mode.c | 24 struct dma_desc *desc; in jumbo_frm() 28 desc = (struct dma_desc *)(tx_q->dma_etx + entry); in jumbo_frm() 58 desc = (struct dma_desc *)(tx_q->dma_etx + entry); in jumbo_frm() 100 static void refill_desc3(struct stmmac_rx_queue *rx_q, struct dma_desc *p) in refill_desc3() 110 static void init_desc3(struct dma_desc *p) in init_desc3() 115 static void clean_desc3(struct stmmac_tx_queue *tx_q, struct dma_desc *p) in clean_desc3()
|
| /linux/drivers/usb/dwc2/ |
| H A D | hcd_ddma.c | 516 struct dwc2_dma_desc *dma_desc = &qh->desc_list[idx]; in dwc2_fill_host_isoc_dma_desc() local 519 memset(dma_desc, 0, sizeof(*dma_desc)); in dwc2_fill_host_isoc_dma_desc() 527 dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); in dwc2_fill_host_isoc_dma_desc() 528 dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT & in dwc2_fill_host_isoc_dma_desc() 532 dma_desc->status |= HOST_DMA_A; in dwc2_fill_host_isoc_dma_desc() 540 dma_desc->status |= HOST_DMA_IOC; in dwc2_fill_host_isoc_dma_desc() 664 struct dwc2_dma_desc *dma_desc = &qh->desc_list[n_desc]; in dwc2_fill_host_dma_desc() local 684 dma_desc->status = len << HOST_DMA_NBYTES_SHIFT & HOST_DMA_NBYTES_MASK; in dwc2_fill_host_dma_desc() 689 dma_desc->status |= HOST_DMA_SUP; in dwc2_fill_host_dma_desc() 691 dma_desc->buf = (u32)chan->xfer_dma; in dwc2_fill_host_dma_desc() [all …]
|
| /linux/drivers/soc/tegra/fuse/ |
| H A D | fuse-tegra20.c | 45 struct dma_async_tx_descriptor *dma_desc; in tegra20_fuse_read() local 62 dma_desc = dmaengine_prep_slave_single(fuse->apbdma.chan, in tegra20_fuse_read() 66 if (!dma_desc) in tegra20_fuse_read() 69 dma_desc->callback = apb_dma_complete; in tegra20_fuse_read() 70 dma_desc->callback_param = fuse; in tegra20_fuse_read() 74 dmaengine_submit(dma_desc); in tegra20_fuse_read()
|
| /linux/drivers/mtd/nand/ |
| H A D | qpic_common.c | 157 struct dma_async_tx_descriptor *dma_desc; in qcom_prepare_bam_async_desc() local 194 dma_desc = dmaengine_prep_slave_sg(chan, sgl, sgl_cnt, dir_eng, in qcom_prepare_bam_async_desc() 197 if (!dma_desc) { in qcom_prepare_bam_async_desc() 204 desc->dma_desc = dma_desc; in qcom_prepare_bam_async_desc() 208 bam_txn->last_cmd_desc = dma_desc; in qcom_prepare_bam_async_desc() 210 bam_txn->last_data_desc = dma_desc; in qcom_prepare_bam_async_desc() 360 struct dma_async_tx_descriptor *dma_desc; in qcom_prep_adm_dma_desc() local 414 dma_desc = dmaengine_prep_slave_sg(nandc->chan, sgl, 1, dir_eng, 0); in qcom_prep_adm_dma_desc() 415 if (!dma_desc) { in qcom_prep_adm_dma_desc() 421 desc->dma_desc = dma_desc; in qcom_prep_adm_dma_desc() [all …]
|
| /linux/drivers/usb/musb/ |
| H A D | musb_cppi41.c | 149 struct dma_async_tx_descriptor *dma_desc; in cppi41_trans_done() local 162 dma_desc = dmaengine_prep_slave_single(dc, in cppi41_trans_done() 167 if (WARN_ON(!dma_desc)) in cppi41_trans_done() 170 dma_desc->callback_result = cppi41_dma_callback; in cppi41_trans_done() 171 dma_desc->callback_param = &cppi41_channel->channel; in cppi41_trans_done() 172 cppi41_channel->cookie = dma_desc->tx_submit(dma_desc); in cppi41_trans_done() 418 struct dma_async_tx_descriptor *dma_desc; in cppi41_configure_channel() local 465 dma_desc = dmaengine_prep_slave_single(dc, dma_addr, len, direction, in cppi41_configure_channel() 467 if (!dma_desc) in cppi41_configure_channel() 470 dma_desc->callback_result = cppi41_dma_callback; in cppi41_configure_channel() [all …]
|
| H A D | ux500_dma.c | 77 struct dma_async_tx_descriptor *dma_desc; in ux500_configure_channel() local 114 dma_desc = dmaengine_prep_slave_sg(dma_chan, &sg, 1, direction, in ux500_configure_channel() 116 if (!dma_desc) in ux500_configure_channel() 119 dma_desc->callback = ux500_dma_callback; in ux500_configure_channel() 120 dma_desc->callback_param = channel; in ux500_configure_channel() 121 ux500_channel->cookie = dma_desc->tx_submit(dma_desc); in ux500_configure_channel()
|
| H A D | tusb6010_omap.c | 196 struct dma_async_tx_descriptor *dma_desc; in tusb_omap_dma_program() local 303 dma_desc = dmaengine_prep_slave_single(dma_data->chan, dma_addr, in tusb_omap_dma_program() 306 if (!dma_desc) { in tusb_omap_dma_program() 311 dma_desc->callback = tusb_omap_dma_cb; in tusb_omap_dma_program() 312 dma_desc->callback_param = channel; in tusb_omap_dma_program() 313 dmaengine_submit(dma_desc); in tusb_omap_dma_program()
|
| /linux/arch/mips/include/asm/mach-rc32434/ |
| H A D | dma.h | 23 struct dma_desc { struct 30 #define DMA_DESC_SIZ sizeof(struct dma_desc) argument
|
| /linux/drivers/net/ethernet/ |
| H A D | korina.c | 249 struct dma_desc { struct 319 #define RD_RING_SIZE (KORINA_NUM_RDS * sizeof(struct dma_desc)) 320 #define TD_RING_SIZE (KORINA_NUM_TDS * sizeof(struct dma_desc)) 339 struct dma_desc *td_ring; /* transmit descriptor ring */ 340 struct dma_desc *rd_ring; /* receive descriptor ring */ 380 return lp->td_dma + (idx * sizeof(struct dma_desc)); in korina_tx_dma() 385 return lp->rd_dma + (idx * sizeof(struct dma_desc)); in korina_rx_dma() 425 struct dma_desc *td; in korina_send_packet() 599 struct dma_desc *rd = &lp->rd_ring[lp->rx_next_done]; in korina_rx() 767 struct dma_desc *td = &lp->td_ring[lp->tx_next_done]; in korina_tx()
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | b44.h | 244 struct dma_desc { struct 363 struct dma_desc *rx_ring, *tx_ring;
|
| /linux/drivers/crypto/ |
| H A D | talitos.c | 261 dma_addr_t dma_desc, prev_dma_desc; in dma_map_request() local 268 dma_desc = dma_map_single(dev, &edesc->desc.hdr1, in dma_map_request() 273 request->dma_desc = dma_desc; in dma_map_request() 279 prev_edesc->desc.next_desc = cpu_to_be32(dma_desc); in dma_map_request() 287 prev_dma_desc = dma_desc; in dma_map_request() 291 request->dma_desc = dma_map_single(dev, desc, TALITOS_DESC_SIZE, in dma_map_request() 345 upper_32_bits(request->dma_desc)); in talitos_submit() 347 lower_32_bits(request->dma_desc)); in talitos_submit() 358 dma_addr_t dma_desc; in get_request_hdr() local 361 dma_sync_single_for_cpu(dev, request->dma_desc, in get_request_hdr() [all …]
|
| /linux/drivers/net/ethernet/samsung/sxgbe/ |
| H A D | sxgbe_main.c | 612 int dma_desc; in tx_free_ring_skbufs() local 616 for (dma_desc = 0; dma_desc < tx_rsize; dma_desc++) { in tx_free_ring_skbufs() 617 struct sxgbe_tx_norm_desc *tdesc = txqueue->dma_tx + dma_desc; in tx_free_ring_skbufs() 619 if (txqueue->tx_skbuff_dma[dma_desc]) in tx_free_ring_skbufs() 621 txqueue->tx_skbuff_dma[dma_desc], in tx_free_ring_skbufs() 625 dev_kfree_skb_any(txqueue->tx_skbuff[dma_desc]); in tx_free_ring_skbufs() 626 txqueue->tx_skbuff[dma_desc] = NULL; in tx_free_ring_skbufs() 627 txqueue->tx_skbuff_dma[dma_desc] = 0; in tx_free_ring_skbufs()
|
| /linux/Documentation/driver-api/mmc/ |
| H A D | mmc-async-req.rst | 90 dma_issue_pending(req->dma_desc); 98 dma_issue_pending(req->dma_desc);
|
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_nsp.c | 507 dma_addr_t dma_desc; in nfp_nsp_command_buf_dma_sg() local 579 dma_desc = dma_map_single(dev, desc, desc_sz, DMA_TO_DEVICE); in nfp_nsp_command_buf_dma_sg() 580 ret = dma_mapping_error(dev, dma_desc); in nfp_nsp_command_buf_dma_sg() 585 arg->arg.buf = dma_desc; in nfp_nsp_command_buf_dma_sg() 602 dma_unmap_single(dev, dma_desc, desc_sz, DMA_TO_DEVICE); in nfp_nsp_command_buf_dma_sg()
|
| /linux/drivers/video/fbdev/ |
| H A D | pxafb.h | 64 struct pxafb_dma_descriptor dma_desc[DMA_MAX * 2]; member
|