Home
last modified time | relevance | path

Searched refs:dma_offset (Results 1 – 25 of 56) 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.c45 size_t buf_size, get_size, dma_offset; member
121 runtime->dma_area + rt5514_dsp->dma_offset, in rt5514_spi_copy_work()
131 runtime->dma_area + rt5514_dsp->dma_offset, in rt5514_spi_copy_work()
135 runtime->dma_area + rt5514_dsp->dma_offset + in rt5514_spi_copy_work()
143 rt5514_dsp->dma_offset += period_bytes; in rt5514_spi_copy_work()
144 if (rt5514_dsp->dma_offset >= runtime->dma_bytes) in rt5514_spi_copy_work()
145 rt5514_dsp->dma_offset = 0; in rt5514_spi_copy_work()
222 rt5514_dsp->dma_offset = 0; in rt5514_spi_hw_params()
257 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/gpu/drm/via/
A Dvia_dma.c90 uint32_t agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; in via_cmdbuf_space()
104 uint32_t agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; in via_cmdbuf_lag()
119 uint32_t agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; in via_cmdbuf_wait()
224 dev_priv->dma_offset = init->offset; in via_initialize()
425 dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr + 4; in via_hook_segment()
501 agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; in via_align_cmd()
529 agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; in via_cmdbuf_start()
563 dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr + 4; in via_cmdbuf_start()
/linux/drivers/media/platform/exynos4-is/
A Dfimc-core.c432 f->dma_offset.y_h = f->offs_h; in fimc_prepare_dma_offset()
436 f->dma_offset.y_v = f->offs_v; in fimc_prepare_dma_offset()
438 f->dma_offset.cb_h = f->offs_h; in fimc_prepare_dma_offset()
439 f->dma_offset.cb_v = f->offs_v; in fimc_prepare_dma_offset()
441 f->dma_offset.cr_h = f->offs_h; in fimc_prepare_dma_offset()
442 f->dma_offset.cr_v = f->offs_v; in fimc_prepare_dma_offset()
446 f->dma_offset.cb_h >>= 1; in fimc_prepare_dma_offset()
447 f->dma_offset.cr_h >>= 1; in fimc_prepare_dma_offset()
450 f->dma_offset.cb_v >>= 1; in fimc_prepare_dma_offset()
451 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/misc/habanalabs/gaudi/
A Dgaudi.c2834 WREG32(mmDMA0_CORE_PROT + dma_offset, in gaudi_init_dma_core()
4831 mmDMA0_CORE_STS0 + dma_offset, in gaudi_hbm_scrubbing()
6071 u32 dma_offset = i * DMA_CORE_OFFSET; in gaudi_restore_dma_registers() local
6367 u64 dma_offset; in gaudi_dma_core_transfer() local
6370 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_dma_core_transfer()
6377 WREG32(mmDMA0_CORE_COMMIT + dma_offset, in gaudi_dma_core_transfer()
6382 mmDMA0_CORE_STS0 + dma_offset, in gaudi_dma_core_transfer()
6415 u64 dma_offset, qm_offset; in gaudi_debugfs_read_dma() local
6436 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_debugfs_read_dma()
6856 u32 tmp, timeout, dma_offset; in gaudi_send_job_on_qman0() local
[all …]
/linux/arch/powerpc/platforms/pseries/
A Diommu.c385 u64 tce_size, num_tce, dma_offset, next; in tce_clearrange_multi_pSeriesLP() local
408 dma_offset = next + be64_to_cpu(maprange->dma_base); in tce_clearrange_multi_pSeriesLP()
411 dma_offset, in tce_clearrange_multi_pSeriesLP()
424 u64 tce_size, num_tce, dma_offset, next, proto_tce, liobn; in tce_setrange_multi_pSeriesLP() local
478 dma_offset = next + be64_to_cpu(maprange->dma_base); in tce_setrange_multi_pSeriesLP()
486 dma_offset, in tce_setrange_multi_pSeriesLP()
1244 if (find_existing_ddw(pdn, &dev->dev.archdata.dma_offset, &len)) { in enable_ddw()
1447 dev->dev.archdata.dma_offset = win_addr; in enable_ddw()
1484 dev->dev.bus_dma_limit = dev->dev.archdata.dma_offset + (1ULL << len); in enable_ddw()
/linux/arch/ia64/hp/common/
A Dsba_iommu.c1205 unsigned long dma_offset = 0; in sba_fill_pdir() local
1226 dma_offset = (unsigned long) pide & ~iovp_mask; in sba_fill_pdir()
1246 cnt += dma_offset; in sba_fill_pdir()
1247 dma_offset=0; /* only want offset on first chunk */ in sba_fill_pdir()
1301 unsigned long dma_offset, dma_len; /* start/len of DMA stream */ in sba_coalesce_chunks() local
1315 dma_offset = vaddr & ~iovp_mask; in sba_coalesce_chunks()
1340 if (((dma_len + dma_offset + startsg->length + ~iovp_mask) & iovp_mask) in sba_coalesce_chunks()
1401 dma_len = (dma_len + dma_offset + ~iovp_mask) & iovp_mask; in sba_coalesce_chunks()
1409 | dma_offset); in sba_coalesce_chunks()
/linux/drivers/dma/ti/
A Ddma-crossbar.c210 u32 dma_offset; member
278 dma_spec->args[0] = map->xbar_out + xbar->dma_offset; in ti_dra7_xbar_route_allocate()
411 xbar->dma_offset = *(u32 *)match->data; in ti_dra7_xbar_probe()
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_hem.c723 int offset, dma_offset; in hns_roce_table_find() local
738 dma_offset = offset = idx_offset * table->obj_size; in hns_roce_table_find()
754 dma_offset = offset = obj * seg_size % mhop.bt_chunk_size; in hns_roce_table_find()
756 dma_offset = offset = 0; in hns_roce_table_find()
765 if (dma_handle && dma_offset >= 0) { in hns_roce_table_find()
766 if (length > (u32)dma_offset) in hns_roce_table_find()
768 &chunk->mem[i]) + dma_offset; in hns_roce_table_find()
769 dma_offset -= length; in hns_roce_table_find()
/linux/arch/sparc/include/asm/
A Diommu_64.h90 u32 dma_offset, u32 dma_addr_mask,
/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/gpu/drm/nouveau/include/nvfw/
A Dpmu.h17 u8 dma_offset; member
/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.c151 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_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/acpi/
A Dscan.c1478 u64 len, dma_start = U64_MAX, dma_end = 0, dma_offset = 0; in acpi_dma_get_range() local
1504 if (dma_offset && rentry->offset != dma_offset) { in acpi_dma_get_range()
1509 dma_offset = rentry->offset; in acpi_dma_get_range()
1524 *dma_addr = dma_start - dma_offset; in acpi_dma_get_range()
1527 *offset = dma_offset; in acpi_dma_get_range()
/linux/drivers/media/platform/s3c-camif/
A Dcamif-core.h121 struct camif_dma_offset dma_offset; member

Completed in 73 milliseconds

123