Lines Matching refs:flags
173 unsigned long flags; in driver_filter() local
197 read_lock_irqsave(&driver_name_lock, flags); in driver_filter()
206 read_unlock_irqrestore(&driver_name_lock, flags); in driver_filter()
243 unsigned long *flags) in get_hash_bucket() argument
250 *flags = __flags; in get_hash_bucket()
258 unsigned long *flags) in put_hash_bucket() argument
261 unsigned long __flags = *flags; in put_hash_bucket()
346 unsigned long *flags) in bucket_find_contain() argument
362 put_hash_bucket(*bucket, flags); in bucket_find_contain()
365 *bucket = get_hash_bucket(&index, flags); in bucket_find_contain()
406 unsigned long flags; in debug_dma_dump_mappings() local
408 spin_lock_irqsave(&bucket->lock, flags); in debug_dma_dump_mappings()
422 spin_unlock_irqrestore(&bucket->lock, flags); in debug_dma_dump_mappings()
515 unsigned long flags; in active_cacheline_insert() local
525 spin_lock_irqsave(&radix_lock, flags); in active_cacheline_insert()
529 spin_unlock_irqrestore(&radix_lock, flags); in active_cacheline_insert()
537 unsigned long flags; in active_cacheline_remove() local
543 spin_lock_irqsave(&radix_lock, flags); in active_cacheline_remove()
550 spin_unlock_irqrestore(&radix_lock, flags); in active_cacheline_remove()
567 unsigned long flags; in debug_dma_assert_idle() local
577 spin_lock_irqsave(&radix_lock, flags); in debug_dma_assert_idle()
589 spin_unlock_irqrestore(&radix_lock, flags); in debug_dma_assert_idle()
607 unsigned long flags; in add_dma_entry() local
610 bucket = get_hash_bucket(entry, &flags); in add_dma_entry()
612 put_hash_bucket(bucket, &flags); in add_dma_entry()
678 unsigned long flags; in dma_entry_alloc() local
680 spin_lock_irqsave(&free_entries_lock, flags); in dma_entry_alloc()
684 spin_unlock_irqrestore(&free_entries_lock, flags); in dma_entry_alloc()
693 spin_unlock_irqrestore(&free_entries_lock, flags); in dma_entry_alloc()
705 unsigned long flags; in dma_entry_free() local
713 spin_lock_irqsave(&free_entries_lock, flags); in dma_entry_free()
716 spin_unlock_irqrestore(&free_entries_lock, flags); in dma_entry_free()
731 unsigned long flags; in filter_read() local
742 read_lock_irqsave(&driver_name_lock, flags); in filter_read()
744 read_unlock_irqrestore(&driver_name_lock, flags); in filter_read()
753 unsigned long flags; in filter_write() local
769 write_lock_irqsave(&driver_name_lock, flags); in filter_write()
808 write_unlock_irqrestore(&driver_name_lock, flags); in filter_write()
826 unsigned long flags; in dump_show() local
828 spin_lock_irqsave(&bucket->lock, flags); in dump_show()
840 spin_unlock_irqrestore(&bucket->lock, flags); in dump_show()
864 unsigned long flags; in device_dma_allocations() local
868 spin_lock_irqsave(&dma_entry_hash[i].lock, flags); in device_dma_allocations()
875 spin_unlock_irqrestore(&dma_entry_hash[i].lock, flags); in device_dma_allocations()
998 unsigned long flags; in check_unmap() local
1000 bucket = get_hash_bucket(ref, &flags); in check_unmap()
1005 put_hash_bucket(bucket, &flags); in check_unmap()
1087 put_hash_bucket(bucket, &flags); in check_unmap()
1141 unsigned long flags; in check_sync() local
1143 bucket = get_hash_bucket(ref, &flags); in check_sync()
1145 entry = bucket_find_contain(&bucket, ref, &flags); in check_sync()
1207 put_hash_bucket(bucket, &flags); in check_sync()
1293 unsigned long flags; in debug_dma_mapping_error() local
1300 bucket = get_hash_bucket(&ref, &flags); in debug_dma_mapping_error()
1322 put_hash_bucket(bucket, &flags); in debug_dma_mapping_error()
1386 unsigned long flags; in get_nr_mapped_entries() local
1389 bucket = get_hash_bucket(ref, &flags); in get_nr_mapped_entries()
1395 put_hash_bucket(bucket, &flags); in get_nr_mapped_entries()