Home
last modified time | relevance | path

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

12

/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()
/linux/sound/soc/codecs/
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()
/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()
/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()
/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()
433 f->dma_offset.y_h *= (depth >> 3); 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()
[all …]
H A Dfimc-reg.c170 const struct fimc_dma_offset *offset = &frame->dma_offset; in fimc_hw_set_out_dma()
424 const struct fimc_dma_offset *offset = &frame->dma_offset; in fimc_hw_set_in_dma()
/linux/drivers/xen/
H A Dgrant-dma-ops.c173 unsigned long dma_offset = xen_offset_in_page(offset), in xen_grant_dma_map_phys() local
175 unsigned int i, n_pages = XEN_PFN_UP(dma_offset + size); in xen_grant_dma_map_phys()
201 dma_handle = grant_to_dma(grant) + dma_offset; in xen_grant_dma_map_phys()
211 unsigned long dma_offset = xen_offset_in_page(dma_handle); in xen_grant_dma_unmap_phys() local
212 unsigned int i, n_pages = XEN_PFN_UP(dma_offset + size); in xen_grant_dma_unmap_phys()
/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()
/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()
/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()
/linux/arch/sparc/include/asm/
H A Diommu_64.h90 u32 dma_offset, u32 dma_addr_mask,
/linux/drivers/gpu/drm/nouveau/include/nvfw/
H A Dpmu.h17 u8 dma_offset; member
/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()
/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()
378 buffer->dma_offset = buffer->dma_addr - unmap_addr; in efx_siena_tx_map_data()
H A Dtx.c277 tx_buffer->dma_offset = 0; in efx_siena_xdp_tx_buffers()
/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()
/linux/arch/powerpc/kernel/
H A Ddma-iommu.c25 #define is_direct_handle(dev, h) ((h) >= (dev)->archdata.dma_offset)
/linux/drivers/media/platform/samsung/s3c-camif/
H A Dcamif-core.h121 struct camif_dma_offset dma_offset; member
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.c191 u16 dma_offset; /* DMA offset to align IP headers */ member
558 q->dma_offset = sge->rx_pkt_pad ? 0 : NET_IP_ALIGN; in alloc_rx_resources()
580 sge->freelQ[!sge->jumbo_fl].dma_offset; in alloc_rx_resources()
789 sge->freelQ[sge->jumbo_fl].dma_offset - in jumbo_payload_capacity()
826 unsigned int dma_len = q->rx_buffer_size - q->dma_offset; in refill_free_list()
836 skb_reserve(skb, q->dma_offset); in refill_free_list()
/linux/arch/powerpc/sysdev/
H A Ddart_iommu.c378 dev->dev.archdata.dma_offset = DART_U4_BYPASS_BASE; in pci_dma_dev_setup_dart()
/linux/drivers/net/ethernet/broadcom/
H A Db44.h373 u32 dma_offset; member
/linux/arch/sparc/kernel/
H A Dpci_sun4v.c878 u32 dma_mask, dma_offset; in pci_sun4v_iommu_init() local
894 dma_offset = vdma[0]; in pci_sun4v_iommu_init()
899 iommu->tbl.table_map_base = dma_offset; in pci_sun4v_iommu_init()
H A Diommu.c94 u32 dma_offset, u32 dma_addr_mask, in iommu_table_init() argument
105 iommu->tbl.table_map_base = dma_offset; in iommu_table_init()
/linux/drivers/media/pci/ivtv/
H A Divtvfb.c377 unsigned long dma_offset = in ivtvfb_write() local
427 p + lead + dma_offset, (void __user *)buf, dma_size); in ivtvfb_write()
/linux/drivers/scsi/lpfc/
H A Dlpfc_bsg.c225 unsigned int sg_offset, dma_offset; in lpfc_bsg_copy_data() local
245 dma_offset = 0; in lpfc_bsg_copy_data()
247 (dma_offset < LPFC_BPL_SIZE)) { in lpfc_bsg_copy_data()
248 dma_address = mp->virt + dma_offset; in lpfc_bsg_copy_data()
259 if (transfer_bytes > (LPFC_BPL_SIZE - dma_offset)) in lpfc_bsg_copy_data()
260 transfer_bytes = LPFC_BPL_SIZE - dma_offset; in lpfc_bsg_copy_data()
265 dma_offset += transfer_bytes; in lpfc_bsg_copy_data()

12