Lines Matching refs:bucket
279 static void put_hash_bucket(struct hash_bucket *bucket, in put_hash_bucket() argument
281 __releases(&bucket->lock) in put_hash_bucket()
285 spin_unlock_irqrestore(&bucket->lock, __flags); in put_hash_bucket()
310 static struct dma_debug_entry *__hash_bucket_find(struct hash_bucket *bucket, in __hash_bucket_find() argument
317 list_for_each_entry(entry, &bucket->list, list) { in __hash_bucket_find()
360 static struct dma_debug_entry *bucket_find_exact(struct hash_bucket *bucket, in bucket_find_exact() argument
363 return __hash_bucket_find(bucket, ref, exact_match); in bucket_find_exact()
366 static struct dma_debug_entry *bucket_find_contain(struct hash_bucket **bucket, in bucket_find_contain() argument
376 entry = __hash_bucket_find(*bucket, ref, containing_match); in bucket_find_contain()
384 put_hash_bucket(*bucket, flags); in bucket_find_contain()
387 *bucket = get_hash_bucket(&index, flags); in bucket_find_contain()
396 static void hash_bucket_add(struct hash_bucket *bucket, in hash_bucket_add() argument
399 list_add_tail(&entry->list, &bucket->list); in hash_bucket_add()
426 struct hash_bucket *bucket = &dma_entry_hash[idx]; in debug_dma_dump_mappings() local
430 spin_lock_irqsave(&bucket->lock, flags); in debug_dma_dump_mappings()
432 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_dump_mappings()
444 spin_unlock_irqrestore(&bucket->lock, flags); in debug_dma_dump_mappings()
627 struct hash_bucket *bucket; in add_dma_entry() local
631 bucket = get_hash_bucket(entry, &flags); in add_dma_entry()
632 hash_bucket_add(bucket, entry); in add_dma_entry()
633 put_hash_bucket(bucket, &flags); in add_dma_entry()
1076 struct hash_bucket *bucket; in check_unmap() local
1079 bucket = get_hash_bucket(ref, &flags); in check_unmap()
1080 entry = bucket_find_exact(bucket, ref); in check_unmap()
1084 put_hash_bucket(bucket, &flags); in check_unmap()
1166 put_hash_bucket(bucket, &flags); in check_unmap()
1219 struct hash_bucket *bucket; in check_sync() local
1222 bucket = get_hash_bucket(ref, &flags); in check_sync()
1224 entry = bucket_find_contain(&bucket, ref, &flags); in check_sync()
1286 put_hash_bucket(bucket, &flags); in check_sync()
1359 struct hash_bucket *bucket; in debug_dma_mapping_error() local
1367 bucket = get_hash_bucket(&ref, &flags); in debug_dma_mapping_error()
1369 list_for_each_entry(entry, &bucket->list, list) { in debug_dma_mapping_error()
1389 put_hash_bucket(bucket, &flags); in debug_dma_mapping_error()
1456 struct hash_bucket *bucket; in get_nr_mapped_entries() local
1460 bucket = get_hash_bucket(ref, &flags); in get_nr_mapped_entries()
1461 entry = bucket_find_exact(bucket, ref); in get_nr_mapped_entries()
1466 put_hash_bucket(bucket, &flags); in get_nr_mapped_entries()