Lines Matching refs:db

586 	struct debug_bucket *db = obj_hash;  in debug_objects_oom()  local
591 for (int i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { in debug_objects_oom()
592 scoped_guard(raw_spinlock_irqsave, &db->lock) in debug_objects_oom()
593 hlist_move_list(&db->list, &freelist); in debug_objects_oom()
751 struct debug_bucket *db; in __debug_object_init() local
756 db = get_bucket((unsigned long) addr); in __debug_object_init()
758 raw_spin_lock_irqsave(&db->lock, flags); in __debug_object_init()
760 obj = lookup_object_or_alloc(addr, db, descr, onstack, false); in __debug_object_init()
762 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
772 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
779 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
824 struct debug_bucket *db; in debug_object_activate() local
833 db = get_bucket((unsigned long) addr); in debug_object_activate()
835 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_activate()
837 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_activate()
839 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
853 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
858 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
881 struct debug_bucket *db; in debug_object_deactivate() local
888 db = get_bucket((unsigned long) addr); in debug_object_deactivate()
890 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_deactivate()
892 obj = lookup_object(addr, db); in debug_object_deactivate()
905 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_deactivate()
911 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_deactivate()
924 struct debug_bucket *db; in debug_object_destroy() local
930 db = get_bucket((unsigned long) addr); in debug_object_destroy()
932 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_destroy()
934 obj = lookup_object(addr, db); in debug_object_destroy()
936 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_destroy()
950 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_destroy()
955 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_destroy()
971 struct debug_bucket *db; in debug_object_free() local
977 db = get_bucket((unsigned long) addr); in debug_object_free()
979 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_free()
981 obj = lookup_object(addr, db); in debug_object_free()
983 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
992 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
998 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
1013 struct debug_bucket *db; in debug_object_assert_init() local
1022 db = get_bucket((unsigned long) addr); in debug_object_assert_init()
1024 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_assert_init()
1025 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_assert_init()
1026 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_assert_init()
1054 struct debug_bucket *db; in debug_object_active_state() local
1061 db = get_bucket((unsigned long) addr); in debug_object_active_state()
1063 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_active_state()
1065 obj = lookup_object(addr, db); in debug_object_active_state()
1072 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_active_state()
1080 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_active_state()
1091 struct debug_bucket *db; in __debug_check_no_obj_freed() local
1101 db = get_bucket(paddr); in __debug_check_no_obj_freed()
1105 raw_spin_lock_irqsave(&db->lock, flags); in __debug_check_no_obj_freed()
1106 hlist_for_each_entry_safe(obj, tmp, &db->list, node) { in __debug_check_no_obj_freed()
1115 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_check_no_obj_freed()
1125 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_check_no_obj_freed()
1301 struct debug_bucket *db; in check_results() local
1306 db = get_bucket((unsigned long) addr); in check_results()
1308 raw_spin_lock_irqsave(&db->lock, flags); in check_results()
1310 obj = lookup_object(addr, db); in check_results()
1332 raw_spin_unlock_irqrestore(&db->lock, flags); in check_results()
1449 struct debug_bucket *db = obj_hash; in debug_objects_replace_static_objects() local
1465 for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { in debug_objects_replace_static_objects()
1466 hlist_move_list(&db->list, &objects); in debug_objects_replace_static_objects()
1473 hlist_add_head(&new->node, &db->list); in debug_objects_replace_static_objects()