Lines Matching refs:SD_MAJOR
71 #define SD_MAJOR(i) (!(i) ? SCSI_DISK0_MAJOR : SCSI_DISK1_MAJOR-1+(i)) macro
76 #define SD_MAJOR_NUMBER(i) SD_MAJOR((i) >> 8)
1144 if (devfs_register_blkdev(SD_MAJOR(i), "sd", &sd_fops)) { in sd_init()
1145 printk("Unable to get major %d for SCSI disk\n", SD_MAJOR(i)); in sd_init()
1191 blksize_size[SD_MAJOR(i)] = sd_blocksizes + i * (SCSI_DISKS_PER_MAJOR << 4); in sd_init()
1192 hardsect_size[SD_MAJOR(i)] = sd_hardsizes + i * (SCSI_DISKS_PER_MAJOR << 4); in sd_init()
1193 max_sectors[SD_MAJOR(i)] = sd_max_sectors + i * (SCSI_DISKS_PER_MAJOR << 4); in sd_init()
1213 sd_gendisks[i].major = SD_MAJOR(i); in sd_init()
1255 devfs_unregister_blkdev(SD_MAJOR(i), "sd"); in sd_init()
1268 blk_dev[SD_MAJOR(i)].queue = sd_find_queue; in sd_finish()
1289 read_ahead[SD_MAJOR(i)] = in sd_finish()
1467 devfs_unregister_blkdev(SD_MAJOR(i), "sd"); in exit_sd()
1484 blksize_size[SD_MAJOR(i)] = NULL; in exit_sd()
1485 hardsect_size[SD_MAJOR(i)] = NULL; in exit_sd()
1486 max_sectors[SD_MAJOR(i)] = NULL; in exit_sd()
1487 read_ahead[SD_MAJOR(i)] = 0; in exit_sd()