Lines Matching refs:sym
26 static char *my_get_variable(struct expression *expr, struct symbol **sym) in my_get_variable() argument
30 name = expr_to_var_sym(expr, sym); in my_get_variable()
32 if (!name || !*sym) in my_get_variable()
35 return (*sym)->ident->name; in my_get_variable()
41 struct symbol *sym; in match_kmalloc() local
43 name = my_get_variable(expr->left, &sym); in match_kmalloc()
46 set_state(my_id, name, sym, &alloced); in match_kmalloc()
53 struct symbol *sym; in match_strcpy() local
56 name = my_get_variable(dest, &sym); in match_strcpy()
57 if (!name || !sym) in match_strcpy()
59 if (!get_state(my_id, name, sym)) in match_strcpy()
61 set_state(my_id, name, sym, &string); in match_strcpy()
68 struct symbol *sym; in match_copy_to_user() local
72 name = my_get_variable(src, &sym); in match_copy_to_user()
73 if (!name || !sym) in match_copy_to_user()
75 sm = get_sm_state(my_id, name, sym); in match_copy_to_user()