| /linux/drivers/parisc/ |
| H A 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/sound/soc/codecs/ |
| H A 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/arch/powerpc/include/asm/ |
| H A 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()
|
| /linux/drivers/scsi/ |
| H A 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/drivers/media/platform/samsung/exynos4-is/ |
| H A D | fimc-core.c | 431 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 D | fimc-reg.c | 170 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 D | grant-dma-ops.c | 173 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 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/drivers/infiniband/hw/mthca/ |
| H A 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/drivers/dma/ti/ |
| H A D | dma-crossbar.c | 211 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 D | iommu_64.h | 90 u32 dma_offset, u32 dma_addr_mask,
|
| /linux/drivers/gpu/drm/nouveau/include/nvfw/ |
| H A D | pmu.h | 17 u8 dma_offset; member
|
| /linux/drivers/net/ethernet/sfc/ |
| H A 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()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | tx_common.c | 129 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 D | tx.c | 277 tx_buffer->dma_offset = 0; in efx_siena_xdp_tx_buffers()
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A 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/arch/powerpc/kernel/ |
| H A D | dma-iommu.c | 25 #define is_direct_handle(dev, h) ((h) >= (dev)->archdata.dma_offset)
|
| /linux/drivers/media/platform/samsung/s3c-camif/ |
| H A D | camif-core.h | 121 struct camif_dma_offset dma_offset; member
|
| /linux/drivers/net/ethernet/chelsio/cxgb/ |
| H A D | sge.c | 191 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 D | dart_iommu.c | 378 dev->dev.archdata.dma_offset = DART_U4_BYPASS_BASE; in pci_dma_dev_setup_dart()
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | b44.h | 373 u32 dma_offset; member
|
| /linux/arch/sparc/kernel/ |
| H A D | pci_sun4v.c | 878 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 D | iommu.c | 94 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 D | ivtvfb.c | 377 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 D | lpfc_bsg.c | 225 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()
|