/linux-4.1.27/lib/ |
D | iommu-common.c | 14 #ifndef DMA_ERROR_CODE 15 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro 126 return DMA_ERROR_CODE; in iommu_tbl_range_alloc() 209 n = DMA_ERROR_CODE; in iommu_tbl_range_alloc() 262 if (entry == DMA_ERROR_CODE) /* use default addr->entry mapping */ in iommu_tbl_range_free()
|
/linux-4.1.27/arch/sparc/kernel/ |
D | pci_sun4v.c | 162 if (unlikely(entry == DMA_ERROR_CODE)) in dma_4v_alloc_coherent() 190 iommu_tbl_range_free(&iommu->tbl, *dma_addrp, npages, DMA_ERROR_CODE); in dma_4v_alloc_coherent() 229 iommu_tbl_range_free(&iommu->tbl, dvma, npages, DMA_ERROR_CODE); in dma_4v_free_coherent() 259 if (unlikely(entry == DMA_ERROR_CODE)) in dma_4v_map_page() 288 return DMA_ERROR_CODE; in dma_4v_map_page() 291 iommu_tbl_range_free(&iommu->tbl, bus_addr, npages, DMA_ERROR_CODE); in dma_4v_map_page() 292 return DMA_ERROR_CODE; in dma_4v_map_page() 320 iommu_tbl_range_free(&iommu->tbl, bus_addr, npages, DMA_ERROR_CODE); in dma_4v_unmap_page() 379 if (unlikely(entry == DMA_ERROR_CODE)) { in dma_4v_map_sg() 439 outs->dma_address = DMA_ERROR_CODE; in dma_4v_map_sg() [all …]
|
D | iommu.c | 164 if (unlikely(entry == DMA_ERROR_CODE)) in alloc_npages() 256 iommu_tbl_range_free(&iommu->tbl, dvma, npages, DMA_ERROR_CODE); in dma_4u_free_coherent() 317 return DMA_ERROR_CODE; in dma_4u_map_page() 429 iommu_tbl_range_free(&iommu->tbl, bus_addr, npages, DMA_ERROR_CODE); in dma_4u_unmap_page() 495 if (unlikely(entry == DMA_ERROR_CODE)) { in dma_4u_map_sg() 550 outs->dma_address = DMA_ERROR_CODE; in dma_4u_map_sg() 574 DMA_ERROR_CODE); in dma_4u_map_sg() 576 s->dma_address = DMA_ERROR_CODE; in dma_4u_map_sg() 651 DMA_ERROR_CODE); in dma_4u_unmap_sg()
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | iommu.c | 201 return DMA_ERROR_CODE; in iommu_range_alloc() 205 return DMA_ERROR_CODE; in iommu_range_alloc() 281 return DMA_ERROR_CODE; in iommu_range_alloc() 313 dma_addr_t ret = DMA_ERROR_CODE; in iommu_alloc() 318 if (unlikely(entry == DMA_ERROR_CODE)) in iommu_alloc() 319 return DMA_ERROR_CODE; in iommu_alloc() 336 return DMA_ERROR_CODE; in iommu_alloc() 481 if (unlikely(entry == DMA_ERROR_CODE)) { in ppc_iommu_map_sg() 547 outs->dma_address = DMA_ERROR_CODE; in ppc_iommu_map_sg() 565 s->dma_address = DMA_ERROR_CODE; in ppc_iommu_map_sg() [all …]
|
D | vio.c | 522 dma_addr_t ret = DMA_ERROR_CODE; in vio_dma_iommu_map_page()
|
/linux-4.1.27/arch/sparc/include/asm/ |
D | dma-mapping.h | 8 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro 73 return (dma_addr == DMA_ERROR_CODE); in dma_mapping_error()
|
/linux-4.1.27/arch/s390/include/asm/ |
D | dma-mapping.h | 12 #define DMA_ERROR_CODE (~(dma_addr_t) 0x0) macro 56 return dma_addr == DMA_ERROR_CODE; in dma_mapping_error()
|
/linux-4.1.27/arch/microblaze/include/asm/ |
D | dma-mapping.h | 33 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro 99 return (dma_addr == DMA_ERROR_CODE); in dma_mapping_error()
|
/linux-4.1.27/arch/arm/mm/ |
D | dma-mapping.c | 644 *handle = DMA_ERROR_CODE; in __dma_alloc() 1059 return DMA_ERROR_CODE; in __alloc_iova() 1067 return DMA_ERROR_CODE; in __alloc_iova() 1242 int i, ret = DMA_ERROR_CODE; in __iommu_create_mapping() 1245 if (dma_addr == DMA_ERROR_CODE) in __iommu_create_mapping() 1270 return DMA_ERROR_CODE; in __iommu_create_mapping() 1327 if (*handle == DMA_ERROR_CODE) in __iommu_alloc_atomic() 1351 *handle = DMA_ERROR_CODE; in arm_iommu_alloc_attrs() 1371 if (*handle == DMA_ERROR_CODE) in arm_iommu_alloc_attrs() 1505 *handle = DMA_ERROR_CODE; in __map_sg_chunk() [all …]
|
/linux-4.1.27/arch/x86/include/asm/ |
D | dma-mapping.h | 24 #define DMA_ERROR_CODE 0 macro 54 return (dma_addr == DMA_ERROR_CODE); in dma_mapping_error()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | dma-mapping.h | 21 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro 182 return (dma_addr == DMA_ERROR_CODE); in dma_mapping_error()
|
/linux-4.1.27/arch/x86/kernel/ |
D | pci-calgary_64.c | 255 return DMA_ERROR_CODE; in iommu_range_alloc() 275 if (unlikely(entry == DMA_ERROR_CODE)) { in iommu_alloc() 278 return DMA_ERROR_CODE; in iommu_alloc() 298 badend = DMA_ERROR_CODE + (EMERGENCY_PAGES * PAGE_SIZE); in iommu_free() 299 if (unlikely((dma_addr >= DMA_ERROR_CODE) && (dma_addr < badend))) { in iommu_free() 383 if (entry == DMA_ERROR_CODE) { in calgary_map_sg() 401 sg->dma_address = DMA_ERROR_CODE; in calgary_map_sg() 456 if (mapping == DMA_ERROR_CODE) in calgary_alloc_coherent() 735 iommu_range_reserve(tbl, DMA_ERROR_CODE, EMERGENCY_PAGES); in calgary_reserve_regions()
|
D | pci-nommu.c | 36 return DMA_ERROR_CODE; in nommu_map_page()
|
/linux-4.1.27/arch/arm/include/asm/ |
D | dma-mapping.h | 17 #define DMA_ERROR_CODE (~0) macro 176 return dma_addr == DMA_ERROR_CODE; in dma_mapping_error()
|
/linux-4.1.27/arch/openrisc/include/asm/ |
D | dma-mapping.h | 30 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro
|
/linux-4.1.27/arch/arm/common/ |
D | dmabounce.c | 258 return DMA_ERROR_CODE; in map_single() 325 return DMA_ERROR_CODE; in dmabounce_map_page() 334 return DMA_ERROR_CODE; in dmabounce_map_page()
|
/linux-4.1.27/arch/ia64/include/asm/ |
D | dma-mapping.h | 15 #define DMA_ERROR_CODE 0 macro
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | dma-mapping.h | 29 #define DMA_ERROR_CODE (~(dma_addr_t)0) macro
|
/linux-4.1.27/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 468 adapter->buffer_list_dma = DMA_ERROR_CODE; in ibmveth_cleanup() 478 adapter->filter_list_dma = DMA_ERROR_CODE; in ibmveth_cleanup() 502 adapter->bounce_buffer_dma = DMA_ERROR_CODE; in ibmveth_cleanup() 1442 adapter->buffer_list_dma = DMA_ERROR_CODE; in ibmveth_probe() 1443 adapter->filter_list_dma = DMA_ERROR_CODE; in ibmveth_probe() 1444 adapter->rx_queue.queue_dma = DMA_ERROR_CODE; in ibmveth_probe()
|
/linux-4.1.27/drivers/gpu/drm/armada/ |
D | armada_fb.c | 136 if (obj->dev_addr == DMA_ERROR_CODE) { in armada_fb_create()
|
D | armada_gem.c | 203 obj->dev_addr = DMA_ERROR_CODE; in armada_gem_alloc_private_object() 227 obj->dev_addr = DMA_ERROR_CODE; in armada_gem_alloc_object()
|
/linux-4.1.27/drivers/dma/ioat/ |
D | dma_v3.c | 1288 dma_srcs[i] = DMA_ERROR_CODE; in ioat_xor_val_self_test() 1356 dma_srcs[i] = DMA_ERROR_CODE; in ioat_xor_val_self_test() 1409 dma_srcs[i] = DMA_ERROR_CODE; in ioat_xor_val_self_test() 1458 if (dest_dma != DMA_ERROR_CODE) in ioat_xor_val_self_test() 1462 if (dma_srcs[i] != DMA_ERROR_CODE) in ioat_xor_val_self_test() 1467 if (dma_srcs[i] != DMA_ERROR_CODE) in ioat_xor_val_self_test()
|
/linux-4.1.27/arch/xtensa/include/asm/ |
D | dma-mapping.h | 19 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro
|
/linux-4.1.27/drivers/iommu/ |
D | amd_iommu.c | 1765 address = DMA_ERROR_CODE; in dma_ops_alloc_addresses() 2592 return DMA_ERROR_CODE; in dma_ops_domain_map() 2671 if (unlikely(address == DMA_ERROR_CODE)) { in __map_single() 2692 if (ret == DMA_ERROR_CODE) in __map_single() 2720 return DMA_ERROR_CODE; in __map_single() 2736 if ((dma_addr == DMA_ERROR_CODE) || in __unmap_single() 2780 return DMA_ERROR_CODE; in map_page() 2788 if (addr == DMA_ERROR_CODE) in map_page() 2960 if (*dma_addr == DMA_ERROR_CODE) { in alloc_coherent()
|
/linux-4.1.27/arch/arm64/mm/ |
D | dma-mapping.c | 185 *dma_handle = DMA_ERROR_CODE; in __dma_alloc()
|
/linux-4.1.27/arch/s390/pci/ |
D | pci_dma.c | 312 return DMA_ERROR_CODE; in s390_dma_map_pages()
|
/linux-4.1.27/drivers/xen/ |
D | swiotlb-xen.c | 417 return DMA_ERROR_CODE; in xen_swiotlb_map_page()
|
/linux-4.1.27/Documentation/ |
D | DMA-API-HOWTO.txt | 576 if (dma_handle == DMA_ERROR_CODE) {
|