Lines Matching refs:descr
223 alloc_object(void *addr, struct debug_bucket *b, const struct debug_obj_descr *descr) in alloc_object() argument
274 obj->descr = descr; in alloc_object()
501 const struct debug_obj_descr *descr = obj->descr; in debug_print_object() local
504 if (limit < 5 && descr != descr_test) { in debug_print_object()
505 void *hint = descr->debug_hint ? in debug_print_object()
506 descr->debug_hint(obj->object) : NULL; in debug_print_object()
511 descr->name, hint); in debug_print_object()
555 const struct debug_obj_descr *descr, in lookup_object_or_alloc() argument
575 if (!descr->is_static_object || !descr->is_static_object(addr)) in lookup_object_or_alloc()
581 obj = alloc_object(addr, b, descr); in lookup_object_or_alloc()
604 __debug_object_init(void *addr, const struct debug_obj_descr *descr, int onstack) in __debug_object_init() argument
617 obj = lookup_object_or_alloc(addr, db, descr, onstack, false); in __debug_object_init()
635 debug_object_fixup(descr->fixup_init, addr, state); in __debug_object_init()
654 void debug_object_init(void *addr, const struct debug_obj_descr *descr) in debug_object_init() argument
659 __debug_object_init(addr, descr, 0); in debug_object_init()
669 void debug_object_init_on_stack(void *addr, const struct debug_obj_descr *descr) in debug_object_init_on_stack() argument
674 __debug_object_init(addr, descr, 1); in debug_object_init_on_stack()
684 int debug_object_activate(void *addr, const struct debug_obj_descr *descr) in debug_object_activate() argument
686 struct debug_obj o = { .object = addr, .state = ODEBUG_STATE_NOTAVAILABLE, .descr = descr }; in debug_object_activate()
702 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_activate()
717 ret = debug_object_fixup(descr->fixup_activate, addr, state); in debug_object_activate()
744 ret = debug_object_fixup(descr->fixup_activate, addr, ODEBUG_STATE_NOTAVAILABLE); in debug_object_activate()
754 void debug_object_deactivate(void *addr, const struct debug_obj_descr *descr) in debug_object_deactivate() argument
792 .descr = descr }; in debug_object_deactivate()
806 void debug_object_destroy(void *addr, const struct debug_obj_descr *descr) in debug_object_destroy() argument
835 debug_object_fixup(descr->fixup_destroy, addr, state); in debug_object_destroy()
856 void debug_object_free(void *addr, const struct debug_obj_descr *descr) in debug_object_free() argument
879 debug_object_fixup(descr->fixup_free, addr, state); in debug_object_free()
897 void debug_object_assert_init(void *addr, const struct debug_obj_descr *descr) in debug_object_assert_init() argument
899 struct debug_obj o = { .object = addr, .state = ODEBUG_STATE_NOTAVAILABLE, .descr = descr }; in debug_object_assert_init()
912 obj = lookup_object_or_alloc(addr, db, descr, false, true); in debug_object_assert_init()
925 debug_object_fixup(descr->fixup_assert_init, addr, ODEBUG_STATE_NOTAVAILABLE); in debug_object_assert_init()
937 debug_object_active_state(void *addr, const struct debug_obj_descr *descr, in debug_object_active_state() argument
972 .descr = descr }; in debug_object_active_state()
985 const struct debug_obj_descr *descr; in __debug_check_no_obj_freed() local
1012 descr = obj->descr; in __debug_check_no_obj_freed()
1016 debug_object_fixup(descr->fixup_free, in __debug_check_no_obj_freed()