Lines Matching refs:dt
144 struct ddebug_table *dt; in ddebug_change() local
151 list_for_each_entry(dt, &ddebug_tables, link) { in ddebug_change()
155 !match_wildcard(query->module, dt->mod_name)) in ddebug_change()
158 for (i = 0; i < dt->num_ddebugs; i++) { in ddebug_change()
159 struct _ddebug *dp = &dt->ddebugs[i]; in ddebug_change()
203 dt->mod_name, dp->function, in ddebug_change()
886 struct ddebug_table *dt; in ddebug_add_module() local
888 dt = kzalloc(sizeof(*dt), GFP_KERNEL); in ddebug_add_module()
889 if (dt == NULL) { in ddebug_add_module()
899 dt->mod_name = name; in ddebug_add_module()
900 dt->num_ddebugs = n; in ddebug_add_module()
901 dt->ddebugs = tab; in ddebug_add_module()
904 list_add_tail(&dt->link, &ddebug_tables); in ddebug_add_module()
907 vpr_info("%u debug prints in module %s\n", n, dt->mod_name); in ddebug_add_module()
951 static void ddebug_table_free(struct ddebug_table *dt) in ddebug_table_free() argument
953 list_del_init(&dt->link); in ddebug_table_free()
954 kfree(dt); in ddebug_table_free()
963 struct ddebug_table *dt, *nextdt; in ddebug_remove_module() local
969 list_for_each_entry_safe(dt, nextdt, &ddebug_tables, link) { in ddebug_remove_module()
970 if (dt->mod_name == mod_name) { in ddebug_remove_module()
971 ddebug_table_free(dt); in ddebug_remove_module()
984 struct ddebug_table *dt = list_entry(ddebug_tables.next, in ddebug_remove_all_tables() local
987 ddebug_table_free(dt); in ddebug_remove_all_tables()