Home
last modified time | relevance | path

Searched refs:dma_address (Results 1 – 25 of 84) sorted by relevance

1234

/linux/arch/alpha/kernel/
A Dpci_iommu.c507 sg->dma_address = -1; in sg_classify()
510 sg->dma_address = -2; in sg_classify()
515 leader->dma_address = leader_flag; in sg_classify()
525 leader->dma_address = leader_flag; in sg_classify()
546 if (leader->dma_address == 0 in sg_fill()
553 __va(paddr), size, out->dma_address); in sg_fill()
578 if (leader->dma_address == 0) in sg_fill()
649 sg->dma_address in alpha_pci_map_sg()
652 if (sg->dma_address == DMA_MAPPING_ERROR) in alpha_pci_map_sg()
679 if ((int) sg->dma_address < 0) in alpha_pci_map_sg()
[all …]
/linux/drivers/gpu/drm/ttm/
A Dttm_tt.c110 sizeof(*ttm->dma_address), in ttm_dma_tt_alloc_page_directory()
115 ttm->dma_address = (void *)(ttm->pages + ttm->num_pages); in ttm_dma_tt_alloc_page_directory()
121 ttm->dma_address = kvmalloc_array(ttm->num_pages, in ttm_sg_tt_alloc_page_directory()
122 sizeof(*ttm->dma_address), in ttm_sg_tt_alloc_page_directory()
124 if (!ttm->dma_address) in ttm_sg_tt_alloc_page_directory()
142 ttm->dma_address = NULL; in ttm_tt_init_fields()
172 kvfree(ttm->dma_address); in ttm_tt_fini()
174 ttm->dma_address = NULL; in ttm_tt_fini()
A Dttm_pool.c363 dma_addr_t *dma_addr = tt->dma_address; in ttm_pool_alloc()
469 if (tt->dma_address) in ttm_pool_free()
470 ttm_pool_unmap(pool, tt->dma_address[i], num_pages); in ttm_pool_free()
/linux/arch/x86/kernel/
A Damd_gart_64.c287 gart_unmap_page(dev, s->dma_address, s->dma_length, dir, 0); in gart_unmap_sg()
315 s->dma_address = addr; in dma_map_sg_nonforce()
338 unsigned long phys_addr = s->dma_address; in __dma_map_cont()
342 sout->dma_address = iommu_bus_base; in __dma_map_cont()
343 sout->dma_address += iommu_page*PAGE_SIZE + s->offset; in __dma_map_cont()
368 sout->dma_address = start->dma_address; in dma_map_cont()
402 s->dma_address = addr; in gart_map_sg()
/linux/arch/sparc/kernel/
A Diommu.c536 outs->dma_address = dma_addr; in dma_4u_map_sg()
560 vaddr = s->dma_address & IO_PAGE_MASK; in dma_4u_map_sg()
561 npages = iommu_num_pages(s->dma_address, s->dma_length, in dma_4u_map_sg()
596 bus_addr = sg->dma_address & IO_PAGE_MASK; in fetch_sg_ctx()
625 dma_addr_t dma_handle = sg->dma_address; in dma_4u_unmap_sg()
720 iopte = iommu->page_table + ((sglist[0].dma_address - in dma_4u_sync_sg_for_cpu()
726 bus_addr = sglist[0].dma_address & IO_PAGE_MASK; in dma_4u_sync_sg_for_cpu()
734 npages = (IO_PAGE_ALIGN(sgprv->dma_address + sgprv->dma_length) in dma_4u_sync_sg_for_cpu()
/linux/arch/ia64/hp/common/
A Dsba_iommu.c391 startsg->dma_address, startsg->dma_length, in sba_dump_sg()
1214 nents, startsg->dma_address, cnt, in sba_fill_pdir()
1218 nents, startsg->dma_address, cnt, in sba_fill_pdir()
1224 if (startsg->dma_address & PIDE_FLAG) { in sba_fill_pdir()
1225 u32 pide = startsg->dma_address & ~PIDE_FLAG; in sba_fill_pdir()
1227 startsg->dma_address = 0; in sba_fill_pdir()
1230 dma_sg->dma_address = pide | ioc->ibase; in sba_fill_pdir()
1318 startsg->dma_address = startsg->dma_length = 0; in sba_coalesce_chunks()
1330 startsg->dma_address = startsg->dma_length = 0; in sba_coalesce_chunks()
1451 sg->dma_address = virt_to_phys(sba_sg_address(sg)); in sba_map_sg_attrs()
[all …]
/linux/drivers/xen/
A Dswiotlb-xen.c484 xen_swiotlb_unmap_page(hwdev, sg->dma_address, sg_dma_len(sg), in xen_swiotlb_unmap_sg()
499 sg->dma_address = xen_swiotlb_map_page(dev, sg_page(sg), in xen_swiotlb_map_sg()
501 if (sg->dma_address == DMA_MAPPING_ERROR) in xen_swiotlb_map_sg()
521 xen_swiotlb_sync_single_for_cpu(dev, sg->dma_address, in xen_swiotlb_sync_sg_for_cpu()
534 xen_swiotlb_sync_single_for_device(dev, sg->dma_address, in xen_swiotlb_sync_sg_for_device()
/linux/arch/s390/pci/
A Dpci_dma.c502 &dma->dma_address, dir); in s390_dma_map_sg()
506 dma->dma_address += offset; in s390_dma_map_sg()
516 ret = __s390_dma_map_sg(dev, start, size, &dma->dma_address, dir); in s390_dma_map_sg()
520 dma->dma_address += offset; in s390_dma_map_sg()
541 s390_dma_unmap_pages(dev, s->dma_address, s->dma_length, in s390_dma_unmap_sg()
543 s->dma_address = 0; in s390_dma_unmap_sg()
/linux/arch/sparc/mm/
A Diommu.c256 sg->dma_address =__sbus_iommu_map_page(dev, sg_page(sg), in __sbus_iommu_map_sg()
258 if (sg->dma_address == DMA_MAPPING_ERROR) in __sbus_iommu_map_sg()
305 sbus_iommu_unmap_page(dev, sg->dma_address, sg->length, dir, in sbus_iommu_unmap_sg()
307 sg->dma_address = 0x21212121; in sbus_iommu_unmap_sg()
A Dio-unit.c173 sg->dma_address = iounit_get_area(iounit, (unsigned long) sg_virt(sg), sg->length); in iounit_map_sg()
205 len = ((sg->dma_address & ~PAGE_MASK) + sg->length + (PAGE_SIZE-1)) >> PAGE_SHIFT; in iounit_unmap_sg()
206 vaddr = (sg->dma_address - IOUNIT_DMA_BASE) >> PAGE_SHIFT; in iounit_unmap_sg()
/linux/arch/arm/kernel/
A Ddma-isa.c95 dma->buf.dma_address = dma_map_single(&isa_dma_dev, in isa_enable_dma()
100 address = dma->buf.dma_address; in isa_enable_dma()
/linux/include/linux/
A Dpci-dma-compat.h58 pci_unmap_page(struct pci_dev *hwdev, dma_addr_t dma_address, in pci_unmap_page() argument
61 dma_unmap_page(&hwdev->dev, dma_address, size, (enum dma_data_direction)direction); in pci_unmap_page()
A Dscatterlist.h15 dma_addr_t dma_address; member
28 #define sg_dma_address(sg) ((sg)->dma_address)
/linux/arch/arm/mach-rpc/
A Ddma.c78 idma->dma_addr = idma->dma.sg->dma_address; in iomd_get_next_sg()
172 idma->dma.buf.dma_address = dma_map_single(&isa_dma_dev, in iomd_enable_dma()
178 idma->dma_addr = idma->dma.sg->dma_address; in iomd_enable_dma()
/linux/drivers/hid/amd-sfh-hid/
A Damd_sfh_pcie.c63 writeq(info.dma_address, privdata->mmio + AMD_C2P_MSG1); in amd_start_sensor_v2()
108 writeq(info.dma_address, privdata->mmio + AMD_C2P_MSG2); in amd_start_sensor()
282 info.dma_address = cl_data->sensor_dma_addr[i]; in amd_mp2_pci_resume()
A Damd_sfh_pcie.h109 dma_addr_t dma_address; member
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ttm.c251 dma_addr = &bo->ttm->dma_address[mm_cur->start >> PAGE_SHIFT]; in amdgpu_ttm_map_buffer()
257 dma_addr_t dma_address; in amdgpu_ttm_map_buffer() local
259 dma_address = mm_cur->start; in amdgpu_ttm_map_buffer()
260 dma_address += adev->vm_manager.vram_base_offset; in amdgpu_ttm_map_buffer()
264 &dma_address, flags, cpu_addr); in amdgpu_ttm_map_buffer()
268 dma_address += PAGE_SIZE; in amdgpu_ttm_map_buffer()
786 drm_prime_sg_to_dma_addr_array(ttm->sg, gtt->ttm.dma_address, in amdgpu_ttm_tt_pin_userptr()
848 gtt->ttm.dma_address, flags); in amdgpu_ttm_gart_bind()
862 &(gtt->ttm.dma_address[page_idx]), flags); in amdgpu_ttm_gart_bind()
865 gtt->ttm.dma_address, flags); in amdgpu_ttm_gart_bind()
[all …]
/linux/arch/mips/jazz/
A Djazzdma.c553 sg->dma_address = vdma_alloc(sg_phys(sg), sg->length); in jazz_dma_map_sg()
554 if (sg->dma_address == DMA_MAPPING_ERROR) in jazz_dma_map_sg()
571 vdma_free(sg->dma_address); in jazz_dma_unmap_sg()
/linux/include/linux/platform_data/
A Ddma-ste-dma40.h186 sg.dma_address = addr; in stedma40_slave_mem()
/linux/include/drm/ttm/
A Dttm_tt.h98 dma_addr_t *dma_address; member
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_ttm_buffer.c256 viter->dma_address = &__vmw_piter_dma_addr; in vmw_piter_start()
262 viter->dma_address = &__vmw_piter_sg_addr; in vmw_piter_start()
338 vsgt->addrs = vmw_tt->dma_ttm.dma_address; in vmw_ttm_map_dma()
/linux/kernel/dma/
A Ddirect.c431 dma_direct_unmap_page(dev, sg->dma_address, sg_dma_len(sg), dir, in dma_direct_unmap_sg()
443 sg->dma_address = dma_direct_map_page(dev, sg_page(sg), in dma_direct_map_sg()
445 if (sg->dma_address == DMA_MAPPING_ERROR) in dma_direct_map_sg()
/linux/tools/virtio/linux/
A Dscatterlist.h10 dma_addr_t dma_address; member
/linux/drivers/mmc/host/
A Dwmt-sdmmc.c573 u32 dma_address; in wmt_mci_request() local
633 dma_address = priv->dma_desc_device_addr + 16; in wmt_mci_request()
641 dma_address, 0); in wmt_mci_request()
645 dma_address += 16; in wmt_mci_request()
/linux/drivers/dma/
A Dimx-dma.c273 imx_dmav1_writel(imxdma, sg->dma_address, in imxdma_sg_next()
276 imx_dmav1_writel(imxdma, sg->dma_address, in imxdma_sg_next()
819 if (sg_dma_len(sgl) & 3 || sgl->dma_address & 3) in imxdma_prep_slave_sg()
823 if (sg_dma_len(sgl) & 1 || sgl->dma_address & 1) in imxdma_prep_slave_sg()
880 imxdmac->sg_list[i].dma_address = dma_addr; in imxdma_prep_dma_cyclic()

Completed in 55 milliseconds

1234