/drivers/target/ |
H A D | target_core_rd.c | 92 struct rd_dev_sg_table *sg_table; local 99 sg_table = rd_dev->sg_table_array; 102 sg = sg_table[i].sg_table; 103 sg_per_table = sg_table[i].rd_sg_count; 121 kfree(sg_table); 136 struct rd_dev_sg_table *sg_table; local 149 sg_table = kzalloc(sg_tables * sizeof(struct rd_dev_sg_table), GFP_KERNEL); 150 if (!sg_table) { 156 rd_dev->sg_table_array = sg_table; 329 struct rd_dev_sg_table *sg_table; local [all...] |
H A D | target_core_rd.h | 39 struct scatterlist *sg_table; member in struct:rd_dev_sg_table
|
/drivers/message/i2o/ |
H A D | i2o_block.h | 94 struct scatterlist sg_table[I2O_MAX_PHYS_SEGMENTS]; /* SG table */ member in struct:i2o_block_request
|
H A D | i2o_block.c | 290 sg_init_table(ireq->sg_table, I2O_MAX_PHYS_SEGMENTS); 324 nents = blk_rq_map_sg(ireq->req->q, ireq->req, ireq->sg_table); 333 return i2o_dma_map_sg(c, ireq->sg_table, nents, direction, mptr); 351 dma_unmap_sg(ireq->dev, ireq->sg_table, ireq->sg_nents, direction);
|
/drivers/base/ |
H A D | dma-buf.c | 268 * Returns sg_table containing the scatterlist to be returned; may return NULL 272 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *attach, 275 struct sg_table *sg_table = ERR_PTR(-EINVAL); local 282 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); 284 return sg_table; 293 * @sg_table: [in] scatterlist info of the buffer to unmap 298 struct sg_table *sg_table, 301 if (WARN_ON(!attach || !attach->dmabuf || !sg_table)) 297 dma_buf_unmap_attachment(struct dma_buf_attachment *attach, struct sg_table *sg_table, enum dma_data_direction direction) argument [all...] |
/drivers/iommu/ |
H A D | omap-iovmm.c | 32 static unsigned int sgtable_offset(const struct sg_table *sgt) 41 static size_t sgtable_len(const struct sg_table *sgt) 107 /* allocate and initialize sg_table header(a kind of 'superblock') */ 108 static struct sg_table *sgtable_alloc(const size_t bytes, u32 flags, 113 struct sg_table *sgt; 143 /* free sg_table header(a kind of superblock) */ 144 static void sgtable_free(struct sg_table *sgt) 156 static void *vmap_sg(const struct sg_table *sgt) 375 static void sgtable_fill_vmalloc(struct sg_table *sgt, void *_va) 399 static inline void sgtable_drain_vmalloc(struct sg_table *sg [all...] |
/drivers/gpu/ion/ |
H A D | ion_priv.h | 47 * @sg_table: the sg table for the buffer if dmap_cnt is not zero 73 struct sg_table *sg_table; member in struct:ion_buffer 101 struct sg_table *(*map_dma) (struct ion_heap *heap,
|
H A D | ion_carveout_heap.c | 87 struct sg_table *ion_carveout_heap_map_dma(struct ion_heap *heap, 90 struct sg_table *table; 93 table = kzalloc(sizeof(struct sg_table), GFP_KERNEL); 109 sg_free_table(buffer->sg_table);
|
H A D | ion_system_heap.c | 153 struct sg_table *table; 174 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); 225 struct sg_table *table = buffer->priv_virt; 236 struct sg_table *ion_system_heap_map_dma(struct ion_heap *heap, 255 struct sg_table *table = buffer->priv_virt; 291 struct sg_table *table = buffer->priv_virt; 417 struct sg_table *ion_system_contig_heap_map_dma(struct ion_heap *heap, 420 struct sg_table *table; 423 table = kzalloc(sizeof(struct sg_table), GFP_KERNEL); 439 sg_free_table(buffer->sg_table); [all...] |
H A D | ion.c | 150 struct sg_table *table; 177 buffer->sg_table = table; 179 for_each_sg(buffer->sg_table->sgl, sg, buffer->sg_table->nents, 206 for_each_sg(buffer->sg_table->sgl, sg, buffer->sg_table->nents, i) 710 struct sg_table *ion_sg_table(struct ion_client *client, 714 struct sg_table *table; 724 table = buffer->sg_table; 734 static struct sg_table *ion_map_dma_bu [all...] |
/drivers/ata/ |
H A D | sata_promise.h | 45 dma_addr_t sg_table, 71 buf32[1] = cpu_to_le32(sg_table); /* S/G table addr */ 44 pdc_pkt_header(struct ata_taskfile *tf, dma_addr_t sg_table, unsigned int devno, u8 *buf) argument
|
/drivers/gpu/drm/ |
H A D | drm_prime.c | 205 struct sg_table *drm_prime_pages_to_sg(struct page **pages, int nr_pages) 207 struct sg_table *sg = NULL; 212 sg = kmalloc(sizeof(struct sg_table), GFP_KERNEL); 231 void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg)
|
/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gem.h | 48 struct sg_table *sgt;
|
H A D | exynos_drm_buf.c | 65 buf->sgt = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
|
H A D | exynos_drm_gem.c | 184 buf->sgt = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
|
/drivers/ide/ |
H A D | ide-dma.c | 136 struct scatterlist *sg = hwif->sg_table; 168 dma_unmap_sg(hwif->dev, hwif->sg_table, cmd->orig_sg_nents,
|
H A D | ide-dma-sff.c | 123 for_each_sg(hwif->sg_table, sg, cmd->sg_nents, i) {
|
H A D | ide-probe.c | 975 hwif->sg_table = kmalloc(sizeof(struct scatterlist)*hwif->sg_max_nents, 977 if (!hwif->sg_table) { 982 sg_init_table(hwif->sg_table, hwif->sg_max_nents); 1546 kfree(hwif->sg_table);
|
H A D | au1xxx-ide.c | 227 sg = hwif->sg_table;
|
H A D | icside.c | 344 set_dma_sg(ec->dma, hwif->sg_table, cmd->sg_nents);
|
H A D | ide-io.c | 226 struct scatterlist *sg = hwif->sg_table;
|
/drivers/scsi/isci/ |
H A D | request.h | 150 struct scu_sgl_element_pair sg_table[SCU_SGL_SIZE] __attribute__ ((aligned(32))); member in struct:isci_request
|
/drivers/spi/ |
H A D | spi-ep93xx.c | 133 struct sg_table rx_sgt; 134 struct sg_table tx_sgt; 555 struct sg_table *sgt; 594 * For performance reasons we allocate a new sg_table only when 596 * last sg_table is released in ep93xx_spi_release_dma(). 653 struct sg_table *sgt;
|
H A D | spi-pl022.c | 387 struct sg_table sgt_rx; 388 struct sg_table sgt_tx; 827 struct sg_table *sgtab)
|
/drivers/misc/carma/ |
H A D | carma-fpga.c | 167 struct sg_table corl_table; 400 struct sg_table *table = &priv->corl_table;
|