Lines Matching refs:thisraid
168 struct pdcraid *thisraid; in pdcraid0_make_request() local
185 thisraid = &raid[device]; in pdcraid0_make_request()
186 if (thisraid->stride==0) in pdcraid0_make_request()
187 thisraid->stride=1; in pdcraid0_make_request()
191 …MINOR(bh->b_rdev)].start_sect, ataraid_gendisk.part[MINOR(bh->b_rdev)].nr_sects, thisraid->stride); in pdcraid0_make_request()
194 if ((rsect/thisraid->stride) != ((rsect+(bh->b_size/512)-1)/thisraid->stride)) { in pdcraid0_make_request()
201 if (thisraid->cutoff_disks[i]==0) in pdcraid0_make_request()
203 if (rsect > thisraid->cutoff[i]) { in pdcraid0_make_request()
205 rsect_left -= thisraid->cutoff[i]; in pdcraid0_make_request()
206 rsect_accum += thisraid->cutoff[i]/thisraid->cutoff_disks[i]; in pdcraid0_make_request()
208 block = rsect_left / thisraid->stride; in pdcraid0_make_request()
209 disk = block % thisraid->cutoff_disks[i]; in pdcraid0_make_request()
210 block = (block / thisraid->cutoff_disks[i]) * thisraid->stride; in pdcraid0_make_request()
211 rsect = rsect_accum + (rsect_left % thisraid->stride) + block; in pdcraid0_make_request()
217 if ((disk==0) && (thisraid->disk[i].sectors > rsect_accum)) { in pdcraid0_make_request()
221 if ((disk>0) && (thisraid->disk[i].sectors >= rsect_accum)) { in pdcraid0_make_request()
233 bh->b_rdev = thisraid->disk[disk].device; in pdcraid0_make_request()