Lines Matching refs:db

462 	struct debug_bucket *db = obj_hash;  in debug_objects_oom()  local
471 for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { in debug_objects_oom()
472 raw_spin_lock_irqsave(&db->lock, flags); in debug_objects_oom()
473 hlist_move_list(&db->list, &freelist); in debug_objects_oom()
474 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_objects_oom()
624 struct debug_bucket *db; in __debug_object_init() local
629 db = get_bucket((unsigned long) addr); in __debug_object_init()
631 raw_spin_lock_irqsave(&db->lock, flags); in __debug_object_init()
633 obj = lookup_object_or_alloc(addr, db, descr, onstack, false); in __debug_object_init()
635 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
645 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
652 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_object_init()
697 struct debug_bucket *db; in debug_object_activate() local
706 db = get_bucket((unsigned long) addr); in debug_object_activate()
708 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_activate()
710 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_activate()
712 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
726 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
731 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_activate()
754 struct debug_bucket *db; in debug_object_deactivate() local
761 db = get_bucket((unsigned long) addr); in debug_object_deactivate()
763 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_deactivate()
765 obj = lookup_object(addr, db); in debug_object_deactivate()
778 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_deactivate()
784 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_deactivate()
797 struct debug_bucket *db; in debug_object_destroy() local
803 db = get_bucket((unsigned long) addr); in debug_object_destroy()
805 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_destroy()
807 obj = lookup_object(addr, db); in debug_object_destroy()
809 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_destroy()
823 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_destroy()
828 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_destroy()
844 struct debug_bucket *db; in debug_object_free() local
850 db = get_bucket((unsigned long) addr); in debug_object_free()
852 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_free()
854 obj = lookup_object(addr, db); in debug_object_free()
856 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
865 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
871 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_free()
886 struct debug_bucket *db; in debug_object_assert_init() local
895 db = get_bucket((unsigned long) addr); in debug_object_assert_init()
897 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_assert_init()
898 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_assert_init()
899 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_assert_init()
927 struct debug_bucket *db; in debug_object_active_state() local
934 db = get_bucket((unsigned long) addr); in debug_object_active_state()
936 raw_spin_lock_irqsave(&db->lock, flags); in debug_object_active_state()
938 obj = lookup_object(addr, db); in debug_object_active_state()
945 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_active_state()
953 raw_spin_unlock_irqrestore(&db->lock, flags); in debug_object_active_state()
964 struct debug_bucket *db; in __debug_check_no_obj_freed() local
974 db = get_bucket(paddr); in __debug_check_no_obj_freed()
978 raw_spin_lock_irqsave(&db->lock, flags); in __debug_check_no_obj_freed()
979 hlist_for_each_entry_safe(obj, tmp, &db->list, node) { in __debug_check_no_obj_freed()
988 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_check_no_obj_freed()
998 raw_spin_unlock_irqrestore(&db->lock, flags); in __debug_check_no_obj_freed()
1164 struct debug_bucket *db; in check_results() local
1169 db = get_bucket((unsigned long) addr); in check_results()
1171 raw_spin_lock_irqsave(&db->lock, flags); in check_results()
1173 obj = lookup_object(addr, db); in check_results()
1195 raw_spin_unlock_irqrestore(&db->lock, flags); in check_results()
1307 struct debug_bucket *db = obj_hash; in debug_objects_replace_static_objects() local
1335 for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { in debug_objects_replace_static_objects()
1336 hlist_move_list(&db->list, &objects); in debug_objects_replace_static_objects()
1343 hlist_add_head(&new->node, &db->list); in debug_objects_replace_static_objects()