Lines Matching refs:bucket

268 static void put_hash_bucket(struct hash_bucket *bucket,  in put_hash_bucket()  argument
270 __releases(&bucket->lock) in put_hash_bucket()
272 spin_unlock_irqrestore(&bucket->lock, flags); in put_hash_bucket()
297 static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket, in __hash_bucket_find() argument
304 list_for_each_entry(entry, &bucket->list, list) { in __hash_bucket_find()
347 static struct dma_debug_entry *bucket_find_exact(struct hash_bucket *bucket, in bucket_find_exact() argument
350 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact()
353 static struct dma_debug_entry *bucket_find_contain(struct hash_bucket **bucket, in bucket_find_contain() argument
362 entry = __hash_bucket_find(*bucket, ref, containing_match); in bucket_find_contain()
370 put_hash_bucket(*bucket, *flags); in bucket_find_contain()
372 *bucket = get_hash_bucket(&index, flags); in bucket_find_contain()
381 static void hash_bucket_add(struct hash_bucket *bucket, in hash_bucket_add() argument
384 list_add_tail(&entry->list, &bucket->list); in hash_bucket_add()
538 struct hash_bucket *bucket = &dma_entry_hash[idx]; in debug_dma_dump_mappings() local
542 spin_lock_irqsave(&bucket->lock, flags); in debug_dma_dump_mappings()
543 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_dump_mappings()
555 spin_unlock_irqrestore(&bucket->lock, flags); in debug_dma_dump_mappings()
570 struct hash_bucket *bucket = &dma_entry_hash[idx]; in dump_show() local
574 spin_lock_irqsave(&bucket->lock, flags); in dump_show()
575 list_for_each_entry(entry, &bucket->list, list) { in dump_show()
587 spin_unlock_irqrestore(&bucket->lock, flags); in dump_show()
600 struct hash_bucket *bucket; in add_dma_entry() local
607 bucket = get_hash_bucket(entry, &flags); in add_dma_entry()
608 hash_bucket_add(bucket, entry); in add_dma_entry()
609 put_hash_bucket(bucket, flags); in add_dma_entry()
981 struct hash_bucket *bucket; in check_unmap() local
984 bucket = get_hash_bucket(ref, &flags); in check_unmap()
985 entry = bucket_find_exact(bucket, ref); in check_unmap()
989 put_hash_bucket(bucket, flags); in check_unmap()
1070 put_hash_bucket(bucket, flags); in check_unmap()
1120 struct hash_bucket *bucket; in check_sync() local
1123 bucket = get_hash_bucket(ref, &flags); in check_sync()
1125 entry = bucket_find_contain(&bucket, ref, &flags); in check_sync()
1187 put_hash_bucket(bucket, flags); in check_sync()
1267 struct hash_bucket *bucket; in debug_dma_mapping_error() local
1275 bucket = get_hash_bucket(&ref, &flags); in debug_dma_mapping_error()
1277 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_mapping_error()
1297 put_hash_bucket(bucket, flags); in debug_dma_mapping_error()
1358 struct hash_bucket *bucket; in get_nr_mapped_entries() local
1362 bucket = get_hash_bucket(ref, &flags); in get_nr_mapped_entries()
1363 entry = bucket_find_exact(bucket, ref); in get_nr_mapped_entries()
1368 put_hash_bucket(bucket, flags); in get_nr_mapped_entries()