Home
last modified time | relevance | path

Searched refs:PARTN_BITS (Results 1 – 12 of 12) sorted by relevance

/linux-2.4.37.9/include/linux/
Dblk.h106 #define DEVICE_NR(device) (MINOR(device) >> PARTN_BITS)
283 #define DEVICE_NR(device) (MINOR(device)>>PARTN_BITS)
308 #define DEVICE_NR(device) (MINOR(device) >> PARTN_BITS)
Dide.h258 #define PARTN_BITS 6 /* number of minor dev bits for partitions */ macro
259 #define PARTN_MASK ((1<<PARTN_BITS)-1) /* a useful bit mask */
/linux-2.4.37.9/drivers/s390/char/
Dtapeblock.h19 #define PARTN_BITS 0 macro
/linux-2.4.37.9/drivers/ide/
Dide.c465 minor = drive->select.b.unit << PARTN_BITS; in ide_revalidate_disk()
476 for (p = 0; p < (1<<PARTN_BITS); ++p) { in ide_revalidate_disk()
509 (void) ide_revalidate_disk(MKDEV(hwif->major, unit<<PARTN_BITS)); in revalidate_drives()
722 minor = drive->select.b.unit << PARTN_BITS; in ide_prepare_tristate()
723 for (p = 0; p < (1<<PARTN_BITS); ++p) { in ide_prepare_tristate()
869 minor = drive->select.b.unit << PARTN_BITS; in ide_unregister()
870 for (p = 0; p < (1<<PARTN_BITS); ++p) { in ide_unregister()
1505 for (i = 0; i < 1 << PARTN_BITS; i++, p++) in ide_write_setting()
2948 register_disk(gd,MKDEV(hwif->major,unit<<PARTN_BITS), in ide_geninit()
2952 1<<PARTN_BITS, ide_fops, in ide_geninit()
Dide-probe.c1177 minors = units * (1<<PARTN_BITS); in init_gendisk()
1215 hwif->drives[unit].part = &gd->part[unit << PARTN_BITS]; in init_gendisk()
1222 gd->minor_shift = PARTN_BITS; in init_gendisk()
1224 gd->max_p = 1<<PARTN_BITS; in init_gendisk()
Dide-floppy.c1842 1<<PARTN_BITS, in idefloppy_revalidate()
1981 int minor = drive->select.b.unit << PARTN_BITS; in idefloppy_add_settings()
2003 int minor = drive->select.b.unit << PARTN_BITS; in idefloppy_setup()
2028 for (i = 0; i < 1 << PARTN_BITS; i++) in idefloppy_setup()
2038 for (i = 0; i < 1 << PARTN_BITS; i++) in idefloppy_setup()
Dide-cd.c2237 minor = (drive->select.b.unit) << PARTN_BITS; in cdrom_read_toc()
2245 …HWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS] = (toc->capacity * SECTORS_PER_FRAME) >… in cdrom_read_toc()
2700 int minor = (drive->select.b.unit) << PARTN_BITS; in ide_cdrom_register()
2882 int minor = drive->select.b.unit << PARTN_BITS; in ide_cdrom_add_settings()
2895 int minor = drive->select.b.unit << PARTN_BITS; in ide_cdrom_setup()
3067 (drive->select.b.unit) << PARTN_BITS)); in ide_cdrom_check_media_change()
3075 int minor = drive->select.b.unit << PARTN_BITS; in ide_cdrom_revalidate()
Dide-io.c559 unsigned int minor = MINOR(rq->rq_dev), unit = minor >> PARTN_BITS; in ide_start_request()
1300 rq->rq_dev = MKDEV(major,(drive->select.b.unit)<<PARTN_BITS); in ide_do_drive_cmd()
Dide-disk.c781 1<<PARTN_BITS, in idedisk_revalidate()
1589 int minor = drive->select.b.unit << PARTN_BITS; in idedisk_add_settings()
Dide-taskfile.c1398 rq->rq_dev = MKDEV(major,(drive->select.b.unit)<<PARTN_BITS); in ide_diag_taskfile()
/linux-2.4.37.9/drivers/scsi/
Dide-scsi.c676 int minor = (drive->select.b.unit) << PARTN_BITS; in idescsi_setup()
/linux-2.4.37.9/drivers/ide/ppc/
Dpmac.c1906 check_disk_change(MKDEV(HWIF(drive)->major, (drive->select.b.unit) << PARTN_BITS)); in idepmac_wake_device()