Searched defs:sm (Results 1 - 25 of 114) sorted by relevance

12345

/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_return_enomem.c31 struct sm_state *sm; local
48 FOR_EACH_MY_SM(SMATCH_EXTRA, stree, sm) {
49 if (!estate_get_single_value(sm->state, &sval) || sval.value != 0)
51 expr = get_assigned_expr_name_sym(sm->name, sm->sym);
70 } END_FOR_EACH_SM(sm);
H A Dcheck_container_of.c30 static void is_ok(struct sm_state *sm, struct expression *mod_expr) argument
32 set_state(my_id, sm->name, sm->sym, &undefined);
H A Dcheck_input_free_device.c50 struct sm_state *sm; local
53 sm = get_sm_state_expr(my_id, arg);
54 if (!sm)
56 if (!slist_has_state(sm->possible, &no_free))
H A Dcheck_kunmap.c54 struct sm_state *sm; local
57 sm = get_sm_state_expr(my_id, arg);
58 if (!sm)
60 if (slist_has_state(sm->possible, &no_unmap))
67 struct sm_state *sm; local
71 sm = get_sm_state_expr(check_assigned_expr_id, arg);
72 if (!sm)
74 FOR_EACH_PTR(sm->possible, tmp) {
H A Dcheck_platform_device_put.c50 struct sm_state *sm; local
53 sm = get_sm_state_expr(my_id, arg_expr);
54 if (!sm)
56 if (!slist_has_state(sm->possible, &not_added))
H A Dcheck_info_leak.c69 struct sm_state *sm; local
75 sm = get_sm_state(my_id, name, sym);
76 if (!sm || !slist_has_state(sm->possible, &string))
H A Dcheck_param_mapper.c40 static void delete(struct sm_state *sm, struct expression *mod_expr) argument
42 set_state(my_id, sm->name, sm->sym, &undefined);
H A Dcheck_pointer_math.c24 static void set_undefined(struct sm_state *sm, struct expression *mod_expr) argument
26 if (sm->state == &size_in_bytes)
27 set_state(my_id, sm->name, sm->sym, &undefined);
H A Dcheck_template.c54 static struct smatch_state *unmatched_state(struct sm_state *sm) argument
56 if (sm->state == &lock)
58 if (sm->state == &unlock)
H A Dcheck_wine_filehandles.c47 static void ok_to_use(struct sm_state *sm, struct expression *mod_expr) argument
49 if (sm->state != &oktocheck)
50 set_state(my_id, sm->name, sm->sym, &oktocheck);
H A Dcheck_dma_mapping_error.c27 static void ok_to_use(struct sm_state *sm, struct expression *mod_expr) argument
29 if (sm->state != &ok)
30 set_state(my_id, sm->name, sm->sym, &ok);
55 struct sm_state *sm; local
58 sm = get_sm_state_expr(my_id, ret_value);
59 if (!sm)
61 if (!slist_has_state(sm->possible, &positive))
H A Dcheck_snprintf.c24 static void ok_to_use(struct sm_state *sm, struct expression *mod_expr) argument
26 set_state(my_id, sm->name, sm->sym, &undefined);
42 static int get_old_buflen(struct sm_state *sm) argument
47 FOR_EACH_PTR(sm->possible, tmp) {
57 struct sm_state *sm; local
62 sm = get_sm_state_expr(my_id, arg);
63 if (!sm)
65 old_buflen = get_old_buflen(sm);
70 sm
[all...]
H A Dcheck_spectre_second_half.c45 struct sm_state *sm; local
47 FOR_EACH_MY_SM(my_id, __get_cur_stree(), sm) {
48 set_state(my_id, sm->name, sm->sym, alloc_state_num(-MAX_SPEC_STMT));
49 } END_FOR_EACH_SM(sm);
H A Dsmatch_imaginary_absolute.c39 static struct smatch_state *empty_state(struct sm_state *sm) argument
49 static void reset(struct sm_state *sm, struct expression *mod_expr) argument
51 set_state(my_id, sm->name, sm->sym, alloc_estate_empty());
H A Dcheck_deref_check.c25 static void underef(struct sm_state *sm, struct expression *mod_expr) argument
27 set_state(my_id, sm->name, sm->sym, &undefined);
68 struct sm_state *sm; local
82 sm = get_sm_state_expr(my_id, expr);
83 if (!sm || sm->state != &derefed)
86 sm_warning("variable dereferenced before check '%s' (see line %d)", sm->name, sm->line);
H A Dcheck_testing_index_after_use.c33 static void delete(struct sm_state *sm, struct expression *mod_expr) argument
35 set_state(my_used_id, sm->name, sm->sym, &undefined);
H A Davl.h46 struct sm_state *avl_lookup(const struct stree *avl, const struct sm_state *sm);
47 /* O(log n). Lookup a sm. Return NULL if the sm is not present. */
49 #define avl_member(avl, sm) (!!avl_lookup_node(avl, sm))
50 /* O(log n). See if a sm is present. */
55 bool avl_insert(struct stree **avl, const struct sm_state *sm);
57 * O(log n). Insert an sm or replace it if already present.
59 * Return false if the insertion replaced an existing sm.
62 bool avl_remove(struct stree **avl, const struct sm_state *sm);
107 struct sm_state *sm; member in struct:AvlIter
127 const struct sm_state *sm; member in struct:AvlNode
[all...]
H A Dcheck_capable.c57 struct sm_state *sm; local
59 FOR_EACH_MY_SM(capable_id, __get_cur_stree(), sm) {
60 if (sm->state == &capable)
61 sql_insert_caller_info(call, CAPABLE, 0, sm->name, "");
62 } END_FOR_EACH_SM(sm);
64 FOR_EACH_MY_SM(ns_capable_id, __get_cur_stree(), sm) {
65 if (sm->state == &capable)
66 sql_insert_caller_info(call, NS_CAPABLE, 0, sm->name, "");
67 } END_FOR_EACH_SM(sm);
72 struct sm_state *sm; local
[all...]
H A Dcheck_dev_queue_xmit.c31 static void ok_to_use(struct sm_state *sm, struct expression *mod_expr) argument
33 set_state(my_id, sm->name, sm->sym, &undefined);
62 struct sm_state *sm; local
65 sm = get_sm_state_expr(my_id, expr);
66 if (!sm || !slist_has_state(sm->possible, &do_not_use))
H A Dcheck_expects_err_ptr.c26 static void set_ok(struct sm_state *sm, struct expression *mod_expr) argument
28 if (sm->state != &ok)
29 set_state(my_id, sm->name, sm->sym, &ok);
H A Dcheck_frees_param.c34 static void set_ignore(struct sm_state *sm, struct expression *mod_expr) argument
36 set_state(my_id, sm->name, sm->sym, &ignore);
55 struct sm_state *sm; local
61 sm = get_sm_state_expr(my_id, expr);
62 if (sm && slist_has_state(sm->possible, &ignore))
87 struct sm_state *sm; local
91 FOR_EACH_MY_SM(my_id, __get_cur_stree(), sm) {
92 if (sm
[all...]
H A Dcheck_return_efault.c33 static void ok_to_use(struct sm_state *sm, struct expression *mod_expr) argument
35 if (sm->state != &ok)
36 set_state(my_id, sm->name, sm->sym, &ok);
64 struct sm_state *sm; local
67 sm = get_sm_state_expr(my_id, ret_value);
68 if (!sm)
70 if (!slist_has_state(sm->possible, &remaining))
/illumos-gate/usr/src/lib/libtecla/common/
H A Dstrngmem.c63 StringMem *sm; /* The container to be returned. */ local
74 sm = (StringMem *) malloc(sizeof(StringMem));
75 if(!sm) {
84 sm->nmalloc = 0;
85 sm->fl = NULL;
89 sm->fl = _new_FreeList(SM_STRLEN, blocking_factor);
90 if(!sm->fl)
91 return _del_StringMem(sm, 1);
95 return sm;
102 * sm StringMe
113 _del_StringMem(StringMem *sm, int force) argument
144 _new_StringMemString(StringMem *sm, size_t length) argument
192 _del_StringMemString(StringMem *sm, char *s) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncstat.c45 static struct scc_mode sm; variable in typeref:struct:scc_mode
134 sioc.ic_dp = (char *)&sm;
165 if (sm.sm_baudrate == 0) {
182 (void) printf(" %7d %7d %7d %7d %7d %7d %7d %7d %7d\n", sm.sm_baudrate,
215 iutil = 100 * iutil / sm.sm_baudrate;
217 outil = 100 * outil / sm.sm_baudrate;
/illumos-gate/usr/src/cmd/ldap/common/
H A Dtmpltest.c238 struct ldap_searchmatch *sm; local
276 for ( i = 0, sm = so->so_smlist; sm != NULL; i++, sm = sm->sm_next ) {
279 NULLSTRINGIFNULL( sm->sm_matchprompt ),
280 NULLSTRINGIFNULL( sm->sm_filter ));

Completed in 266 milliseconds

12345