Home
last modified time | relevance | path

Searched refs:reconControl (Results 1 – 15 of 15) sorted by relevance

/netbsd/src/sys/dev/raidframe/
Drf_reconstruct.c603 raidPtr->reconControl = tmp_reconctrl; in rf_ContinueReconstructFailedDisk()
604 mapPtr = raidPtr->reconControl->reconMap; in rf_ContinueReconstructFailedDisk()
605 raidPtr->reconControl->numRUsTotal = mapPtr->totalRUs; in rf_ContinueReconstructFailedDisk()
606 raidPtr->reconControl->numRUsComplete = 0; in rf_ContinueReconstructFailedDisk()
613 RF_GETTIME(raidPtr->reconControl->starttime); in rf_ContinueReconstructFailedDisk()
619 mapPtr = raidPtr->reconControl->reconMap; in rf_ContinueReconstructFailedDisk()
627 raidPtr->reconControl->lastPSID = incPSID - 1; in rf_ContinueReconstructFailedDisk()
633 if (raidPtr->reconControl->lastPSID > lastPSID) in rf_ContinueReconstructFailedDisk()
634 raidPtr->reconControl->lastPSID = lastPSID; in rf_ContinueReconstructFailedDisk()
679 startPSID = raidPtr->reconControl->lastPSID - pending_writes + 1; in rf_ContinueReconstructFailedDisk()
[all …]
Drf_psstatus.h59 rf_lock_mutex2((_raidPtr)->reconControl->pssTable[ RF_HASH_PSID(_raidPtr,_psid) ].mutex); \
60 while((_raidPtr)->reconControl->pssTable[ RF_HASH_PSID(_raidPtr,_psid) ].lock) { \
61 rf_wait_cond2((_raidPtr)->reconControl->pssTable[ RF_HASH_PSID(_raidPtr,_psid) ].cond,\
62 … (_raidPtr)->reconControl->pssTable[ RF_HASH_PSID(_raidPtr,_psid) ].mutex);\
64 (_raidPtr)->reconControl->pssTable[ RF_HASH_PSID(_raidPtr,_psid) ].lock = 1; \
65 rf_unlock_mutex2((_raidPtr)->reconControl->pssTable[ RF_HASH_PSID(_raidPtr,_psid) ].mutex);\
69 rf_lock_mutex2((_raidPtr)->reconControl->pssTable[ RF_HASH_PSID(_raidPtr,_psid) ].mutex); \
70 (_raidPtr)->reconControl->pssTable[ RF_HASH_PSID(_raidPtr,_psid) ].lock = 0; \
71 rf_broadcast_cond2((_raidPtr)->reconControl->pssTable[ RF_HASH_PSID(_raidPtr,_psid) ].cond); \
72 rf_unlock_mutex2((_raidPtr)->reconControl->pssTable[ RF_HASH_PSID(_raidPtr,_psid) ].mutex);
Drf_reconutil.c160 RF_ReconCtrl_t *reconCtrlPtr = raidPtr->reconControl; in rf_FreeReconControl()
273 rf_lock_mutex2(raidPtr->reconControl->rb_mutex);
274 pssTable = raidPtr->reconControl->pssTable;
297 for (rbuf = raidPtr->reconControl->floatingRbufs; rbuf;
302 for (rbuf = raidPtr->reconControl->committedRbufs; rbuf;
307 for (rbuf = raidPtr->reconControl->fullBufferList; rbuf;
315 rf_unlock_mutex2(raidPtr->reconControl->rb_mutex);
Drf_revent.c85 RF_ReconCtrl_t *rctrl = raidPtr->reconControl; in rf_GetNextReconEvent()
170 RF_ReconCtrl_t *rctrl = raidPtr->reconControl; in rf_CauseReconEvent()
209 RF_ReconCtrl_t *rctrl = reconDesc->raidPtr->reconControl; in rf_DrainReconEventQueue()
Drf_psstatus.c225 … RF_PSStatusHeader_t *hdr = &(raidPtr->reconControl->pssTable[RF_HASH_PSID(raidPtr, psid)]); in rf_RemoveFromActiveReconTable()
331 RF_PSStatusHeader_t *pssTable = raidPtr->reconControl->pssTable; in rf_PrintPSStatusTable()
Drf_reconbuffer.c124 RF_ReconCtrl_t *reconCtrlPtr = raidPtr->reconControl; in rf_SubmitReconBufferBasic()
401 RF_ReconCtrl_t *rcPtr = raidPtr->reconControl; in rf_ReleaseFloatingReconBuffer()
Drf_raid.h194 RF_ReconCtrl_t *reconControl; /* reconstruction control structure member
Drf_dagutils.c918 int fcol = raidPtr->reconControl->fcol; in rf_redirect_asm()
919 int scol = raidPtr->reconControl->spareCol; in rf_redirect_asm()
927 … if (!rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, in rf_redirect_asm()
946 … if (!rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, pda->startSector)) { in rf_redirect_asm()
Drf_raid1.c210 … rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, failedPDA->startSector) : 0 in rf_RAID1DagSelect()
567 reconCtrlPtr = raidPtr->reconControl; in rf_SubmitReconBufferRAID1()
Drf_raid5.c195 … rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, failedPDA->startSector) : 0 in rf_RaidFiveDagSelect()
Drf_map.c629 RF_ASSERT(raidPtr->reconControl->fcol == diskids[i]); in rf_CheckStripeForFailures()
634 … if (!rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, diskOffset)) in rf_CheckStripeForFailures()
Drf_parityscan.c344 … if (rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, pda->startSector)) { in rf_TryToRedirectPDA()
Drf_netbsdkintf.c1550 if (raidPtr->reconControl->numRUsTotal == 0) { in rf_check_recon_status()
1554 *data = (raidPtr->reconControl->numRUsComplete * 100 in rf_check_recon_status()
1555 / raidPtr->reconControl->numRUsTotal); in rf_check_recon_status()
3944 info->total = raidPtr->reconControl->numRUsTotal; in rf_check_recon_status_ext()
3945 info->completed = raidPtr->reconControl->numRUsComplete; in rf_check_recon_status_ext()
Drf_driver.c352 raidPtr->reconControl = NULL; in rf_Configure()
Drf_paritylogging.c839 … rf_CheckRUReconstructed(raidPtr->reconControl->reconMap, failedPDA->startSector) : 0 in rf_ParityLoggingDagSelect()