/drivers/parisc/ |
D | iommu-helpers.h | 21 unsigned long dma_offset = 0, dma_len = 0; in iommu_fill_pdir() local 52 dma_offset = (unsigned long) pide & ~IOVP_MASK; in iommu_fill_pdir() 71 size = startsg->length + dma_offset; in iommu_fill_pdir() 72 dma_offset = 0; in iommu_fill_pdir() 105 unsigned long dma_offset, dma_len; /* start/len of DMA stream */ in iommu_coalesce_chunks() local 120 dma_offset = startsg->offset; in iommu_coalesce_chunks() 148 if (unlikely(ALIGN(dma_len + dma_offset + startsg->length, IOVP_SIZE) > in iommu_coalesce_chunks() 171 dma_len = ALIGN(dma_len + dma_offset, IOVP_SIZE); in iommu_coalesce_chunks() 175 | dma_offset; in iommu_coalesce_chunks()
|
/drivers/gpu/drm/via/ |
D | via_dma.c | 84 uint32_t agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; in via_cmdbuf_space() 98 uint32_t agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; in via_cmdbuf_lag() 113 uint32_t agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; in via_cmdbuf_wait() 218 dev_priv->dma_offset = init->offset; in via_initialize() 419 dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr + 4; in via_hook_segment() 495 agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; in via_align_cmd() 523 agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; in via_cmdbuf_start() 557 dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr + 4; in via_cmdbuf_start() 595 agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; in via_cmdbuf_jump()
|
D | via_drv.h | 72 unsigned int dma_offset; member
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | icm.c | 314 int offset, dma_offset, i; in mlx4_table_find() local 327 dma_offset = offset = idx % MLX4_TABLE_CHUNK_SIZE; in mlx4_table_find() 334 if (dma_handle && dma_offset >= 0) { in mlx4_table_find() 335 if (sg_dma_len(&chunk->mem[i]) > dma_offset) in mlx4_table_find() 337 dma_offset; in mlx4_table_find() 338 dma_offset -= sg_dma_len(&chunk->mem[i]); in mlx4_table_find()
|
/drivers/media/platform/exynos4-is/ |
D | fimc-core.c | 456 f->dma_offset.y_h = f->offs_h; in fimc_prepare_dma_offset() 458 f->dma_offset.y_h *= (depth >> 3); in fimc_prepare_dma_offset() 460 f->dma_offset.y_v = f->offs_v; in fimc_prepare_dma_offset() 462 f->dma_offset.cb_h = f->offs_h; in fimc_prepare_dma_offset() 463 f->dma_offset.cb_v = f->offs_v; in fimc_prepare_dma_offset() 465 f->dma_offset.cr_h = f->offs_h; in fimc_prepare_dma_offset() 466 f->dma_offset.cr_v = f->offs_v; in fimc_prepare_dma_offset() 470 f->dma_offset.cb_h >>= 1; in fimc_prepare_dma_offset() 471 f->dma_offset.cr_h >>= 1; in fimc_prepare_dma_offset() 474 f->dma_offset.cb_v >>= 1; in fimc_prepare_dma_offset() [all …]
|
D | fimc-reg.c | 173 struct fimc_dma_offset *offset = &frame->dma_offset; in fimc_hw_set_out_dma() 427 struct fimc_dma_offset *offset = &frame->dma_offset; in fimc_hw_set_in_dma()
|
D | fimc-core.h | 261 struct fimc_dma_offset dma_offset; member
|
/drivers/misc/mic/host/ |
D | mic_virtio.c | 83 size_t dma_offset; in mic_virtio_copy_to_user() local 87 dma_offset = daddr - round_down(daddr, dma_alignment); in mic_virtio_copy_to_user() 88 daddr -= dma_offset; in mic_virtio_copy_to_user() 89 len += dma_offset; in mic_virtio_copy_to_user() 99 if (copy_to_user(ubuf, mvr->buf + dma_offset, in mic_virtio_copy_to_user() 100 partlen - dma_offset)) { in mic_virtio_copy_to_user() 110 dma_offset = 0; in mic_virtio_copy_to_user()
|
/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()
|
/drivers/dma/ |
D | ti-dma-crossbar.c | 215 u32 dma_offset; member 271 dma_spec->args[0] = map->xbar_out + xbar->dma_offset; in ti_dra7_xbar_route_allocate() 354 xbar->dma_offset = (u32)match->data; in ti_dra7_xbar_probe()
|
/drivers/media/pci/ivtv/ |
D | ivtv-irq.c | 268 s->name, s->dma_offset); in dma_post() 294 write_dec_sync(0, s->dma_offset - IVTV_DECODER_OFFSET); in dma_post() 297 write_enc_sync(0, s->dma_offset); in dma_post() 490 s_vbi->dma_offset = s_vbi->pending_offset; in ivtv_dma_enc_start() 502 s->dma_offset = s->pending_offset; in ivtv_dma_enc_start() 622 s->dma_offset, s->sg_processed, s->sg_processing_size, itv->dma_retries); in ivtv_irq_enc_dma_complete()
|
D | ivtvfb.c | 391 unsigned long dma_offset = in ivtvfb_write() local 441 p + lead + dma_offset, (void __user *)buf, dma_size); in ivtvfb_write()
|
D | ivtv-driver.h | 344 u32 dma_offset; member
|
/drivers/net/ethernet/sfc/ |
D | tx.c | 68 dma_addr_t unmap_addr = buffer->dma_addr - buffer->dma_offset; in efx_dequeue_buffer() 407 buffer->dma_offset = buffer->dma_addr - unmap_addr; in efx_enqueue_skb() 985 buffer->dma_offset = 0; in efx_tso_put_header() 1128 buffer->dma_offset = buffer->unmap_len - buffer->len; in tso_fill_packet_with_fragment() 1227 buffer->dma_offset = 0; in tso_start_new_packet()
|
D | net_driver.h | 162 unsigned short dma_offset; member
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 200 u16 dma_offset; /* DMA offset to align IP headers */ member 565 q->dma_offset = sge->rx_pkt_pad ? 0 : NET_IP_ALIGN; in alloc_rx_resources() 586 sge->freelQ[!sge->jumbo_fl].dma_offset; in alloc_rx_resources() 793 sge->freelQ[sge->jumbo_fl].dma_offset - in jumbo_payload_capacity() 830 unsigned int dma_len = q->rx_buffer_size - q->dma_offset; in refill_free_list() 840 skb_reserve(skb, q->dma_offset); in refill_free_list()
|
/drivers/media/platform/s3c-camif/ |
D | camif-core.h | 125 struct camif_dma_offset dma_offset; member
|
D | camif-capture.c | 60 f->dma_offset.initial = f->rect.top * f->f_width + f->rect.left; in camif_prepare_dma_offset() 61 f->dma_offset.line = f->f_width - (f->rect.left + f->rect.width); in camif_prepare_dma_offset() 64 f->dma_offset.initial, f->dma_offset.line); in camif_prepare_dma_offset()
|
D | camif-regs.c | 269 struct camif_dma_offset *offset = &frame->dma_offset; in camif_hw_set_output_dma()
|
/drivers/net/ethernet/broadcom/ |
D | b44.h | 372 u32 dma_offset; member
|
D | b44.c | 723 dp->addr = cpu_to_le32((u32) mapping + bp->dma_offset); in b44_alloc_rx_skb() 1029 bp->tx_ring[entry].addr = cpu_to_le32((u32) mapping+bp->dma_offset); in b44_start_xmit() 1438 bw32(bp, B44_DMATX_ADDR, bp->tx_ring_dma + bp->dma_offset); in b44_init_hw() 1441 bw32(bp, B44_DMARX_ADDR, bp->rx_ring_dma + bp->dma_offset); in b44_init_hw() 2159 bp->dma_offset = ssb_dma_translation(sdev); in b44_get_invariants()
|
/drivers/scsi/lpfc/ |
D | lpfc_scsi.c | 2268 uint32_t dma_offset = 0; in lpfc_bg_setup_sgl() local 2337 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset); in lpfc_bg_setup_sgl() 2341 dma_offset += dma_len; in lpfc_bg_setup_sgl() 2411 uint32_t dma_offset = 0; in lpfc_bg_setup_sgl_prot() local 2563 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset); in lpfc_bg_setup_sgl_prot() 2567 dma_offset += dma_len; in lpfc_bg_setup_sgl_prot() 3243 uint32_t dma_offset = 0; in lpfc_scsi_prep_dma_buf_s4() local 3302 bf_set(lpfc_sli4_sge_offset, sgl, dma_offset); in lpfc_scsi_prep_dma_buf_s4() 3306 dma_offset += dma_len; in lpfc_scsi_prep_dma_buf_s4()
|
D | lpfc_bsg.c | 220 unsigned int sg_offset, dma_offset; in lpfc_bsg_copy_data() local 240 dma_offset = 0; in lpfc_bsg_copy_data() 242 (dma_offset < LPFC_BPL_SIZE)) { in lpfc_bsg_copy_data() 243 dma_address = mp->virt + dma_offset; in lpfc_bsg_copy_data() 254 if (transfer_bytes > (LPFC_BPL_SIZE - dma_offset)) in lpfc_bsg_copy_data() 255 transfer_bytes = LPFC_BPL_SIZE - dma_offset; in lpfc_bsg_copy_data() 260 dma_offset += transfer_bytes; in lpfc_bsg_copy_data()
|
/drivers/net/ethernet/neterion/vxge/ |
D | vxge-traffic.h | 2075 ptrdiff_t dma_offset; member
|
D | vxge-config.h | 1080 ptrdiff_t dma_offset; member
|