Home
last modified time | relevance | path

Searched refs:dma_offset (Results 1 – 25 of 54) sorted by relevance

123

/linux/drivers/parisc/
A Diommu-helpers.h22 unsigned long dma_offset = 0, dma_len = 0; in iommu_fill_pdir() local
53 dma_offset = (unsigned long) pide & ~IOVP_MASK; in iommu_fill_pdir()
72 size = startsg->length + dma_offset; in iommu_fill_pdir()
73 dma_offset = 0; in iommu_fill_pdir()
106 unsigned long dma_offset, dma_len; /* start/len of DMA stream */ in iommu_coalesce_chunks() local
121 dma_offset = startsg->offset; in iommu_coalesce_chunks()
149 if (unlikely(ALIGN(dma_len + dma_offset + startsg->length, IOVP_SIZE) > in iommu_coalesce_chunks()
172 dma_len = ALIGN(dma_len + dma_offset, IOVP_SIZE); in iommu_coalesce_chunks()
176 | dma_offset; in iommu_coalesce_chunks()
/linux/sound/soc/codecs/
A Drt5514-spi.c44 size_t buf_size, get_size, dma_offset; member
120 runtime->dma_area + rt5514_dsp->dma_offset, in rt5514_spi_copy_work()
130 runtime->dma_area + rt5514_dsp->dma_offset, in rt5514_spi_copy_work()
134 runtime->dma_area + rt5514_dsp->dma_offset + in rt5514_spi_copy_work()
142 rt5514_dsp->dma_offset += period_bytes; in rt5514_spi_copy_work()
143 if (rt5514_dsp->dma_offset >= runtime->dma_bytes) in rt5514_spi_copy_work()
144 rt5514_dsp->dma_offset = 0; in rt5514_spi_copy_work()
221 rt5514_dsp->dma_offset = 0; in rt5514_spi_hw_params()
256 return bytes_to_frames(runtime, rt5514_dsp->dma_offset); in rt5514_spi_pcm_pointer()
A Drt5677-spi.c66 size_t dma_offset; /* zero-based offset into runtime->dma_area */ member
170 rt5677_dsp->dma_offset = 0; in rt5677_spi_prepare()
183 return bytes_to_frames(runtime, rt5677_dsp->dma_offset); in rt5677_spi_pcm_pointer()
239 if (rt5677_dsp->dma_offset + first_chunk_len > runtime->dma_bytes) { in rt5677_spi_copy_block()
242 first_chunk_len = runtime->dma_bytes - rt5677_dsp->dma_offset; in rt5677_spi_copy_block()
248 runtime->dma_area + rt5677_dsp->dma_offset, in rt5677_spi_copy_block()
252 rt5677_dsp->dma_offset += first_chunk_len; in rt5677_spi_copy_block()
253 if (rt5677_dsp->dma_offset == runtime->dma_bytes) in rt5677_spi_copy_block()
254 rt5677_dsp->dma_offset = 0; in rt5677_spi_copy_block()
262 rt5677_dsp->dma_offset = second_chunk_len; in rt5677_spi_copy_block()
/linux/arch/powerpc/include/asm/
A Ddma-direct.h7 return paddr + dev->archdata.dma_offset; in phys_to_dma()
12 return daddr - dev->archdata.dma_offset; in dma_to_phys()
A Ddevice.h26 dma_addr_t dma_offset; member
/linux/drivers/scsi/
A Dzorro_esp.c627 unsigned long dma_offset; member
650 .dma_offset = 0x10000,
657 .dma_offset = 0x10021,
664 .dma_offset = 0x1ffe0,
670 .dma_offset = 0xf800,
676 .dma_offset = 0x1ff43,
683 .dma_offset = 0x1000041,
764 dmaaddr = zdd->dma_offset; in zorro_esp_probe()
767 dmaaddr = board + zdd->dma_offset; in zorro_esp_probe()
/linux/drivers/xen/
A Dgrant-dma-ops.c172 unsigned long dma_offset = xen_offset_in_page(offset), in xen_grant_dma_map_page() local
174 unsigned int i, n_pages = XEN_PFN_UP(dma_offset + size); in xen_grant_dma_map_page()
197 dma_handle = grant_to_dma(grant) + dma_offset; in xen_grant_dma_map_page()
207 unsigned long dma_offset = xen_offset_in_page(dma_handle); in xen_grant_dma_unmap_page() local
208 unsigned int i, n_pages = XEN_PFN_UP(dma_offset + size); in xen_grant_dma_unmap_page()
/linux/drivers/media/platform/samsung/exynos4-is/
A Dfimc-core.c431 f->dma_offset.y_h = f->offs_h; in fimc_prepare_dma_offset()
435 f->dma_offset.y_v = f->offs_v; in fimc_prepare_dma_offset()
437 f->dma_offset.cb_h = f->offs_h; in fimc_prepare_dma_offset()
438 f->dma_offset.cb_v = f->offs_v; in fimc_prepare_dma_offset()
440 f->dma_offset.cr_h = f->offs_h; in fimc_prepare_dma_offset()
441 f->dma_offset.cr_v = f->offs_v; in fimc_prepare_dma_offset()
445 f->dma_offset.cb_h >>= 1; in fimc_prepare_dma_offset()
446 f->dma_offset.cr_h >>= 1; in fimc_prepare_dma_offset()
449 f->dma_offset.cb_v >>= 1; in fimc_prepare_dma_offset()
450 f->dma_offset.cr_v >>= 1; in fimc_prepare_dma_offset()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
A Dicm.c317 int offset, dma_offset, i; in mlx4_table_find() local
330 dma_offset = offset = idx % MLX4_TABLE_CHUNK_SIZE; in mlx4_table_find()
359 if (dma_handle && dma_offset >= 0) { in mlx4_table_find()
360 if (len > dma_offset) in mlx4_table_find()
361 *dma_handle = dma_addr + dma_offset; in mlx4_table_find()
362 dma_offset -= len; in mlx4_table_find()
/linux/drivers/infiniband/hw/mthca/
A Dmthca_memfree.c280 int idx, offset, dma_offset, i; in mthca_table_find() local
292 dma_offset = offset = idx % MTHCA_TABLE_CHUNK_SIZE; in mthca_table_find()
299 if (dma_handle && dma_offset >= 0) { in mthca_table_find()
300 if (sg_dma_len(&chunk->mem[i]) > dma_offset) in mthca_table_find()
302 dma_offset; in mthca_table_find()
303 dma_offset -= sg_dma_len(&chunk->mem[i]); in mthca_table_find()
/linux/drivers/accel/habanalabs/gaudi/
A Dgaudi.c2668 WREG32(mmDMA0_CORE_PROT + dma_offset, in gaudi_init_dma_core()
4596 mmDMA0_CORE_STS0 + dma_offset, in gaudi_scrub_device_dram()
5789 u32 dma_offset = i * DMA_CORE_OFFSET; in gaudi_restore_dma_registers() local
5874 u64 dma_offset; in gaudi_dma_core_transfer() local
5877 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_dma_core_transfer()
5884 WREG32(mmDMA0_CORE_COMMIT + dma_offset, in gaudi_dma_core_transfer()
5889 mmDMA0_CORE_STS0 + dma_offset, in gaudi_dma_core_transfer()
5922 u64 dma_offset, qm_offset; in gaudi_debugfs_read_dma() local
5936 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_debugfs_read_dma()
6349 u32 tmp, timeout, dma_offset; in gaudi_send_job_on_qman0() local
[all …]
/linux/arch/powerpc/platforms/pseries/
A Diommu.c442 u64 tce_size, num_tce, dma_offset, next; in tce_clearrange_multi_pSeriesLP() local
465 dma_offset = next + be64_to_cpu(maprange->dma_base); in tce_clearrange_multi_pSeriesLP()
468 dma_offset, in tce_clearrange_multi_pSeriesLP()
481 u64 tce_size, num_tce, dma_offset, next, proto_tce, liobn; in tce_setrange_multi_pSeriesLP() local
535 dma_offset = next + be64_to_cpu(maprange->dma_base); in tce_setrange_multi_pSeriesLP()
543 dma_offset, in tce_setrange_multi_pSeriesLP()
1672 dev->dev.archdata.dma_offset = win_addr; in enable_ddw()
1707 dev->dev.bus_dma_limit = dev->dev.archdata.dma_offset + in enable_ddw()
2039 if (find_existing_ddw(pdn, &pdev->dev.archdata.dma_offset, &len, in spapr_tce_create_table()
2051 if (find_existing_ddw(pdn, &pdev->dev.archdata.dma_offset, &len, in spapr_tce_create_table()
[all …]
/linux/arch/sparc/include/asm/
A Diommu_64.h90 u32 dma_offset, u32 dma_addr_mask,
/linux/drivers/dma/ti/
A Ddma-crossbar.c211 u32 dma_offset; member
284 dma_spec->args[0] = map->xbar_out + xbar->dma_offset; in ti_dra7_xbar_route_allocate()
417 xbar->dma_offset = *(u32 *)match->data; in ti_dra7_xbar_probe()
/linux/drivers/gpu/drm/nouveau/include/nvfw/
A Dpmu.h17 u8 dma_offset; member
/linux/sound/usb/hiface/
A Dpcm.c487 snd_pcm_uframes_t dma_offset; in hiface_pcm_pointer() local
493 dma_offset = sub->dma_off; in hiface_pcm_pointer()
495 return bytes_to_frames(alsa_sub->runtime, dma_offset); in hiface_pcm_pointer()
/linux/drivers/media/pci/ivtv/
A Divtv-irq.c256 s->name, s->dma_offset); in dma_post()
282 write_dec_sync(0, s->dma_offset - IVTV_DECODER_OFFSET); in dma_post()
285 write_enc_sync(0, s->dma_offset); in dma_post()
478 s_vbi->dma_offset = s_vbi->pending_offset; in ivtv_dma_enc_start()
490 s->dma_offset = s->pending_offset; in ivtv_dma_enc_start()
610 s->dma_offset, s->sg_processed, s->sg_processing_size, itv->dma_retries); in ivtv_irq_enc_dma_complete()
/linux/drivers/net/ethernet/sfc/
A Dtx_tso.c266 buffer->dma_offset = buffer->unmap_len - buffer->len; in tso_fill_packet_with_fragment()
330 buffer->dma_offset = 0; in tso_start_new_packet()
A Dtx_common.c157 dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset; in efx_dequeue_buffer()
397 buffer->dma_offset = buffer->dma_addr - unmap_addr; in efx_tx_map_data()
/linux/drivers/net/ethernet/sfc/siena/
A Dtx_common.c129 dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset; in efx_dequeue_buffer()
378 buffer->dma_offset = buffer->dma_addr - unmap_addr; in efx_siena_tx_map_data()
/linux/arch/powerpc/platforms/powernv/
A Dpci-ioda-tce.c50 u64 dma_offset, unsigned int page_shift) in pnv_pci_setup_iommu_table() argument
55 tbl->it_offset = dma_offset >> tbl->it_page_shift; in pnv_pci_setup_iommu_table()
/linux/arch/powerpc/kernel/
A Ddma-iommu.c25 #define is_direct_handle(dev, h) ((h) >= (dev)->archdata.dma_offset)
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_hem.c693 int offset, dma_offset; in hns_roce_table_find() local
704 dma_offset = offset = idx_offset * table->obj_size; in hns_roce_table_find()
720 dma_offset = offset = obj * seg_size % mhop.bt_chunk_size; in hns_roce_table_find()
722 dma_offset = offset = 0; in hns_roce_table_find()
728 *dma_handle = hem->dma + dma_offset; in hns_roce_table_find()
/linux/drivers/media/platform/samsung/s3c-camif/
A Dcamif-core.h121 struct camif_dma_offset dma_offset; member
/linux/drivers/misc/cxl/
A Dvphb.c42 dev->dev.archdata.dma_offset = PAGE_OFFSET; in cxl_pci_enable_device_hook()

Completed in 48 milliseconds

123