Lines Matching refs:array
123 memcpy(e.Data, ((PVDevice)param)->u.array.ArrayName, MAX_ARRAY_NAME); in ioctl_ReportEvent()
169 if (pArray->u.array.rf_rebuilding || pArray->u.array.rf_verifying || in hpt_delete_array()
170 pArray->u.array.rf_initializing) in hpt_delete_array()
173 for(i=0; i<pArray->u.array.bArnMember; i++) { in hpt_delete_array()
174 pa = pArray->u.array.pMember[i]; in hpt_delete_array()
176 if (pa->u.array.rf_rebuilding || pa->u.array.rf_verifying || in hpt_delete_array()
177 pa->u.array.rf_initializing) in hpt_delete_array()
387 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl()
408 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl()
422 if(pArray->u.array.rf_rebuilding == 0) in Kernel_DeviceIoControl()
426 pArray->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl()
427 pArray->u.array.rf_abort_rebuild = 0; in Kernel_DeviceIoControl()
430 while (!pArray->u.array.rf_rebuilding) in Kernel_DeviceIoControl()
471 if(!pVDevice->vf_online || pVDevice->u.array.rf_broken) return -1; in hpt_set_array_state()
479 if (pVDevice->u.array.rf_rebuilding || in hpt_set_array_state()
480 pVDevice->u.array.rf_verifying || in hpt_set_array_state()
481 pVDevice->u.array.rf_initializing) in hpt_set_array_state()
486 pVDevice->u.array.rf_auto_rebuild = 0; in hpt_set_array_state()
487 pVDevice->u.array.rf_abort_rebuild = 0; in hpt_set_array_state()
490 …(UCHAR)((pVDevice->u.array.CriticalMembers || pVDevice->VDeviceType == VD_RAID_1)? DUPLICATE : REB… in hpt_set_array_state()
494 while (!pVDevice->u.array.rf_rebuilding) in hpt_set_array_state()
507 for(i = 0; i < pVDevice->u.array.bArnMember; i++) { in hpt_set_array_state()
508 if(pVDevice->u.array.pMember[i] != 0 && pVDevice->u.array.pMember[i]->VDeviceType == VD_RAID_1) in hpt_set_array_state()
509 hpt_set_array_state(VDEV_TO_ID(pVDevice->u.array.pMember[i]), state); in hpt_set_array_state()
512 if(pVDevice->u.array.rf_rebuilding != 1) in hpt_set_array_state()
516 pVDevice->u.array.rf_abort_rebuild = 1; in hpt_set_array_state()
519 while (pVDevice->u.array.rf_abort_rebuild) in hpt_set_array_state()
533 if (pVDevice->u.array.rf_rebuilding || in hpt_set_array_state()
534 pVDevice->u.array.rf_verifying || in hpt_set_array_state()
535 pVDevice->u.array.rf_initializing) in hpt_set_array_state()
539 pVDevice->u.array.RebuildSectors = 0; in hpt_set_array_state()
543 while (!pVDevice->u.array.rf_verifying) in hpt_set_array_state()
555 if(pVDevice->u.array.rf_verifying != 1) in hpt_set_array_state()
559 pVDevice->u.array.rf_abort_rebuild = 1; in hpt_set_array_state()
562 while (pVDevice->u.array.rf_abort_rebuild) in hpt_set_array_state()
574 if (pVDevice->u.array.rf_rebuilding || in hpt_set_array_state()
575 pVDevice->u.array.rf_verifying || in hpt_set_array_state()
576 pVDevice->u.array.rf_initializing) in hpt_set_array_state()
583 while (!pVDevice->u.array.rf_initializing) in hpt_set_array_state()
595 if(pVDevice->u.array.rf_initializing != 1) in hpt_set_array_state()
599 pVDevice->u.array.rf_abort_rebuild = 1; in hpt_set_array_state()
602 while (pVDevice->u.array.rf_abort_rebuild) in hpt_set_array_state()
694 ULONG capacity = pArray->VDeviceCapacity / (pArray->u.array.bArnMember-1); in hpt_rebuild_data_block()
702 if (pArray->u.array.rf_broken==1 || in hpt_rebuild_data_block()
703 pArray->u.array.RebuildSectors>=capacity) in hpt_rebuild_data_block()
712 if(pArray->u.array.rf_rebuilding == 0) in hpt_rebuild_data_block()
714 pArray->u.array.rf_rebuilding = 1; in hpt_rebuild_data_block()
721 if(pArray->u.array.rf_initializing == 0) in hpt_rebuild_data_block()
723 pArray->u.array.rf_initializing = 1; in hpt_rebuild_data_block()
730 if(pArray->u.array.rf_verifying == 0) in hpt_rebuild_data_block()
732 pArray->u.array.rf_verifying = 1; in hpt_rebuild_data_block()
776 pCmd->uCmd.R1Control.Lba = pArray->u.array.RebuildSectors; in hpt_rebuild_data_block()
778 if (capacity - pArray->u.array.RebuildSectors < pCmd->uCmd.R1Control.nSectors) in hpt_rebuild_data_block()
779 pCmd->uCmd.R1Control.nSectors = capacity - pArray->u.array.RebuildSectors; in hpt_rebuild_data_block()
796 pCmd->uCmd.R5Control.StripeLine=pArray->u.array.RebuildSectors>>pArray->u.array.bArBlockSizeShift; in hpt_rebuild_data_block()
829 if (!pArray->u.array.rf_abort_rebuild) in hpt_rebuild_data_block()
831 if(pArray->u.array.RebuildSectors < capacity) in hpt_rebuild_data_block()
842 pArray->u.array.rf_rebuilding = 0; in hpt_rebuild_data_block()
843 pArray->u.array.rf_need_rebuild = 0; in hpt_rebuild_data_block()
844 pArray->u.array.CriticalMembers = 0; in hpt_rebuild_data_block()
845 pArray->u.array.RebuildSectors = MAX_LBA_T; in hpt_rebuild_data_block()
846 pArray->u.array.rf_duplicate_and_create = 0; in hpt_rebuild_data_block()
852 pArray->u.array.rf_initializing = 0; in hpt_rebuild_data_block()
853 pArray->u.array.rf_need_rebuild = 0; in hpt_rebuild_data_block()
854 pArray->u.array.RebuildSectors = MAX_LBA_T; in hpt_rebuild_data_block()
859 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
868 pArray->u.array.rf_abort_rebuild = 0; in hpt_rebuild_data_block()
869 if (pArray->u.array.rf_rebuilding) in hpt_rebuild_data_block()
872 pArray->u.array.rf_rebuilding = 0; in hpt_rebuild_data_block()
873 pArray->u.array.rf_duplicate_and_create = 0; in hpt_rebuild_data_block()
876 else if (pArray->u.array.rf_verifying) in hpt_rebuild_data_block()
879 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
882 else if (pArray->u.array.rf_initializing) in hpt_rebuild_data_block()
885 pArray->u.array.rf_initializing = 0; in hpt_rebuild_data_block()
896 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
897 pArray->u.array.rf_need_rebuild = 1; in hpt_rebuild_data_block()
902 if (!pArray->vf_online || pArray->u.array.rf_broken) break; in hpt_rebuild_data_block()
904 pArray->u.array.rf_auto_rebuild = 0; in hpt_rebuild_data_block()
905 pArray->u.array.rf_abort_rebuild = 0; in hpt_rebuild_data_block()
919 pArray->u.array.rf_abort_rebuild = 0; in hpt_rebuild_data_block()
925 pArray->u.array.rf_rebuilding = 0; in hpt_rebuild_data_block()
926 pArray->u.array.rf_duplicate_and_create = 0; in hpt_rebuild_data_block()
933 pArray->u.array.rf_initializing = 0; in hpt_rebuild_data_block()
940 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
960 if(needdelete && (pArray->u.array.rf_duplicate_must_done || (flags == INITIALIZE))) in hpt_rebuild_data_block()