Lines Matching refs:sm
86 static int matches(char *name, struct symbol *sym, struct sm_state *sm) in matches() argument
90 if (sym != sm->sym) in matches()
94 if (strncmp(sm->name, name, len) == 0) { in matches()
95 if (sm->name[len] == '\0') in matches()
97 if (sm->name[len] == '-' || sm->name[len] == '.') in matches()
100 if (sm->name[0] != '*') in matches()
102 if (strncmp(sm->name + 1, name, len) == 0) { in matches()
103 if (sm->name[len + 1] == '\0') in matches()
105 if (sm->name[len + 1] == '-' || sm->name[len + 1] == '.') in matches()
113 struct sm_state *sm; in call_modification_hooks_name_sym() local
122 FOR_EACH_SM(__get_cur_stree(), sm) { in call_modification_hooks_name_sym()
123 if (sm->owner > num_checks) in call_modification_hooks_name_sym()
125 match = matches(name, sym, sm); in call_modification_hooks_name_sym()
130 if (hooks[sm->owner]) in call_modification_hooks_name_sym()
131 (hooks[sm->owner])(sm, mod_expr); in call_modification_hooks_name_sym()
134 if (hooks_late[sm->owner]) in call_modification_hooks_name_sym()
135 (hooks_late[sm->owner])(sm, mod_expr); in call_modification_hooks_name_sym()
138 } END_FOR_EACH_SM(sm); in call_modification_hooks_name_sym()