Lines Matching full:array

123 			memcpy(e.Data, ((PVDevice)param)->u.array.ArrayName, MAX_ARRAY_NAME);  in ioctl_ReportEvent()
170 if (pArray->u.array.rf_rebuilding || pArray->u.array.rf_verifying || in hpt_delete_array()
171 pArray->u.array.rf_initializing) in hpt_delete_array()
174 for(i=0; i<pArray->u.array.bArnMember; i++) { in hpt_delete_array()
175 pa = pArray->u.array.pMember[i]; in hpt_delete_array()
177 if (pa->u.array.rf_rebuilding || pa->u.array.rf_verifying || in hpt_delete_array()
178 pa->u.array.rf_initializing) in hpt_delete_array()
386 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl()
407 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl()
421 if(pArray->u.array.rf_rebuilding == 0) in Kernel_DeviceIoControl()
424 pArray->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl()
425 pArray->u.array.rf_abort_rebuild = 0; in Kernel_DeviceIoControl()
427 while (!pArray->u.array.rf_rebuilding) in Kernel_DeviceIoControl()
464 if(!pVDevice->vf_online || pVDevice->u.array.rf_broken) return -1; in hpt_set_array_state()
473 if (pVDevice->u.array.rf_rebuilding || in hpt_set_array_state()
474 pVDevice->u.array.rf_verifying || in hpt_set_array_state()
475 pVDevice->u.array.rf_initializing) { in hpt_set_array_state()
480 pVDevice->u.array.rf_auto_rebuild = 0; in hpt_set_array_state()
481 pVDevice->u.array.rf_abort_rebuild = 0; in hpt_set_array_state()
484 …(UCHAR)((pVDevice->u.array.CriticalMembers || pVDevice->VDeviceType == VD_RAID_1)? DUPLICATE : REB… in hpt_set_array_state()
486 while (!pVDevice->u.array.rf_rebuilding) in hpt_set_array_state()
499 for(i = 0; i < pVDevice->u.array.bArnMember; i++) { in hpt_set_array_state()
500 if(pVDevice->u.array.pMember[i] != 0 && pVDevice->u.array.pMember[i]->VDeviceType == VD_RAID_1) in hpt_set_array_state()
501 hpt_set_array_state(VDEV_TO_ID(pVDevice->u.array.pMember[i]), state); in hpt_set_array_state()
505 if(pVDevice->u.array.rf_rebuilding != 1) { in hpt_set_array_state()
510 pVDevice->u.array.rf_abort_rebuild = 1; in hpt_set_array_state()
512 while (pVDevice->u.array.rf_abort_rebuild) in hpt_set_array_state()
524 /*if(pVDevice->u.array.rf_verifying) in hpt_set_array_state()
527 if (pVDevice->u.array.rf_rebuilding || in hpt_set_array_state()
528 pVDevice->u.array.rf_verifying || in hpt_set_array_state()
529 pVDevice->u.array.rf_initializing) { in hpt_set_array_state()
534 pVDevice->u.array.RebuildSectors = 0; in hpt_set_array_state()
537 while (!pVDevice->u.array.rf_verifying) in hpt_set_array_state()
550 if(pVDevice->u.array.rf_verifying != 1) { in hpt_set_array_state()
555 pVDevice->u.array.rf_abort_rebuild = 1; in hpt_set_array_state()
557 while (pVDevice->u.array.rf_abort_rebuild) in hpt_set_array_state()
570 if (pVDevice->u.array.rf_rebuilding || in hpt_set_array_state()
571 pVDevice->u.array.rf_verifying || in hpt_set_array_state()
572 pVDevice->u.array.rf_initializing) { in hpt_set_array_state()
579 while (!pVDevice->u.array.rf_initializing) in hpt_set_array_state()
592 if(pVDevice->u.array.rf_initializing != 1) { in hpt_set_array_state()
597 pVDevice->u.array.rf_abort_rebuild = 1; in hpt_set_array_state()
599 while (pVDevice->u.array.rf_abort_rebuild) in hpt_set_array_state()
690 ULONG capacity = pArray->VDeviceCapacity / (pArray->u.array.bArnMember-1); in hpt_rebuild_data_block()
698 if (pArray->u.array.rf_broken==1 || in hpt_rebuild_data_block()
699 pArray->u.array.RebuildSectors>=capacity) in hpt_rebuild_data_block()
708 if(pArray->u.array.rf_rebuilding == 0) in hpt_rebuild_data_block()
710 pArray->u.array.rf_rebuilding = 1; in hpt_rebuild_data_block()
717 if(pArray->u.array.rf_initializing == 0) in hpt_rebuild_data_block()
719 pArray->u.array.rf_initializing = 1; in hpt_rebuild_data_block()
726 if(pArray->u.array.rf_verifying == 0) in hpt_rebuild_data_block()
728 pArray->u.array.rf_verifying = 1; in hpt_rebuild_data_block()
770 pCmd->uCmd.R1Control.Lba = pArray->u.array.RebuildSectors; in hpt_rebuild_data_block()
772 if (capacity - pArray->u.array.RebuildSectors < pCmd->uCmd.R1Control.nSectors) in hpt_rebuild_data_block()
773 pCmd->uCmd.R1Control.nSectors = capacity - pArray->u.array.RebuildSectors; in hpt_rebuild_data_block()
790 pCmd->uCmd.R5Control.StripeLine=pArray->u.array.RebuildSectors>>pArray->u.array.bArBlockSizeShift; in hpt_rebuild_data_block()
816 if (!pArray->u.array.rf_abort_rebuild) in hpt_rebuild_data_block()
818 if(pArray->u.array.RebuildSectors < capacity) in hpt_rebuild_data_block()
829 pArray->u.array.rf_rebuilding = 0; in hpt_rebuild_data_block()
830 pArray->u.array.rf_need_rebuild = 0; in hpt_rebuild_data_block()
831 pArray->u.array.CriticalMembers = 0; in hpt_rebuild_data_block()
832 pArray->u.array.RebuildSectors = MAX_LBA_T; in hpt_rebuild_data_block()
833 pArray->u.array.rf_duplicate_and_create = 0; in hpt_rebuild_data_block()
839 pArray->u.array.rf_initializing = 0; in hpt_rebuild_data_block()
840 pArray->u.array.rf_need_rebuild = 0; in hpt_rebuild_data_block()
841 pArray->u.array.RebuildSectors = MAX_LBA_T; in hpt_rebuild_data_block()
846 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
855 pArray->u.array.rf_abort_rebuild = 0; in hpt_rebuild_data_block()
856 if (pArray->u.array.rf_rebuilding) in hpt_rebuild_data_block()
859 pArray->u.array.rf_rebuilding = 0; in hpt_rebuild_data_block()
860 pArray->u.array.rf_duplicate_and_create = 0; in hpt_rebuild_data_block()
863 else if (pArray->u.array.rf_verifying) in hpt_rebuild_data_block()
866 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
869 else if (pArray->u.array.rf_initializing) in hpt_rebuild_data_block()
872 pArray->u.array.rf_initializing = 0; in hpt_rebuild_data_block()
883 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
884 pArray->u.array.rf_need_rebuild = 1; in hpt_rebuild_data_block()
889 if (!pArray->vf_online || pArray->u.array.rf_broken) break; in hpt_rebuild_data_block()
891 pArray->u.array.rf_auto_rebuild = 0; in hpt_rebuild_data_block()
892 pArray->u.array.rf_abort_rebuild = 0; in hpt_rebuild_data_block()
906 pArray->u.array.rf_abort_rebuild = 0; in hpt_rebuild_data_block()
912 pArray->u.array.rf_rebuilding = 0; in hpt_rebuild_data_block()
913 pArray->u.array.rf_duplicate_and_create = 0; in hpt_rebuild_data_block()
920 pArray->u.array.rf_initializing = 0; in hpt_rebuild_data_block()
927 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
944 if(needdelete && (pArray->u.array.rf_duplicate_must_done || (flags == INITIALIZE))) in hpt_rebuild_data_block()