Lines Matching refs:array

125 			memcpy(e.Data, ((PVDevice)param)->u.array.ArrayName, MAX_ARRAY_NAME);  in ioctl_ReportEvent()
172 if (pArray->u.array.rf_rebuilding || pArray->u.array.rf_verifying || in hpt_delete_array()
173 pArray->u.array.rf_initializing) in hpt_delete_array()
176 for(i=0; i<pArray->u.array.bArnMember; i++) { in hpt_delete_array()
177 pa = pArray->u.array.pMember[i]; in hpt_delete_array()
179 if (pa->u.array.rf_rebuilding || pa->u.array.rf_verifying || in hpt_delete_array()
180 pa->u.array.rf_initializing) in hpt_delete_array()
388 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl()
409 (ID_TO_VDEV(*(DEVICEID *)lpOutBuffer))->u.array.rf_auto_rebuild = 0; in Kernel_DeviceIoControl()
423 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()
429 while (!pArray->u.array.rf_rebuilding) in Kernel_DeviceIoControl()
466 if(!pVDevice->vf_online || pVDevice->u.array.rf_broken) return -1; in hpt_set_array_state()
475 if (pVDevice->u.array.rf_rebuilding || in hpt_set_array_state()
476 pVDevice->u.array.rf_verifying || in hpt_set_array_state()
477 pVDevice->u.array.rf_initializing) { in hpt_set_array_state()
482 pVDevice->u.array.rf_auto_rebuild = 0; in hpt_set_array_state()
483 pVDevice->u.array.rf_abort_rebuild = 0; in hpt_set_array_state()
486 …(UCHAR)((pVDevice->u.array.CriticalMembers || pVDevice->VDeviceType == VD_RAID_1)? DUPLICATE : REB… in hpt_set_array_state()
488 while (!pVDevice->u.array.rf_rebuilding) in hpt_set_array_state()
501 for(i = 0; i < pVDevice->u.array.bArnMember; i++) { in hpt_set_array_state()
502 if(pVDevice->u.array.pMember[i] != 0 && pVDevice->u.array.pMember[i]->VDeviceType == VD_RAID_1) in hpt_set_array_state()
503 hpt_set_array_state(VDEV_TO_ID(pVDevice->u.array.pMember[i]), state); in hpt_set_array_state()
507 if(pVDevice->u.array.rf_rebuilding != 1) { in hpt_set_array_state()
512 pVDevice->u.array.rf_abort_rebuild = 1; in hpt_set_array_state()
514 while (pVDevice->u.array.rf_abort_rebuild) in hpt_set_array_state()
529 if (pVDevice->u.array.rf_rebuilding || in hpt_set_array_state()
530 pVDevice->u.array.rf_verifying || in hpt_set_array_state()
531 pVDevice->u.array.rf_initializing) { in hpt_set_array_state()
536 pVDevice->u.array.RebuildSectors = 0; in hpt_set_array_state()
539 while (!pVDevice->u.array.rf_verifying) in hpt_set_array_state()
552 if(pVDevice->u.array.rf_verifying != 1) { in hpt_set_array_state()
557 pVDevice->u.array.rf_abort_rebuild = 1; in hpt_set_array_state()
559 while (pVDevice->u.array.rf_abort_rebuild) in hpt_set_array_state()
572 if (pVDevice->u.array.rf_rebuilding || in hpt_set_array_state()
573 pVDevice->u.array.rf_verifying || in hpt_set_array_state()
574 pVDevice->u.array.rf_initializing) { in hpt_set_array_state()
581 while (!pVDevice->u.array.rf_initializing) in hpt_set_array_state()
594 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()
601 while (pVDevice->u.array.rf_abort_rebuild) in hpt_set_array_state()
692 ULONG capacity = pArray->VDeviceCapacity / (pArray->u.array.bArnMember-1); in hpt_rebuild_data_block()
700 if (pArray->u.array.rf_broken==1 || in hpt_rebuild_data_block()
701 pArray->u.array.RebuildSectors>=capacity) in hpt_rebuild_data_block()
710 if(pArray->u.array.rf_rebuilding == 0) in hpt_rebuild_data_block()
712 pArray->u.array.rf_rebuilding = 1; in hpt_rebuild_data_block()
719 if(pArray->u.array.rf_initializing == 0) in hpt_rebuild_data_block()
721 pArray->u.array.rf_initializing = 1; in hpt_rebuild_data_block()
728 if(pArray->u.array.rf_verifying == 0) in hpt_rebuild_data_block()
730 pArray->u.array.rf_verifying = 1; in hpt_rebuild_data_block()
772 pCmd->uCmd.R1Control.Lba = pArray->u.array.RebuildSectors; in hpt_rebuild_data_block()
774 if (capacity - pArray->u.array.RebuildSectors < pCmd->uCmd.R1Control.nSectors) in hpt_rebuild_data_block()
775 pCmd->uCmd.R1Control.nSectors = capacity - pArray->u.array.RebuildSectors; in hpt_rebuild_data_block()
792 pCmd->uCmd.R5Control.StripeLine=pArray->u.array.RebuildSectors>>pArray->u.array.bArBlockSizeShift; in hpt_rebuild_data_block()
818 if (!pArray->u.array.rf_abort_rebuild) in hpt_rebuild_data_block()
820 if(pArray->u.array.RebuildSectors < capacity) in hpt_rebuild_data_block()
831 pArray->u.array.rf_rebuilding = 0; in hpt_rebuild_data_block()
832 pArray->u.array.rf_need_rebuild = 0; in hpt_rebuild_data_block()
833 pArray->u.array.CriticalMembers = 0; in hpt_rebuild_data_block()
834 pArray->u.array.RebuildSectors = MAX_LBA_T; in hpt_rebuild_data_block()
835 pArray->u.array.rf_duplicate_and_create = 0; in hpt_rebuild_data_block()
841 pArray->u.array.rf_initializing = 0; in hpt_rebuild_data_block()
842 pArray->u.array.rf_need_rebuild = 0; in hpt_rebuild_data_block()
843 pArray->u.array.RebuildSectors = MAX_LBA_T; in hpt_rebuild_data_block()
848 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
857 pArray->u.array.rf_abort_rebuild = 0; in hpt_rebuild_data_block()
858 if (pArray->u.array.rf_rebuilding) in hpt_rebuild_data_block()
861 pArray->u.array.rf_rebuilding = 0; in hpt_rebuild_data_block()
862 pArray->u.array.rf_duplicate_and_create = 0; in hpt_rebuild_data_block()
865 else if (pArray->u.array.rf_verifying) in hpt_rebuild_data_block()
868 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
871 else if (pArray->u.array.rf_initializing) in hpt_rebuild_data_block()
874 pArray->u.array.rf_initializing = 0; in hpt_rebuild_data_block()
885 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
886 pArray->u.array.rf_need_rebuild = 1; in hpt_rebuild_data_block()
891 if (!pArray->vf_online || pArray->u.array.rf_broken) break; in hpt_rebuild_data_block()
893 pArray->u.array.rf_auto_rebuild = 0; in hpt_rebuild_data_block()
894 pArray->u.array.rf_abort_rebuild = 0; in hpt_rebuild_data_block()
908 pArray->u.array.rf_abort_rebuild = 0; in hpt_rebuild_data_block()
914 pArray->u.array.rf_rebuilding = 0; in hpt_rebuild_data_block()
915 pArray->u.array.rf_duplicate_and_create = 0; in hpt_rebuild_data_block()
922 pArray->u.array.rf_initializing = 0; in hpt_rebuild_data_block()
929 pArray->u.array.rf_verifying = 0; in hpt_rebuild_data_block()
946 if(needdelete && (pArray->u.array.rf_duplicate_must_done || (flags == INITIALIZE))) in hpt_rebuild_data_block()