Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/parisc/
H 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()
/openbmc/linux/sound/soc/codecs/
H 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()
H 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()
/openbmc/linux/arch/powerpc/include/asm/
H 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()
H A Ddevice.h26 dma_addr_t dma_offset; member
/openbmc/qemu/hw/usb/
H A Dhcd-ohci-sysbus.c41 usb_ohci_init(&s->ohci, dev, s->num_ports, s->dma_offset, in ohci_sysbus_realize()
64 DEFINE_PROP_DMAADDR("dma-offset", OHCISysBusState, dma_offset, 0),
H A Dhcd-ohci.h110 dma_addr_t dma_offset; member
/openbmc/linux/drivers/scsi/
H 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()
/openbmc/linux/drivers/xen/
H 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H 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()
/openbmc/linux/drivers/media/platform/samsung/exynos4-is/
H 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 …]
/openbmc/linux/drivers/infiniband/hw/mthca/
H 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()
/openbmc/linux/drivers/accel/habanalabs/gaudi/
H A Dgaudi.c2667 WREG32(mmDMA0_CORE_PROT + dma_offset, in gaudi_init_dma_core()
4601 mmDMA0_CORE_STS0 + dma_offset, in gaudi_scrub_device_dram()
5795 u32 dma_offset = i * DMA_CORE_OFFSET; in gaudi_restore_dma_registers() local
5880 u64 dma_offset; in gaudi_dma_core_transfer() local
5883 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_dma_core_transfer()
5890 WREG32(mmDMA0_CORE_COMMIT + dma_offset, in gaudi_dma_core_transfer()
5895 mmDMA0_CORE_STS0 + dma_offset, in gaudi_dma_core_transfer()
5928 u64 dma_offset, qm_offset; in gaudi_debugfs_read_dma() local
5942 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_debugfs_read_dma()
6355 u32 tmp, timeout, dma_offset; in gaudi_send_job_on_qman0() local
[all …]
/openbmc/linux/arch/sparc/include/asm/
H A Diommu_64.h90 u32 dma_offset, u32 dma_addr_mask,
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvfw/
H A Dpmu.h17 u8 dma_offset; member
/openbmc/linux/drivers/dma/ti/
H 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()
/openbmc/linux/arch/ia64/hp/common/
H A Dsba_iommu.c1213 unsigned long dma_offset = 0; in sba_fill_pdir() local
1234 dma_offset = (unsigned long) pide & ~iovp_mask; in sba_fill_pdir()
1254 cnt += dma_offset; in sba_fill_pdir()
1255 dma_offset=0; /* only want offset on first chunk */ in sba_fill_pdir()
1309 unsigned long dma_offset, dma_len; /* start/len of DMA stream */ in sba_coalesce_chunks() local
1323 dma_offset = vaddr & ~iovp_mask; in sba_coalesce_chunks()
1348 if (((dma_len + dma_offset + startsg->length + ~iovp_mask) & iovp_mask) in sba_coalesce_chunks()
1409 dma_len = (dma_len + dma_offset + ~iovp_mask) & iovp_mask; in sba_coalesce_chunks()
1417 | dma_offset); in sba_coalesce_chunks()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Diommu.c404 u64 tce_size, num_tce, dma_offset, next; in tce_clearrange_multi_pSeriesLP() local
427 dma_offset = next + be64_to_cpu(maprange->dma_base); in tce_clearrange_multi_pSeriesLP()
430 dma_offset, in tce_clearrange_multi_pSeriesLP()
443 u64 tce_size, num_tce, dma_offset, next, proto_tce, liobn; in tce_setrange_multi_pSeriesLP() local
497 dma_offset = next + be64_to_cpu(maprange->dma_base); in tce_setrange_multi_pSeriesLP()
505 dma_offset, in tce_setrange_multi_pSeriesLP()
1325 if (find_existing_ddw(pdn, &dev->dev.archdata.dma_offset, &len, &direct_mapping)) in enable_ddw()
1531 dev->dev.archdata.dma_offset = win_addr; in enable_ddw()
1568 dev->dev.bus_dma_limit = dev->dev.archdata.dma_offset + (1ULL << len); in enable_ddw()
/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.c734 int offset, dma_offset; in hns_roce_table_find() local
746 dma_offset = offset = idx_offset * table->obj_size; in hns_roce_table_find()
762 dma_offset = offset = obj * seg_size % mhop.bt_chunk_size; in hns_roce_table_find()
764 dma_offset = offset = 0; in hns_roce_table_find()
773 if (dma_handle && dma_offset >= 0) { in hns_roce_table_find()
774 if (length > (u32)dma_offset) in hns_roce_table_find()
776 &chunk->mem[i]) + dma_offset; in hns_roce_table_find()
777 dma_offset -= length; in hns_roce_table_find()
/openbmc/linux/sound/usb/hiface/
H 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()
/openbmc/linux/drivers/media/pci/ivtv/
H 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()
/openbmc/linux/drivers/net/ethernet/sfc/
H 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()
H A Dtx_common.c157 dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset; in efx_dequeue_buffer()
398 buffer->dma_offset = buffer->dma_addr - unmap_addr; in efx_tx_map_data()
/openbmc/linux/arch/powerpc/platforms/powernv/
H 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()
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dtx_common.c129 dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset; in efx_dequeue_buffer()
379 buffer->dma_offset = buffer->dma_addr - unmap_addr; in efx_siena_tx_map_data()

123