Lines Matching refs:minor

47 	int minor;  member
100 unsigned int minor; in silraid_ioctl() local
106 minor = MINOR(inode->i_rdev)>>SHIFT; in silraid_ioctl()
115 return put_user(raid[minor].sectors , (unsigned long *) arg); in silraid_ioctl()
122 unsigned short bios_cyl = raid[minor].geom.cylinders; /* truncate */ in silraid_ioctl()
125 if (put_user(raid[minor].geom.heads, (byte *) &loc->heads)) return -EFAULT; in silraid_ioctl()
126 if (put_user(raid[minor].geom.sectors, (byte *) &loc->sectors)) return -EFAULT; in silraid_ioctl()
137 if (put_user(raid[minor].geom.heads, (byte *) &loc->heads)) return -EFAULT; in silraid_ioctl()
138 if (put_user(raid[minor].geom.sectors, (byte *) &loc->sectors)) return -EFAULT; in silraid_ioctl()
139 if (put_user(raid[minor].geom.cylinders, (unsigned int *) &loc->cylinders)) return -EFAULT; in silraid_ioctl()
249 static unsigned long calc_silblock_offset (int major,int minor) in calc_silblock_offset() argument
255 dev = MKDEV(major,minor); in calc_silblock_offset()
278 static int read_disk_sb (int major, int minor, unsigned char *buffer,int bufsize) in read_disk_sb() argument
282 kdev_t dev = MKDEV(major,minor); in read_disk_sb()
293 sb_offset = calc_silblock_offset(major,minor)/8; in read_disk_sb()
329 int major, minor; in probedisk() local
338 minor = devlist[devindex].minor; in probedisk()
340 if (read_disk_sb(major,minor,(unsigned char*)&block,sizeof(block))) in probedisk()
360 bdev = bdget(MKDEV(major,minor)); in probedisk()
364 raid[device].disk[i].device = MKDEV(major,minor); in probedisk()