/linux-2.6.39/arch/blackfin/include/asm/ |
D | dma.h | 118 extern struct dma_channel dma_ch[MAX_DMA_CHANNELS]; 124 dma_ch[channel].regs->start_addr = addr; in set_dma_start_addr() 128 dma_ch[channel].regs->next_desc_ptr = addr; in set_dma_next_desc_addr() 132 dma_ch[channel].regs->curr_desc_ptr = addr; in set_dma_curr_desc_addr() 136 dma_ch[channel].regs->x_count = x_count; in set_dma_x_count() 140 dma_ch[channel].regs->y_count = y_count; in set_dma_y_count() 144 dma_ch[channel].regs->x_modify = x_modify; in set_dma_x_modify() 148 dma_ch[channel].regs->y_modify = y_modify; in set_dma_y_modify() 152 dma_ch[channel].regs->cfg = config; in set_dma_config() 156 dma_ch[channel].regs->curr_addr_ptr = addr; in set_dma_curr_addr() [all …]
|
/linux-2.6.39/arch/blackfin/kernel/ |
D | bfin_dma_5xx.c | 30 struct dma_channel dma_ch[MAX_DMA_CHANNELS]; variable 31 EXPORT_SYMBOL(dma_ch); 40 atomic_set(&dma_ch[i].chan_status, 0); in blackfin_dma_init() 41 dma_ch[i].regs = dma_io_base_addr[i]; in blackfin_dma_init() 63 seq_printf(m, "%2d: %s\n", i, dma_ch[i].device_id); in proc_dma_show() 101 dma_ch[channel].regs->peripheral_map = per_map; in set_dma_peripheral_map() 127 if (atomic_cmpxchg(&dma_ch[channel].chan_status, 0, 1)) { in request_dma() 133 dma_ch[channel].device_id = device_id; in request_dma() 134 dma_ch[channel].irq = 0; in request_dma() 151 !atomic_read(&dma_ch[channel].chan_status)); in set_dma_callback() [all …]
|
/linux-2.6.39/sound/arm/ |
D | pxa2xx-pcm-lib.c | 94 DDADR(prtd->dma_ch) = prtd->dma_desc_array_phys; in pxa2xx_pcm_trigger() 95 DCSR(prtd->dma_ch) = DCSR_RUN; in pxa2xx_pcm_trigger() 101 DCSR(prtd->dma_ch) &= ~DCSR_RUN; in pxa2xx_pcm_trigger() 105 DCSR(prtd->dma_ch) |= DCSR_RUN; in pxa2xx_pcm_trigger() 108 DDADR(prtd->dma_ch) = prtd->dma_desc_array_phys; in pxa2xx_pcm_trigger() 109 DCSR(prtd->dma_ch) |= DCSR_RUN; in pxa2xx_pcm_trigger() 127 DSADR(prtd->dma_ch) : DTADR(prtd->dma_ch); in pxa2xx_pcm_pointer() 143 if (prtd->dma_ch == -1) in __pxa2xx_pcm_prepare() 146 DCSR(prtd->dma_ch) &= ~DCSR_RUN; in __pxa2xx_pcm_prepare() 147 DCSR(prtd->dma_ch) = 0; in __pxa2xx_pcm_prepare() [all …]
|
D | pxa2xx-pcm.c | 46 rtd->dma_ch = ret; in pxa2xx_pcm_open() 52 pxa_free_dma(rtd->dma_ch); in pxa2xx_pcm_open() 64 pxa_free_dma(rtd->dma_ch); in pxa2xx_pcm_close()
|
D | pxa2xx-pcm.h | 15 int dma_ch; member
|
/linux-2.6.39/sound/soc/omap/ |
D | omap-pcm.c | 53 int dma_ch; member 121 omap_pcm_dma_irq, substream, &prtd->dma_ch); in omap_pcm_hw_params() 127 omap_dma_link_lch(prtd->dma_ch, prtd->dma_ch); in omap_pcm_hw_params() 141 omap_dma_unlink_lch(prtd->dma_ch, prtd->dma_ch); in omap_pcm_hw_free() 142 omap_free_dma(prtd->dma_ch); in omap_pcm_hw_free() 193 omap_set_dma_params(prtd->dma_ch, &dma_params); in omap_pcm_prepare() 196 omap_enable_dma_irq(prtd->dma_ch, OMAP_DMA_FRAME_IRQ | in omap_pcm_prepare() 199 omap_enable_dma_irq(prtd->dma_ch, OMAP_DMA_FRAME_IRQ); in omap_pcm_prepare() 202 omap_set_dma_src_burst_mode(prtd->dma_ch, in omap_pcm_prepare() 204 omap_set_dma_dest_burst_mode(prtd->dma_ch, in omap_pcm_prepare() [all …]
|
/linux-2.6.39/sound/soc/pxa/ |
D | pxa2xx-pcm.c | 45 prtd->dma_ch = ret; in pxa2xx_pcm_hw_params() 47 pxa_free_dma(prtd->dma_ch); in pxa2xx_pcm_hw_params() 53 prtd->dma_ch = ret; in pxa2xx_pcm_hw_params() 65 if (prtd->dma_ch >= 0) { in pxa2xx_pcm_hw_free() 66 pxa_free_dma(prtd->dma_ch); in pxa2xx_pcm_hw_free() 67 prtd->dma_ch = -1; in pxa2xx_pcm_hw_free()
|
/linux-2.6.39/drivers/mmc/host/ |
D | bfin_sdh.c | 66 int dma_ch; member 179 set_dma_curr_desc_addr(host->dma_ch, (unsigned long *)host->sg_dma); in sdh_setup_data() 180 set_dma_x_count(host->dma_ch, 0); in sdh_setup_data() 181 set_dma_x_modify(host->dma_ch, 0); in sdh_setup_data() 182 set_dma_config(host->dma_ch, dma_cfg); in sdh_setup_data() 186 set_dma_start_addr(host->dma_ch, sg_dma_address(&data->sg[0])); in sdh_setup_data() 187 set_dma_x_count(host->dma_ch, length / 4); in sdh_setup_data() 188 set_dma_x_modify(host->dma_ch, 4); in sdh_setup_data() 189 set_dma_config(host->dma_ch, dma_cfg); in sdh_setup_data() 290 disable_dma(host->dma_ch); in sdh_data_done() [all …]
|
D | omap.c | 158 int dma_ch; member 410 BUG_ON(host->dma_ch < 0); in mmc_omap_release_dma() 412 omap_stop_dma(host->dma_ch); in mmc_omap_release_dma() 532 BUG_ON(host->dma_ch < 0); in mmc_omap_dma_timer() 533 omap_free_dma(host->dma_ch); in mmc_omap_dma_timer() 534 host->dma_ch = -1; in mmc_omap_dma_timer() 898 int dma_ch = host->dma_ch; in mmc_omap_prepare_dma() local 937 omap_set_dma_src_params(dma_ch, src_port, in mmc_omap_prepare_dma() 940 omap_set_dma_dest_params(dma_ch, dst_port, in mmc_omap_prepare_dma() 943 omap_set_dma_dest_data_pack(dma_ch, 1); in mmc_omap_prepare_dma() [all …]
|
D | omap_hsmmc.c | 175 int use_dma, dma_ch; member 874 int dma_ch; in omap_hsmmc_request_done() local 878 dma_ch = host->dma_ch; in omap_hsmmc_request_done() 883 if (mrq->data && host->use_dma && dma_ch != -1) in omap_hsmmc_request_done() 952 int dma_ch; in omap_hsmmc_dma_cleanup() local 957 dma_ch = host->dma_ch; in omap_hsmmc_dma_cleanup() 958 host->dma_ch = -1; in omap_hsmmc_dma_cleanup() 961 if (host->use_dma && dma_ch != -1) { in omap_hsmmc_dma_cleanup() 964 omap_free_dma(dma_ch); in omap_hsmmc_dma_cleanup() 1290 int blksz, nblk, dma_ch; in omap_hsmmc_config_dma_params() local [all …]
|
/linux-2.6.39/arch/unicore32/kernel/ |
D | dma.c | 78 void puv3_free_dma(int dma_ch) in puv3_free_dma() argument 82 if (!dma_channels[dma_ch].name) { in puv3_free_dma() 85 __func__, dma_ch); in puv3_free_dma() 90 dma_channels[dma_ch].name = NULL; in puv3_free_dma() 91 dma_channels[dma_ch].err_handler = NULL; in puv3_free_dma()
|
/linux-2.6.39/sound/ppc/ |
D | snd_ps3.c | 121 int dma_ch, done, retries, stop_forced = 0; in snd_ps3_verify_dma_stop() local 124 for (dma_ch = 0; dma_ch < 8; dma_ch++) { in snd_ps3_verify_dma_stop() 127 status = read_reg(PS3_AUDIO_KICK(dma_ch)) & in snd_ps3_verify_dma_stop() 143 __func__, dma_ch); in snd_ps3_verify_dma_stop() 232 int fill_stages, dma_ch, stage; in snd_ps3_program_dma() local 261 dma_ch = stage * 2 + ch; in snd_ps3_program_dma() 270 write_reg(PS3_AUDIO_SOURCE(dma_ch), in snd_ps3_program_dma() 276 write_reg(PS3_AUDIO_DEST(dma_ch), in snd_ps3_program_dma() 280 write_reg(PS3_AUDIO_DEST(dma_ch), in snd_ps3_program_dma() 285 write_reg(PS3_AUDIO_DMASIZE(dma_ch), 0); in snd_ps3_program_dma() [all …]
|
/linux-2.6.39/arch/arm/plat-samsung/ |
D | s3c-pl330.c | 36 enum dma_ch *peri; 79 enum dma_ch id; 106 static struct s3c_pl330_chan *id_to_chan(const enum dma_ch id) in id_to_chan() 118 static void chan_add(const enum dma_ch id) in chan_add() 151 static unsigned iface_of_dmac(struct s3c_pl330_dmac *dmac, enum dma_ch ch_id) in iface_of_dmac() 153 enum dma_ch *id = dmac->peri; in iface_of_dmac() 181 enum dma_ch *id = dmac->peri; in ch_onlyby_dmac() 185 enum dma_ch p; in ch_onlyby_dmac() 226 enum dma_ch *id = dmac->peri; in suitablility() 289 static struct s3c_pl330_chan *chan_acquire(const enum dma_ch id) in chan_acquire() [all …]
|
/linux-2.6.39/drivers/media/video/omap3isp/ |
D | isphist.c | 39 #define HIST_USING_DMA(hist) ((hist)->dma_ch >= 0) 221 omap_set_dma_params(hist->dma_ch, &hist->dma_config); in hist_buf_dma() 223 omap_start_dma(hist->dma_ch); in hist_buf_dma() 484 hist_dma_cb, hist, &hist->dma_ch); in omap3isp_hist_init() 489 hist->dma_ch = -1; in omap3isp_hist_init() 491 dev_dbg(isp->dev, "hist: DMA channel = %d\n", hist->dma_ch); in omap3isp_hist_init() 493 omap_enable_dma_irq(hist->dma_ch, OMAP_DMA_BLOCK_IRQ); in omap3isp_hist_init() 505 omap_free_dma(hist->dma_ch); in omap3isp_hist_init() 517 omap_free_dma(isp->isp_hist.dma_ch); in omap3isp_hist_cleanup()
|
/linux-2.6.39/drivers/media/video/ |
D | omap1_camera.c | 158 int dma_ch; member 308 static void set_dma_dest_params(int dma_ch, struct omap1_cam_buf *buf, in set_dma_dest_params() argument 347 omap_set_dma_dest_params(dma_ch, in set_dma_dest_params() 349 omap_set_dma_transfer_params(dma_ch, in set_dma_dest_params() 380 set_dma_dest_params(pcdev->dma_ch, buf, pcdev->vb_mode); in prepare_next_vb() 394 static struct scatterlist *try_next_sgbuf(int dma_ch, struct omap1_cam_buf *buf) in try_next_sgbuf() argument 431 set_dma_dest_params(dma_ch, buf, OMAP1_CAM_DMA_SG); in try_next_sgbuf() 457 omap_start_dma(pcdev->dma_ch); in start_capture() 465 try_next_sgbuf(pcdev->dma_ch, buf); in start_capture() 479 omap_stop_dma(pcdev->dma_ch); in suspend_capture() [all …]
|
/linux-2.6.39/drivers/mtd/nand/ |
D | omap2.c | 126 int dma_ch; member 390 omap_set_dma_dest_params(info->dma_ch, 0, OMAP_DMA_AMODE_CONSTANT, in omap_nand_dma_transfer() 392 omap_set_dma_src_params(info->dma_ch, 0, OMAP_DMA_AMODE_POST_INC, in omap_nand_dma_transfer() 394 omap_set_dma_transfer_params(info->dma_ch, OMAP_DMA_DATA_TYPE_S32, in omap_nand_dma_transfer() 398 omap_set_dma_src_params(info->dma_ch, 0, OMAP_DMA_AMODE_CONSTANT, in omap_nand_dma_transfer() 400 omap_set_dma_dest_params(info->dma_ch, 0, OMAP_DMA_AMODE_POST_INC, in omap_nand_dma_transfer() 402 omap_set_dma_transfer_params(info->dma_ch, OMAP_DMA_DATA_TYPE_S32, in omap_nand_dma_transfer() 415 omap_start_dma(info->dma_ch); in omap_nand_dma_transfer() 1021 omap_nand_dma_cb, &info->comp, &info->dma_ch); in omap_nand_probe() 1023 info->dma_ch = -1; in omap_nand_probe() [all …]
|
/linux-2.6.39/arch/arm/mach-s3c2410/include/mach/ |
D | dma.h | 27 enum dma_ch { enum 167 enum dma_ch req_ch;
|
/linux-2.6.39/arch/arm/plat-pxa/ |
D | dma.c | 321 void pxa_free_dma (int dma_ch) in pxa_free_dma() argument 325 if (!dma_channels[dma_ch].name) { in pxa_free_dma() 328 __func__, dma_ch); in pxa_free_dma() 333 DCSR(dma_ch) = DCSR_STARTINTR|DCSR_ENDINTR|DCSR_BUSERR; in pxa_free_dma() 334 dma_channels[dma_ch].name = NULL; in pxa_free_dma()
|
/linux-2.6.39/arch/arm/plat-samsung/include/plat/ |
D | s3c-pl330-pdata.h | 29 enum dma_ch peri[32];
|
D | s3c-dma-pl330.h | 26 enum dma_ch { enum
|
/linux-2.6.39/drivers/staging/westbridge/astoria/arch/arm/plat-omap/include/mach/westbridge/westbridge-omap3-pnand-hal/ |
D | cyasomapdev_kernel.h | 64 int dma_ch; member
|
/linux-2.6.39/arch/unicore32/include/mach/ |
D | dma.h | 36 extern void puv3_free_dma(int dma_ch);
|
/linux-2.6.39/drivers/ata/ |
D | sata_dwc_460ex.c | 337 static void dma_dwc_xfer_start(int dma_ch); 714 static void dma_dwc_xfer_start(int dma_ch) in dma_dwc_xfer_start() argument 719 DMA_ENABLE_CHAN(dma_ch)); in dma_dwc_xfer_start() 726 int dma_ch; in dma_dwc_xfer_setup() local 729 dma_ch = dma_request_channel(); in dma_dwc_xfer_setup() 730 if (dma_ch == -1) { in dma_dwc_xfer_setup() 743 clear_chan_interrupts(dma_ch); in dma_dwc_xfer_setup() 746 out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].cfg.high), in dma_dwc_xfer_setup() 748 out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].cfg.low), 0); in dma_dwc_xfer_setup() 751 out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].llp.low), in dma_dwc_xfer_setup() [all …]
|
/linux-2.6.39/arch/arm/mach-s3c64xx/include/mach/ |
D | dma.h | 22 enum dma_ch { enum
|
/linux-2.6.39/include/sound/ |
D | pxa2xx-lib.h | 22 extern void pxa2xx_pcm_dma_irq(int dma_ch, void *dev_id);
|