| /netbsd/src/sys/dev/raidframe/ |
| D | rf_reconmap.c | 135 RF_SectorNum_t startSector, RF_SectorNum_t stopSector) in rf_ReconMapUpdate() argument 147 RF_ASSERT(startSector >= 0 && stopSector < mapPtr->sectorsInDisk && in rf_ReconMapUpdate() 148 stopSector >= startSector); in rf_ReconMapUpdate() 150 while (startSector <= stopSector) { in rf_ReconMapUpdate() 151 i = startSector / mapPtr->sectorsPerReconUnit; in rf_ReconMapUpdate() 203 if (p == RU_NOTHING || p->startSector > startSector) { in rf_ReconMapUpdate() 206 …mapPtr->status[ru] = MakeReconMapListElem(mapPtr,startSector, RF_MIN(stopSector, last_in_RU), (p =… in rf_ReconMapUpdate() 212 } while (p && (p->startSector < startSector)); in rf_ReconMapUpdate() 213 … pt->next = MakeReconMapListElem(mapPtr,startSector, RF_MIN(stopSector, last_in_RU), p); in rf_ReconMapUpdate() 218 startSector = RF_MIN(stopSector, last_in_RU) + 1; in rf_ReconMapUpdate() [all …]
|
| D | rf_evenodd_dagfuncs.c | 113 int ESUOffset = rf_StripeUnitOffset(layoutPtr, EPDA->startSector); in rf_RegularONEFunc() 135 suoffset = rf_StripeUnitOffset(layoutPtr, pda->startSector); in rf_RegularONEFunc() 207 suoffset = rf_StripeUnitOffset(layoutPtr, pda->startSector); in rf_RegularESubroutine() 248 … int i, suoffset, failedSUOffset = rf_StripeUnitOffset(layoutPtr, failedPDA->startSector); in rf_DegrESubroutine() 258 suoffset = rf_StripeUnitOffset(layoutPtr, pda->startSector); in rf_DegrESubroutine() 396 int suoffset, failedSUOffset = rf_StripeUnitOffset(layoutPtr, failedPDA->startSector); in rf_RecoveryEFunc() 414 suoffset = rf_StripeUnitOffset(layoutPtr, pda->startSector); in rf_RecoveryEFunc() 650 RF_SectorNum_t startSector, endSector; in rf_EvenOddDoubleRecoveryFunc() local 681 psuoff = rf_StripeUnitOffset(layoutPtr, ppda->startSector); in rf_EvenOddDoubleRecoveryFunc() 682 esuoff = rf_StripeUnitOffset(layoutPtr, epda->startSector); in rf_EvenOddDoubleRecoveryFunc() [all …]
|
| D | rf_raid5.c | 195 … rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, failedPDA->startSector) : 0 in rf_RaidFiveDagSelect() 200 RF_SectorNum_t oo = failedPDA->startSector; in rf_RaidFiveDagSelect() 210 … &failedPDA->col, &failedPDA->startSector, RF_REMAP); in rf_RaidFiveDagSelect() 215 … RF_SectorNum_t SUoffs = p->startSector % layoutPtr->sectorsPerStripeUnit; in rf_RaidFiveDagSelect() 217 … p->startSector = rf_RaidAddressOfPrevStripeUnitBoundary(layoutPtr, failedPDA->startSector) + in rf_RaidFiveDagSelect() 230 … &failedPDA->col, &failedPDA->startSector, RF_REMAP); in rf_RaidFiveDagSelect() 262 (long) failedPDA->startSector); in rf_RaidFiveDagSelect()
|
| D | rf_map.c | 171 &(pda_p->startSector), in rf_MapAccess() 207 &(pda_p->col), &(pda_p->startSector), remap); in rf_MapAccess() 229 &(pda_p->col), &(pda_p->startSector), remap); in rf_MapAccess() 231 &(pda_q->col), &(pda_q->startSector), remap); in rf_MapAccess() 711 (int) asmap->parityInfo->startSector, in rf_PrintFullAccessStripeMap() 712 (int) (asmap->parityInfo->startSector + in rf_PrintFullAccessStripeMap() 718 (int) asmap->parityInfo->next->startSector, in rf_PrintFullAccessStripeMap() 719 (int) (asmap->parityInfo->next->startSector + in rf_PrintFullAccessStripeMap() 728 printf("SU c%d s%d-%d ", p->col, (int) p->startSector, in rf_PrintFullAccessStripeMap() 729 (int) (p->startSector + p->numSector - 1)); in rf_PrintFullAccessStripeMap() [all …]
|
| D | rf_dagdegrd.c | 427 parityPDA->startSector = ((asmap->parityInfo->startSector / sectorsPerSU) in rf_CreateDegradedReadDAG() 428 * sectorsPerSU) + (failedPDA->startSector % sectorsPerSU); in rf_CreateDegradedReadDAG() 724 fone_start = rf_StripeUnitOffset(layoutPtr, fone->startSector); in rf_DD_GenerateFailedAccessASMs() 731 pda_p->startSector = ((asmap->if->startSector / secPerSU) * secPerSU) + start; \ in rf_DD_GenerateFailedAccessASMs() 749 ftwo_start = rf_StripeUnitOffset(layoutPtr, ftwo->startSector); in rf_DD_GenerateFailedAccessASMs() 791 suoff = rf_StripeUnitOffset(layoutPtr, pda_p->startSector); in rf_DD_GenerateFailedAccessASMs() 839 …Ptr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0); in rf_DD_GenerateFailedAccessASMs() 847 pda_p->startSector += fone_start; in rf_DD_GenerateFailedAccessASMs() 857 pda_p->startSector += fone_start; in rf_DD_GenerateFailedAccessASMs() 862 …Ptr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0); in rf_DD_GenerateFailedAccessASMs() [all …]
|
| D | rf_stripelocks.h | 92 …(_lrd).start = (_asm)->parityInfo->startSector; … 93 …(_lrd).stop = (_asm)->parityInfo->startSector + (_asm)->parityInfo->numSector-1; … 95 …(_lrd).start2 = (_asm)->parityInfo->next->startSector; … 96 …(_lrd).stop2 = (_asm)->parityInfo->next->startSector + (_asm)->parityInfo->next->numSector-1; …
|
| D | rf_dagutils.c | 514 (long) pda->startSector, (int) pda->numSector, (long) bufPtr, in rf_PrintNodeInfoString() 526 (long) pda->startSector, (int) pda->numSector); in rf_PrintNodeInfoString() 536 pda->col, (long) pda->startSector, in rf_PrintNodeInfoString() 928 pda->startSector)) { in rf_redirect_asm() 936 &pda->col, &pda->startSector, RF_REMAP); in rf_redirect_asm() 946 … if (!rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, pda->startSector)) { in rf_redirect_asm() 953 …aidPtr->Layout.map->MapParity) (raidPtr, pda->raidAddress, &pda->col, &pda->startSector, RF_REMAP); in rf_redirect_asm() 1033 RF_SectorNum_t soffs = rf_StripeUnitOffset(layoutPtr, src->startSector); in rf_PDAOverlap() 1034 RF_SectorNum_t doffs = rf_StripeUnitOffset(layoutPtr, dest->startSector); in rf_PDAOverlap() 1036 … RF_SectorNum_t send = rf_StripeUnitOffset(layoutPtr, src->startSector + src->numSector - 1); in rf_PDAOverlap() [all …]
|
| D | rf_dagdegwr.c | 366 parityPDA->startSector = ((asmap->parityInfo->startSector / sectorsPerSU) in rf_CommonCreateSimpleDegradedWriteDAG() 367 * sectorsPerSU) + (failedPDA->startSector % sectorsPerSU); in rf_CommonCreateSimpleDegradedWriteDAG() 387 parityPDA->startSector = ((asmap->qInfo->startSector / sectorsPerSU) in rf_CommonCreateSimpleDegradedWriteDAG() 388 * sectorsPerSU) + (failedPDA->startSector % sectorsPerSU); in rf_CommonCreateSimpleDegradedWriteDAG() 564 pda_p->startSector = ((asmap->if->startSector / secPerSU) * secPerSU) + start; \ 594 fone_start = rf_StripeUnitOffset(layoutPtr, fone->startSector); in rf_WriteGenerateFailedAccessASMs() 609 ftwo_start = rf_StripeUnitOffset(layoutPtr, ftwo->startSector); in rf_WriteGenerateFailedAccessASMs() 664 …Ptr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0); in rf_WriteGenerateFailedAccessASMs() 672 pda_p->startSector += fone_start; in rf_WriteGenerateFailedAccessASMs() 682 pda_p->startSector += fone_start; in rf_WriteGenerateFailedAccessASMs() [all …]
|
| D | rf_paritylogging.c | 754 RF_SectorNum_t * startSector) in rf_MapLogParityLogging() argument 757 *startSector = raidPtr->regionInfo[regionID].regionStartAddr + regionOffset; in rf_MapLogParityLogging() 768 RF_SectorNum_t * startSector, in rf_MapRegionParity() argument 772 *startSector = raidPtr->regionInfo[regionID].parityStartAddr; in rf_MapRegionParity() 839 … rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, failedPDA->startSector) : 0 in rf_ParityLoggingDagSelect() 843 RF_SectorNum_t oo = failedPDA->startSector; in rf_ParityLoggingDagSelect() 852 … &failedPDA->col, &failedPDA->startSector, RF_REMAP); in rf_ParityLoggingDagSelect() 857 … RF_SectorNum_t SUoffs = p->startSector % layoutPtr->sectorsPerStripeUnit; in rf_ParityLoggingDagSelect() 859 … p->startSector = rf_RaidAddressOfPrevStripeUnitBoundary(layoutPtr, failedPDA->startSector) + in rf_ParityLoggingDagSelect() 872 … &failedPDA->col, &failedPDA->startSector, RF_REMAP); in rf_ParityLoggingDagSelect() [all …]
|
| D | rf_parityscan.c | 344 … if (rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, pda->startSector)) { in rf_TryToRedirectPDA() 349 RF_SectorNum_t os = pda->startSector; in rf_TryToRedirectPDA() 352 …aidPtr->Layout.map->MapParity) (raidPtr, pda->raidAddress, &pda->col, &pda->startSector, RF_REMAP); in rf_TryToRedirectPDA() 356 … oc, (long) os, pda->col, (long) pda->startSector); in rf_TryToRedirectPDA() 359 …aidPtr->Layout.map->MapSector) (raidPtr, pda->raidAddress, &pda->col, &pda->startSector, RF_REMAP); in rf_TryToRedirectPDA() 363 … oc, (long) os, pda->col, (long) pda->startSector); in rf_TryToRedirectPDA()
|
| D | rf_pq.c | 273 qpbuf = qbuf + rf_RaidAddressToByte(raidPtr, old->startSector % secPerSU); in rf_RegularONQFunc() 379 qpbuf = qbuf + rf_RaidAddressToByte(raidPtr, old->startSector % secPerSU); in RegularQSubr() 411 fail_start = old->startSector % secPerSU; in DegrQSubr() 427 j = old->startSector % secPerSU; in DegrQSubr() 538 … RF_RaidAddr_t suoffset, failedSUOffset = rf_StripeUnitOffset(layoutPtr, failedPDA->startSector); in rf_RecoveryQFunc() 552 suoffset = rf_StripeUnitOffset(layoutPtr, pda->startSector); in rf_RecoveryQFunc() 560 …coeff = (rf_RaidAddressToStripeUnitID(&(raidPtr->Layout), failedPDA->startSector) % raidPtr->Layou… in rf_RecoveryQFunc() 606 fail_start = old->startSector % secPerSU; in rf_PQ_DegradedWriteQFunc() 620 j = old->startSector % secPerSU; in rf_PQ_DegradedWriteQFunc()
|
| D | rf_paritylogging.h | 53 RF_SectorNum_t * startSector); 56 RF_RowCol_t * col, RF_SectorNum_t * startSector,
|
| D | rf_pqdegdags.c | 127 RF_RaidAddr_t s0off = rf_StripeUnitOffset(layoutPtr, ppda->startSector); in applyPDA() 136 suoffset = rf_StripeUnitOffset(layoutPtr, pda->startSector); in applyPDA() 249 … (raidPtr->Layout.map->MapSector) (raidPtr, npda.raidAddress, &(npda.col), &(npda.startSector), 0); in rf_PQDoubleRecoveryFunc() 330 … (raidPtr->Layout.map->MapSector) (raidPtr, npda.raidAddress, &(npda.col), &(npda.startSector), 0); in rf_PQWriteDoubleRecoveryFunc()
|
| D | rf_paritylog.c | 302 data->regionID = rf_MapRegionIDParityLogging(raidPtr, diskAddress->startSector); in rf_CreateParityLogData() 303 …f (data->regionID == rf_MapRegionIDParityLogging(raidPtr, diskAddress->startSector + diskAddress->… in rf_CreateParityLogData() 315 …while (data->regionID == rf_MapRegionIDParityLogging(raidPtr, diskAddress->startSector + boundary)) in rf_CreateParityLogData() 325 diskAddress->startSector += boundary; in rf_CreateParityLogData() 807 …RF_ASSERT(log->records[logItem].parityAddr.startSector >= raidPtr->regionInfo[regionID].parityStar… in rf_ParityLogAppend() 808 …RF_ASSERT(log->records[logItem].parityAddr.startSector < raidPtr->regionInfo[regionID].parityStart… in rf_ParityLogAppend() 813 item->diskAddress.startSector++; in rf_ParityLogAppend()
|
| D | rf_dagfuncs.c | 276 req = rf_CreateDiskQueueData(iotype, pda->startSector, pda->numSector, in rf_DiskReadFuncForThreads() 306 req = rf_CreateDiskQueueData(iotype, pda->startSector, pda->numSector, in rf_DiskWriteFuncForThreads() 484 int suoffset, failedSUOffset = rf_StripeUnitOffset(layoutPtr, failedPDA->startSector); in rf_RecoveryXorFunc() 499 suoffset = rf_StripeUnitOffset(layoutPtr, pda->startSector); in rf_RecoveryXorFunc() 532 int SUOffset = pda->startSector % sectPerSU; in rf_XorIntoBuffer()
|
| D | rf_paritylogDiskMgr.c | 139 &((*rrd_pda)->col), &((*rrd_pda)->startSector)); in ReadRegionLog() 191 &((*fwr_pda)->startSector)); in WriteCoreLog() 237 &((*prd_pda)->col), &((*prd_pda)->startSector), in ReadRegionParity() 292 &((*pwr_pda)->col), &((*pwr_pda)->startSector), in WriteRegionParity()
|
| D | rf_reconmap.h | 73 RF_SectorNum_t startSector; /* bounding sect nums on this block */ member
|
| D | rf_raid1.c | 210 … rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, failedPDA->startSector) : 0 in rf_RAID1DagSelect() 214 oo = failedPDA->startSector; in rf_RAID1DagSelect() 240 (long) failedPDA->startSector); in rf_RAID1DagSelect()
|
| D | rf_layout.h | 103 RF_SectorNum_t startSector; /* sector offset into the disk */ member
|