Lines Matching defs:dma_debug_entry

35 #define DMA_DEBUG_DYNAMIC_ENTRIES (PAGE_SIZE / sizeof(struct dma_debug_entry))
54 * struct dma_debug_entry - track a dma_map* or dma_alloc_coherent mapping
68 struct dma_debug_entry {
85 typedef bool (*match_fn)(struct dma_debug_entry *, struct dma_debug_entry *);
94 /* List of pre-allocated dma_debug_entry's */
168 static inline void dump_entry_trace(struct dma_debug_entry *entry)
235 * Every DMA-API request is saved into a struct dma_debug_entry. To
238 static int hash_fn(struct dma_debug_entry *entry)
248 * Request exclusive access to a hash bucket for a given dma_debug_entry.
250 static struct hash_bucket *get_hash_bucket(struct dma_debug_entry *entry,
272 static bool exact_match(struct dma_debug_entry *a, struct dma_debug_entry *b)
278 static bool containing_match(struct dma_debug_entry *a,
279 struct dma_debug_entry *b)
294 static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket,
295 struct dma_debug_entry *ref,
298 struct dma_debug_entry *entry, *ret = NULL;
344 static struct dma_debug_entry *bucket_find_exact(struct hash_bucket *bucket,
345 struct dma_debug_entry *ref)
350 static struct dma_debug_entry *bucket_find_contain(struct hash_bucket **bucket,
351 struct dma_debug_entry *ref,
355 struct dma_debug_entry *entry, index = *ref;
379 struct dma_debug_entry *entry)
387 static void hash_bucket_del(struct dma_debug_entry *entry)
405 * dma-debug entries in that we need a free dma_debug_entry before
407 * dma_alloc_coherent there is only one dma_debug_entry and one
409 * other hand, consumes a single dma_debug_entry, but inserts 'nents'
421 static phys_addr_t to_cacheline_number(struct dma_debug_entry *entry)
474 static int active_cacheline_insert(struct dma_debug_entry *entry)
496 static void active_cacheline_remove(struct dma_debug_entry *entry)
525 struct dma_debug_entry *entry;
557 struct dma_debug_entry *entry;
583 static void add_dma_entry(struct dma_debug_entry *entry, unsigned long attrs)
605 struct dma_debug_entry *entry;
621 static struct dma_debug_entry *__dma_entry_alloc(void)
623 struct dma_debug_entry *entry;
625 entry = list_entry(free_entries.next, struct dma_debug_entry, list);
646 pr_info("dma_debug_entry pool grown to %u (%u00%%)\n",
657 static struct dma_debug_entry *dma_entry_alloc(void)
660 struct dma_debug_entry *entry;
691 static void dma_entry_free(struct dma_debug_entry *entry)
712 * 2. Preallocate a given number of dma_debug_entry structs
825 static int device_dma_allocations(struct device *dev, struct dma_debug_entry **out_entry)
827 struct dma_debug_entry *entry;
848 struct dma_debug_entry *entry;
956 static void check_unmap(struct dma_debug_entry *ref)
958 struct dma_debug_entry *entry;
1094 struct dma_debug_entry *ref,
1097 struct dma_debug_entry *entry;
1211 struct dma_debug_entry *entry;
1243 struct dma_debug_entry ref;
1244 struct dma_debug_entry *entry;
1282 struct dma_debug_entry ref = {
1299 struct dma_debug_entry *entry;
1333 struct dma_debug_entry *ref)
1335 struct dma_debug_entry *entry;
1362 struct dma_debug_entry ref = {
1398 struct dma_debug_entry *entry;
1427 struct dma_debug_entry ref = {
1450 struct dma_debug_entry ref;
1469 struct dma_debug_entry ref;
1495 struct dma_debug_entry ref = {
1526 struct dma_debug_entry ref = {
1550 struct dma_debug_entry *entry;
1573 struct dma_debug_entry ref = {