• Home
  • Raw
  • Download

Lines Matching refs:db

465 	struct debug_bucket *db = obj_hash;  in debug_objects_oom()  local
474 for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { in debug_objects_oom()
475 raw_spin_lock_irqsave(&db->lock, flags); in debug_objects_oom()
476 hlist_move_list(&db->list, &freelist); in debug_objects_oom()
477 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_objects_oom()
607 struct debug_bucket *db; in __debug_object_init() local
613 db = get_bucket((unsigned long) addr); in __debug_object_init()
615 raw_spin_lock_irqsave(&db->lock, flags); in __debug_object_init()
617 obj = lookup_object_or_alloc(addr, db, descr, onstack, false); in __debug_object_init()
619 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
633 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
639 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
646 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
688 struct debug_bucket *db; in debug_object_activate() local
698 db = get_bucket((unsigned long) addr); in debug_object_activate()
700 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_activate()
702 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_activate()
715 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
728 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
734 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
756 struct debug_bucket *db; in debug_object_deactivate() local
764 db = get_bucket((unsigned long) addr); in debug_object_deactivate()
766 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_deactivate()
768 obj = lookup_object(addr, db); in debug_object_deactivate()
788 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_deactivate()
809 struct debug_bucket *db; in debug_object_destroy() local
817 db = get_bucket((unsigned long) addr); in debug_object_destroy()
819 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_destroy()
821 obj = lookup_object(addr, db); in debug_object_destroy()
833 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_destroy()
845 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_destroy()
859 struct debug_bucket *db; in debug_object_free() local
866 db = get_bucket((unsigned long) addr); in debug_object_free()
868 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_free()
870 obj = lookup_object(addr, db); in debug_object_free()
877 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
883 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
888 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
900 struct debug_bucket *db; in debug_object_assert_init() local
909 db = get_bucket((unsigned long) addr); in debug_object_assert_init()
911 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_assert_init()
912 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_assert_init()
913 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_assert_init()
940 struct debug_bucket *db; in debug_object_active_state() local
948 db = get_bucket((unsigned long) addr); in debug_object_active_state()
950 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_active_state()
952 obj = lookup_object(addr, db); in debug_object_active_state()
968 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_active_state()
987 struct debug_bucket *db; in __debug_check_no_obj_freed() local
999 db = get_bucket(paddr); in __debug_check_no_obj_freed()
1003 raw_spin_lock_irqsave(&db->lock, flags); in __debug_check_no_obj_freed()
1004 hlist_for_each_entry_safe(obj, tmp, &db->list, node) { in __debug_check_no_obj_freed()
1014 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_check_no_obj_freed()
1025 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_check_no_obj_freed()
1191 struct debug_bucket *db; in check_results() local
1196 db = get_bucket((unsigned long) addr); in check_results()
1198 raw_spin_lock_irqsave(&db->lock, flags); in check_results()
1200 obj = lookup_object(addr, db); in check_results()
1222 raw_spin_unlock_irqrestore(&db->lock, flags); in check_results()
1334 struct debug_bucket *db = obj_hash; in debug_objects_replace_static_objects() local
1362 for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { in debug_objects_replace_static_objects()
1363 hlist_move_list(&db->list, &objects); in debug_objects_replace_static_objects()
1370 hlist_add_head(&new->node, &db->list); in debug_objects_replace_static_objects()