taglinefilesource code
unit215drivers/block/floppy.c#define REVDRIVE(fdc, unit) ( (unit) + ((fdc) << 2 ))
unit698drivers/block/floppy.cstatic inline int is_selected(int dor, int unit)
unit700drivers/block/floppy.creturn ( (dor  & (0x10 << unit)) && (dor &3) == unit);
unit705drivers/block/floppy.cregister unsigned char drive, unit, newdor,olddor;
unit713drivers/block/floppy.cunit = olddor & 0x3;
unit714drivers/block/floppy.cif(is_selected(olddor, unit) && !is_selected(newdor,unit)){
unit715drivers/block/floppy.cdrive = REVDRIVE(fdc,unit);
unit726drivers/block/floppy.cunit = newdor & 0x3;
unit727drivers/block/floppy.cif(!is_selected(olddor, unit) && is_selected(newdor,unit)){
unit728drivers/block/floppy.cdrive = REVDRIVE(fdc,unit);
unit35drivers/block/genhd.cunsigned int unit = minor >> hd->minor_shift;
unit48drivers/block/genhd.cname[strlen(name)-1] += unit;
unit52drivers/block/genhd.cprintk(" %s%c", hd->major_name, 'a' + unit);
unit524drivers/block/ide-cd.crq->dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS);
unit1350drivers/block/ide-cd.creq->dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS);
unit1783drivers/block/ide-cd.cHWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS]
unit2554drivers/block/ide-cd.cblksize_size[HWIF(drive)->major][drive->select.b.unit << PARTN_BITS] = CD_FRAMESIZE;
unit236drivers/block/ide.cunsigned int h, unit;
unit269drivers/block/ide.cfor (unit = 0; unit < MAX_DRIVES; ++unit) {
unit270drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
unit273drivers/block/ide.cdrive->select.all    = (unit<<4)|0xa0;
unit282drivers/block/ide.cdrive->name[2]      = 'a' + (h * MAX_DRIVES) + unit;
unit453drivers/block/ide.cunsigned int unit;
unit456drivers/block/ide.cfor (unit = 0; unit < gd->nr_real; ++unit) {
unit457drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
unit508drivers/block/ide.cunsigned int unit, units, minors;
unit524drivers/block/ide.cfor (unit = 0; unit < minors; ++unit)
unit527drivers/block/ide.cfor (unit = 0; unit < units; ++unit)
unit528drivers/block/ide.chwif->drives[unit].part = &gd->part[unit << PARTN_BITS];
unit680drivers/block/ide.cunsigned int unit;
unit711drivers/block/ide.cfor (unit = 0; unit < MAX_DRIVES; ++unit) {
unit712drivers/block/ide.cide_drive_t *rdrive = &hwif->drives[unit];
unit1313drivers/block/ide.cunsigned int minor, unit;
unit1322drivers/block/ide.cunit = minor >> PARTN_BITS;
unit1323drivers/block/ide.cif (MAJOR(rq->dev) != hwif->major || unit >= MAX_DRIVES) {
unit1327drivers/block/ide.cdrive = &hwif->drives[unit];
unit1519drivers/block/ide.cunsigned int unit;
unit1540drivers/block/ide.cfor (unit = 0; unit < MAX_DRIVES; ++unit) {
unit1541drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
unit1586drivers/block/ide.cunsigned unit = DEVICE_NR(i_rdev);
unit1587drivers/block/ide.cif (unit < MAX_DRIVES) {
unit1588drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
unit1591drivers/block/ide.c} else if (major == IDE0_MAJOR && unit < 4) {
unit1593drivers/block/ide.c'a' + unit, MINOR(i_rdev) & PARTN_MASK);
unit1714drivers/block/ide.cminor = drive->select.b.unit << PARTN_BITS;
unit1736drivers/block/ide.cresetup_one_dev(HWIF(drive)->gd, drive->select.b.unit);
unit2217drivers/block/ide.cif (drive->select.b.unit != 0) {
unit2273drivers/block/ide.cunsigned int unit;
unit2277drivers/block/ide.cfor (unit = 0; unit < MAX_DRIVES; ++unit) {
unit2278drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
unit2299drivers/block/ide.cfor (unit = 0; unit < 2; ++unit) { /* note the hardcoded '2' */
unit2300drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
unit2307drivers/block/ide.cfor (unit = 0; unit < MAX_DRIVES; ++unit) {
unit2308drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
unit2526drivers/block/ide.cunsigned int hw, unit;
unit2538drivers/block/ide.cunit = s[2] - 'a';
unit2539drivers/block/ide.chw   = unit / MAX_DRIVES;
unit2540drivers/block/ide.cunit = unit % MAX_DRIVES;
unit2542drivers/block/ide.cdrive = &hwif->drives[unit];
unit2705drivers/block/ide.cint unit;
unit2710drivers/block/ide.cfor (unit = 0; unit < MAX_DRIVES; ++unit) {
unit2711drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
unit2712drivers/block/ide.cif ((cmos_disks & (0xf0 >> (unit*4))) && !drive->present) {
unit242drivers/block/ide.hunsigned unit    : 1;  /* drive select number, 0 or 1 */
unit274drivers/block/triton.cstatic void print_triton_drive_flags (unsigned int unit, byte flags)
unit276drivers/block/triton.cprintk("         %s ", unit ? "slave :" : "master:");
unit87drivers/sound/dev_table.csndtable_probe (int unit, struct address_info *hw_config)
unit91drivers/sound/dev_table.cif (!unit)
unit96drivers/sound/dev_table.cif (snd_installed_cards[i].card_type == unit)
unit120drivers/sound/dev_table.csndtable_init_card (int unit, struct address_info *hw_config)
unit124drivers/sound/dev_table.cif (!unit)
unit132drivers/sound/dev_table.cif (snd_installed_cards[i].card_type == unit)
unit77drivers/sound/sb16_midi.csb16midiintr (int unit)
unit130drivers/sound/sound_calls.hvoid sb16midiintr (int unit);