Lines Matching defs:index
713 uint32_t index = 0;
718 (error = slice_get_index(slice, &index)) ||
722 (error = devconfig_set_slice_index(spare, index))) {
1165 * int *index)
1171 * OUTPUT: index - pointer to int to hold numeric part of name
1184 int *index)
1197 if (sscanf(cp, fmt, index) == 1)
1219 int index = -1;
1221 if (extract_index(name, _dev_prefix, "%d", &index)) {
1222 if (index >= 0 && index < _max_devs_cfg) {
1248 int index = -1;
1250 if (extract_index(name, _dev_prefix, "%d", &index)) {
1251 if (devs_by_number[index] != B_TRUE) {
1252 devs_by_number[index] = B_TRUE;
1278 int index = -1;
1280 if (extract_index(name, _hsp_prefix, "%03d", &index)) {
1281 if (hsps_by_number[index] != B_TRUE) {
1282 hsps_by_number[index] = B_TRUE;
1298 * and use it to index into the array of used
1306 int index = -1;
1308 if (name != NULL && extract_index(name, _dev_prefix, "%d", &index)) {
1311 _dev_prefix, index);
1312 devs_by_number[index] = B_FALSE;
1324 * and use it to index into the array of used
1332 int index = -1;
1334 if (name != NULL && extract_index(name, _hsp_prefix, "%d", &index)) {
1337 _hsp_prefix, index);
1338 hsps_by_number[index] = B_FALSE;
2003 * uint32_t index, boolean_t *bool)
2007 * index - integer index of interest
2014 * PURPOSE: Helper which determines if the input slice index on
2022 * determine the replica slice index is called.
2025 * is used to determine the replica slice index.
2031 uint32_t index,
2070 *bool = (replicaslice == (uint_t)index);
2083 *bool = (index == MD_SLICE7);
2085 *bool = (index == MD_SLICE6);