Home
last modified time | relevance | path

Searched refs:DMA_ERROR_CODE (Results 1 – 31 of 31) sorted by relevance

/linux-4.4.14/drivers/iommu/
Ddma-iommu.c261 *handle = DMA_ERROR_CODE; in iommu_dma_free()
293 *handle = DMA_ERROR_CODE; in iommu_dma_alloc()
374 return DMA_ERROR_CODE; in iommu_dma_map_page()
379 return DMA_ERROR_CODE; in iommu_dma_map_page()
424 if (sg_dma_address(s) != DMA_ERROR_CODE) in __invalidate_sg()
428 sg_dma_address(s) = DMA_ERROR_CODE; in __invalidate_sg()
528 return dma_addr == DMA_ERROR_CODE; in iommu_dma_mapping_error()
Damd_iommu.c1612 address = DMA_ERROR_CODE; in dma_ops_alloc_addresses()
2385 return DMA_ERROR_CODE; in dma_ops_domain_map()
2464 if (unlikely(address == DMA_ERROR_CODE)) { in __map_single()
2485 if (ret == DMA_ERROR_CODE) in __map_single()
2513 return DMA_ERROR_CODE; in __map_single()
2529 if ((dma_addr == DMA_ERROR_CODE) || in __unmap_single()
2573 return DMA_ERROR_CODE; in map_page()
2581 if (addr == DMA_ERROR_CODE) in map_page()
2753 if (*dma_addr == DMA_ERROR_CODE) { in alloc_coherent()
/linux-4.4.14/arch/powerpc/kernel/
Diommu.c201 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 …]
Dvio.c522 dma_addr_t ret = DMA_ERROR_CODE; in vio_dma_iommu_map_page()
/linux-4.4.14/arch/openrisc/include/asm/
Ddma-mapping.h29 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro
/linux-4.4.14/arch/s390/include/asm/
Ddma-mapping.h12 #define DMA_ERROR_CODE (~(dma_addr_t) 0x0) macro
/linux-4.4.14/arch/sh/include/asm/
Ddma-mapping.h12 #define DMA_ERROR_CODE 0 macro
/linux-4.4.14/arch/xtensa/include/asm/
Ddma-mapping.h21 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro
/linux-4.4.14/arch/hexagon/include/asm/
Ddma-mapping.h34 #define DMA_ERROR_CODE bad_dma_address macro
/linux-4.4.14/arch/microblaze/include/asm/
Ddma-mapping.h32 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro
/linux-4.4.14/arch/arm/mm/
Ddma-mapping.c648 *handle = DMA_ERROR_CODE; in __dma_alloc()
1069 return DMA_ERROR_CODE; in __alloc_iova()
1077 return DMA_ERROR_CODE; in __alloc_iova()
1255 if (dma_addr == DMA_ERROR_CODE) in __iommu_create_mapping()
1282 return DMA_ERROR_CODE; in __iommu_create_mapping()
1339 if (*handle == DMA_ERROR_CODE) in __iommu_alloc_atomic()
1363 *handle = DMA_ERROR_CODE; in arm_iommu_alloc_attrs()
1383 if (*handle == DMA_ERROR_CODE) in arm_iommu_alloc_attrs()
1517 *handle = DMA_ERROR_CODE; in __map_sg_chunk()
1520 if (iova == DMA_ERROR_CODE) in __map_sg_chunk()
[all …]
/linux-4.4.14/arch/ia64/include/asm/
Ddma-mapping.h15 #define DMA_ERROR_CODE 0 macro
/linux-4.4.14/arch/sparc/include/asm/
Ddma-mapping.h8 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro
/linux-4.4.14/arch/x86/kernel/
Dpci-calgary_64.c255 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()
Dpci-nommu.c36 return DMA_ERROR_CODE; in nommu_map_page()
/linux-4.4.14/arch/arm64/include/asm/
Ddma-mapping.h27 #define DMA_ERROR_CODE (~(dma_addr_t)0) macro
/linux-4.4.14/arch/x86/include/asm/
Ddma-mapping.h23 #define DMA_ERROR_CODE 0 macro
/linux-4.4.14/arch/arm/common/
Ddmabounce.c258 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.4.14/arch/powerpc/include/asm/
Ddma-mapping.h22 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro
/linux-4.4.14/drivers/dma/ioat/
Dinit.c846 dma_srcs[i] = DMA_ERROR_CODE; in ioat_xor_val_self_test()
915 dma_srcs[i] = DMA_ERROR_CODE; in ioat_xor_val_self_test()
968 dma_srcs[i] = DMA_ERROR_CODE; in ioat_xor_val_self_test()
1017 if (dest_dma != DMA_ERROR_CODE) in ioat_xor_val_self_test()
1021 if (dma_srcs[i] != DMA_ERROR_CODE) in ioat_xor_val_self_test()
1026 if (dma_srcs[i] != DMA_ERROR_CODE) in ioat_xor_val_self_test()
/linux-4.4.14/arch/sparc/kernel/
Dpci_sun4v.c288 return DMA_ERROR_CODE; in dma_4v_map_page()
292 return DMA_ERROR_CODE; in dma_4v_map_page()
439 outs->dma_address = DMA_ERROR_CODE; in dma_4v_map_sg()
456 s->dma_address = DMA_ERROR_CODE; in dma_4v_map_sg()
Diommu.c317 return DMA_ERROR_CODE; in dma_4u_map_page()
550 outs->dma_address = DMA_ERROR_CODE; in dma_4u_map_sg()
576 s->dma_address = DMA_ERROR_CODE; in dma_4u_map_sg()
/linux-4.4.14/drivers/gpu/drm/armada/
Darmada_fb.c136 if (obj->dev_addr == DMA_ERROR_CODE) { in armada_fb_create()
Darmada_gem.c204 obj->dev_addr = DMA_ERROR_CODE; in armada_gem_alloc_private_object()
228 obj->dev_addr = DMA_ERROR_CODE; in armada_gem_alloc_object()
/linux-4.4.14/arch/arm/include/asm/
Ddma-mapping.h16 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro
/linux-4.4.14/include/asm-generic/
Ddma-mapping-common.h323 #ifdef DMA_ERROR_CODE in dma_mapping_error()
324 return dma_addr == DMA_ERROR_CODE; in dma_mapping_error()
/linux-4.4.14/drivers/net/ethernet/ibm/
Dibmveth.c476 adapter->buffer_list_dma = DMA_ERROR_CODE; in ibmveth_cleanup()
486 adapter->filter_list_dma = DMA_ERROR_CODE; in ibmveth_cleanup()
510 adapter->bounce_buffer_dma = DMA_ERROR_CODE; in ibmveth_cleanup()
1572 adapter->buffer_list_dma = DMA_ERROR_CODE; in ibmveth_probe()
1573 adapter->filter_list_dma = DMA_ERROR_CODE; in ibmveth_probe()
1574 adapter->rx_queue.queue_dma = DMA_ERROR_CODE; in ibmveth_probe()
/linux-4.4.14/arch/arm64/mm/
Ddma-mapping.c182 *dma_handle = DMA_ERROR_CODE; in __dma_alloc()
452 return DMA_ERROR_CODE; in __dummy_map_page()
/linux-4.4.14/drivers/xen/
Dswiotlb-xen.c410 return DMA_ERROR_CODE; in xen_swiotlb_map_page()
/linux-4.4.14/arch/s390/pci/
Dpci_dma.c326 return DMA_ERROR_CODE; in s390_dma_map_pages()
/linux-4.4.14/Documentation/
DDMA-API-HOWTO.txt576 if (dma_handle == DMA_ERROR_CODE) {