Home
last modified time | relevance | path

Searched refs:dma_dir (Results 1 – 25 of 56) sorted by relevance

123

/drivers/media/v4l2-core/
Dvideobuf2-vmalloc.c27 enum dma_data_direction dma_dir; member
37 unsigned long size, enum dma_data_direction dma_dir, in vb2_vmalloc_alloc() argument
48 buf->dma_dir = dma_dir; in vb2_vmalloc_alloc()
75 enum dma_data_direction dma_dir) in vb2_vmalloc_get_userptr() argument
86 buf->dma_dir = dma_dir; in vb2_vmalloc_get_userptr()
89 vec = vb2_create_framevec(vaddr, size, dma_dir == DMA_FROM_DEVICE); in vb2_vmalloc_get_userptr()
139 if (buf->dma_dir == DMA_FROM_DEVICE) in vb2_vmalloc_put_userptr()
207 enum dma_data_direction dma_dir; member
244 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_attach()
261 if (attach->dma_dir != DMA_NONE) in vb2_vmalloc_dmabuf_ops_detach()
[all …]
Dvideobuf2-dma-sg.c39 enum dma_data_direction dma_dir; member
99 unsigned long size, enum dma_data_direction dma_dir, in vb2_dma_sg_alloc() argument
115 buf->dma_dir = dma_dir; in vb2_dma_sg_alloc()
145 buf->dma_dir, DMA_ATTR_SKIP_CPU_SYNC); in vb2_dma_sg_alloc()
183 buf->dma_dir, DMA_ATTR_SKIP_CPU_SYNC); in vb2_dma_sg_put()
205 buf->dma_dir); in vb2_dma_sg_prepare()
217 dma_sync_sg_for_cpu(buf->dev, sgt->sgl, sgt->orig_nents, buf->dma_dir); in vb2_dma_sg_finish()
222 enum dma_data_direction dma_dir) in vb2_dma_sg_get_userptr() argument
237 buf->dma_dir = dma_dir; in vb2_dma_sg_get_userptr()
241 vec = vb2_create_framevec(vaddr, size, buf->dma_dir == DMA_FROM_DEVICE); in vb2_dma_sg_get_userptr()
[all …]
Dvideobuf2-dma-contig.c31 enum dma_data_direction dma_dir; member
102 buf->dma_dir); in vb2_dc_prepare()
114 dma_sync_sg_for_cpu(buf->dev, sgt->sgl, sgt->orig_nents, buf->dma_dir); in vb2_dc_finish()
139 unsigned long size, enum dma_data_direction dma_dir, in vb2_dc_alloc() argument
167 buf->dma_dir = dma_dir; in vb2_dc_alloc()
221 enum dma_data_direction dma_dir; member
256 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_attach()
274 if (attach->dma_dir != DMA_NONE) in vb2_dc_dmabuf_ops_detach()
276 attach->dma_dir); in vb2_dc_dmabuf_ops_detach()
283 struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) in vb2_dc_dmabuf_ops_map() argument
[all …]
/drivers/staging/rts5208/
Drtsx_transport.c330 enum dma_data_direction dma_dir, in rtsx_transfer_sglist_adma_partial() argument
345 if (dma_dir == DMA_TO_DEVICE) in rtsx_transfer_sglist_adma_partial()
347 else if (dma_dir == DMA_FROM_DEVICE) in rtsx_transfer_sglist_adma_partial()
371 sg_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial()
485 dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial()
495 enum dma_data_direction dma_dir, in rtsx_transfer_sglist_adma() argument
509 if (dma_dir == DMA_TO_DEVICE) in rtsx_transfer_sglist_adma()
511 else if (dma_dir == DMA_FROM_DEVICE) in rtsx_transfer_sglist_adma()
535 buf_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma()
633 dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma()
[all …]
Drtsx_transport.h58 int use_sg, enum dma_data_direction dma_dir, int timeout);
63 enum dma_data_direction dma_dir, int timeout);
/drivers/staging/comedi/drivers/
Dcomedi_isadma.h71 void comedi_isadma_set_mode(struct comedi_isadma_desc *, char dma_dir);
76 unsigned int maxsize, char dma_dir);
102 char dma_dir) in comedi_isadma_set_mode() argument
109 unsigned int maxsize, char dma_dir) in comedi_isadma_alloc() argument
Dcomedi_isadma.c144 void comedi_isadma_set_mode(struct comedi_isadma_desc *desc, char dma_dir) in comedi_isadma_set_mode() argument
146 desc->mode = (dma_dir == COMEDI_ISADMA_READ) ? DMA_MODE_READ in comedi_isadma_set_mode()
165 unsigned int maxsize, char dma_dir) in comedi_isadma_alloc() argument
209 comedi_isadma_set_mode(desc, dma_dir); in comedi_isadma_alloc()
Ddt282x.c322 int dma_dir; member
341 comedi_isadma_set_mode(desc, devpriv->dma_dir); in dt282x_prep_ai_dma()
355 comedi_isadma_set_mode(desc, devpriv->dma_dir); in dt282x_prep_ao_dma()
528 if (devpriv->dma_dir == COMEDI_ISADMA_READ) in dt282x_interrupt()
751 devpriv->dma_dir = COMEDI_ISADMA_READ; in dt282x_ai_cmd()
932 devpriv->dma_dir = COMEDI_ISADMA_WRITE; in dt282x_ao_cmd()
/drivers/scsi/
Da2091.c86 wh->dma_dir = dir_in; in dma_setup()
117 if (!wh->dma_dir) in dma_stop()
124 if (wh->dma_dir) { in dma_stop()
141 if (wh->dma_dir) in dma_stop()
Da3000.c85 wh->dma_dir = dir_in; in dma_setup()
119 if (!wh->dma_dir) in dma_stop()
126 if (wh->dma_dir) { in dma_stop()
151 if (wh->dma_dir && SCpnt) in dma_stop()
Dsgiwd93.c111 hdata->wh.dma_dir = datainp; in dma_setup()
153 if (hdata->wh.dma_dir) { in dma_stop()
161 DMA_DIR(hdata->wh.dma_dir)); in dma_stop()
Dgvp11.c121 wh->dma_dir = dir_in; in dma_setup()
160 if (wh->dma_dir && SCpnt) in dma_stop()
/drivers/staging/comedi/
Dcomedi_buf.c43 if (bm->dma_dir != DMA_NONE) { in comedi_buf_map_kref_release()
56 if (bm->dma_dir != DMA_NONE) in comedi_buf_map_kref_release()
106 bm->dma_dir = s->async_dma_dir; in __comedi_buf_alloc()
107 if (bm->dma_dir != DMA_NONE) in __comedi_buf_alloc()
120 if (bm->dma_dir != DMA_NONE) in __comedi_buf_alloc()
/drivers/mmc/host/
Dmxs-mmc.c158 data->sg_len, ssp->dma_dir); in mxs_mmc_request_done()
236 data->sg_len, ssp->dma_dir); in mxs_mmc_prep_dma()
253 data->sg_len, ssp->dma_dir); in mxs_mmc_prep_dma()
278 ssp->dma_dir = DMA_NONE; in mxs_mmc_bc()
323 ssp->dma_dir = DMA_NONE; in mxs_mmc_ac()
444 ssp->dma_dir = DMA_NONE; in mxs_mmc_adtc()
453 ssp->dma_dir = dma_data_dir; in mxs_mmc_adtc()
Dbfin_sdh.c66 int dma_dir; member
149 host->dma_dir = DMA_FROM_DEVICE; in sdh_setup_data()
152 host->dma_dir = DMA_TO_DEVICE; in sdh_setup_data()
155 host->dma_len = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len, host->dma_dir); in sdh_setup_data()
300 host->dma_dir); in sdh_data_done()
Dmxcmmc.c143 unsigned int dma_dir; member
328 host->dma_dir = DMA_FROM_DEVICE; in mxcmci_setup_data()
331 host->dma_dir = DMA_TO_DEVICE; in mxcmci_setup_data()
338 data->sg_len, host->dma_dir); in mxcmci_setup_data()
348 host->dma_dir); in mxcmci_setup_data()
411 if (host->dma_dir == DMA_FROM_DEVICE) { in mxcmci_start_cmd()
458 host->dma_dir); in mxcmci_finish_data()
970 if (host->dma_dir == DMA_FROM_DEVICE) { in mxcmci_watchdog()
Dpxamci.c79 unsigned int dma_dir; member
211 host->dma_dir = DMA_FROM_DEVICE; in pxamci_setup_data()
215 host->dma_dir = DMA_TO_DEVICE; in pxamci_setup_data()
229 host->dma_dir); in pxamci_setup_data()
365 data->sg, data->sg_len, host->dma_dir); in pxamci_data_done()
/drivers/scsi/arm/
Dpowertec.c140 int bufs, map_dir, dma_dir; in powertecscsi_dma_setup() local
146 dma_dir = DMA_MODE_WRITE; in powertecscsi_dma_setup()
149 dma_dir = DMA_MODE_READ; in powertecscsi_dma_setup()
155 set_dma_mode(dmach, dma_dir); in powertecscsi_dma_setup()
Dcumana_2.c168 int bufs, map_dir, dma_dir, alatch_dir; in cumanascsi_2_dma_setup() local
174 dma_dir = DMA_MODE_WRITE, in cumanascsi_2_dma_setup()
178 dma_dir = DMA_MODE_READ, in cumanascsi_2_dma_setup()
186 set_dma_mode(dmach, dma_dir); in cumanascsi_2_dma_setup()
Deesox.c167 int bufs, map_dir, dma_dir; in eesoxscsi_dma_setup() local
173 dma_dir = DMA_MODE_WRITE; in eesoxscsi_dma_setup()
176 dma_dir = DMA_MODE_READ; in eesoxscsi_dma_setup()
182 set_dma_mode(dmach, dma_dir); in eesoxscsi_dma_setup()
/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c74 frag_info->dma_dir); in mlx4_alloc_pages()
130 priv->frag_info[i].dma_dir); in mlx4_en_alloc_frags()
151 frag_info->dma_dir); in mlx4_en_free_frag()
183 priv->frag_info[i].dma_dir); in mlx4_en_init_allocator()
208 page_alloc->page_size, frag_info->dma_dir); in mlx4_en_destroy_allocator()
571 priv->frag_info[0].dma_dir); in mlx4_en_deactivate_rx_ring()
1170 enum dma_data_direction dma_dir = PCI_DMA_FROMDEVICE; in mlx4_en_calc_rx_buf() local
1182 dma_dir = PCI_DMA_BIDIRECTIONAL; in mlx4_en_calc_rx_buf()
1198 priv->frag_info[i].dma_dir = dma_dir; in mlx4_en_calc_rx_buf()
/drivers/ata/
Dsata_dwc_460ex.c303 static const char *get_dma_dir_descript(int dma_dir) in get_dma_dir_descript() argument
305 switch ((enum dma_data_direction)dma_dir) { in get_dma_dir_descript()
374 if (qc->dma_dir == DMA_DEV_TO_MEM) { in dma_dwc_xfer_setup()
382 sconf.direction = qc->dma_dir; in dma_dwc_xfer_setup()
392 qc->dma_dir, in dma_dwc_xfer_setup()
764 get_dma_dir_descript(qc->dma_dir), in sata_dwc_dma_xfer_complete()
1019 int dir = qc->dma_dir; in sata_dwc_bmdma_start_by_tag()
1037 get_dma_dir_descript(qc->dma_dir), start_dma); in sata_dwc_bmdma_start_by_tag()
/drivers/dma/
Dmoxart-dma.c124 enum dma_transfer_direction dma_dir; member
316 d->dma_dir = dir; in moxart_prep_slave_sg()
409 if (ch->desc->dma_dir == DMA_MEM_TO_DEV) in moxart_dma_start_sg()
411 else if (ch->desc->dma_dir == DMA_DEV_TO_MEM) in moxart_dma_start_sg()
/drivers/memstick/host/
Drtsx_pci_ms.c147 u8 val, trans_mode, dma_dir; in ms_transfer_data() local
156 dma_dir = DMA_DIR_FROM_CARD; in ms_transfer_data()
159 dma_dir = DMA_DIR_TO_CARD; in ms_transfer_data()
181 0x03 | DMA_PACK_SIZE_MASK, dma_dir | DMA_EN | DMA_512); in ms_transfer_data()
/drivers/mtd/nand/
Dr852.h121 int dma_dir; /* 1 = read, 0 = write */ member

123