Lines Matching refs:flags
179 unsigned long flags; in driver_filter() local
203 read_lock_irqsave(&driver_name_lock, flags); in driver_filter()
212 read_unlock_irqrestore(&driver_name_lock, flags); in driver_filter()
249 unsigned long *flags) in get_hash_bucket() argument
256 *flags = __flags; in get_hash_bucket()
264 unsigned long flags) in put_hash_bucket() argument
267 spin_unlock_irqrestore(&bucket->lock, flags); in put_hash_bucket()
350 unsigned long *flags) in bucket_find_contain() argument
365 put_hash_bucket(*bucket, *flags); in bucket_find_contain()
367 *bucket = get_hash_bucket(&index, flags); in bucket_find_contain()
475 unsigned long flags; in active_cacheline_insert() local
485 spin_lock_irqsave(&radix_lock, flags); in active_cacheline_insert()
489 spin_unlock_irqrestore(&radix_lock, flags); in active_cacheline_insert()
497 unsigned long flags; in active_cacheline_remove() local
503 spin_lock_irqsave(&radix_lock, flags); in active_cacheline_remove()
510 spin_unlock_irqrestore(&radix_lock, flags); in active_cacheline_remove()
524 unsigned long flags; in debug_dma_dump_mappings() local
526 spin_lock_irqsave(&bucket->lock, flags); in debug_dma_dump_mappings()
539 spin_unlock_irqrestore(&bucket->lock, flags); in debug_dma_dump_mappings()
556 unsigned long flags; in dump_show() local
558 spin_lock_irqsave(&bucket->lock, flags); in dump_show()
571 spin_unlock_irqrestore(&bucket->lock, flags); in dump_show()
584 unsigned long flags; in add_dma_entry() local
587 bucket = get_hash_bucket(entry, &flags); in add_dma_entry()
589 put_hash_bucket(bucket, flags); in add_dma_entry()
659 unsigned long flags; in dma_entry_alloc() local
662 spin_lock_irqsave(&free_entries_lock, flags); in dma_entry_alloc()
666 spin_unlock_irqrestore(&free_entries_lock, flags); in dma_entry_alloc()
676 spin_unlock_irqrestore(&free_entries_lock, flags); in dma_entry_alloc()
691 unsigned long flags; in dma_entry_free() local
699 spin_lock_irqsave(&free_entries_lock, flags); in dma_entry_free()
702 spin_unlock_irqrestore(&free_entries_lock, flags); in dma_entry_free()
717 unsigned long flags; in filter_read() local
728 read_lock_irqsave(&driver_name_lock, flags); in filter_read()
730 read_unlock_irqrestore(&driver_name_lock, flags); in filter_read()
739 unsigned long flags; in filter_write() local
755 write_lock_irqsave(&driver_name_lock, flags); in filter_write()
794 write_unlock_irqrestore(&driver_name_lock, flags); in filter_write()
826 unsigned long flags; in device_dma_allocations() local
830 spin_lock_irqsave(&dma_entry_hash[i].lock, flags); in device_dma_allocations()
837 spin_unlock_irqrestore(&dma_entry_hash[i].lock, flags); in device_dma_allocations()
958 unsigned long flags; in check_unmap() local
960 bucket = get_hash_bucket(ref, &flags); in check_unmap()
965 put_hash_bucket(bucket, flags); in check_unmap()
1045 put_hash_bucket(bucket, flags); in check_unmap()
1095 unsigned long flags; in check_sync() local
1097 bucket = get_hash_bucket(ref, &flags); in check_sync()
1099 entry = bucket_find_contain(&bucket, ref, &flags); in check_sync()
1161 put_hash_bucket(bucket, flags); in check_sync()
1244 unsigned long flags; in debug_dma_mapping_error() local
1251 bucket = get_hash_bucket(&ref, &flags); in debug_dma_mapping_error()
1273 put_hash_bucket(bucket, flags); in debug_dma_mapping_error()
1335 unsigned long flags; in get_nr_mapped_entries() local
1338 bucket = get_hash_bucket(ref, &flags); in get_nr_mapped_entries()
1344 put_hash_bucket(bucket, flags); in get_nr_mapped_entries()