Lines Matching refs:SCSI_DISKS_PER_MAJOR
75 #define SCSI_DISKS_PER_MAJOR 16 macro
80 #define N_USED_SCSI_DISKS (sd_template.dev_max + SCSI_DISKS_PER_MAJOR - 1)
81 #define N_USED_SD_MAJORS (N_USED_SCSI_DISKS / SCSI_DISKS_PER_MAJOR)
589 #define SD_GENDISK(i) sd_gendisks[(i) / SCSI_DISKS_PER_MAJOR]
1139 if (sd_template.dev_max > N_SD_MAJORS * SCSI_DISKS_PER_MAJOR) in sd_init()
1140 sd_template.dev_max = N_SD_MAJORS * SCSI_DISKS_PER_MAJOR; 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()
1201 sd_gendisks[i].de_arr = kmalloc (SCSI_DISKS_PER_MAJOR * sizeof *sd_gendisks[i].de_arr, in sd_init()
1206 SCSI_DISKS_PER_MAJOR * sizeof *sd_gendisks[i].de_arr); in sd_init()
1207 sd_gendisks[i].flags = kmalloc (SCSI_DISKS_PER_MAJOR * sizeof *sd_gendisks[i].flags, in sd_init()
1212 SCSI_DISKS_PER_MAJOR * sizeof *sd_gendisks[i].flags); in sd_init()
1217 sd_gendisks[i].part = kmalloc((SCSI_DISKS_PER_MAJOR << 4) * sizeof(struct hd_struct), in sd_init()
1221 memset(sd_gendisks[i].part, 0, (SCSI_DISKS_PER_MAJOR << 4) * sizeof(struct hd_struct)); in sd_init()
1222 sd_gendisks[i].sizes = sd_sizes + (i * SCSI_DISKS_PER_MAJOR << 4); in sd_init()
1223 sd_gendisks[i].nr_real = SCSI_DISKS_PER_MAJOR; in sd_init()
1225 (void *) (rscsi_disks + i * SCSI_DISKS_PER_MAJOR); in sd_init()
1290 (rscsi_disks[i * SCSI_DISKS_PER_MAJOR].device in sd_finish()
1291 && rscsi_disks[i * SCSI_DISKS_PER_MAJOR].device->host->sg_tablesize) in sd_finish()
1336 devnum = i % SCSI_DISKS_PER_MAJOR; in sd_attach()
1402 grok_partitions(&SD_GENDISK(target), target % SCSI_DISKS_PER_MAJOR, in revalidate_scsidisk()