Home
last modified time | relevance | path

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

/linux-4.1.27/lib/
Diommu-common.c14 #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/
Dpci_sun4v.c162 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 …]
Diommu.c164 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/
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.1.27/arch/sparc/include/asm/
Ddma-mapping.h8 #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/
Ddma-mapping.h12 #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/
Ddma-mapping.h33 #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/
Ddma-mapping.c644 *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/
Ddma-mapping.h24 #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/
Ddma-mapping.h21 #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/
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.1.27/arch/arm/include/asm/
Ddma-mapping.h17 #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/
Ddma-mapping.h30 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro
/linux-4.1.27/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.1.27/arch/ia64/include/asm/
Ddma-mapping.h15 #define DMA_ERROR_CODE 0 macro
/linux-4.1.27/arch/arm64/include/asm/
Ddma-mapping.h29 #define DMA_ERROR_CODE (~(dma_addr_t)0) macro
/linux-4.1.27/drivers/net/ethernet/ibm/
Dibmveth.c468 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/
Darmada_fb.c136 if (obj->dev_addr == DMA_ERROR_CODE) { in armada_fb_create()
Darmada_gem.c203 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/
Ddma_v3.c1288 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/
Ddma-mapping.h19 #define DMA_ERROR_CODE (~(dma_addr_t)0x0) macro
/linux-4.1.27/drivers/iommu/
Damd_iommu.c1765 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/
Ddma-mapping.c185 *dma_handle = DMA_ERROR_CODE; in __dma_alloc()
/linux-4.1.27/arch/s390/pci/
Dpci_dma.c312 return DMA_ERROR_CODE; in s390_dma_map_pages()
/linux-4.1.27/drivers/xen/
Dswiotlb-xen.c417 return DMA_ERROR_CODE; in xen_swiotlb_map_page()
/linux-4.1.27/Documentation/
DDMA-API-HOWTO.txt576 if (dma_handle == DMA_ERROR_CODE) {