/netbsd-src/sys/dev/raidframe/ |
H A D | rf_evenodd_dags.c | 63 rf_CreateDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList, &rf_eoPRecoveryFuncs); in RF_CREATE_DAG_FUNC_DECL() 71 rf_CreateDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList, &rf_eoPRecoveryFuncs); in RF_CREATE_DAG_FUNC_DECL() 85 rf_CreateDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList, &rf_eoERecoveryFuncs); in RF_CREATE_DAG_FUNC_DECL() 92 rf_EO_DoubleDegRead(raidPtr, asmap, dag_h, bp, flags, allocList); in RF_CREATE_DAG_FUNC_DECL() 99 rf_EOCreateDoubleDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList); in RF_CREATE_DAG_FUNC_DECL() 106 …rf_CommonCreateSimpleDegradedWriteDAG(raidPtr, asmap, dag_h, bp, flags, allocList, 2, rf_Degraded_… in RF_CREATE_DAG_FUNC_DECL() 113 …rf_CommonCreateSmallWriteDAG(raidPtr, asmap, dag_h, bp, flags, allocList, &rf_EOSmallWritePFuncs, … in RF_CREATE_DAG_FUNC_DECL() 120 …rf_CommonCreateLargeWriteDAG(raidPtr, asmap, dag_h, bp, flags, allocList, 1, rf_RegularPFunc, RF_T… in RF_CREATE_DAG_FUNC_DECL() 133 …rf_CommonCreateSmallWriteDAG(raidPtr, asmap, dag_h, bp, flags, allocList, &rf_EOSmallWriteEFuncs, … in RF_CREATE_DAG_FUNC_DECL() 146 …rf_CommonCreateLargeWriteDAG(raidPtr, asmap, dag_h, bp, flags, allocList, 1, rf_RegularEFunc, RF_F… in RF_CREATE_DAG_FUNC_DECL() [all …]
|
H A D | rf_pqdeg.c | 76 rf_CreateDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList, &rf_pRecoveryFuncs); in RF_CREATE_DAG_FUNC_DECL() 87 rf_CreateDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList, &rf_pRecoveryFuncs); in RF_CREATE_DAG_FUNC_DECL() 102 rf_CreateDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList, &rf_qRecoveryFuncs); in RF_CREATE_DAG_FUNC_DECL() 112 rf_PQ_DoubleDegRead(raidPtr, asmap, dag_h, bp, flags, allocList); in RF_CREATE_DAG_FUNC_DECL() 117 rf_CreateDoubleDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList); in RF_CREATE_DAG_FUNC_DECL() 129 flags, allocList, 2, in RF_CREATE_DAG_FUNC_DECL() 142 allocList, &rf_qFuncs, NULL); in RF_CREATE_DAG_FUNC_DECL() 148 allocList, &rf_pFuncs, NULL); in RF_CREATE_DAG_FUNC_DECL() 159 allocList, 1, rf_RegularQFunc, RF_FALSE); in RF_CREATE_DAG_FUNC_DECL() 165 allocList, 1, rf_RegularPFunc, RF_FALSE); in RF_CREATE_DAG_FUNC_DECL() [all …]
|
H A D | rf_dagffwr.h | 38 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList, 43 RF_AllocListElem_t * allocList, RF_IoType_t type); 47 RF_AllocListElem_t * allocList); 51 RF_AllocListElem_t * allocList); 55 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList, int nfaults, 59 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList, int nfaults, 63 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList, 67 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList, 71 RF_AllocListElem_t * allocList); 74 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList);
|
H A D | rf_dagffrd.c | 80 RF_AllocListElem_t *allocList) in rf_CreateFaultFreeReadDAG() argument 82 rf_CreateNonredundantDAG(raidPtr, asmap, dag_h, bp, flags, allocList, in rf_CreateFaultFreeReadDAG() 129 RF_RaidAccessFlags_t flags, RF_AllocListElem_t *allocList, in rf_CreateNonredundantDAG() argument 210 NULL, n, 0, 0, 0, dag_h, "Nil", allocList); in rf_CreateNonredundantDAG() 212 NULL, 1, n, 0, 0, dag_h, "Cmt", allocList); in rf_CreateNonredundantDAG() 214 NULL, 0, 1, 0, 0, dag_h, "Trm", allocList); in rf_CreateNonredundantDAG() 218 NULL, 1, 0, 0, 0, dag_h, "Nil", allocList); in rf_CreateNonredundantDAG() 220 NULL, n, 1, 0, 0, dag_h, "Cmt", allocList); in rf_CreateNonredundantDAG() 222 NULL, 0, n, 0, 0, dag_h, "Trm", allocList); in rf_CreateNonredundantDAG() 232 1, 1, 4, 0, dag_h, name, allocList); in rf_CreateNonredundantDAG() [all …]
|
H A D | rf_parityloggingdags.c | 83 RF_AllocListElem_t * allocList, in rf_CommonCreateParityLoggingLargeWriteDAG() argument 105 nodes = RF_MallocAndAdd((nWndNodes + 6) * sizeof(*nodes), allocList); in rf_CommonCreateParityLoggingLargeWriteDAG() 126 …Stripe(raidPtr, layoutPtr, asmap, dag_h, new_asm_h, &nRodNodes, &sosBuffer, &eosBuffer, allocList); in rf_CommonCreateParityLoggingLargeWriteDAG() 129 allocList); in rf_CommonCreateParityLoggingLargeWriteDAG() 132 …ALSE, rf_NullNodeFunc, rf_NullNodeUndoFunc, NULL, nRodNodes + 1, 0, 0, 0, dag_h, "Nil", allocList); in rf_CommonCreateParityLoggingLargeWriteDAG() 133 …ALSE, rf_NullNodeFunc, rf_NullNodeUndoFunc, NULL, 1, nWndNodes + 1, 0, 0, dag_h, "Nil", allocList); in rf_CommonCreateParityLoggingLargeWriteDAG() 134 …lNodeFunc, rf_NullNodeUndoFunc, NULL, nWndNodes + 1, nRodNodes + 1, 0, 0, dag_h, "Nil", allocList); in rf_CommonCreateParityLoggingLargeWriteDAG() 135 …wait, RF_FALSE, rf_TerminateFunc, rf_TerminateUndoFunc, NULL, 0, 1, 0, 0, dag_h, "Trm", allocList); in rf_CommonCreateParityLoggingLargeWriteDAG() 142 …, rf_DiskReadFunc, rf_DiskReadUndoFunc, rf_GenericWakeupFunc, 1, 1, 4, 0, dag_h, "Rod", allocList); in rf_CommonCreateParityLoggingLargeWriteDAG() 157 …rf_DiskWriteFunc, rf_DiskWriteUndoFunc, rf_GenericWakeupFunc, 1, 1, 4, 0, dag_h, "Wnd", allocList); in rf_CommonCreateParityLoggingLargeWriteDAG() [all …]
|
H A D | rf_dagdegwr.c | 82 flags, allocList, 1, rf_RecoveryXorFunc, RF_TRUE); in RF_CREATE_DAG_FUNC_DECL() 89 RF_AllocListElem_t *allocList) in rf_CreateDegradedWriteDAG() argument 110 allocList); in rf_CreateDegradedWriteDAG() 120 RF_MallocAndAdd(rf_RaidAddressToByte(raidPtr, num), allocList) 161 RF_AllocListElem_t *allocList, in rf_CommonCreateSimpleDegradedWriteDAG() argument 208 &nXorBufs, NULL, overlappingPDAs, allocList); in rf_CommonCreateSimpleDegradedWriteDAG() 290 NULL, nRrdNodes, 0, 0, 0, dag_h, "Nil", allocList); in rf_CommonCreateSimpleDegradedWriteDAG() 292 NULL, nWndNodes + nfaults, 1, 0, 0, dag_h, "Cmt", allocList); in rf_CommonCreateSimpleDegradedWriteDAG() 294 NULL, 1, nWndNodes + nfaults, 0, 0, dag_h, "Nil", allocList); in rf_CommonCreateSimpleDegradedWriteDAG() 296 NULL, 0, 1, 0, 0, dag_h, "Trm", allocList); in rf_CommonCreateSimpleDegradedWriteDAG() [all …]
|
H A D | rf_dagdegrd.h | 38 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList); 42 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList); 46 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList, 51 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList); 56 RF_AllocListElem_t * allocList); 60 RF_AllocListElem_t * allocList, const char *redundantReadNodeName,
|
H A D | rf_dagdegrd.c | 84 RF_AllocListElem_t *allocList) in rf_CreateRaidFiveDegradedReadDAG() argument 86 rf_CreateDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList, in rf_CreateRaidFiveDegradedReadDAG() 119 RF_AllocListElem_t *allocList) in rf_CreateRaidOneDegradedReadDAG() argument 169 NULL, 1, 0, 0, 0, dag_h, "Nil", allocList); in rf_CreateRaidOneDegradedReadDAG() 171 NULL, 1, 1, 0, 0, dag_h, "Cmt", allocList); in rf_CreateRaidOneDegradedReadDAG() 173 NULL, 0, 1, 0, 0, dag_h, "Trm", allocList); in rf_CreateRaidOneDegradedReadDAG() 184 rf_GenericWakeupFunc, 1, 1, 4, 0, dag_h, "Rpd", allocList); in rf_CreateRaidOneDegradedReadDAG() 193 rf_GenericWakeupFunc, 1, 1, 4, 0, dag_h, "Rsd", allocList); in rf_CreateRaidOneDegradedReadDAG() 265 RF_AllocListElem_t *allocList, in rf_CreateDegradedReadDAG() argument 307 &rpBuf, overlappingPDAs, allocList); in rf_CreateDegradedReadDAG() [all …]
|
H A D | rf_dagffwr.c | 83 RF_AllocListElem_t *allocList, in rf_CreateNonRedundantWriteDAG() argument 86 rf_CreateNonredundantDAG(raidPtr, asmap, dag_h, bp, flags, allocList, in rf_CreateNonRedundantWriteDAG() 94 RF_AllocListElem_t *allocList, in rf_CreateRAID0WriteDAG() argument 97 rf_CreateNonredundantDAG(raidPtr, asmap, dag_h, bp, flags, allocList, in rf_CreateRAID0WriteDAG() 105 RF_AllocListElem_t *allocList) in rf_CreateSmallWriteDAG() argument 109 allocList, &rf_xorFuncs, NULL); in rf_CreateSmallWriteDAG() 116 RF_AllocListElem_t *allocList) in rf_CreateLargeWriteDAG() argument 120 allocList, 1, rf_RegularXorFunc, RF_TRUE); in rf_CreateLargeWriteDAG() 129 RF_MallocAndAdd(rf_RaidAddressToByte(raidPtr, num), allocList) 167 RF_AllocListElem_t *allocList, in rf_CommonCreateLargeWriteDAG() argument [all …]
|
H A D | rf_utils.c | 45 rf_make_2d_array(int b, int k, RF_AllocListElem_t *allocList) in rf_make_2d_array() argument 49 retval = RF_MallocAndAdd(b * sizeof(*retval), allocList); in rf_make_2d_array() 51 retval[i] = RF_MallocAndAdd(k * sizeof(*retval[i]), allocList); in rf_make_2d_array() 71 rf_make_1d_array(int c, RF_AllocListElem_t *allocList) in rf_make_1d_array() argument 75 retval = RF_MallocAndAdd(c * sizeof(*retval), allocList); in rf_make_1d_array()
|
H A D | rf_dagffrd.h | 38 RF_AllocListElem_t * allocList); 42 RF_AllocListElem_t * allocList, RF_IoType_t type); 46 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList); 50 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList);
|
H A D | rf_dagdegwr.h | 36 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList); 40 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList, 46 int *nPQNodep, RF_AllocListElem_t * allocList); 50 RF_AllocListElem_t * allocList, const char *redundantReadNodeName,
|
H A D | rf_parityloggingdags.h | 41 void *bp, RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList, 46 void *bp, RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList, 51 void *bp, RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList, 56 void *bp, RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList,
|
H A D | rf_raid1.c | 265 RF_AllocListElem_t *allocList; in rf_VerifyParityRAID1() local 291 rf_MakeAllocList(allocList); in rf_VerifyParityRAID1() 292 if (allocList == NULL) in rf_VerifyParityRAID1() 300 bf = RF_MallocAndAdd(bcount, allocList); in rf_VerifyParityRAID1() 316 rf_DiskReadFunc, rf_DiskReadUndoFunc, "Rod", allocList, flags, in rf_VerifyParityRAID1() 418 allocList); in rf_VerifyParityRAID1() 478 rf_DiskWriteFunc, rf_DiskWriteUndoFunc, "Wnp", allocList, flags, in rf_VerifyParityRAID1() 537 rf_FreeAllocList(allocList); in rf_VerifyParityRAID1()
|
H A D | rf_utils.h | 45 RF_RowCol_t **rf_make_2d_array(int b, int k, RF_AllocListElem_t * allocList); 46 RF_RowCol_t *rf_make_1d_array(int c, RF_AllocListElem_t * allocList);
|
H A D | rf_pqdegdags.c | 103 …SE, rf_DiskReadFunc, rf_DiskReadUndoFunc, rf_GenericWakeupFunc, 2,1,4,0, dag_h, name, allocList); \ 119 rf_DoubleDegRead(raidPtr, asmap, dag_h, bp, flags, allocList, in RF_CREATE_DAG_FUNC_DECL() 411 rf_PQ_DDLargeWrite(raidPtr, asmap, dag_h, bp, flags, allocList); in RF_CREATE_DAG_FUNC_DECL() 416 rf_PQ_DDSimpleSmallWrite(raidPtr, asmap, dag_h, bp, flags, allocList); in RF_CREATE_DAG_FUNC_DECL() 423 …rf_DoubleDegSmallWrite(raidPtr, asmap, dag_h, bp, flags, allocList, "Rq", "Wq", "PQ Recovery", rf_… in RF_CREATE_DAG_FUNC_DECL()
|
H A D | rf_dag.h | 162 RF_AllocListElem_t *allocList; /* ptr to list of ptrs to be freed member 208 RF_AllocListElem_t *allocList)
|
H A D | rf_aselect.c | 62 rf_MakeAllocList((*hdr)->allocList); in InitHdrNode() 390 (*bFunc) (raidPtr, asm_bp, tempdag_h, bp, flags, tempdag_h->allocList); in rf_SelectAlgorithm() 408 (*uFunc) (raidPtr, asm_up, tempdag_h, bp, flags, tempdag_h->allocList); in rf_SelectAlgorithm() 425 (stripeFuncs->fp) (raidPtr, asm_p, tempdag_h, bp, flags, tempdag_h->allocList); in rf_SelectAlgorithm()
|
H A D | rf_dagutils.c | 193 rf_FreeAllocList(dag_h->allocList); in rf_FreeDAG() 984 RF_AllocListElem_t *allocList) in rf_MapUnaccessedPortionOfStripe() argument 1077 RF_AllocListElem_t *allocList) in rf_GenerateFailedAccessASMs() argument
|
H A D | rf_pq.c | 236 rf_CommonCreateLargeWriteDAG(raidPtr, asmap, dag_h, bp, flags, allocList, 2, in RF_CREATE_DAG_FUNC_DECL() 346 rf_CommonCreateSmallWriteDAG(raidPtr, asmap, dag_h, bp, flags, allocList, &rf_pFuncs, &rf_qFuncs); in RF_CREATE_DAG_FUNC_DECL()
|
H A D | rf_parityscan.c | 433 dag_h->allocList = NULL;/* we won't use this alloc list */ in rf_MakeSimpleDAG()
|