Lines Matching refs:dma_debug_entry
35 #define DMA_DEBUG_DYNAMIC_ENTRIES (PAGE_SIZE / sizeof(struct dma_debug_entry))
66 struct dma_debug_entry { struct
84 typedef bool (*match_fn)(struct dma_debug_entry *, struct dma_debug_entry *); argument
166 static inline void dump_entry_trace(struct dma_debug_entry *entry) in dump_entry_trace()
236 static int hash_fn(struct dma_debug_entry *entry) in hash_fn()
248 static struct hash_bucket *get_hash_bucket(struct dma_debug_entry *entry, in get_hash_bucket()
270 static bool exact_match(struct dma_debug_entry *a, struct dma_debug_entry *b) in exact_match()
276 static bool containing_match(struct dma_debug_entry *a, in containing_match()
277 struct dma_debug_entry *b) in containing_match()
292 static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket, in __hash_bucket_find()
293 struct dma_debug_entry *ref, in __hash_bucket_find()
296 struct dma_debug_entry *entry, *ret = NULL; in __hash_bucket_find()
342 static struct dma_debug_entry *bucket_find_exact(struct hash_bucket *bucket, in bucket_find_exact()
343 struct dma_debug_entry *ref) in bucket_find_exact()
348 static struct dma_debug_entry *bucket_find_contain(struct hash_bucket **bucket, in bucket_find_contain()
349 struct dma_debug_entry *ref, in bucket_find_contain()
354 struct dma_debug_entry *entry, index = *ref; in bucket_find_contain()
379 struct dma_debug_entry *entry) in hash_bucket_add()
387 static void hash_bucket_del(struct dma_debug_entry *entry) in hash_bucket_del()
392 static unsigned long long phys_addr(struct dma_debug_entry *entry) in phys_addr()
409 struct dma_debug_entry *entry; in debug_dma_dump_mappings()
457 static phys_addr_t to_cacheline_number(struct dma_debug_entry *entry) in to_cacheline_number()
510 static int active_cacheline_insert(struct dma_debug_entry *entry) in active_cacheline_insert()
532 static void active_cacheline_remove(struct dma_debug_entry *entry) in active_cacheline_remove()
555 static void add_dma_entry(struct dma_debug_entry *entry, unsigned long attrs) in add_dma_entry()
577 struct dma_debug_entry *entry; in dma_debug_create_entries()
593 static struct dma_debug_entry *__dma_entry_alloc(void) in __dma_entry_alloc()
595 struct dma_debug_entry *entry; in __dma_entry_alloc()
597 entry = list_entry(free_entries.next, struct dma_debug_entry, list); in __dma_entry_alloc()
625 static struct dma_debug_entry *dma_entry_alloc(void) in dma_entry_alloc()
627 struct dma_debug_entry *entry; in dma_entry_alloc()
653 static void dma_entry_free(struct dma_debug_entry *entry) in dma_entry_free()
775 struct dma_debug_entry *entry; in dump_show()
814 static int device_dma_allocations(struct device *dev, struct dma_debug_entry **out_entry) in device_dma_allocations()
816 struct dma_debug_entry *entry; in device_dma_allocations()
837 struct dma_debug_entry *entry; in dma_debug_device_change()
945 static void check_unmap(struct dma_debug_entry *ref) in check_unmap()
947 struct dma_debug_entry *entry; in check_unmap()
1077 struct dma_debug_entry *ref, in check_sync()
1080 struct dma_debug_entry *entry; in check_sync()
1197 struct dma_debug_entry *entry; in debug_dma_map_page()
1231 struct dma_debug_entry ref; in debug_dma_mapping_error()
1232 struct dma_debug_entry *entry; in debug_dma_mapping_error()
1270 struct dma_debug_entry ref = { in debug_dma_unmap_page()
1287 struct dma_debug_entry *entry; in debug_dma_map_sg()
1322 struct dma_debug_entry *ref) in get_nr_mapped_entries()
1324 struct dma_debug_entry *entry; in get_nr_mapped_entries()
1351 struct dma_debug_entry ref = { in debug_dma_unmap_sg()
1376 struct dma_debug_entry *entry; in debug_dma_alloc_coherent()
1410 struct dma_debug_entry ref = { in debug_dma_free_coherent()
1438 struct dma_debug_entry *entry; in debug_dma_map_resource()
1462 struct dma_debug_entry ref = { in debug_dma_unmap_resource()
1479 struct dma_debug_entry ref; in debug_dma_sync_single_for_cpu()
1498 struct dma_debug_entry ref; in debug_dma_sync_single_for_device()
1524 struct dma_debug_entry ref = { in debug_dma_sync_sg_for_cpu()
1556 struct dma_debug_entry ref = { in debug_dma_sync_sg_for_device()