Lines Matching refs:db
569 struct debug_bucket *db = obj_hash; in debug_objects_oom() local
574 for (int i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { in debug_objects_oom()
575 scoped_guard(raw_spinlock_irqsave, &db->lock) in debug_objects_oom()
576 hlist_move_list(&db->list, &freelist); in debug_objects_oom()
734 struct debug_bucket *db; in __debug_object_init() local
739 db = get_bucket((unsigned long) addr); in __debug_object_init()
741 raw_spin_lock_irqsave(&db->lock, flags); in __debug_object_init()
743 obj = lookup_object_or_alloc(addr, db, descr, onstack, false); in __debug_object_init()
745 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
755 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
762 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
807 struct debug_bucket *db; in debug_object_activate() local
816 db = get_bucket((unsigned long) addr); in debug_object_activate()
818 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_activate()
820 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_activate()
822 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
836 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
841 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
864 struct debug_bucket *db; in debug_object_deactivate() local
871 db = get_bucket((unsigned long) addr); in debug_object_deactivate()
873 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_deactivate()
875 obj = lookup_object(addr, db); in debug_object_deactivate()
888 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_deactivate()
894 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_deactivate()
907 struct debug_bucket *db; in debug_object_destroy() local
913 db = get_bucket((unsigned long) addr); in debug_object_destroy()
915 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_destroy()
917 obj = lookup_object(addr, db); in debug_object_destroy()
919 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_destroy()
933 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_destroy()
938 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_destroy()
954 struct debug_bucket *db; in debug_object_free() local
960 db = get_bucket((unsigned long) addr); in debug_object_free()
962 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_free()
964 obj = lookup_object(addr, db); in debug_object_free()
966 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
975 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
981 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
996 struct debug_bucket *db; in debug_object_assert_init() local
1005 db = get_bucket((unsigned long) addr); in debug_object_assert_init()
1007 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_assert_init()
1008 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_assert_init()
1009 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_assert_init()
1037 struct debug_bucket *db; in debug_object_active_state() local
1044 db = get_bucket((unsigned long) addr); in debug_object_active_state()
1046 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_active_state()
1048 obj = lookup_object(addr, db); in debug_object_active_state()
1055 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_active_state()
1063 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_active_state()
1074 struct debug_bucket *db; in __debug_check_no_obj_freed() local
1084 db = get_bucket(paddr); in __debug_check_no_obj_freed()
1088 raw_spin_lock_irqsave(&db->lock, flags); in __debug_check_no_obj_freed()
1089 hlist_for_each_entry_safe(obj, tmp, &db->list, node) { in __debug_check_no_obj_freed()
1098 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_check_no_obj_freed()
1108 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_check_no_obj_freed()
1284 struct debug_bucket *db; in check_results() local
1289 db = get_bucket((unsigned long) addr); in check_results()
1291 raw_spin_lock_irqsave(&db->lock, flags); in check_results()
1293 obj = lookup_object(addr, db); in check_results()
1315 raw_spin_unlock_irqrestore(&db->lock, flags); in check_results()
1432 struct debug_bucket *db = obj_hash; in debug_objects_replace_static_objects() local
1448 for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { in debug_objects_replace_static_objects()
1449 hlist_move_list(&db->list, &objects); in debug_objects_replace_static_objects()
1456 hlist_add_head(&new->node, &db->list); in debug_objects_replace_static_objects()