Lines Matching refs:DiskMirror
90 DISK_MIRROR DiskMirror[2]; // RAID status and control member
178 static DISK_MIRROR DiskMirror[BIGD_MAXDRIVES]; variable
1000 …((ULONG *)(&pdev->DiskMirror[index]))[0] = ((ULONG *)(&padapter->kBuffer[DISK_MIRROR_POSITION]))[0… in InlineReadSignature()
1001 …((ULONG *)(&pdev->DiskMirror[index]))[1] = ((ULONG *)(&padapter->kBuffer[DISK_MIRROR_POSITION]))[1… in InlineReadSignature()
1093 …((ULONG *)(&padapter->kBuffer[DISK_MIRROR_POSITION]))[0] = ((ULONG *)(&pdev->DiskMirror[index]))[0… in WriteSignature()
1094 …((ULONG *)(&padapter->kBuffer[DISK_MIRROR_POSITION]))[1] = ((ULONG *)(&pdev->DiskMirror[index]))[1… in WriteSignature()
1119 if ( pdev->DiskMirror[padapter->survivor].status & UCBF_REBUILD ) in InitFailover()
1132 pdev->DiskMirror[padapter->survivor].status = UCBF_MIRRORED | UCBF_SURVIVOR; //clear present status in InitFailover()
1313 pdev->DiskMirror[index].status = UCBF_MIRRORED; // setup the flags in SetReconstruct()
1314 pdev->DiskMirror[index ^ 1].status = UCBF_MIRRORED | UCBF_REBUILD; in SetReconstruct()
1315 pdev->DiskMirror[index ^ 1].reconstructPoint = 0; // start the reconstruct in SetReconstruct()
1317 return pdev->DiskMirror[index].reconstructPoint; in SetReconstruct()
1383 …while ( (pdev->DiskMirror[0].signature == SIGNATURE) && (pdev->DiskMirror[1].signature == SIGNATUR… in ReconTimerExpiry()
1384 (pdev->DiskMirror[0].pairIdentifier == (pdev->DiskMirror[1].pairIdentifier ^ 1)) ) in ReconTimerExpiry()
1386 if ( (pdev->DiskMirror[0].status & UCBF_MATCHED) && (pdev->DiskMirror[1].status & UCBF_MATCHED) ) in ReconTimerExpiry()
1389 if ( pdev->DiskMirror[0].status & UCBF_SURVIVOR ) // is first drive survivor? in ReconTimerExpiry()
1392 if ( pdev->DiskMirror[1].status & UCBF_SURVIVOR ) // is second drive survivor? in ReconTimerExpiry()
1395 if ( (pdev->DiskMirror[0].status & UCBF_REBUILD) || (pdev->DiskMirror[1].status & UCBF_REBUILD) ) in ReconTimerExpiry()
1397 if ( pdev->DiskMirror[0].status & UCBF_REBUILD ) in ReconTimerExpiry()
1520 zl = pdev->DiskMirror[pdev->mirrorRecon].reconstructPoint; in ReconTimerExpiry()
1521 padapter->reconSize = pdev->DiskMirror[pdev->mirrorRecon ^ 1].reconstructPoint - zl; in ReconTimerExpiry()
1558 pdev->DiskMirror[pdev->mirrorRecon].status = UCBF_MIRRORED | UCBF_MATCHED; in ReconTimerExpiry()
1559 pdev->DiskMirror[pdev->mirrorRecon ^ 1].status = UCBF_MIRRORED | UCBF_MATCHED; in ReconTimerExpiry()
1803 pdev->DiskMirror[pdev->mirrorRecon].reconstructPoint += padapter->reconSize; in Irq_Handler()
1837 if ( padapter->device[z].DiskMirror[0].status & UCBF_SURVIVOR ) in Irq_Handler()
1842 if ( padapter->device[z].DiskMirror[1].status & UCBF_SURVIVOR ) in Irq_Handler()
2163 …if ( ((pdev->DiskMirror[0].status & UCBF_SURVIVOR) && (pdev->DiskMirror[1].status & UCBF_MIRRORED)… in Pci2220i_QueueCommand()
2164 … ((pdev->DiskMirror[1].status & UCBF_SURVIVOR) && (pdev->DiskMirror[0].status & UCBF_MIRRORED)) ) in Pci2220i_QueueCommand()
2254 (pdev->DiskMirror[0].status & UCBF_SURVIVOR) || in Pci2220i_QueueCommand()
2255 (pdev->DiskMirror[1].status & UCBF_SURVIVOR) ) in Pci2220i_QueueCommand()
2259 if ( pdev->DiskMirror[0].status & UCBF_REBUILD ) in Pci2220i_QueueCommand()
2387 memset (DiskMirror, 0, sizeof (DiskMirror)); in GetRegs()
2489 ReadFlash (padapter, &DiskMirror, DALE_FLASH_RAID, sizeof (DiskMirror)); in GetRegs()
2571 DiskMirror[0].status = inb_p (padapter->regScratchPad + DALE_RAID_0_STATUS); in Pci2220i_Detect()
2572 DiskMirror[1].status = inb_p (padapter->regScratchPad + DALE_RAID_1_STATUS); in Pci2220i_Detect()
2573 if ( (DiskMirror[0].signature == SIGNATURE) && (DiskMirror[1].signature == SIGNATURE) && in Pci2220i_Detect()
2574 (DiskMirror[0].pairIdentifier == (DiskMirror[1].pairIdentifier ^ 1)) ) in Pci2220i_Detect()
2583 memcpy (pdev->DiskMirror, DiskMirror, sizeof (DiskMirror)); in Pci2220i_Detect()
2584 padapter->raidData[0] = &pdev->DiskMirror[0]; in Pci2220i_Detect()
2585 padapter->raidData[2] = &pdev->DiskMirror[1]; in Pci2220i_Detect()
2593 if ( !(pdev->DiskMirror[1].status & UCBF_SURVIVOR) && pdev->lastsectorlba[0] ) in Pci2220i_Detect()
2595 if ( !(pdev->DiskMirror[0].status & UCBF_SURVIVOR) && pdev->lastsectorlba[1] ) in Pci2220i_Detect()
2597 if ( pdev->DiskMirror[0].status & DiskMirror[1].status & UCBF_SURVIVOR ) in Pci2220i_Detect()
2600 if ( spigot1 && (pdev->DiskMirror[0].status & UCBF_REBUILD) ) in Pci2220i_Detect()
2602 if ( spigot2 && (pdev->DiskMirror[1].status & UCBF_REBUILD) ) in Pci2220i_Detect()
2608 if ( pdev->DiskMirror[0].status & UCBF_REBUILD ) in Pci2220i_Detect()
2612 … if ( (pdev->DiskMirror[0].status & UCBF_REBUILD) || (pdev->DiskMirror[1].status & UCBF_REBUILD) ) in Pci2220i_Detect()
2619 if ( pdev->DiskMirror[0].status & UCBF_REBUILD ) in Pci2220i_Detect()
2621 pdev->DiskMirror[0].status = UCBF_MIRRORED | UCBF_SURVIVOR; in Pci2220i_Detect()
2626 if ( pdev->DiskMirror[1].status & UCBF_REBUILD ) in Pci2220i_Detect()
2628 pdev->DiskMirror[1].status = UCBF_MIRRORED | UCBF_SURVIVOR; in Pci2220i_Detect()
2658 DiskMirror[z].status = inb_p (padapter->regScratchPad + BIGD_RAID_0_STATUS + z); in Pci2220i_Detect()
2674 … if ( (DiskMirror[unit].signature == SIGNATURE) && (DiskMirror[unit ^ 2].signature == SIGNATURE) && in Pci2220i_Detect()
2675 (DiskMirror[unit].pairIdentifier == (DiskMirror[unit ^ 2].pairIdentifier ^ 1)) ) in Pci2220i_Detect()
2685 memcpy (&pdev->DiskMirror[0], &DiskMirror[unit], sizeof (DISK_MIRROR)); in Pci2220i_Detect()
2686 memcpy (&pdev->DiskMirror[1], &DiskMirror[unit ^ 2], sizeof (DISK_MIRROR)); in Pci2220i_Detect()
2687 padapter->raidData[unit] = &pdev->DiskMirror[0]; in Pci2220i_Detect()
2688 padapter->raidData[unit ^ 2] = &pdev->DiskMirror[1]; in Pci2220i_Detect()
2696 if ( !(pdev->DiskMirror[1].status & UCBF_SURVIVOR) && pdev->lastsectorlba[0] ) in Pci2220i_Detect()
2698 if ( !(pdev->DiskMirror[0].status & UCBF_SURVIVOR) && pdev->lastsectorlba[1] ) in Pci2220i_Detect()
2700 if ( pdev->DiskMirror[0].status & pdev->DiskMirror[1].status & UCBF_SURVIVOR ) in Pci2220i_Detect()
2703 if ( spigot1 && (pdev->DiskMirror[0].status & UCBF_REBUILD) ) in Pci2220i_Detect()
2705 if ( spigot2 && (pdev->DiskMirror[1].status & UCBF_REBUILD) ) in Pci2220i_Detect()
2711 if ( pdev->DiskMirror[0].status & UCBF_REBUILD ) in Pci2220i_Detect()
2715 … if ( (pdev->DiskMirror[0].status & UCBF_REBUILD) || (pdev->DiskMirror[1].status & UCBF_REBUILD) ) in Pci2220i_Detect()
2722 if ( pdev->DiskMirror[0].status & UCBF_REBUILD ) in Pci2220i_Detect()
2724 pdev->DiskMirror[0].status = UCBF_MIRRORED | UCBF_SURVIVOR; in Pci2220i_Detect()
2729 if ( pdev->DiskMirror[1].status & UCBF_REBUILD ) in Pci2220i_Detect()
2731 pdev->DiskMirror[1].status = UCBF_MIRRORED | UCBF_SURVIVOR; in Pci2220i_Detect()
2882 outb_p (padapter->device[0].DiskMirror[0].status, padapter->regScratchPad + DALE_RAID_0_STATUS); in Pci2220i_Release()
2883 outb_p (padapter->device[0].DiskMirror[1].status, padapter->regScratchPad + DALE_RAID_1_STATUS); in Pci2220i_Release()