Home
last modified time | relevance | path

Searched refs:dma_ch (Results 1 – 18 of 18) sorted by relevance

/drivers/media/platform/blackfin/
Dppi.c101 ret = request_dma(info->dma_ch, "PPI_DMA"); in ppi_attach_irq()
107 set_dma_callback(info->dma_ch, handler, ppi); in ppi_attach_irq()
113 free_dma(info->dma_ch); in ppi_attach_irq()
125 free_dma(info->dma_ch); in ppi_detach_irq()
133 enable_dma(info->dma_ch); in ppi_start()
194 clear_dma_irqstat(info->dma_ch); in ppi_stop()
195 disable_dma(info->dma_ch); in ppi_stop()
277 set_dma_x_count(info->dma_ch, bytes_per_line >> 2); in ppi_set_params()
278 set_dma_x_modify(info->dma_ch, 4); in ppi_set_params()
279 set_dma_y_modify(info->dma_ch, 4); in ppi_set_params()
[all …]
/drivers/dma/
Domap-dma.c40 int dma_ch; member
102 omap_set_dma_dest_params(c->dma_ch, OMAP_DMA_PORT_EMIFF, in omap_dma_start_sg()
105 omap_set_dma_src_params(c->dma_ch, OMAP_DMA_PORT_EMIFF, in omap_dma_start_sg()
108 omap_set_dma_transfer_params(c->dma_ch, d->es, sg->en, sg->fn, in omap_dma_start_sg()
111 omap_start_dma(c->dma_ch); in omap_dma_start_sg()
130 omap_set_dma_src_params(c->dma_ch, d->periph_port, in omap_dma_start_desc()
133 omap_set_dma_dest_params(c->dma_ch, d->periph_port, in omap_dma_start_desc()
196 omap_dma_callback, c, &c->dma_ch); in omap_dma_alloc_chan_resources()
204 omap_free_dma(c->dma_ch); in omap_dma_free_chan_resources()
263 pos = omap_get_dma_src_pos(c->dma_ch); in omap_dma_tx_status()
[all …]
/drivers/mmc/host/
Dbfin_sdh.c65 int dma_ch; member
188 set_dma_curr_desc_addr(host->dma_ch, (unsigned long *)host->sg_dma); in sdh_setup_data()
189 set_dma_x_count(host->dma_ch, 0); in sdh_setup_data()
190 set_dma_x_modify(host->dma_ch, 0); in sdh_setup_data()
192 set_dma_config(host->dma_ch, dma_cfg); in sdh_setup_data()
196 set_dma_start_addr(host->dma_ch, sg_dma_address(&data->sg[0])); in sdh_setup_data()
197 set_dma_x_count(host->dma_ch, length / 4); in sdh_setup_data()
198 set_dma_x_modify(host->dma_ch, 4); in sdh_setup_data()
200 set_dma_config(host->dma_ch, dma_cfg); in sdh_setup_data()
301 disable_dma(host->dma_ch); in sdh_data_done()
[all …]
Domap_hsmmc.c174 int use_dma, dma_ch; member
829 int dma_ch; in omap_hsmmc_request_done() local
834 dma_ch = host->dma_ch; in omap_hsmmc_request_done()
839 if (mrq->data && host->use_dma && dma_ch != -1) in omap_hsmmc_request_done()
908 int dma_ch; in omap_hsmmc_dma_cleanup() local
914 dma_ch = host->dma_ch; in omap_hsmmc_dma_cleanup()
915 host->dma_ch = -1; in omap_hsmmc_dma_cleanup()
918 if (host->use_dma && dma_ch != -1) { in omap_hsmmc_dma_cleanup()
1207 if (host->dma_ch < 0) { in omap_hsmmc_dma_callback()
1220 host->dma_ch = -1; in omap_hsmmc_dma_callback()
[all …]
Ds3cmci.c842 static void s3cmci_dma_done_callback(struct s3c2410_dma_chan *dma_ch, in s3cmci_dma_done_callback() argument
/drivers/media/platform/omap/
Domap_vout_vrfb.c132 vout->vrfb_dma_tx.dma_ch = -1; in omap_vout_setup_vrfb_bufs()
136 (void *) &vout->vrfb_dma_tx, &vout->vrfb_dma_tx.dma_ch); in omap_vout_setup_vrfb_bufs()
176 omap_free_dma(vout->vrfb_dma_tx.dma_ch); in omap_vout_release_vrfb()
254 omap_set_dma_transfer_params(tx->dma_ch, OMAP_DMA_DATA_TYPE_S32, in omap_vout_prepare_vrfb()
258 omap_set_dma_src_params(tx->dma_ch, 0, OMAP_DMA_AMODE_POST_INC, in omap_vout_prepare_vrfb()
261 omap_set_dma_src_burst_mode(tx->dma_ch, OMAP_DMA_DATA_BURST_16); in omap_vout_prepare_vrfb()
265 omap_set_dma_dest_params(tx->dma_ch, 0, OMAP_DMA_AMODE_DOUBLE_IDX, in omap_vout_prepare_vrfb()
269 omap_set_dma_dest_burst_mode(tx->dma_ch, OMAP_DMA_DATA_BURST_16); in omap_vout_prepare_vrfb()
272 omap_start_dma(tx->dma_ch); in omap_vout_prepare_vrfb()
276 omap_stop_dma(tx->dma_ch); in omap_vout_prepare_vrfb()
Domap_voutdef.h84 int dma_ch; member
/drivers/media/platform/omap3isp/
Disphist.c41 #define HIST_USING_DMA(hist) ((hist)->dma_ch >= 0)
224 omap_set_dma_params(hist->dma_ch, &hist->dma_config); in hist_buf_dma()
226 omap_start_dma(hist->dma_ch); in hist_buf_dma()
488 hist_dma_cb, hist, &hist->dma_ch); in omap3isp_hist_init()
493 hist->dma_ch = -1; in omap3isp_hist_init()
495 dev_dbg(isp->dev, "hist: DMA channel = %d\n", hist->dma_ch); in omap3isp_hist_init()
497 omap_enable_dma_irq(hist->dma_ch, OMAP_DMA_BLOCK_IRQ); in omap3isp_hist_init()
507 omap_free_dma(hist->dma_ch); in omap3isp_hist_init()
519 omap_free_dma(isp->isp_hist.dma_ch); in omap3isp_hist_cleanup()
Dispstat.h124 int dma_ch; member
Disph3a_aewb.c310 aewb->dma_ch = -1; in omap3isp_h3a_aewb_init()
Disph3a_af.c373 af->dma_ch = -1; in omap3isp_h3a_af_init()
Dispstat.c35 #define IS_COHERENT_BUF(stat) ((stat)->dma_ch >= 0)
/drivers/media/platform/soc_camera/
Domap1_camera.c159 int dma_ch; member
299 static void set_dma_dest_params(int dma_ch, struct omap1_cam_buf *buf, in set_dma_dest_params() argument
338 omap_set_dma_dest_params(dma_ch, in set_dma_dest_params()
340 omap_set_dma_transfer_params(dma_ch, in set_dma_dest_params()
371 set_dma_dest_params(pcdev->dma_ch, buf, pcdev->vb_mode); in prepare_next_vb()
385 static struct scatterlist *try_next_sgbuf(int dma_ch, struct omap1_cam_buf *buf) in try_next_sgbuf() argument
422 set_dma_dest_params(dma_ch, buf, OMAP1_CAM_DMA_SG); in try_next_sgbuf()
448 omap_start_dma(pcdev->dma_ch); in start_capture()
456 try_next_sgbuf(pcdev->dma_ch, buf); in start_capture()
470 omap_stop_dma(pcdev->dma_ch); in suspend_capture()
[all …]
/drivers/crypto/
Dbfin_crc.c55 int dma_ch; member
295 set_dma_curr_desc_addr(crc->dma_ch, (unsigned long *)crc->sg_dma); in bfin_crypto_crc_config_dma()
296 set_dma_x_count(crc->dma_ch, 0); in bfin_crypto_crc_config_dma()
297 set_dma_x_modify(crc->dma_ch, 0); in bfin_crypto_crc_config_dma()
299 set_dma_config(crc->dma_ch, dma_config); in bfin_crypto_crc_config_dma()
643 crc->dma_ch = res->start; in bfin_crypto_crc_probe()
645 ret = request_dma(crc->dma_ch, dev_name(dev)); in bfin_crypto_crc_probe()
695 free_dma(crc->dma_ch); in bfin_crypto_crc_probe()
723 free_dma(crc->dma_ch); in bfin_crypto_crc_remove()
/drivers/ata/
Dsata_dwc_460ex.c340 static void dma_dwc_xfer_start(int dma_ch);
718 static void dma_dwc_xfer_start(int dma_ch) in dma_dwc_xfer_start() argument
723 DMA_ENABLE_CHAN(dma_ch)); in dma_dwc_xfer_start()
730 int dma_ch; in dma_dwc_xfer_setup() local
733 dma_ch = dma_request_channel(); in dma_dwc_xfer_setup()
734 if (dma_ch == -1) { in dma_dwc_xfer_setup()
747 clear_chan_interrupts(dma_ch); in dma_dwc_xfer_setup()
750 out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].cfg.high), in dma_dwc_xfer_setup()
751 DMA_CFG_HW_HS_SRC(dma_ch) | DMA_CFG_HW_HS_DEST(dma_ch) | in dma_dwc_xfer_setup()
753 out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].cfg.low), in dma_dwc_xfer_setup()
[all …]
/drivers/spi/
Dspi-s3c64xx.c306 sdd->ops->config((enum dma_ch)sdd->rx_dma.ch, &config); in prepare_dma()
313 sdd->ops->config((enum dma_ch)sdd->tx_dma.ch, &config); in prepare_dma()
323 sdd->ops->prepare((enum dma_ch)dma->ch, &info); in prepare_dma()
324 sdd->ops->trigger((enum dma_ch)dma->ch); in prepare_dma()
361 sdd->ops->release((enum dma_ch)sdd->rx_dma.ch, &s3c64xx_spi_dma_client); in s3c64xx_spi_unprepare_transfer()
362 sdd->ops->release((enum dma_ch)sdd->tx_dma.ch, &s3c64xx_spi_dma_client); in s3c64xx_spi_unprepare_transfer()
372 sdd->ops->stop((enum dma_ch)dma->ch); in s3c64xx_spi_dma_stop()
/drivers/usb/host/
Dr8a66597-hcd.c311 static void set_pipe_reg_addr(struct r8a66597_pipe *pipe, u8 dma_ch) in set_pipe_reg_addr() argument
318 if (dma_ch > R8A66597_PIPE_NO_DMA) /* dma fifo not use? */ in set_pipe_reg_addr()
319 dma_ch = R8A66597_PIPE_NO_DMA; in set_pipe_reg_addr()
321 pipe->fifoaddr = fifoaddr[dma_ch]; in set_pipe_reg_addr()
322 pipe->fifosel = fifosel[dma_ch]; in set_pipe_reg_addr()
323 pipe->fifoctr = fifoctr[dma_ch]; in set_pipe_reg_addr()
/drivers/dma/ipu/
Dipu_idmac.c557 static uint32_t dma_param_addr(uint32_t dma_ch) in dma_param_addr() argument
560 return 0x10000 | (dma_ch << 4); in dma_param_addr()