Lines Matching defs:raidPtr

55 rf_ConfigureDeclusteredPQ(RF_ShutdownList_t **listp, RF_Raid_t *raidPtr,
58 RF_RaidLayout_t *layoutPtr = &(raidPtr->Layout);
82 raidPtr->noRotate = *((int *) cfgBuf);
90 info = RF_MallocAndAdd(sizeof(*info), raidPtr->cleanupList);
98 if ((raidPtr->Layout.map->flags & RF_DISTRIBUTE_SPARE) && raidPtr->noRotate) {
101 if (raidPtr->numCol != v) {
102 RF_ERRORMSG2("RAID: config error: table element count (%d) not equal to no. of cols (%d)\n", v, raidPtr->numCol);
121 if ((raidPtr->Layout.map->flags & RF_DISTRIBUTE_SPARE)) {
141 if ((raidPtr->Layout.map->flags & RF_DISTRIBUTE_SPARE)) {
163 complete_FT_count = /* raidPtr->numRow */ 1 * (numCompleteSpareRegionsPerDisk * (info->TablesPerSpareRegion / k) + i / k);
173 ((complete_FT_count / /* raidPtr->numRow*/ 1) * info->FullTableDepthInPUs + /* data & parity space */
190 ((layoutPtr->stripeUnitsPerDisk / layoutPtr->SUsPerPU) / info->FullTableDepthInPUs) * /* raidPtr->numRow */ 1;
197 raidPtr->sectorsPerDisk = layoutPtr->stripeUnitsPerDisk * layoutPtr->sectorsPerStripeUnit;
201 numCompleteFullTablesPerDisk = complete_FT_count / /* raidPtr->numRow */ 1;
203 if ((raidPtr->Layout.map->flags & RF_DISTRIBUTE_SPARE)) {
213 info->LayoutTable = rf_make_2d_array(b, k, raidPtr->cleanupList);
216 info->OffsetTable = rf_make_2d_array(b, k, raidPtr->cleanupList);
219 info->BlockTable = rf_make_2d_array(info->TableDepthInPUs * layoutPtr->SUsPerPU, raidPtr->numCol, raidPtr->cleanupList);
253 raidPtr->totalSectors = (k * complete_FT_count + /* raidPtr->numRow */ 1 * info->ExtraTablesPerDisk) *
255 layoutPtr->numStripe = (raidPtr->totalSectors / layoutPtr->sectorsPerStripeUnit) / (k - 2);
268 rf_GetDefaultNumFloatingReconBuffersPQ(RF_Raid_t *raidPtr)
272 def_decl = rf_GetDefaultNumFloatingReconBuffersDeclustered(raidPtr);
273 return (RF_MAX(3 * raidPtr->numCol, def_decl));
277 rf_MapSectorDeclusteredPQ(RF_Raid_t *raidPtr, RF_RaidAddr_t raidSector,
281 RF_RaidLayout_t *layoutPtr = &(raidPtr->Layout);
294 FullTableID /= /* raidPtr->numRow */ 1; /* convert to fulltable ID on this
296 if ((raidPtr->Layout.map->flags & RF_DISTRIBUTE_SPARE)) {
315 if (!raidPtr->noRotate) {
344 rf_MapParityDeclusteredPQ(RF_Raid_t *raidPtr, RF_RaidAddr_t raidSector,
348 RF_RaidLayout_t *layoutPtr = &(raidPtr->Layout);
361 FullTableID /= /* raidPtr->numRow */ 1; /* convert to fulltable ID on this
363 if ((raidPtr->Layout.map->flags & RF_DISTRIBUTE_SPARE)) {
375 RepIndex = (raidPtr->noRotate) ? info->PUsPerBlock : info->groupSize - 1 - TableID;
394 rf_MapQDeclusteredPQ(RF_Raid_t *raidPtr, RF_RaidAddr_t raidSector,
398 RF_RaidLayout_t *layoutPtr = &(raidPtr->Layout);
411 FullTableID /= /* raidPtr->numRow */ 1; /* convert to fulltable ID on this
413 if ((raidPtr->Layout.map->flags & RF_DISTRIBUTE_SPARE)) {
425 RepIndex = (raidPtr->noRotate) ? info->PUsPerBlock : info->groupSize - 1 - TableID;
447 rf_IdentifyStripeDeclusteredPQ(RF_Raid_t *raidPtr, RF_RaidAddr_t addr,
450 RF_RaidLayout_t *layoutPtr = &(raidPtr->Layout);