Lines Matching refs:layoutPtr
73 RF_RaidLayout_t *layoutPtr = &(raidPtr->Layout); in rf_ConfigureDeclustered() local
94 layoutPtr->layoutSpecificInfo = (void *) info; in rf_ConfigureDeclustered()
98 if (layoutPtr->map->flags & RF_DISTRIBUTE_SPARE) { in rf_ConfigureDeclustered()
119 if ((layoutPtr->map->flags & RF_DISTRIBUTE_SPARE) && raidPtr->noRotate) { in rf_ConfigureDeclustered()
130 info->SUsPerTable = b * (k - 1) * layoutPtr->SUsPerPU; /* b blks, k-1 SUs each */ in rf_ConfigureDeclustered()
133 info->SUsPerBlock = info->PUsPerBlock * layoutPtr->SUsPerPU; in rf_ConfigureDeclustered()
140 …->SpareSpaceDepthPerRegionInSUs = (r * info->TablesPerSpareRegion / (v - 1)) * layoutPtr->SUsPerPU; in rf_ConfigureDeclustered()
144 …if (info->FullTableDepthInPUs * layoutPtr->SUsPerPU + info->SpareSpaceDepthPerRegionInSUs > layout… in rf_ConfigureDeclustered()
148 (int) layoutPtr->stripeUnitsPerDisk); in rf_ConfigureDeclustered()
152 … if (info->TableDepthInPUs * layoutPtr->SUsPerPU > layoutPtr->stripeUnitsPerDisk) { in rf_ConfigureDeclustered()
154 (int) (info->TableDepthInPUs * layoutPtr->SUsPerPU), \ in rf_ConfigureDeclustered()
155 (int) layoutPtr->stripeUnitsPerDisk); in rf_ConfigureDeclustered()
165 PUsPerDisk = layoutPtr->stripeUnitsPerDisk / layoutPtr->SUsPerPU; in rf_ConfigureDeclustered()
168 info->SpareRegionDepthInSUs = spareRegionDepthInPUs * layoutPtr->SUsPerPU; in rf_ConfigureDeclustered()
179 extraPUsPerDisk -= (info->SpareSpaceDepthPerRegionInSUs / layoutPtr->SUsPerPU); in rf_ConfigureDeclustered()
191 …(numCompleteSpareRegionsPerDisk + 1) * (info->SpareSpaceDepthPerRegionInSUs / layoutPtr->SUsPerPU); in rf_ConfigureDeclustered()
194 layoutPtr->stripeUnitsPerDisk = in rf_ConfigureDeclustered()
198 ) * layoutPtr->SUsPerPU; in rf_ConfigureDeclustered()
199 layoutPtr->dataStripeUnitsPerDisk = in rf_ConfigureDeclustered()
201 * layoutPtr->SUsPerPU * (k - 1) / k; in rf_ConfigureDeclustered()
206 layoutPtr->stripeUnitsPerDisk /= (info->TableDepthInPUs * layoutPtr->SUsPerPU); in rf_ConfigureDeclustered()
207 layoutPtr->stripeUnitsPerDisk *= (info->TableDepthInPUs * layoutPtr->SUsPerPU); in rf_ConfigureDeclustered()
212 … ((layoutPtr->stripeUnitsPerDisk / layoutPtr->SUsPerPU) / info->FullTableDepthInPUs); in rf_ConfigureDeclustered()
216 … ((layoutPtr->stripeUnitsPerDisk / layoutPtr->SUsPerPU) / info->TableDepthInPUs) % k; in rf_ConfigureDeclustered()
219 raidPtr->sectorsPerDisk = layoutPtr->stripeUnitsPerDisk * layoutPtr->sectorsPerStripeUnit; in rf_ConfigureDeclustered()
224 …astFullTableInSUs = numCompleteFullTablesPerDisk * info->FullTableDepthInPUs * layoutPtr->SUsPerPU; in rf_ConfigureDeclustered()
229 …ffsetOfLastFullTableInSUs + info->ExtraTablesPerDisk * info->TableDepthInPUs * layoutPtr->SUsPerPU; in rf_ConfigureDeclustered()
241 …info->BlockTable = rf_make_2d_array(info->TableDepthInPUs * layoutPtr->SUsPerPU, raidPtr->numCol, … in rf_ConfigureDeclustered()
261 for (SUID = l = 0; l < layoutPtr->SUsPerPU; l++) { in rf_ConfigureDeclustered()
264 … info->BlockTable[(info->OffsetTable[i][j] * layoutPtr->SUsPerPU) + l] in rf_ConfigureDeclustered()
276 info->SUsPerTable * layoutPtr->sectorsPerStripeUnit; in rf_ConfigureDeclustered()
277 … layoutPtr->numStripe = (raidPtr->totalSectors / layoutPtr->sectorsPerStripeUnit) / (k - 1); in rf_ConfigureDeclustered()
282 layoutPtr->dataSectorsPerStripe = (k - 1) * layoutPtr->sectorsPerStripeUnit; in rf_ConfigureDeclustered()
283 layoutPtr->numDataCol = k - 1; in rf_ConfigureDeclustered()
284 layoutPtr->numParityCol = 1; in rf_ConfigureDeclustered()
321 RF_RaidLayout_t *layoutPtr = &(raidPtr->Layout); in rf_MapSectorDeclustered() local
322 … RF_DeclusteredConfigInfo_t *info = (RF_DeclusteredConfigInfo_t *) layoutPtr->layoutSpecificInfo; in rf_MapSectorDeclustered()
323 RF_StripeNum_t SUID = raidSector / layoutPtr->sectorsPerStripeUnit; in rf_MapSectorDeclustered()
327 RF_StripeCount_t fulltable_depth = info->FullTableDepthInPUs * layoutPtr->SUsPerPU; in rf_MapSectorDeclustered()
330 … rf_decluster_adjust_params(layoutPtr, &SUID, &sus_per_fulltable, &fulltable_depth, &base_suid); in rf_MapSectorDeclustered()
353 …rf_remap_to_spare_space(layoutPtr, info, FullTableID, TableID, BlockID, (base_suid) ? 1 : 0, Spare… in rf_MapSectorDeclustered()
359 … outSU += TableID * info->TableDepthInPUs * layoutPtr->SUsPerPU; /* offs to strt of tble */ in rf_MapSectorDeclustered()
360 …outSU += info->OffsetTable[BlockID][BlockOffset] * layoutPtr->SUsPerPU; /* offs to the PU … in rf_MapSectorDeclustered()
367 …*diskSector = outSU * layoutPtr->sectorsPerStripeUnit + (raidSector % layoutPtr->sectorsPerStripeU… in rf_MapSectorDeclustered()
379 RF_RaidLayout_t *layoutPtr = &(raidPtr->Layout); in rf_MapParityDeclustered() local
380 … RF_DeclusteredConfigInfo_t *info = (RF_DeclusteredConfigInfo_t *) layoutPtr->layoutSpecificInfo; in rf_MapParityDeclustered()
381 RF_StripeNum_t SUID = raidSector / layoutPtr->sectorsPerStripeUnit; in rf_MapParityDeclustered()
385 RF_StripeCount_t fulltable_depth = info->FullTableDepthInPUs * layoutPtr->SUsPerPU; in rf_MapParityDeclustered()
388 … rf_decluster_adjust_params(layoutPtr, &SUID, &sus_per_fulltable, &fulltable_depth, &base_suid); in rf_MapParityDeclustered()
413 …rf_remap_to_spare_space(layoutPtr, info, FullTableID, TableID, BlockID, (base_suid) ? 1 : 0, Spare… in rf_MapParityDeclustered()
421 outSU += TableID * info->TableDepthInPUs * layoutPtr->SUsPerPU; in rf_MapParityDeclustered()
422 outSU += info->OffsetTable[BlockID][RepIndex] * layoutPtr->SUsPerPU; in rf_MapParityDeclustered()
426 …*diskSector = outSU * layoutPtr->sectorsPerStripeUnit + (raidSector % layoutPtr->sectorsPerStripeU… in rf_MapParityDeclustered()
437 RF_RaidLayout_t *layoutPtr = &(raidPtr->Layout); in rf_IdentifyStripeDeclustered() local
438 … RF_DeclusteredConfigInfo_t *info = (RF_DeclusteredConfigInfo_t *) layoutPtr->layoutSpecificInfo; in rf_IdentifyStripeDeclustered()
440 RF_StripeCount_t fulltable_depth = info->FullTableDepthInPUs * layoutPtr->SUsPerPU; in rf_IdentifyStripeDeclustered()
442 RF_StripeNum_t SUID = rf_RaidAddressToStripeUnitID(layoutPtr, addr); in rf_IdentifyStripeDeclustered()
446 … rf_decluster_adjust_params(layoutPtr, &SUID, &sus_per_fulltable, &fulltable_depth, &base_suid); in rf_IdentifyStripeDeclustered()
447 stripeID = rf_StripeUnitIDToStripeID(layoutPtr, SUID); /* find stripe offset in rf_IdentifyStripeDeclustered()
510 rf_decluster_adjust_params(RF_RaidLayout_t *layoutPtr, in rf_decluster_adjust_params() argument
516 … RF_DeclusteredConfigInfo_t *info = (RF_DeclusteredConfigInfo_t *) layoutPtr->layoutSpecificInfo; in rf_decluster_adjust_params()
523 … *fulltable_depth = info->ExtraTablesPerDisk * info->TableDepthInPUs * layoutPtr->SUsPerPU; in rf_decluster_adjust_params()
538 rf_MapSIDToPSIDDeclustered(RF_RaidLayout_t *layoutPtr, in rf_MapSIDToPSIDDeclustered() argument
545 info = (RF_DeclusteredConfigInfo_t *) layoutPtr->layoutSpecificInfo; in rf_MapSIDToPSIDDeclustered()
547 *psID = (stripeID / (layoutPtr->SUsPerPU * info->BlocksPerTable)) in rf_MapSIDToPSIDDeclustered()
549 *which_ru = (stripeID % (info->BlocksPerTable * layoutPtr->SUsPerPU)) in rf_MapSIDToPSIDDeclustered()
551 RF_ASSERT((*which_ru) < layoutPtr->SUsPerPU / layoutPtr->SUsPerRU); in rf_MapSIDToPSIDDeclustered()
558 rf_remap_to_spare_space(RF_RaidLayout_t *layoutPtr, in rf_remap_to_spare_space() argument
584 …DiskOffsetOfLastFullTableInSUs - lastSROffset) / (info->FullTableDepthInPUs * layoutPtr->SUsPerPU); in rf_remap_to_spare_space()
587 …D = info->DiskOffsetOfLastFullTableInSUs / (info->FullTableDepthInPUs * layoutPtr->SUsPerPU) + whi… in rf_remap_to_spare_space()
596 …fsetOfLastFullTableInSUs + info->ExtraTablesPerDisk * info->TableDepthInPUs * layoutPtr->SUsPerPU : in rf_remap_to_spare_space()
599 if (*outSU >= layoutPtr->stripeUnitsPerDisk) { in rf_remap_to_spare_space()
676 RF_RaidLayout_t *layoutPtr = &raidPtr->Layout; in rf_GetNumSpareRUsDeclustered() local
678 … return (((RF_DeclusteredConfigInfo_t *) layoutPtr->layoutSpecificInfo)->TotSparePUsPerDisk); in rf_GetNumSpareRUsDeclustered()
686 RF_RaidLayout_t *layoutPtr = &raidPtr->Layout; in rf_FreeSpareTable() local
687 … RF_DeclusteredConfigInfo_t *info = (RF_DeclusteredConfigInfo_t *) layoutPtr->layoutSpecificInfo; in rf_FreeSpareTable()