Lines Matching defs:bs
116 int bs, ret;
167 /* all disks must be the same size & have the same block size, bs must
169 bs = 0;
173 bs = disks[c].blockSize;
184 if (bs & i)
187 RF_ERRORMSG1("Error: block size on disks (%d) must be a power of 2\n", bs);
205 if (disks[c].blockSize != bs) {
219 raidPtr->logBytesPerSector = ffs(bs) - 1;
220 raidPtr->bytesPerSector = bs;
221 raidPtr->sectorMask = bs - 1;
242 unsigned int bs;
273 bs = 1 << raidPtr->logBytesPerSector;
275 if (disks[i].blockSize != bs) {
276 RF_ERRORMSG3("Block size of %d on spare disk %s is not the same as on other disks (%d)\n", disks[i].blockSize, disks[i].devname, bs);
366 int bs, ret;
403 bs = 0;
503 bs = diskPtr->blockSize;
565 raidPtr->logBytesPerSector = ffs(bs) - 1;
566 bs;
567 raidPtr->sectorMask = bs - 1;
992 unsigned int bs;
1039 bs = 1 << raidPtr->logBytesPerSector;
1040 if (disks[spare_number].blockSize != bs) {
1041 RF_ERRORMSG3("Block size of %d on spare disk %s is not the same as on other disks (%d)\n", disks[spare_number].blockSize, disks[spare_number].devname, bs);