Lines Matching refs:dma_debug_entry
70 struct dma_debug_entry { struct
88 typedef bool (*match_fn)(struct dma_debug_entry *, struct dma_debug_entry *); argument
172 static inline void dump_entry_trace(struct dma_debug_entry *entry) in dump_entry_trace()
242 static int hash_fn(struct dma_debug_entry *entry) in hash_fn()
254 static struct hash_bucket *get_hash_bucket(struct dma_debug_entry *entry, in get_hash_bucket()
276 static bool exact_match(struct dma_debug_entry *a, struct dma_debug_entry *b) in exact_match()
282 static bool containing_match(struct dma_debug_entry *a, in containing_match()
283 struct dma_debug_entry *b) in containing_match()
298 static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket, in __hash_bucket_find()
299 struct dma_debug_entry *ref, in __hash_bucket_find()
302 struct dma_debug_entry *entry, *ret = NULL; in __hash_bucket_find()
348 static struct dma_debug_entry *bucket_find_exact(struct hash_bucket *bucket, in bucket_find_exact()
349 struct dma_debug_entry *ref) in bucket_find_exact()
354 static struct dma_debug_entry *bucket_find_contain(struct hash_bucket **bucket, in bucket_find_contain()
355 struct dma_debug_entry *ref, in bucket_find_contain()
360 struct dma_debug_entry *entry, index = *ref; in bucket_find_contain()
385 struct dma_debug_entry *entry) in hash_bucket_add()
393 static void hash_bucket_del(struct dma_debug_entry *entry) in hash_bucket_del()
398 static unsigned long long phys_addr(struct dma_debug_entry *entry) in phys_addr()
412 struct dma_debug_entry *entry; in debug_dma_dump_mappings()
463 static phys_addr_t to_cacheline_number(struct dma_debug_entry *entry) in to_cacheline_number()
519 static int active_cacheline_insert(struct dma_debug_entry *entry) in active_cacheline_insert()
541 static void active_cacheline_remove(struct dma_debug_entry *entry) in active_cacheline_remove()
570 static struct dma_debug_entry *ents[CACHELINES_PER_PAGE]; in debug_dma_assert_idle()
571 struct dma_debug_entry *entry = NULL; in debug_dma_assert_idle()
611 static void add_dma_entry(struct dma_debug_entry *entry) in add_dma_entry()
632 static struct dma_debug_entry *__dma_entry_alloc(void) in __dma_entry_alloc()
634 struct dma_debug_entry *entry; in __dma_entry_alloc()
636 entry = list_entry(free_entries.next, struct dma_debug_entry, list); in __dma_entry_alloc()
652 static struct dma_debug_entry *dma_entry_alloc(void) in dma_entry_alloc()
654 struct dma_debug_entry *entry; in dma_entry_alloc()
680 static void dma_entry_free(struct dma_debug_entry *entry) in dma_entry_free()
700 struct dma_debug_entry *entry; in dma_debug_resize_entries()
753 struct dma_debug_entry *entry, *next_entry; in prealloc_memory()
929 static int device_dma_allocations(struct device *dev, struct dma_debug_entry **out_entry) in device_dma_allocations()
931 struct dma_debug_entry *entry; in device_dma_allocations()
956 struct dma_debug_entry *uninitialized_var(entry); in dma_debug_device_change()
1074 static void check_unmap(struct dma_debug_entry *ref) in check_unmap()
1076 struct dma_debug_entry *entry; in check_unmap()
1190 struct dma_debug_entry *ref, in check_sync()
1193 struct dma_debug_entry *entry; in check_sync()
1268 struct dma_debug_entry *entry; in debug_dma_map_page()
1305 struct dma_debug_entry ref; in debug_dma_mapping_error()
1306 struct dma_debug_entry *entry; in debug_dma_mapping_error()
1344 struct dma_debug_entry ref = { in debug_dma_unmap_page()
1365 struct dma_debug_entry *entry; in debug_dma_map_sg()
1398 struct dma_debug_entry *ref) in get_nr_mapped_entries()
1400 struct dma_debug_entry *entry; in get_nr_mapped_entries()
1427 struct dma_debug_entry ref = { in debug_dma_unmap_sg()
1452 struct dma_debug_entry *entry; in debug_dma_alloc_coherent()
1479 struct dma_debug_entry ref = { in debug_dma_free_coherent()
1499 struct dma_debug_entry ref; in debug_dma_sync_single_for_cpu()
1519 struct dma_debug_entry ref; in debug_dma_sync_single_for_device()
1540 struct dma_debug_entry ref; in debug_dma_sync_single_range_for_cpu()
1561 struct dma_debug_entry ref; in debug_dma_sync_single_range_for_device()
1588 struct dma_debug_entry ref = { in debug_dma_sync_sg_for_cpu()
1621 struct dma_debug_entry ref = { in debug_dma_sync_sg_for_device()