Home
last modified time | relevance | path

Searched refs:BlockOffset (Results 1 – 2 of 2) sorted by relevance

/netbsd/src/sys/dev/raidframe/
Drf_declusterPQ.c285 RF_StripeNum_t BlockID, BlockOffset, RepIndex; in rf_MapSectorDeclusteredPQ() local
304 BlockOffset = TableOffset - BlockID * info->PUsPerBlock; in rf_MapSectorDeclusteredPQ()
306 RF_ASSERT(BlockOffset < info->groupSize - 2); in rf_MapSectorDeclusteredPQ()
317 BlockOffset++; /* P on last drive, Q on first */ in rf_MapSectorDeclusteredPQ()
319BlockOffset += ((BlockOffset >= RepIndex) ? 2 : 0); /* skip over PQ */ in rf_MapSectorDeclusteredPQ()
320 RF_ASSERT(BlockOffset < info->groupSize); in rf_MapSectorDeclusteredPQ()
321 *col = info->LayoutTable[BlockID][BlockOffset]; in rf_MapSectorDeclusteredPQ()
332 …outSU += info->OffsetTable[BlockID][BlockOffset] * layoutPtr->SUsPerPU; /* offs to the PU … in rf_MapSectorDeclusteredPQ()
Drf_decluster.c325 RF_StripeNum_t BlockID, BlockOffset, RepIndex; in rf_MapSectorDeclustered() local
343 BlockOffset = TableOffset - BlockID * info->PUsPerBlock; in rf_MapSectorDeclustered()
347 BlockOffset += ((BlockOffset >= RepIndex) ? 1 : 0); in rf_MapSectorDeclustered()
348 *col = info->LayoutTable[BlockID][BlockOffset]; in rf_MapSectorDeclustered()
360 …outSU += info->OffsetTable[BlockID][BlockOffset] * layoutPtr->SUsPerPU; /* offs to the PU … in rf_MapSectorDeclustered()