Lines Matching refs:bucket
257 static void put_hash_bucket(struct hash_bucket *bucket, in put_hash_bucket() argument
259 __releases(&bucket->lock) in put_hash_bucket()
263 spin_unlock_irqrestore(&bucket->lock, __flags); in put_hash_bucket()
288 static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket, in __hash_bucket_find() argument
295 list_for_each_entry(entry, &bucket->list, list) { in __hash_bucket_find()
338 static struct dma_debug_entry *bucket_find_exact(struct hash_bucket *bucket, in bucket_find_exact() argument
341 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact()
344 static struct dma_debug_entry *bucket_find_contain(struct hash_bucket **bucket, in bucket_find_contain() argument
354 entry = __hash_bucket_find(*bucket, ref, containing_match); in bucket_find_contain()
362 put_hash_bucket(*bucket, flags); in bucket_find_contain()
365 *bucket = get_hash_bucket(&index, flags); in bucket_find_contain()
374 static void hash_bucket_add(struct hash_bucket *bucket, in hash_bucket_add() argument
377 list_add_tail(&entry->list, &bucket->list); in hash_bucket_add()
404 struct hash_bucket *bucket = &dma_entry_hash[idx]; in debug_dma_dump_mappings() local
408 spin_lock_irqsave(&bucket->lock, flags); in debug_dma_dump_mappings()
410 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_dump_mappings()
422 spin_unlock_irqrestore(&bucket->lock, flags); in debug_dma_dump_mappings()
605 struct hash_bucket *bucket; in add_dma_entry() local
609 bucket = get_hash_bucket(entry, &flags); in add_dma_entry()
610 hash_bucket_add(bucket, entry); in add_dma_entry()
611 put_hash_bucket(bucket, &flags); in add_dma_entry()
823 struct hash_bucket *bucket = &dma_entry_hash[idx]; in dump_show() local
827 spin_lock_irqsave(&bucket->lock, flags); in dump_show()
828 list_for_each_entry(entry, &bucket->list, list) { in dump_show()
839 spin_unlock_irqrestore(&bucket->lock, flags); in dump_show()
996 struct hash_bucket *bucket; in check_unmap() local
999 bucket = get_hash_bucket(ref, &flags); in check_unmap()
1000 entry = bucket_find_exact(bucket, ref); in check_unmap()
1004 put_hash_bucket(bucket, &flags); in check_unmap()
1086 put_hash_bucket(bucket, &flags); in check_unmap()
1139 struct hash_bucket *bucket; in check_sync() local
1142 bucket = get_hash_bucket(ref, &flags); in check_sync()
1144 entry = bucket_find_contain(&bucket, ref, &flags); in check_sync()
1206 put_hash_bucket(bucket, &flags); in check_sync()
1291 struct hash_bucket *bucket; in debug_dma_mapping_error() local
1299 bucket = get_hash_bucket(&ref, &flags); in debug_dma_mapping_error()
1301 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_mapping_error()
1321 put_hash_bucket(bucket, &flags); in debug_dma_mapping_error()
1384 struct hash_bucket *bucket; in get_nr_mapped_entries() local
1388 bucket = get_hash_bucket(ref, &flags); in get_nr_mapped_entries()
1389 entry = bucket_find_exact(bucket, ref); in get_nr_mapped_entries()
1394 put_hash_bucket(bucket, &flags); in get_nr_mapped_entries()