/openbmc/linux/drivers/parisc/ |
H A D | iommu-helpers.h | 35 (unsigned long)sg_dma_address(startsg), in iommu_fill_pdir() 44 if (sg_dma_address(startsg) & PIDE_FLAG) { in iommu_fill_pdir() 45 u32 pide = sg_dma_address(startsg) & ~PIDE_FLAG; in iommu_fill_pdir() 57 sg_dma_address(dma_sg) = pide | ioc->ibase; in iommu_fill_pdir() 62 sg_dma_address(dma_sg) = pide; in iommu_fill_pdir() 124 sg_dma_address(startsg) = 0; in iommu_coalesce_chunks() 141 sg_dma_address(startsg) = 0; in iommu_coalesce_chunks() 173 sg_dma_address(contig_sg) = in iommu_coalesce_chunks()
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_scatterlist.c | 30 sg_dma_address(new_sg) = sg_dma_address(sg); in i915_sg_trim() 125 sg_dma_address(sg) = region_start + offset; in i915_rsgt_from_mm_node() 126 GEM_BUG_ON(!IS_ALIGNED(sg_dma_address(sg), in i915_rsgt_from_mm_node() 215 sg_dma_address(sg) = region_start + offset; in i915_rsgt_from_buddy_resource() 216 GEM_BUG_ON(!IS_ALIGNED(sg_dma_address(sg), in i915_rsgt_from_buddy_resource()
|
/openbmc/linux/drivers/media/pci/tw68/ |
H A D | tw68-risc.c | 65 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field() 80 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field() 88 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in tw68_risc_field() 98 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in tw68_risc_field()
|
/openbmc/linux/drivers/net/ethernet/micrel/ |
H A D | ks8842.c | 552 sg_dma_address(sg) = dma_map_single(adapter->dev, in __ks8842_start_new_rx_dma() 556 sg_dma_address(sg) = 0; in __ks8842_start_new_rx_dma() 575 sg_dma_address(sg) = 0; in __ks8842_start_new_rx_dma() 581 if (sg_dma_address(sg)) in __ks8842_start_new_rx_dma() 584 sg_dma_address(sg) = 0; in __ks8842_start_new_rx_dma() 598 dma_addr_t addr = sg_dma_address(&ctl->sg); in ks8842_rx_frame_dma_tasklet() 874 if (sg_dma_address(&rx_ctl->sg)) in ks8842_stop_dma() 877 sg_dma_address(&rx_ctl->sg) = 0; in ks8842_stop_dma() 900 if (sg_dma_address(&tx_ctl->sg)) in ks8842_dealloc_dma_bufs() 903 sg_dma_address(&tx_ctl->sg) = 0; in ks8842_dealloc_dma_bufs() [all …]
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_dsd.h | 14 put_unaligned_le32(sg_dma_address(sg), &(*dsd)->address); in append_dsd32() 27 put_unaligned_le64(sg_dma_address(sg), &(*dsd)->address); in append_dsd64()
|
/openbmc/linux/lib/ |
H A D | sg_split.c | 94 sg_dma_address(out_sg) = 0; in sg_split_phys() 113 sg_dma_address(out_sg) = sg_dma_address(in_sg); in sg_split_mapped() 116 sg_dma_address(out_sg) += split->skip_sg0; in sg_split_mapped()
|
/openbmc/linux/drivers/hwtracing/intel_th/ |
H A D | msu-sink.c | 72 PAGE_SIZE, &sg_dma_address(sg_ptr), in msu_sink_alloc_window() 92 sg_virt(sg_ptr), sg_dma_address(sg_ptr)); in msu_sink_free_window()
|
/openbmc/linux/drivers/iommu/ |
H A D | dma-iommu.c | 1023 sg_dma_address(sg), in iommu_dma_sync_sg_for_device() 1123 dma_addr_t s_dma_addr = sg_dma_address(s); in __finalise_sg() 1124 unsigned int s_iova_off = sg_dma_address(s); in __finalise_sg() 1128 sg_dma_address(s) = DMA_MAPPING_ERROR; in __finalise_sg() 1136 sg_dma_address(cur) = s_dma_addr; in __finalise_sg() 1190 if (sg_dma_address(s) != DMA_MAPPING_ERROR) in __invalidate_sg() 1191 s->offset += sg_dma_address(s); in __invalidate_sg() 1195 sg_dma_address(s) = DMA_MAPPING_ERROR; in __invalidate_sg() 1222 if (sg_dma_address(s) == DMA_MAPPING_ERROR) in iommu_dma_map_sg_swiotlb() 1304 sg_dma_address(s) = s_iova_off; in iommu_dma_map_sg() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-dw-dma.c | 584 sg_dma_address(&tx_tmp) = sg_dma_address(tx_sg); in dw_spi_dma_transfer_one() 591 sg_dma_address(&rx_tmp) = sg_dma_address(rx_sg); in dw_spi_dma_transfer_one() 627 sg_dma_address(&tx_tmp) += len; in dw_spi_dma_transfer_one() 628 sg_dma_address(&rx_tmp) += len; in dw_spi_dma_transfer_one()
|
H A D | spi-bcm2835.c | 527 sg_dma_address(&tfr->rx_sg.sgl[0]), in bcm2835_spi_transfer_prologue() 530 sg_dma_address(&tfr->rx_sg.sgl[0]) += bs->rx_prologue; in bcm2835_spi_transfer_prologue() 553 sg_dma_address(&tfr->tx_sg.sgl[0]) += bs->tx_prologue; in bcm2835_spi_transfer_prologue() 557 sg_dma_address(&tfr->tx_sg.sgl[1]) += 4; in bcm2835_spi_transfer_prologue() 578 sg_dma_address(&tfr->rx_sg.sgl[0]) -= bs->rx_prologue; in bcm2835_spi_undo_prologue() 586 sg_dma_address(&tfr->tx_sg.sgl[0]) -= bs->tx_prologue; in bcm2835_spi_undo_prologue() 590 sg_dma_address(&tfr->tx_sg.sgl[1]) -= 4; in bcm2835_spi_undo_prologue()
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-at91-master.c | 146 dma_unmap_single(dev->dev, sg_dma_address(&dma->sg[0]), in at91_twi_dma_cleanup() 178 dma_unmap_single(dev->dev, sg_dma_address(&dev->dma.sg[0]), in at91_twi_write_data_dma_callback() 227 sg_dma_address(sg) = dma_addr; in at91_twi_write_data_dma() 234 sg_dma_address(sg) = dma_addr + part1_len; in at91_twi_write_data_dma() 247 sg_dma_address(&dma->sg[0]) = dma_addr; in at91_twi_write_data_dma() 320 dma_unmap_single(dev->dev, sg_dma_address(&dev->dma.sg[0]), in at91_twi_read_data_dma_callback() 367 sg_dma_address(&dma->sg[0]) = dma_addr; in at91_twi_read_data_dma()
|
/openbmc/linux/include/rdma/ |
H A D | ib_umem.h | 57 return (sg_dma_address(umem->sgt_append.sgt.sgl) + ib_umem_offset(umem)) & in ib_umem_dma_offset() 140 dma_addr = sg_dma_address(sg) + (umem->address & ~PAGE_MASK); in ib_umem_find_best_pgoff()
|
/openbmc/linux/arch/powerpc/platforms/512x/ |
H A D | mpc512x_lpbfifo.c | 250 sg_dma_address(&sg) = dma_map_single(dma_dev->dev, in mpc512x_lpbfifo_kick() 252 if (dma_mapping_error(dma_dev->dev, sg_dma_address(&sg))) in mpc512x_lpbfifo_kick() 255 lpbfifo.ram_bus_addr = sg_dma_address(&sg); /* For freeing later */ in mpc512x_lpbfifo_kick() 327 dma_unmap_single(dma_dev->dev, sg_dma_address(&sg), in mpc512x_lpbfifo_kick()
|
/openbmc/linux/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_ddp.c | 22 addr = sg_dma_address(sg); in cxgbit_set_one_ppod() 34 addr = sg_dma_address(sg); in cxgbit_set_one_ppod() 57 addr = sg_dma_address(sg); in cxgbit_set_one_ppod()
|
/openbmc/linux/drivers/crypto/caam/ |
H A D | sg_sw_qm2.h | 36 dma_to_qm_sg_one(qm_sg_ptr, sg_dma_address(sg), ent_len, in sg_to_qm_sg()
|
H A D | caampkc.c | 433 pdb->f_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_pub_pdb() 441 pdb->g_dma = sg_dma_address(req->dst); in set_rsa_pub_pdb() 481 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f1_pdb() 489 pdb->f_dma = sg_dma_address(req->dst); in set_rsa_priv_f1_pdb() 546 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f2_pdb() 554 pdb->f_dma = sg_dma_address(req->dst); in set_rsa_priv_f2_pdb() 635 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f3_pdb() 643 pdb->f_dma = sg_dma_address(req->dst); in set_rsa_priv_f3_pdb()
|
/openbmc/linux/drivers/media/pci/bt8xx/ |
H A D | bttv-risc.c | 81 *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); in bttv_risc_packed() 88 *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); in bttv_risc_packed() 95 *(rp++)=cpu_to_le32(sg_dma_address(sg)); in bttv_risc_packed() 101 *(rp++)=cpu_to_le32(sg_dma_address(sg)); in bttv_risc_packed() 212 *(rp++)=cpu_to_le32(sg_dma_address(ysg)+yoffset); in bttv_risc_planar() 215 *(rp++)=cpu_to_le32(sg_dma_address(usg)+uoffset); in bttv_risc_planar() 217 *(rp++)=cpu_to_le32(sg_dma_address(vsg)+voffset); in bttv_risc_planar()
|
/openbmc/linux/drivers/media/platform/nvidia/tegra-vde/ |
H A D | dmabuf-cache.c | 93 *addrp = sg_dma_address(entry->sgt->sgl); in tegra_vde_dmabuf_cache_map() 131 *addrp = sg_dma_address(sgt->sgl); in tegra_vde_dmabuf_cache_map()
|
/openbmc/linux/drivers/mtd/nand/ |
H A D | ecc-mxic.c | 583 writel(sg_dma_address(&ctx->sg[0]) + (step * ctx->data_step_sz), in mxic_ecc_prepare_io_req_external() 585 writel(sg_dma_address(&ctx->sg[1]) + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_prepare_io_req_external() 640 writel(sg_dma_address(&ctx->sg[0]) + (step * ctx->data_step_sz), in mxic_ecc_finish_io_req_external() 642 writel(sg_dma_address(&ctx->sg[1]) + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_finish_io_req_external() 694 writel(sg_dma_address(&ctx->sg[0]), mxic->regs + SDMA_MAIN_ADDR); in mxic_ecc_prepare_io_req_pipelined() 695 writel(sg_dma_address(&ctx->sg[1]), mxic->regs + SDMA_SPARE_ADDR); in mxic_ecc_prepare_io_req_pipelined()
|
/openbmc/linux/drivers/dma/ |
H A D | timb_dma.c | 161 dma_desc, (unsigned long long)sg_dma_address(sg)); in td_fill_desc() 163 dma_desc[7] = (sg_dma_address(sg) >> 24) & 0xff; in td_fill_desc() 164 dma_desc[6] = (sg_dma_address(sg) >> 16) & 0xff; in td_fill_desc() 165 dma_desc[5] = (sg_dma_address(sg) >> 8) & 0xff; in td_fill_desc() 166 dma_desc[4] = (sg_dma_address(sg) >> 0) & 0xff; in td_fill_desc()
|
/openbmc/linux/drivers/scsi/aic94xx/ |
H A D | aic94xx_task.c | 85 sg->bus_addr = cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist() 93 cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist() 105 cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist() 430 cpu_to_le64((u64)sg_dma_address(&task->smp_task.smp_req)); in asd_build_smp_ascb() 435 cpu_to_le64((u64)sg_dma_address(&task->smp_task.smp_resp)); in asd_build_smp_ascb()
|
/openbmc/linux/drivers/media/common/videobuf2/ |
H A D | videobuf2-dma-contig.c | 56 dma_addr_t expected = sg_dma_address(sgt->sgl); in vb2_dc_get_contiguous_size() 61 if (sg_dma_address(s) != expected) in vb2_dc_get_contiguous_size() 222 buf->dma_addr = sg_dma_address(buf->dma_sgt->sgl); in vb2_dc_alloc_non_coherent() 658 buf->dma_addr = sg_dma_address(sgt->sgl); in vb2_dc_get_userptr() 722 buf->dma_addr = sg_dma_address(sgt->sgl); in vb2_dc_map_dmabuf()
|
/openbmc/linux/drivers/media/pci/cx25821/ |
H A D | cx25821-core.c | 1017 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field() 1025 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field() 1033 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in cx25821_risc_field() 1039 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in cx25821_risc_field() 1128 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field_audio() 1136 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field_audio() 1144 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in cx25821_risc_field_audio() 1150 *(rp++) = cpu_to_le32(sg_dma_address(sg)); in cx25821_risc_field_audio()
|
/openbmc/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_phys.c | 61 sg_dma_address(sg) = dma; in i915_gem_object_get_pages_phys() 103 dma_addr_t dma = sg_dma_address(pages->sgl); in i915_gem_object_put_pages_phys()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | umem_dmabuf.c | 47 sg_dma_address(sg) += offset; in ib_umem_dmabuf_map_pages() 92 sg_dma_address(umem_dmabuf->first_sg) -= in ib_umem_dmabuf_unmap_pages()
|