Lines Matching refs:bucket
260 static void put_hash_bucket(struct hash_bucket *bucket, in put_hash_bucket() argument
262 __releases(&bucket->lock) in put_hash_bucket()
266 spin_unlock_irqrestore(&bucket->lock, __flags); in put_hash_bucket()
291 static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket, in __hash_bucket_find() argument
298 list_for_each_entry(entry, &bucket->list, list) { in __hash_bucket_find()
341 static struct dma_debug_entry *bucket_find_exact(struct hash_bucket *bucket, in bucket_find_exact() argument
344 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact()
347 static struct dma_debug_entry *bucket_find_contain(struct hash_bucket **bucket, in bucket_find_contain() argument
357 entry = __hash_bucket_find(*bucket, ref, containing_match); in bucket_find_contain()
365 put_hash_bucket(*bucket, flags); in bucket_find_contain()
368 *bucket = get_hash_bucket(&index, flags); in bucket_find_contain()
377 static void hash_bucket_add(struct hash_bucket *bucket, in hash_bucket_add() argument
380 list_add_tail(&entry->list, &bucket->list); in hash_bucket_add()
407 struct hash_bucket *bucket = &dma_entry_hash[idx]; in debug_dma_dump_mappings() local
411 spin_lock_irqsave(&bucket->lock, flags); in debug_dma_dump_mappings()
413 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_dump_mappings()
425 spin_unlock_irqrestore(&bucket->lock, flags); in debug_dma_dump_mappings()
609 struct hash_bucket *bucket; in add_dma_entry() local
613 bucket = get_hash_bucket(entry, &flags); in add_dma_entry()
614 hash_bucket_add(bucket, entry); in add_dma_entry()
615 put_hash_bucket(bucket, &flags); in add_dma_entry()
827 struct hash_bucket *bucket = &dma_entry_hash[idx]; in dump_show() local
831 spin_lock_irqsave(&bucket->lock, flags); in dump_show()
832 list_for_each_entry(entry, &bucket->list, list) { in dump_show()
843 spin_unlock_irqrestore(&bucket->lock, flags); in dump_show()
1001 struct hash_bucket *bucket; in check_unmap() local
1004 bucket = get_hash_bucket(ref, &flags); in check_unmap()
1005 entry = bucket_find_exact(bucket, ref); in check_unmap()
1009 put_hash_bucket(bucket, &flags); in check_unmap()
1091 put_hash_bucket(bucket, &flags); in check_unmap()
1144 struct hash_bucket *bucket; in check_sync() local
1147 bucket = get_hash_bucket(ref, &flags); in check_sync()
1149 entry = bucket_find_contain(&bucket, ref, &flags); in check_sync()
1211 put_hash_bucket(bucket, &flags); in check_sync()
1296 struct hash_bucket *bucket; in debug_dma_mapping_error() local
1304 bucket = get_hash_bucket(&ref, &flags); in debug_dma_mapping_error()
1306 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_mapping_error()
1326 put_hash_bucket(bucket, &flags); in debug_dma_mapping_error()
1389 struct hash_bucket *bucket; in get_nr_mapped_entries() local
1393 bucket = get_hash_bucket(ref, &flags); in get_nr_mapped_entries()
1394 entry = bucket_find_exact(bucket, ref); in get_nr_mapped_entries()
1399 put_hash_bucket(bucket, &flags); in get_nr_mapped_entries()