Lines Matching refs:bucket

265 static void put_hash_bucket(struct hash_bucket *bucket,  in put_hash_bucket()  argument
267 __releases(&bucket->lock) in put_hash_bucket()
269 spin_unlock_irqrestore(&bucket->lock, flags); in put_hash_bucket()
294 static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket, in __hash_bucket_find() argument
301 list_for_each_entry(entry, &bucket->list, list) { in __hash_bucket_find()
344 static struct dma_debug_entry *bucket_find_exact(struct hash_bucket *bucket, in bucket_find_exact() argument
347 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact()
350 static struct dma_debug_entry *bucket_find_contain(struct hash_bucket **bucket, in bucket_find_contain() argument
359 entry = __hash_bucket_find(*bucket, ref, containing_match); in bucket_find_contain()
367 put_hash_bucket(*bucket, *flags); in bucket_find_contain()
369 *bucket = get_hash_bucket(&index, flags); in bucket_find_contain()
378 static void hash_bucket_add(struct hash_bucket *bucket, in hash_bucket_add() argument
381 list_add_tail(&entry->list, &bucket->list); in hash_bucket_add()
532 struct hash_bucket *bucket = &dma_entry_hash[idx]; in debug_dma_dump_mappings() local
536 spin_lock_irqsave(&bucket->lock, flags); in debug_dma_dump_mappings()
537 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_dump_mappings()
549 spin_unlock_irqrestore(&bucket->lock, flags); in debug_dma_dump_mappings()
564 struct hash_bucket *bucket = &dma_entry_hash[idx]; in dump_show() local
568 spin_lock_irqsave(&bucket->lock, flags); in dump_show()
569 list_for_each_entry(entry, &bucket->list, list) { in dump_show()
581 spin_unlock_irqrestore(&bucket->lock, flags); in dump_show()
593 struct hash_bucket *bucket; in add_dma_entry() local
597 bucket = get_hash_bucket(entry, &flags); in add_dma_entry()
598 hash_bucket_add(bucket, entry); in add_dma_entry()
599 put_hash_bucket(bucket, flags); in add_dma_entry()
967 struct hash_bucket *bucket; in check_unmap() local
970 bucket = get_hash_bucket(ref, &flags); in check_unmap()
971 entry = bucket_find_exact(bucket, ref); in check_unmap()
975 put_hash_bucket(bucket, flags); in check_unmap()
1057 put_hash_bucket(bucket, flags); in check_unmap()
1100 struct hash_bucket *bucket; in check_sync() local
1103 bucket = get_hash_bucket(ref, &flags); in check_sync()
1105 entry = bucket_find_contain(&bucket, ref, &flags); in check_sync()
1167 put_hash_bucket(bucket, flags); in check_sync()
1252 struct hash_bucket *bucket; in debug_dma_mapping_error() local
1260 bucket = get_hash_bucket(&ref, &flags); in debug_dma_mapping_error()
1262 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_mapping_error()
1282 put_hash_bucket(bucket, flags); in debug_dma_mapping_error()
1344 struct hash_bucket *bucket; in get_nr_mapped_entries() local
1348 bucket = get_hash_bucket(ref, &flags); in get_nr_mapped_entries()
1349 entry = bucket_find_exact(bucket, ref); in get_nr_mapped_entries()
1354 put_hash_bucket(bucket, flags); in get_nr_mapped_entries()