Searched refs:PARTN_BITS (Results 1 – 12 of 12) sorted by relevance
/linux-2.4.37.9/include/linux/ |
D | blk.h | 106 #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)
|
D | ide.h | 258 #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/ |
D | tapeblock.h | 19 #define PARTN_BITS 0 macro
|
/linux-2.4.37.9/drivers/ide/ |
D | ide.c | 465 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()
|
D | ide-probe.c | 1177 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()
|
D | ide-floppy.c | 1842 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()
|
D | ide-cd.c | 2237 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()
|
D | ide-io.c | 559 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()
|
D | ide-disk.c | 781 1<<PARTN_BITS, in idedisk_revalidate() 1589 int minor = drive->select.b.unit << PARTN_BITS; in idedisk_add_settings()
|
D | ide-taskfile.c | 1398 rq->rq_dev = MKDEV(major,(drive->select.b.unit)<<PARTN_BITS); in ide_diag_taskfile()
|
/linux-2.4.37.9/drivers/scsi/ |
D | ide-scsi.c | 676 int minor = (drive->select.b.unit) << PARTN_BITS; in idescsi_setup()
|
/linux-2.4.37.9/drivers/ide/ppc/ |
D | pmac.c | 1906 check_disk_change(MKDEV(HWIF(drive)->major, (drive->select.b.unit) << PARTN_BITS)); in idepmac_wake_device()
|