Lines Matching refs:idx_tbl
102 const zprop_index_t *idx_tbl, in zprop_register_impl() argument
128 pd->pd_table = idx_tbl; in zprop_register_impl()
130 while (idx_tbl && (idx_tbl++)->pi_name != NULL) in zprop_register_impl()
159 const char *colname, const zprop_index_t *idx_tbl, in zprop_register_index() argument
163 objset_types, values, colname, B_FALSE, B_TRUE, B_TRUE, idx_tbl, in zprop_register_index()
314 const zprop_index_t *idx_tbl; in zprop_string_to_index() local
322 if ((idx_tbl = prop_tbl[prop].pd_table) == NULL) in zprop_string_to_index()
325 for (i = 0; idx_tbl[i].pi_name != NULL; i++) { in zprop_string_to_index()
326 if (strcmp(string, idx_tbl[i].pi_name) == 0) { in zprop_string_to_index()
327 *index = idx_tbl[i].pi_value; in zprop_string_to_index()
340 const zprop_index_t *idx_tbl; in zprop_index_to_string() local
348 if ((idx_tbl = prop_tbl[prop].pd_table) == NULL) in zprop_index_to_string()
351 for (i = 0; idx_tbl[i].pi_name != NULL; i++) { in zprop_index_to_string()
352 if (idx_tbl[i].pi_value == index) { in zprop_index_to_string()
353 *string = idx_tbl[i].pi_name; in zprop_index_to_string()
368 const zprop_index_t *idx_tbl; in zprop_random_value() local
372 idx_tbl = prop_tbl[prop].pd_table; in zprop_random_value()
374 if (idx_tbl == NULL) in zprop_random_value()
377 return (idx_tbl[seed % prop_tbl[prop].pd_table_size].pi_value); in zprop_random_value()