Lines Matching refs:bucket

268 static void put_hash_bucket(struct hash_bucket *bucket,  in put_hash_bucket()  argument
273 spin_unlock_irqrestore(&bucket->lock, __flags); in put_hash_bucket()
298 static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket, in __hash_bucket_find() argument
305 list_for_each_entry(entry, &bucket->list, list) { in __hash_bucket_find()
348 static struct dma_debug_entry *bucket_find_exact(struct hash_bucket *bucket, in bucket_find_exact() argument
351 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact()
354 static struct dma_debug_entry *bucket_find_contain(struct hash_bucket **bucket, in bucket_find_contain() argument
364 entry = __hash_bucket_find(*bucket, ref, containing_match); in bucket_find_contain()
372 put_hash_bucket(*bucket, flags); in bucket_find_contain()
375 *bucket = get_hash_bucket(&index, flags); in bucket_find_contain()
384 static void hash_bucket_add(struct hash_bucket *bucket, in hash_bucket_add() argument
387 list_add_tail(&entry->list, &bucket->list); in hash_bucket_add()
411 struct hash_bucket *bucket = &dma_entry_hash[idx]; in debug_dma_dump_mappings() local
415 spin_lock_irqsave(&bucket->lock, flags); in debug_dma_dump_mappings()
417 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_dump_mappings()
429 spin_unlock_irqrestore(&bucket->lock, flags); in debug_dma_dump_mappings()
613 struct hash_bucket *bucket; in add_dma_entry() local
617 bucket = get_hash_bucket(entry, &flags); in add_dma_entry()
618 hash_bucket_add(bucket, entry); in add_dma_entry()
619 put_hash_bucket(bucket, &flags); in add_dma_entry()
1077 struct hash_bucket *bucket; in check_unmap() local
1080 bucket = get_hash_bucket(ref, &flags); in check_unmap()
1081 entry = bucket_find_exact(bucket, ref); in check_unmap()
1085 put_hash_bucket(bucket, &flags); in check_unmap()
1162 put_hash_bucket(bucket, &flags); in check_unmap()
1194 struct hash_bucket *bucket; in check_sync() local
1197 bucket = get_hash_bucket(ref, &flags); in check_sync()
1199 entry = bucket_find_contain(&bucket, ref, &flags); in check_sync()
1253 put_hash_bucket(bucket, &flags); in check_sync()
1299 struct hash_bucket *bucket; in debug_dma_mapping_error() local
1307 bucket = get_hash_bucket(&ref, &flags); in debug_dma_mapping_error()
1309 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_mapping_error()
1329 put_hash_bucket(bucket, &flags); in debug_dma_mapping_error()
1393 struct hash_bucket *bucket; in get_nr_mapped_entries() local
1397 bucket = get_hash_bucket(ref, &flags); in get_nr_mapped_entries()
1398 entry = bucket_find_exact(bucket, ref); in get_nr_mapped_entries()
1403 put_hash_bucket(bucket, &flags); in get_nr_mapped_entries()