Home
last modified time | relevance | path

Searched refs:sm (Results 1 – 25 of 144) sorted by relevance

123456

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspace_map.c157 sm->sm_start + sm->sm_size); in space_map_iterate()
344 sm->sm_start + sm->sm_size); in space_map_incremental_destroy()
407 range_tree_add(rt, sm->sm_start, sm->sm_size); in space_map_load_length()
514 dmu_write(sm->sm_os, space_map_object(sm), sm->sm_phys->smp_length, in space_map_write_intro_debug()
749 sm->sm_phys->smp_object = sm->sm_object; in space_map_write()
780 error = dmu_bonus_hold(sm->sm_os, sm->sm_object, sm, &sm->sm_dbuf); in space_map_open_impl()
785 sm->sm_phys = sm->sm_dbuf->db_data; in space_map_open_impl()
825 dmu_buf_rele(sm->sm_dbuf, sm); in space_map_close()
829 kmem_free(sm, sizeof (*sm)); in space_map_close()
863 dmu_buf_rele(sm->sm_dbuf, sm); in space_map_truncate()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_implied.c121 show_state(sm->state), sm->line, in print_debug_tf()
147 if (is_merged(sm) || sm->left || sm->right) in create_fake_history()
409 show_sm(sm), sm->merged ? "(merged) ": "", get_stree_id(sm->pool)); in separate_pools()
436 old = get_sm_state_stree(tmp->pool, sm->owner, sm->name, sm->sym); in sm_in_keep_leafs()
802 if (!sm || !sm->merged) in handle_zero_comparison()
837 true_sm = get_sm_state_stree(*implied_true, sm->owner, sm->name, sm->sym); in handled_by_comparison_hook()
840 delete_state_stree(implied_true, sm->owner, sm->name, sm->sym); in handled_by_comparison_hook()
842 delete_state_stree(implied_false, sm->owner, sm->name, sm->sym); in handled_by_comparison_hook()
934 delete_state_stree(implied_true, sm->owner, sm->name, sm->sym); in separate_implication_states()
942 delete_state_stree(implied_false, sm->owner, sm->name, sm->sym); in separate_implication_states()
[all …]
H A Dsmatch_slist.c45 check_name(sm->owner), sm->name, show_state(sm->state), in show_sm()
579 memset(sm, 0, sizeof(*sm)); in set_state_stree_perm()
581 sm->name = (char *)(sm + 1); in set_state_stree_perm()
706 if (!one_iter.sm && !two_iter.sm) in match_states_stree()
714 sm = alloc_state_no_name(one_iter.sm->owner, one_iter.sm->name, in match_states_stree()
727 sm = alloc_state_no_name(two_iter.sm->owner, two_iter.sm->name, in match_states_stree()
758 cur = get_sm_state(sm->owner, sm->name, sm->sym); in call_pre_merge_hooks()
771 cur = get_sm_state(sm->owner, sm->name, sm->sym); in call_pre_merge_hooks()
932 sm = get_sm_state(one_iter.sm->owner, one_iter.sm->name, in merge_fake_stree()
941 sm = get_sm_state(two_iter.sm->owner, two_iter.sm->name, in merge_fake_stree()
[all …]
H A Davl.c128 avl_insert(&new, i.sm); in clone_stree_real()
183 node->sm = sm; in mkNode()
206 cmp = cmp_tracker(sm, node->sm); in lookup()
223 *p = mkNode(sm); in insert_sm()
228 int cmp = cmp_tracker(sm, node->sm); in insert_sm()
231 node->sm = sm; in insert_sm()
256 int cmp = cmp_tracker(sm, node->sm); in remove_sm()
435 last = i.sm; in checkOrder()
461 iter->sm = NULL; in avl_iter_begin()
472 iter->sm = (struct sm_state *) node->sm; in avl_iter_begin()
[all …]
H A Dcheck_atomic_inc_dec.c40 parent_is_gone_var_sym(sm->name, sm->sym)) in unmatched_state()
41 return sm->state; in unmatched_state()
60 struct sm_state *sm; in get_best_match() local
88 match = sm; in get_best_match()
90 } END_FOR_EACH_SM(sm); in get_best_match()
274 struct sm_state *sm; in match_return_info() local
282 if (sm->state != &inc && !is_maybe_dec(sm)) in match_return_info()
284 if (sm->state == get_state_stree(start_states, my_id, sm->name, sm->sym)) in match_return_info()
286 if (parent_is_gone_var_sym(sm->name, sm->sym)) in match_return_info()
354 if (sm) in check_counter()
[all …]
H A Dcheck_check_deref.c45 set_state(my_id, sm->name, sm->sym, &ok); in is_ok()
50 struct sm_state *sm; in check_dereference() local
59 if (!sm) in check_dereference()
61 if (is_ignored(my_id, sm->name, sm->sym)) in check_dereference()
66 FOR_EACH_PTR(sm->possible, tmp) { in check_dereference()
74 add_ignore(my_id, sm->name, sm->sym); in check_dereference()
82 struct sm_state *sm; in check_dereference_name_sym() local
86 if (!sm) in check_dereference_name_sym()
88 if (is_ignored(my_id, sm->name, sm->sym)) in check_dereference_name_sym()
93 FOR_EACH_PTR(sm->possible, tmp) { in check_dereference_name_sym()
[all …]
H A Dcheck_capable.c57 struct sm_state *sm; in save_call_info() local
60 if (sm->state == &capable) in save_call_info()
62 } END_FOR_EACH_SM(sm); in save_call_info()
65 if (sm->state == &capable) in save_call_info()
67 } END_FOR_EACH_SM(sm); in save_call_info()
72 struct sm_state *sm; in save_return_info() local
75 if (sm->state == &capable) in save_return_info()
77 CAPABLE, 0, sm->name, ""); in save_return_info()
78 } END_FOR_EACH_SM(sm); in save_return_info()
81 if (sm->state == &capable) in save_return_info()
[all …]
H A Dsmatch_param_filter.c66 if (parent_is_gone_var_sym(sm->name, sm->sym)) in unmatched_state()
69 state = __get_state(SMATCH_EXTRA, sm->name, sm->sym); in unmatched_state()
140 param_name = get_param_name(sm); in print_one_mod_param()
143 if (is_whole_rl(estate_rl(sm->state))) in print_one_mod_param()
145 if (!estate_rl(sm->state)) { in print_one_mod_param()
156 param_name, show_rl(estate_rl(sm->state))); in print_one_mod_param()
162 struct sm_state *sm; in print_return_value_param() local
179 if (sm) in print_return_value_param()
186 int param_has_filter_data(struct sm_state *sm) in param_has_filter_data() argument
190 state = get_state(my_id, sm->name, sm->sym); in param_has_filter_data()
[all …]
H A Dsmatch_nul_terminator.c77 if (!sm) in get_terminated_state_var_sym()
79 if (sm->state == &terminated || sm->state == &unterminated) in get_terminated_state_var_sym()
80 return sm->state; in get_terminated_state_var_sym()
99 if (!sm) in get_terminated_state()
101 if (sm->state == &terminated || sm->state == &unterminated) in get_terminated_state()
102 return sm->state; in get_terminated_state()
128 if (!sm) in sm_to_term()
145 term = sm_to_term(sm); in struct_member_callback()
194 if (!sm) in split_return_info()
196 term = sm_to_term(sm); in split_return_info()
[all …]
H A Dsmatch_parsed_conditions.c73 if (!sm) in filter_by_sm()
76 if (sm->state == &true_path) in filter_by_sm()
77 add_ptr_list(true_stack, sm); in filter_by_sm()
78 else if (sm->state == &false_path) in filter_by_sm()
79 add_ptr_list(false_stack, sm); in filter_by_sm()
81 if (sm->merged) { in filter_by_sm()
93 struct sm_state *sm, *tmp; in parsed_condition_implication_hook() local
98 sm = get_sm_state(my_id, name, NULL); in parsed_condition_implication_hook()
99 if (!sm) in parsed_condition_implication_hook()
101 if (!sm->merged) in parsed_condition_implication_hook()
[all …]
H A Dcheck_nospec.c35 if (__in_function_def && !get_user_rl_var_sym(sm->name, sm->sym, &rl)) in unmatched_state()
92 if (!get_user_rl_var_sym(sm->name, sm->sym, &rl)) in struct_member_callback()
101 struct sm_state *sm; in returned_struct_members() local
109 if (get_state_stree(start_states, my_id, sm->name, sm->sym) == sm->state) in returned_struct_members()
124 if (!get_user_rl_var_sym(sm->name, sm->sym, &rl)) in returned_struct_members()
128 } END_FOR_EACH_SM(sm); in returned_struct_members()
205 struct sm_state *sm; in mark_user_data_as_nospec() local
208 FOR_EACH_SM(stree, sm) { in mark_user_data_as_nospec()
214 if (!is_capped_var_sym(sm->name, sm->sym)) in mark_user_data_as_nospec()
216 set_state(my_id, sm->name, sm->sym, &nospec); in mark_user_data_as_nospec()
[all …]
H A Dsmatch_param_set.c177 struct sm_state *sm; in print_return_value_param_helper() local
189 if (!estate_rl(sm->state)) in print_return_value_param_helper()
191 extra = __get_state(SMATCH_EXTRA, sm->name, sm->sym); in print_return_value_param_helper()
197 rl = estate_rl(sm->state); in print_return_value_param_helper()
203 param_name = get_param_name(sm); in print_return_value_param_helper()
232 math_str = get_value_in_terms_of_parameter_math_var_sym(sm->name, sm->sym); in print_return_value_param_helper()
253 } END_FOR_EACH_SM(sm); in print_return_value_param_helper()
272 FOR_EACH_PTR(sm->possible, tmp) { in possibly_empty()
281 struct sm_state *sm; in param_was_set_var_sym() local
300 if (!sm) in param_was_set_var_sym()
[all …]
H A Dsmatch_capped.c38 set_state(my_id, sm->name, sm->sym, &uncapped); in set_uncapped()
45 state = __get_state(SMATCH_EXTRA, sm->name, sm->sym); in unmatched_state()
243 estate = __get_state(SMATCH_EXTRA, sm->name, sm->sym); in struct_member_callback()
252 struct sm_state *sm; in print_return_implies_capped() local
272 estate = __get_state(SMATCH_EXTRA, sm->name, sm->sym); in print_return_implies_capped()
276 orig = get_state_stree(get_start_states(), my_id, sm->name, sm->sym); in print_return_implies_capped()
277 if (orig == &capped && !param_was_set_var_sym(sm->name, sm->sym)) in print_return_implies_capped()
286 } END_FOR_EACH_SM(sm); in print_return_implies_capped()
293 if (ret_sym != sm->sym) in print_return_implies_capped()
296 estate = __get_state(SMATCH_EXTRA, sm->name, sm->sym); in print_return_implies_capped()
[all …]
H A Dsmatch_states.c256 orig = get_sm_state(sm->owner, sm->name, sm->sym); in __merge_stree_into_cur()
260 merged = sm; in __merge_stree_into_cur()
274 s = __get_state(sm->owner, sm->name, sm->sym); in __set_sm()
300 s = __get_state(sm->owner, sm->name, sm->sym); in __set_sm_cur_stree()
323 s = __get_state(sm->owner, sm->name, sm->sym); in __set_sm_fake_stree()
370 if (!sm) in __get_state()
372 return sm->state; in __get_state()
486 delete_state_stree(stree, sm->owner, sm->name, sm->sym); in delete_all_states_stree_sym()
794 __set_sm(sm); in __fold_in_set_states()
795 __set_true_false_sm(sm, sm); in __fold_in_set_states()
[all …]
H A Dcheck_frees_param.c33 static void set_ignore(struct sm_state *sm, struct expression *mod_expr) in set_ignore() argument
35 set_state(my_id, sm->name, sm->sym, &ignore); in set_ignore()
40 struct sm_state *sm; in freed_variable() local
46 sm = get_sm_state_expr(my_id, expr); in freed_variable()
47 if (sm && slist_has_state(sm->possible, &ignore)) in freed_variable()
72 struct sm_state *sm; in process_states() local
76 FOR_EACH_MY_SM(my_id, __get_cur_stree(), sm) { in process_states()
77 if (sm->state != &freed) in process_states()
79 param = get_param_num_from_sym(sm->sym); in process_states()
82 param_name = get_param_name(sm); in process_states()
[all …]
H A Dcheck_locking.c438 set_state(my_id, sm->name, sm->sym, &start_state); in reset()
617 if (!sm) in warn_on_double()
668 if (!sm) in handle_macro_lock_unlock()
670 if (sm && sm->line != expr->pos.line) in handle_macro_lock_unlock()
674 if (!sm) in handle_macro_lock_unlock()
676 if (sm && sm->line != expr->pos.line) in handle_macro_lock_unlock()
698 if (!sm) in do_lock()
729 if (!sm) in do_unlock()
893 if (sm->state == get_start_state(sm)) { in get_db_type()
1018 if (!sm) in check_lock()
[all …]
H A Dcheck_free_strict.c35 if (sm->state != &ok) in ok_to_use()
36 set_state(my_id, sm->name, sm->sym, &ok); in ok_to_use()
50 if (sm->state != &freed) in unmatched_state()
53 state = get_state(SMATCH_EXTRA, sm->name, sm->sym); in unmatched_state()
64 struct sm_state *sm; in is_freed() local
67 if (sm && slist_has_state(sm->possible, &freed)) in is_freed()
245 struct sm_state *sm; in set_param_freed() local
261 if (sm && slist_has_state(sm->possible, &freed)) { in set_param_freed()
315 struct sm_state *sm; in match_untracked() local
334 } END_FOR_EACH_SM(sm); in match_untracked()
[all …]
H A Dsmatch_modification_hooks.c90 if (sym != sm->sym) 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()
105 if (sm->name[len + 1] == '-' || sm->name[len + 1] == '.') in matches()
113 struct sm_state *sm; in call_modification_hooks_name_sym() local
123 if (sm->owner > num_checks) 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()
135 (hooks_late[sm->owner])(sm, mod_expr); in call_modification_hooks_name_sym()
[all …]
H A Dcheck_err_ptr_deref.c41 if (sm->state != &checked) in ok_to_use()
42 set_state(my_id, sm->name, sm->sym, &checked); in ok_to_use()
47 struct sm_state *sm; in check_is_err_ptr() local
50 sm = get_sm_state_expr(my_id, expr); in check_is_err_ptr()
51 if (!sm) in check_is_err_ptr()
62 set_state(my_id, sm->name, sm->sym, &checked); in check_is_err_ptr()
73 struct sm_state *sm; in set_param_dereferenced() local
83 if (!sm) in set_param_dereferenced()
94 set_state(my_id, sm->name, sm->sym, &checked); in set_param_dereferenced()
189 struct sm_state *sm; in match_err_ptr() local
[all …]
H A Dcheck_deref.c61 set_state(my_id, sm->name, sm->sym, &ok); in is_ok()
66 struct sm_state *sm; in check_dereference() local
73 if (!sm) in check_dereference()
75 if (is_ignored(my_id, sm->name, sm->sym)) in check_dereference()
82 FOR_EACH_PTR(sm->possible, tmp) { in check_dereference()
87 add_ignore(my_id, sm->name, sm->sym); in check_dereference()
106 struct sm_state *sm; in check_dereference_name_sym() local
110 if (!sm) in check_dereference_name_sym()
112 if (is_ignored(my_id, sm->name, sm->sym)) in check_dereference_name_sym()
119 FOR_EACH_PTR(sm->possible, tmp) { in check_dereference_name_sym()
[all …]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dstrngmem.c75 if(!sm) { in _new_StringMem()
84 sm->nmalloc = 0; in _new_StringMem()
85 sm->fl = NULL; in _new_StringMem()
90 if(!sm->fl) in _new_StringMem()
95 return sm; in _new_StringMem()
115 if(sm) { in _del_StringMem()
126 sm->fl = _del_FreeList(sm->fl, force); in _del_StringMem()
130 free(sm); in _del_StringMem()
151 if(!sm) in _new_StringMemString()
171 sm->nmalloc++; in _new_StringMemString()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/cores/secmapper/
H A Dsecmapper.c148 secmap_t *sm; in secmap_alloc() local
153 if (sm == NULL) { in secmap_alloc()
158 secmaps = sm; in secmap_alloc()
177 return (sm); in secmap_alloc()
195 if (gelf_getehdr(sm->sm_elf, &sm->sm_ehdr) == NULL) { in secmap_alloc()
202 sm->sm_debug = sm->sm_symtab = sm->sm_ctf = B_TRUE; in secmap_alloc()
204 sm->sm_symtab = sm->sm_ctf = B_TRUE; in secmap_alloc()
208 sm->sm_symtab = sm->sm_ctf = B_TRUE; in secmap_alloc()
210 sm->sm_debug = sm->sm_symtab = sm->sm_ctf = B_TRUE; in secmap_alloc()
215 return (sm); in secmap_alloc()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncinit.c105 struct scc_mode sm; in main() local
158 sioc.ic_dp = (char *)&sm; in main()
170 sm.sm_baudrate = speed; in main()
198 sm.sm_baudrate = speed; in main()
217 sm.sm_baudrate = 0; in main()
238 sioc.ic_dp = (char *)&sm; in main()
244 sm.sm_retval); in main()
253 sioc.ic_dp = (char *)&sm; in main()
263 sm.sm_baudrate, in main()
267 txnames[sm.sm_txclock], in main()
[all …]
/illumos-gate/usr/src/uts/common/io/aggr/
H A Daggr_lacp.c555 if (pl->sm.begin || !pl->sm.lacp_enabled || in lacp_periodic_sm()
618 !pl->sm.lacp_enabled || pl->sm.begin) { in lacp_xmit_sm()
770 if (pl->sm.begin || !pl->sm.lacp_enabled) in lacp_mux_sm()
777 if (pl->sm.begin) { in lacp_mux_sm()
1258 if (pl->sm.begin || !pl->sm.lacp_enabled || in lacp_selection_logic()
1264 AGGR_UNSELECTED, pl->sm.begin, pl->sm.lacp_enabled, in lacp_selection_logic()
2011 if (!pl->sm.lacp_on) in lacp_receive_sm()
2015 if (pl->sm.begin || pl->sm.port_moved) { in lacp_receive_sm()
2062 if (pl->sm.port_enabled && !pl->sm.lacp_enabled) { in lacp_receive_sm()
2067 } else if (pl->sm.port_enabled && pl->sm.lacp_enabled) { in lacp_receive_sm()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dspace_map.h204 int space_map_iterate(space_map_t *sm, uint64_t length,
210 void space_map_histogram_clear(space_map_t *sm);
211 void space_map_histogram_add(space_map_t *sm, range_tree_t *rt,
214 uint64_t space_map_object(space_map_t *sm);
215 int64_t space_map_allocated(space_map_t *sm);
216 uint64_t space_map_length(space_map_t *sm);
217 uint64_t space_map_entries(space_map_t *sm, range_tree_t *rt);
218 uint64_t space_map_nblocks(space_map_t *sm);
224 void space_map_truncate(space_map_t *sm, int blocksize, dmu_tx_t *tx);
226 void space_map_free(space_map_t *sm, dmu_tx_t *tx);
[all …]

123456