tag | line | file | source code |
unit | 215 | drivers/block/floppy.c | #define REVDRIVE(fdc, unit) ( (unit) + ((fdc) << 2 )) |
unit | 698 | drivers/block/floppy.c | static inline int is_selected(int dor, int unit) |
unit | 700 | drivers/block/floppy.c | return ( (dor & (0x10 << unit)) && (dor &3) == unit); |
unit | 705 | drivers/block/floppy.c | register unsigned char drive, unit, newdor,olddor; |
unit | 713 | drivers/block/floppy.c | unit = olddor & 0x3; |
unit | 714 | drivers/block/floppy.c | if(is_selected(olddor, unit) && !is_selected(newdor,unit)){ |
unit | 715 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
unit | 726 | drivers/block/floppy.c | unit = newdor & 0x3; |
unit | 727 | drivers/block/floppy.c | if(!is_selected(olddor, unit) && is_selected(newdor,unit)){ |
unit | 728 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
unit | 35 | drivers/block/genhd.c | unsigned int unit = minor >> hd->minor_shift; |
unit | 48 | drivers/block/genhd.c | name[strlen(name)-1] += unit; |
unit | 52 | drivers/block/genhd.c | printk(" %s%c", hd->major_name, 'a' + unit); |
unit | 524 | drivers/block/ide-cd.c | rq->dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS); |
unit | 1350 | drivers/block/ide-cd.c | req->dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS); |
unit | 1783 | drivers/block/ide-cd.c | HWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS] |
unit | 2554 | drivers/block/ide-cd.c | blksize_size[HWIF(drive)->major][drive->select.b.unit << PARTN_BITS] = CD_FRAMESIZE; |
unit | 236 | drivers/block/ide.c | unsigned int h, unit; |
unit | 269 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 270 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 273 | drivers/block/ide.c | drive->select.all = (unit<<4)|0xa0; |
unit | 282 | drivers/block/ide.c | drive->name[2] = 'a' + (h * MAX_DRIVES) + unit; |
unit | 453 | drivers/block/ide.c | unsigned int unit; |
unit | 456 | drivers/block/ide.c | for (unit = 0; unit < gd->nr_real; ++unit) { |
unit | 457 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 508 | drivers/block/ide.c | unsigned int unit, units, minors; |
unit | 524 | drivers/block/ide.c | for (unit = 0; unit < minors; ++unit) |
unit | 527 | drivers/block/ide.c | for (unit = 0; unit < units; ++unit) |
unit | 528 | drivers/block/ide.c | hwif->drives[unit].part = &gd->part[unit << PARTN_BITS]; |
unit | 680 | drivers/block/ide.c | unsigned int unit; |
unit | 711 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 712 | drivers/block/ide.c | ide_drive_t *rdrive = &hwif->drives[unit]; |
unit | 1313 | drivers/block/ide.c | unsigned int minor, unit; |
unit | 1322 | drivers/block/ide.c | unit = minor >> PARTN_BITS; |
unit | 1323 | drivers/block/ide.c | if (MAJOR(rq->dev) != hwif->major || unit >= MAX_DRIVES) { |
unit | 1327 | drivers/block/ide.c | drive = &hwif->drives[unit]; |
unit | 1519 | drivers/block/ide.c | unsigned int unit; |
unit | 1540 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 1541 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 1586 | drivers/block/ide.c | unsigned unit = DEVICE_NR(i_rdev); |
unit | 1587 | drivers/block/ide.c | if (unit < MAX_DRIVES) { |
unit | 1588 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 1591 | drivers/block/ide.c | } else if (major == IDE0_MAJOR && unit < 4) { |
unit | 1593 | drivers/block/ide.c | 'a' + unit, MINOR(i_rdev) & PARTN_MASK); |
unit | 1714 | drivers/block/ide.c | minor = drive->select.b.unit << PARTN_BITS; |
unit | 1736 | drivers/block/ide.c | resetup_one_dev(HWIF(drive)->gd, drive->select.b.unit); |
unit | 2217 | drivers/block/ide.c | if (drive->select.b.unit != 0) { |
unit | 2273 | drivers/block/ide.c | unsigned int unit; |
unit | 2277 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2278 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2299 | drivers/block/ide.c | for (unit = 0; unit < 2; ++unit) { /* note the hardcoded '2' */ |
unit | 2300 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2307 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2308 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2526 | drivers/block/ide.c | unsigned int hw, unit; |
unit | 2538 | drivers/block/ide.c | unit = s[2] - 'a'; |
unit | 2539 | drivers/block/ide.c | hw = unit / MAX_DRIVES; |
unit | 2540 | drivers/block/ide.c | unit = unit % MAX_DRIVES; |
unit | 2542 | drivers/block/ide.c | drive = &hwif->drives[unit]; |
unit | 2705 | drivers/block/ide.c | int unit; |
unit | 2710 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2711 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2712 | drivers/block/ide.c | if ((cmos_disks & (0xf0 >> (unit*4))) && !drive->present) { |
unit | 242 | drivers/block/ide.h | unsigned unit : 1; /* drive select number, 0 or 1 */ |
unit | 274 | drivers/block/triton.c | static void print_triton_drive_flags (unsigned int unit, byte flags) |
unit | 276 | drivers/block/triton.c | printk(" %s ", unit ? "slave :" : "master:"); |
unit | 87 | drivers/sound/dev_table.c | sndtable_probe (int unit, struct address_info *hw_config) |
unit | 91 | drivers/sound/dev_table.c | if (!unit) |
unit | 96 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
unit | 120 | drivers/sound/dev_table.c | sndtable_init_card (int unit, struct address_info *hw_config) |
unit | 124 | drivers/sound/dev_table.c | if (!unit) |
unit | 132 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
unit | 77 | drivers/sound/sb16_midi.c | sb16midiintr (int unit) |
unit | 130 | drivers/sound/sound_calls.h | void sb16midiintr (int unit); |