Lines Matching defs:region
87 unsigned region = sector / pm->region_size;
91 retval = isset(pm->disk_boot->bits, region) ? 1 : 0;
123 rf_paritymap_begin_region(struct rf_paritymap *pm, unsigned region)
127 KASSERT(region < RF_PARITYMAP_NREG);
132 if (pm->current->state[region] < 0)
133 pm->current->state[region] = 0;
136 KASSERT(pm->current->state[region] < 127);
137 pm->current->state[region]++;
139 needs_write = isclr(pm->disk_now->bits, region);
142 KASSERT(pm->current->state[region] == 1);
150 rf_paritymap_end_region(struct rf_paritymap *pm, unsigned region)
152 KASSERT(region < RF_PARITYMAP_NREG);
155 KASSERT(pm->current->state[region] > 0);
156 --pm->current->state[region];
158 if (pm->current->state[region] <= 0) {
159 pm->current->state[region] = -pm->params.cooldown;
160 KASSERT(pm->current->state[region] <= 0);
218 * region is marked clean. (Synchronization is somewhat
345 printf("raid%d: region count %u too large (more than %u)\n",
353 /* Apply the initial region count, but do not change it after that. */
397 * a minimum region size (defined above) is imposed.
692 /* Pick up the autoconfigured region count. */