/linux-6.1.9/drivers/parisc/ ! |
D | iommu-helpers.h | 22 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-6.1.9/sound/soc/codecs/ ! |
D | rt5514-spi.c | 45 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()
|
D | rt5677-spi.c | 66 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-6.1.9/arch/powerpc/include/asm/ ! |
D | dma-direct.h | 7 return paddr + dev->archdata.dma_offset; in phys_to_dma() 12 return daddr - dev->archdata.dma_offset; in dma_to_phys()
|
D | device.h | 26 dma_addr_t dma_offset; member
|
/linux-6.1.9/drivers/xen/ ! |
D | grant-dma-ops.c | 171 unsigned long dma_offset = xen_offset_in_page(offset), in xen_grant_dma_map_page() local 173 unsigned int i, n_pages = XEN_PFN_UP(dma_offset + size); in xen_grant_dma_map_page() 196 dma_handle = grant_to_dma(grant) + dma_offset; in xen_grant_dma_map_page() 206 unsigned long dma_offset = xen_offset_in_page(dma_handle); in xen_grant_dma_unmap_page() local 207 unsigned int i, n_pages = XEN_PFN_UP(dma_offset + size); in xen_grant_dma_unmap_page()
|
/linux-6.1.9/drivers/scsi/ ! |
D | zorro_esp.c | 627 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-6.1.9/drivers/media/platform/samsung/exynos4-is/ ! |
D | fimc-core.c | 432 f->dma_offset.y_h = f->offs_h; in fimc_prepare_dma_offset() 434 f->dma_offset.y_h *= (depth >> 3); 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() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ ! |
D | icm.c | 317 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-6.1.9/drivers/infiniband/hw/mthca/ ! |
D | mthca_memfree.c | 280 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-6.1.9/drivers/misc/habanalabs/gaudi/ ! |
D | gaudi.c | 2699 u32 dma_offset = dma_id * DMA_CORE_OFFSET; in gaudi_init_dma_core() local 2703 WREG32(mmDMA0_CORE_RD_MAX_OUTSTAND + dma_offset, 0); in gaudi_init_dma_core() 2704 WREG32(mmDMA0_CORE_RD_MAX_SIZE + dma_offset, 0); in gaudi_init_dma_core() 2707 WREG32(mmDMA0_CORE_LBW_MAX_OUTSTAND + dma_offset, 15); in gaudi_init_dma_core() 2713 WREG32(mmDMA0_CORE_ERR_CFG + dma_offset, dma_err_cfg); in gaudi_init_dma_core() 2719 WREG32(mmDMA0_CORE_ERRMSG_ADDR_LO + dma_offset, in gaudi_init_dma_core() 2721 WREG32(mmDMA0_CORE_ERRMSG_ADDR_HI + dma_offset, in gaudi_init_dma_core() 2724 WREG32(mmDMA0_CORE_ERRMSG_WDATA + dma_offset, in gaudi_init_dma_core() 2726 WREG32(mmDMA0_CORE_PROT + dma_offset, in gaudi_init_dma_core() 2729 WREG32(mmDMA0_CORE_SECURE_PROPS + dma_offset, in gaudi_init_dma_core() [all …]
|
/linux-6.1.9/arch/powerpc/platforms/pseries/ ! |
D | iommu.c | 385 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() 1264 if (find_existing_ddw(pdn, &dev->dev.archdata.dma_offset, &len)) { in enable_ddw() 1468 dev->dev.archdata.dma_offset = win_addr; in enable_ddw() 1505 dev->dev.bus_dma_limit = dev->dev.archdata.dma_offset + (1ULL << len); in enable_ddw()
|
/linux-6.1.9/arch/sparc/include/asm/ ! |
D | iommu_64.h | 90 u32 dma_offset, u32 dma_addr_mask,
|
/linux-6.1.9/arch/ia64/hp/common/ ! |
D | sba_iommu.c | 1205 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-6.1.9/drivers/dma/ti/ ! |
D | dma-crossbar.c | 210 u32 dma_offset; member 283 dma_spec->args[0] = map->xbar_out + xbar->dma_offset; in ti_dra7_xbar_route_allocate() 416 xbar->dma_offset = *(u32 *)match->data; in ti_dra7_xbar_probe()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/include/nvfw/ ! |
D | pmu.h | 17 u8 dma_offset; member
|
/linux-6.1.9/drivers/infiniband/hw/hns/ ! |
D | hns_roce_hem.c | 721 int offset, dma_offset; in hns_roce_table_find() local 733 dma_offset = offset = idx_offset * table->obj_size; in hns_roce_table_find() 749 dma_offset = offset = obj * seg_size % mhop.bt_chunk_size; in hns_roce_table_find() 751 dma_offset = offset = 0; in hns_roce_table_find() 760 if (dma_handle && dma_offset >= 0) { in hns_roce_table_find() 761 if (length > (u32)dma_offset) in hns_roce_table_find() 763 &chunk->mem[i]) + dma_offset; in hns_roce_table_find() 764 dma_offset -= length; in hns_roce_table_find()
|
/linux-6.1.9/sound/usb/hiface/ ! |
D | pcm.c | 487 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-6.1.9/drivers/media/pci/ivtv/ ! |
D | ivtv-irq.c | 256 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-6.1.9/drivers/net/ethernet/sfc/ ! |
D | tx_tso.c | 266 buffer->dma_offset = buffer->unmap_len - buffer->len; in tso_fill_packet_with_fragment() 330 buffer->dma_offset = 0; in tso_start_new_packet()
|
D | tx_common.c | 156 dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset; in efx_dequeue_buffer() 395 buffer->dma_offset = buffer->dma_addr - unmap_addr; in efx_tx_map_data()
|
/linux-6.1.9/drivers/net/ethernet/sfc/siena/ ! |
D | tx_common.c | 128 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-6.1.9/arch/powerpc/platforms/powernv/ ! |
D | pci-ioda-tce.c | 50 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-6.1.9/arch/powerpc/kernel/ ! |
D | dma-iommu.c | 25 #define is_direct_handle(dev, h) ((h) >= (dev)->archdata.dma_offset)
|
/linux-6.1.9/drivers/media/platform/samsung/s3c-camif/ ! |
D | camif-core.h | 121 struct camif_dma_offset dma_offset; member
|