Lines Matching refs:ar
125 struct mfi_array *ar;
131 ar = (struct mfi_array *)p;
132 if (ar->array_ref == array_ref)
133 return (ar);
428 struct mfi_array *ar = (struct mfi_array *)arrayp;
431 ar->size = array_info->drives[0].coerced_size;
432 ar->num_drives = array_info->drive_count;
433 ar->array_ref = find_next_array(state);
440 ar->array_ref);
441 if (ar->size > array_info->drives[i].coerced_size)
442 ar->size = array_info->drives[i].coerced_size;
443 ar->pd[i].ref = array_info->drives[i].ref;
444 ar->pd[i].fw_state = MFI_PD_STATE_ONLINE;
446 array_info->array = ar;
457 struct mfi_array *ar;
536 ar = arrays[i].array;
538 printf("Adding array %u to volume %u\n", ar->array_ref,
541 ld->span[i].num_blocks = ar->size;
542 ld->span[i].array_ref = ar->array_ref;
550 struct mfi_array *ar;
734 ar = (struct mfi_array *)p;
735 state.arrays[i] = ar->array_ref;
927 struct mfi_array *ar;
993 ar = (struct mfi_array *)p;
994 if (ar->size > info.coerced_size) {
996 ar->array_ref);
1018 ar = mfi_config_lookup_array(config,
1020 if (ar == NULL) {
1025 if (ar->size > info.coerced_size) {
1027 ar->array_ref);
1031 spare->array_ref[i] = ar->array_ref;
1111 struct mfi_array *ar;
1132 ar = (struct mfi_array *)p;
1133 printf(" array %u of %u drives:\n", ar->array_ref,
1134 ar->num_drives);
1135 printf(" size = %ju\n", (uintmax_t)ar->size);
1136 for (j = 0; j < ar->num_drives; j++) {
1137 device_id = ar->pd[j].ref.v.device_id;
1142 mfi_pdstate(ar->pd[j].fw_state));