#include <linux/scatterlist.h>
#include <linux/dma-mapping.h>
#include <linux/stacktrace.h>
#include <linux/dma-debug.h>
#include <linux/spinlock.h>
#include <linux/debugfs.h>
#include <linux/uaccess.h>
#include <linux/export.h>
#include <linux/device.h>
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/ctype.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <asm/sections.h>
Go to the source code of this file.
|
void | debug_dma_dump_mappings (struct device *dev) |
|
| EXPORT_SYMBOL (debug_dma_dump_mappings) |
|
int | dma_debug_resize_entries (u32 num_entries) |
|
| EXPORT_SYMBOL (dma_debug_resize_entries) |
|
void | dma_debug_add_bus (struct bus_type *bus) |
|
void | dma_debug_init (u32 num_entries) |
|
| __setup ("dma_debug=", dma_debug_cmdline) |
|
void | debug_dma_map_page (struct device *dev, struct page *page, size_t offset, size_t size, int direction, dma_addr_t dma_addr, bool map_single) |
|
| EXPORT_SYMBOL (debug_dma_map_page) |
|
void | debug_dma_unmap_page (struct device *dev, dma_addr_t addr, size_t size, int direction, bool map_single) |
|
| EXPORT_SYMBOL (debug_dma_unmap_page) |
|
void | debug_dma_map_sg (struct device *dev, struct scatterlist *sg, int nents, int mapped_ents, int direction) |
|
| EXPORT_SYMBOL (debug_dma_map_sg) |
|
void | debug_dma_unmap_sg (struct device *dev, struct scatterlist *sglist, int nelems, int dir) |
|
| EXPORT_SYMBOL (debug_dma_unmap_sg) |
|
void | debug_dma_alloc_coherent (struct device *dev, size_t size, dma_addr_t dma_addr, void *virt) |
|
| EXPORT_SYMBOL (debug_dma_alloc_coherent) |
|
void | debug_dma_free_coherent (struct device *dev, size_t size, void *virt, dma_addr_t addr) |
|
| EXPORT_SYMBOL (debug_dma_free_coherent) |
|
void | debug_dma_sync_single_for_cpu (struct device *dev, dma_addr_t dma_handle, size_t size, int direction) |
|
| EXPORT_SYMBOL (debug_dma_sync_single_for_cpu) |
|
void | debug_dma_sync_single_for_device (struct device *dev, dma_addr_t dma_handle, size_t size, int direction) |
|
| EXPORT_SYMBOL (debug_dma_sync_single_for_device) |
|
void | debug_dma_sync_single_range_for_cpu (struct device *dev, dma_addr_t dma_handle, unsigned long offset, size_t size, int direction) |
|
| EXPORT_SYMBOL (debug_dma_sync_single_range_for_cpu) |
|
void | debug_dma_sync_single_range_for_device (struct device *dev, dma_addr_t dma_handle, unsigned long offset, size_t size, int direction) |
|
| EXPORT_SYMBOL (debug_dma_sync_single_range_for_device) |
|
void | debug_dma_sync_sg_for_cpu (struct device *dev, struct scatterlist *sg, int nelems, int direction) |
|
| EXPORT_SYMBOL (debug_dma_sync_sg_for_cpu) |
|
void | debug_dma_sync_sg_for_device (struct device *dev, struct scatterlist *sg, int nelems, int direction) |
|
| EXPORT_SYMBOL (debug_dma_sync_sg_for_device) |
|
#define DMA_DEBUG_STACKTRACE_ENTRIES 5 |
Value:do { \
error_count += 1; \
if (driver_filter(
dev) && \
(show_all_errors || show_num_errors > 0)) { \
dump_entry_trace(
entry); \
} \
if (!show_all_errors && show_num_errors > 0) \
show_num_errors -= 1; \
} while (0);
Definition at line 187 of file dma-debug.c.
#define HASH_SIZE 1024ULL |
- Enumerator:
dma_debug_single |
|
dma_debug_page |
|
dma_debug_sg |
|
dma_debug_coherent |
|
Definition at line 41 of file dma-debug.c.
void dma_debug_init |
( |
u32 |
num_entries | ) |
|
int dma_debug_resize_entries |
( |
u32 |
num_entries | ) |
|