tag | line | file | source code |
drive | 170 | drivers/block/floppy.c | #define UDP (&drive_params[drive]) |
drive | 171 | drivers/block/floppy.c | #define UDRS (&drive_state[drive]) |
drive | 172 | drivers/block/floppy.c | #define UDRWE (&write_errors[drive]) |
drive | 173 | drivers/block/floppy.c | #define UFDCS (&fdc_state[FDC(drive)]) |
drive | 519 | drivers/block/floppy.c | static int disk_change(int drive) |
drive | 521 | drivers/block/floppy.c | int fdc=FDC(drive); |
drive | 525 | drivers/block/floppy.c | if(! (FDCS->dor & (0x10 << UNIT(drive))) || |
drive | 526 | drivers/block/floppy.c | (FDCS->dor & 3) != UNIT(drive) || |
drive | 527 | drivers/block/floppy.c | fdc != FDC(drive)){ |
drive | 529 | drivers/block/floppy.c | DPRINT3("drive=%d fdc=%d dor=%x\n",drive, FDC(drive), |
drive | 536 | drivers/block/floppy.c | DPRINT1("checking disk change line for drive %d\n",drive); |
drive | 553 | drivers/block/floppy.c | current_type[drive] != NULL) |
drive | 556 | drivers/block/floppy.c | current_type[drive] = NULL; |
drive | 576 | drivers/block/floppy.c | register unsigned char drive, unit, newdor,olddor; |
drive | 586 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
drive | 592 | drivers/block/floppy.c | disk_change(drive); |
drive | 599 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
drive | 623 | drivers/block/floppy.c | int drive; |
drive | 629 | drivers/block/floppy.c | for ( drive = 0; drive < N_DRIVE; drive++) |
drive | 630 | drivers/block/floppy.c | if (FDC(drive) == fdc && |
drive | 636 | drivers/block/floppy.c | static void set_fdc(int drive) |
drive | 638 | drivers/block/floppy.c | if (drive >= 0 && drive < N_DRIVE){ |
drive | 639 | drivers/block/floppy.c | fdc = FDC(drive); |
drive | 640 | drivers/block/floppy.c | current_drive = drive; |
drive | 651 | drivers/block/floppy.c | static int lock_fdc(int drive, int interruptible) |
drive | 670 | drivers/block/floppy.c | set_fdc(drive); |
drive | 674 | drivers/block/floppy.c | #define LOCK_FDC(drive,interruptible) \ |
drive | 675 | drivers/block/floppy.c | if(lock_fdc(drive,interruptible)) return -EINTR; |
drive | 717 | drivers/block/floppy.c | static void floppy_off(unsigned int drive) |
drive | 720 | drivers/block/floppy.c | register int fdc=FDC(drive); |
drive | 722 | drivers/block/floppy.c | if( !(FDCS->dor & ( 0x10 << UNIT(drive)))) |
drive | 725 | drivers/block/floppy.c | del_timer(motor_off_timer+drive); |
drive | 733 | drivers/block/floppy.c | motor_off_timer[drive].expires = UDP->spindown - delta; |
drive | 735 | drivers/block/floppy.c | add_timer(motor_off_timer+drive); |
drive | 745 | drivers/block/floppy.c | int i, drive, saved_drive; |
drive | 752 | drivers/block/floppy.c | drive = (saved_drive + i + 1 ) % N_DRIVE; |
drive | 755 | drivers/block/floppy.c | set_fdc(drive); |
drive | 756 | drivers/block/floppy.c | if(! (set_dor( fdc, ~3, UNIT(drive) | ( 0x10 << UNIT(drive))) & |
drive | 757 | drivers/block/floppy.c | (0x10 << UNIT(drive)))) |
drive | 760 | drivers/block/floppy.c | set_dor( fdc, ~( 0x10 << UNIT(drive) ), 0 ); |
drive | 1891 | drivers/block/floppy.c | int drive=DRIVE(device); |
drive | 1893 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2562 | drivers/block/floppy.c | static int user_reset_fdc(int drive, int arg, int interruptible) |
drive | 2569 | drivers/block/floppy.c | LOCK_FDC(drive,interruptible); |
drive | 2601 | drivers/block/floppy.c | static char *drive_name(int type, int drive ) |
drive | 2628 | drivers/block/floppy.c | int i, drive, count, ret; |
drive | 2632 | drivers/block/floppy.c | for ( drive= 0; drive < N_DRIVE; drive++){ |
drive | 2633 | drivers/block/floppy.c | if ( FDC(drive) != fdc) |
drive | 2635 | drivers/block/floppy.c | if ( drive == current_drive ){ |
drive | 2718 | drivers/block/floppy.c | int i,device,drive,type,cnt; |
drive | 2727 | drivers/block/floppy.c | drive = DRIVE(device); |
drive | 2733 | drivers/block/floppy.c | name = drive_name(type,drive); |
drive | 2746 | drivers/block/floppy.c | else if ((this_floppy = current_type[drive]) == |
drive | 2751 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2778 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2793 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2794 | drivers/block/floppy.c | current_type[drive] = NULL; |
drive | 2795 | drivers/block/floppy.c | floppy_sizes[drive] = MAX_DISK_SIZE; |
drive | 2800 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2815 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2819 | drivers/block/floppy.c | set_bit(drive, &fake_change); |
drive | 2839 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2844 | drivers/block/floppy.c | user_params[drive] = newparams; |
drive | 2845 | drivers/block/floppy.c | if (buffer_drive == drive && |
drive | 2846 | drivers/block/floppy.c | buffer_max > user_params[drive].sect) |
drive | 2847 | drivers/block/floppy.c | buffer_max=user_params[drive].sect; |
drive | 2848 | drivers/block/floppy.c | current_type[drive] = &user_params[drive]; |
drive | 2849 | drivers/block/floppy.c | floppy_sizes[drive] = user_params[drive].size >> 1; |
drive | 2860 | drivers/block/floppy.c | user_params[drive].sect || |
drive | 2867 | drivers/block/floppy.c | return user_reset_fdc( drive, (int)param, 1); |
drive | 2879 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2898 | drivers/block/floppy.c | int drive; |
drive | 2901 | drivers/block/floppy.c | drive=0; |
drive | 2904 | drivers/block/floppy.c | drive=1; |
drive | 2911 | drivers/block/floppy.c | for (drive=0; drive < N_DRIVE; drive++){ |
drive | 2923 | drivers/block/floppy.c | ALLOWED_DRIVE_MASK |= 1 << drive; |
drive | 2924 | drivers/block/floppy.c | printk("fd%d is %s", drive, |
drive | 2927 | drivers/block/floppy.c | printk("fd%d is unknown type %d",drive, |
drive | 2938 | drivers/block/floppy.c | int drive = DRIVE(inode->i_rdev); |
drive | 2951 | drivers/block/floppy.c | int drive = DRIVE(inode->i_rdev); |
drive | 2969 | drivers/block/floppy.c | int drive; |
drive | 2971 | drivers/block/floppy.c | drive = DRIVE(inode->i_rdev); |
drive | 2998 | drivers/block/floppy.c | int drive; |
drive | 3006 | drivers/block/floppy.c | drive = DRIVE(inode->i_rdev); |
drive | 3007 | drivers/block/floppy.c | if (drive >= N_DRIVE || |
drive | 3008 | drivers/block/floppy.c | !( ALLOWED_DRIVE_MASK & ( 1 << drive)) || |
drive | 3009 | drivers/block/floppy.c | fdc_state[FDC(drive)].version == FDC_NONE) |
drive | 3038 | drivers/block/floppy.c | if (buffer_drive == drive) |
drive | 3071 | drivers/block/floppy.c | int drive = DRIVE( dev ); |
drive | 3082 | drivers/block/floppy.c | lock_fdc(drive,0); |
drive | 3088 | drivers/block/floppy.c | test_bit(drive, &fake_change) || |
drive | 3089 | drivers/block/floppy.c | (!TYPE(dev) && !current_type[drive])) |
drive | 3100 | drivers/block/floppy.c | #define NO_GEOM (!current_type[drive] && !TYPE(dev)) |
drive | 3102 | drivers/block/floppy.c | int drive=DRIVE(dev); |
drive | 3105 | drivers/block/floppy.c | if(UTESTF(FD_DISK_CHANGED) || test_bit(drive, &fake_change) || NO_GEOM){ |
drive | 3106 | drivers/block/floppy.c | lock_fdc(drive,0); |
drive | 3108 | drivers/block/floppy.c | if(! (cf || test_bit(drive, &fake_change) || NO_GEOM)){ |
drive | 3114 | drivers/block/floppy.c | if ( buffer_drive == drive) |
drive | 3116 | drivers/block/floppy.c | clear_bit(drive, &fake_change); |
drive | 3336 | drivers/block/floppy.c | int i,drive; |
drive | 3379 | drivers/block/floppy.c | for (drive = 0; drive < N_DRIVE ; drive++) { |
drive | 3475 | drivers/block/floppy.c | int drive; |
drive | 3497 | drivers/block/floppy.c | for(drive=0; drive < N_FDC * 4; drive++) |
drive | 3498 | drivers/block/floppy.c | if( motor_off_timer[drive].next ) |
drive | 3499 | drivers/block/floppy.c | printk("motor off timer %d still active\n", drive); |
drive | 175 | drivers/block/genhd.c | void resetup_one_dev(struct gendisk *dev, int drive) |
drive | 178 | drivers/block/genhd.c | int start = drive<<dev->minor_shift; |
drive | 182 | drivers/block/genhd.c | current_minor = 1+(drive<<dev->minor_shift); |
drive | 183 | drivers/block/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
drive | 194 | drivers/block/genhd.c | int drive; |
drive | 202 | drivers/block/genhd.c | for (drive=0 ; drive<dev->nr_real ; drive++) { |
drive | 203 | drivers/block/genhd.c | current_minor = 1+(drive<<dev->minor_shift); |
drive | 204 | drivers/block/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
drive | 208 | drivers/block/hd.c | static int controller_ready(unsigned int drive, unsigned int head) |
drive | 215 | drivers/block/hd.c | outb_p(0xA0 | (drive<<4) | head, HD_CURRENT); |
drive | 222 | drivers/block/hd.c | static void hd_out(unsigned int drive,unsigned int nsect,unsigned int sect, |
drive | 234 | drivers/block/hd.c | if (!controller_ready(drive, head)) { |
drive | 239 | drivers/block/hd.c | outb_p(hd_info[drive].ctl,HD_CMD); |
drive | 241 | drivers/block/hd.c | outb_p(hd_info[drive].wpcom>>2,++port); |
drive | 246 | drivers/block/hd.c | outb_p(0xA0|(drive<<4)|head,++port); |
drive | 955 | drivers/block/hd.c | int drive, i; |
drive | 961 | drivers/block/hd.c | for (drive=0 ; drive<2 ; drive++) { |
drive | 962 | drivers/block/hd.c | bios_info[drive].cyl = hd_info[drive].cyl = *(unsigned short *) BIOS; |
drive | 963 | drivers/block/hd.c | bios_info[drive].head = hd_info[drive].head = *(2+BIOS); |
drive | 964 | drivers/block/hd.c | bios_info[drive].wpcom = hd_info[drive].wpcom = *(unsigned short *) (5+BIOS); |
drive | 965 | drivers/block/hd.c | bios_info[drive].ctl = hd_info[drive].ctl = *(8+BIOS); |
drive | 966 | drivers/block/hd.c | bios_info[drive].lzone = hd_info[drive].lzone = *(unsigned short *) (12+BIOS); |
drive | 967 | drivers/block/hd.c | bios_info[drive].sect = hd_info[drive].sect = *(14+BIOS); |
drive | 969 | drivers/block/hd.c | if (hd_info[drive].cyl && NR_HD == drive) |
drive | 176 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].nsectors_buffered = 0; |
drive | 332 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[dev->hwif][dev->select.b.drive]; |
drive | 537 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[dev->hwif][dev->select.b.drive]; |
drive | 874 | drivers/block/ide-cd.c | req.dev = MKDEV (major, (dev->select.b.drive) << PARTN_BITS); |
drive | 1098 | drivers/block/ide-cd.c | struct atapi_toc *toc = cdrom_info[dev->hwif][dev->select.b.drive].toc; |
drive | 1105 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].toc = toc; |
drive | 1298 | drivers/block/ide-cd.c | toc = cdrom_info[dev->hwif][dev->select.b.drive].toc; |
drive | 1394 | drivers/block/ide-cd.c | toc = cdrom_info[dev->hwif][dev->select.b.drive].toc; |
drive | 1611 | drivers/block/ide-cd.c | ide_capacity[dev->hwif][dev->select.b.drive] = 0x1fffff; |
drive | 1613 | drivers/block/ide-cd.c | ide_blksizes[dev->hwif][dev->select.b.drive << PARTN_BITS] = CD_FRAMESIZE; |
drive | 1623 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].toc = NULL; |
drive | 1624 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].sector_buffer = NULL; |
drive | 1625 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].sector_buffered = 0; |
drive | 1626 | drivers/block/ide-cd.c | cdrom_info[dev->hwif][dev->select.b.drive].nsectors_buffered = 0; |
drive | 284 | drivers/block/ide.c | unsigned drive : 1; /* drive number */ |
drive | 1036 | drivers/block/ide.c | unsigned int minor, drive; |
drive | 1066 | drivers/block/ide.c | drive = minor >> PARTN_BITS; |
drive | 1067 | drivers/block/ide.c | ide_cur_dev[HWIF] = dev = &ide_dev[HWIF][drive]; |
drive | 1068 | drivers/block/ide.c | if ((MAJOR(rq->dev) != ide_major[HWIF]) || (drive >= MAX_DRIVES)) { |
drive | 1243 | drivers/block/ide.c | unsigned int drive = DEVICE_NR(i_rdev); |
drive | 1246 | drivers/block/ide.c | if (drive < MAX_DRIVES) { |
drive | 1248 | drivers/block/ide.c | case IDE0_MAJOR: dev = &ide_dev[0][drive]; |
drive | 1251 | drivers/block/ide.c | case IDE1_MAJOR: dev = &ide_dev[1][drive]; |
drive | 1307 | drivers/block/ide.c | unsigned int i, major, start, drive = DEVICE_NR(i_rdev); |
drive | 1326 | drivers/block/ide.c | start = drive << PARTN_BITS; |
drive | 1337 | drivers/block/ide.c | gd->part[start].nr_sects = ide_capacity[DEV_HWIF][drive]; |
drive | 1338 | drivers/block/ide.c | resetup_one_dev(gd, drive); |
drive | 1706 | drivers/block/ide.c | ide_capacity[DEV_HWIF][dev->select.b.drive] = capacity; |
drive | 1844 | drivers/block/ide.c | if (dev->select.b.drive == 1) { |
drive | 1935 | drivers/block/ide.c | int i, hwif, drive = next_drive++; |
drive | 1939 | drivers/block/ide.c | if (drive < 2) { |
drive | 1944 | drivers/block/ide.c | hwif = (drive > 1); |
drive | 1946 | drivers/block/ide.c | if (drive > 3) { |
drive | 1950 | drivers/block/ide.c | drive = drive & 1; |
drive | 1951 | drivers/block/ide.c | printk("%s: ", ide_devname[hwif][drive]); |
drive | 1956 | drivers/block/ide.c | dev = &ide_dev[hwif][drive]; |
drive | 1987 | drivers/block/ide.c | ide_capacity[HWIF][drive] = BIOS_SECTORS(dev); |
drive | 2032 | drivers/block/ide.c | byte drive, cmos_disks, *BIOS = (byte *) &drive_info; |
drive | 2037 | drivers/block/ide.c | for (drive = 0; drive < MAX_DRIVES; drive++) { |
drive | 2038 | drivers/block/ide.c | ide_dev_t *dev = &ide_dev[0][drive]; |
drive | 2039 | drivers/block/ide.c | if ((cmos_disks & (0xf0 >> (drive*4))) && !dev->present) { |
drive | 2048 | drivers/block/ide.c | ide_capacity[0][drive] = BIOS_SECTORS(dev); |
drive | 2057 | drivers/block/ide.c | int drive; |
drive | 2059 | drivers/block/ide.c | for (drive = 0; drive < (MAX_DRIVES<<PARTN_BITS); drive++) |
drive | 2060 | drivers/block/ide.c | ide_blksizes[hwif][drive] = 1024; |
drive | 2064 | drivers/block/ide.c | for (drive = 0; drive < MAX_DRIVES; drive++) { |
drive | 2065 | drivers/block/ide.c | ide_dev_t *dev = &ide_dev[hwif][drive]; |
drive | 2066 | drivers/block/ide.c | dev->select.all = (drive<<4)|0xa0; |
drive | 2080 | drivers/block/ide.c | ide_hd[hwif][drive<<PARTN_BITS].start_sect = 0; |
drive | 2081 | drivers/block/ide.c | dev->name = ide_devname[hwif][drive]; |
drive | 2122 | drivers/block/ide.c | static int drive; |
drive | 2124 | drivers/block/ide.c | for (drive = 0; drive < MAX_DRIVES; drive++) { |
drive | 2125 | drivers/block/ide.c | ide_dev_t *dev = &ide_dev[HWIF][drive]; |
drive | 2127 | drivers/block/ide.c | ide_hd[HWIF][drive<<PARTN_BITS].nr_sects = ide_capacity[HWIF][drive]; |
drive | 2130 | drivers/block/ide.c | ide_hd[HWIF][drive<<PARTN_BITS].start_sect = -1; |
drive | 324 | drivers/block/xd.c | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count) |
drive | 331 | drivers/block/xd.c | printk("xd_readwrite: operation = %s, drive = %d, buffer = 0x%X, block = %d, count = %d\n",operation == READ ? "read" : "write",drive,buffer,block,count); |
drive | 334 | drivers/block/xd.c | control = xd_info[drive].control; |
drive | 338 | drivers/block/xd.c | track = block / xd_info[drive].sectors; |
drive | 339 | drivers/block/xd.c | head = track % xd_info[drive].heads; |
drive | 340 | drivers/block/xd.c | cylinder = track / xd_info[drive].heads; |
drive | 341 | drivers/block/xd.c | sector = block % xd_info[drive].sectors; |
drive | 344 | drivers/block/xd.c | printk("xd_readwrite: drive = %d, head = %d, cylinder = %d, sector = %d, count = %d\n",drive,head,cylinder,sector,temp); |
drive | 348 | drivers/block/xd.c | xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control); |
drive | 353 | drivers/block/xd.c | xd_recalibrate(drive); |
drive | 374 | drivers/block/xd.c | static void xd_recalibrate (u_char drive) |
drive | 378 | drivers/block/xd.c | xd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0); |
drive | 422 | drivers/block/xd.c | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control) |
drive | 425 | drivers/block/xd.c | cmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F); |
drive | 509 | drivers/block/xd.c | static u_char xd_initdrives (void (*init_drive)(u_char drive)) |
drive | 538 | drivers/block/xd.c | static void xd_dtc_init_drive (u_char drive) |
drive | 542 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCGETGEOM,drive,0,0,0,0,0); |
drive | 544 | drivers/block/xd.c | xd_info[drive].heads = buf[0x0A]; /* heads */ |
drive | 545 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf))[0x04]; /* cylinders */ |
drive | 546 | drivers/block/xd.c | xd_info[drive].sectors = 17; /* sectors */ |
drive | 548 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf + 1))[0x05]; /* reduced write */ |
drive | 549 | drivers/block/xd.c | xd_info[drive].precomp = ((u_short *) (buf + 1))[0x06]; /* write precomp */ |
drive | 550 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x0F]; /* ecc length */ |
drive | 552 | drivers/block/xd.c | xd_info[drive].control = 0; /* control byte */ |
drive | 554 | drivers/block/xd.c | xd_setparam(CMD_DTCSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders,((u_short *) (buf + 1))[0x05],((u_short *) (buf + 1))[0x06],buf[0x0F]); |
drive | 555 | drivers/block/xd.c | xd_build(cmdblk,CMD_DTCSETSTEP,drive,0,0,0,0,7); |
drive | 557 | drivers/block/xd.c | printk("xd_dtc_init_drive: error setting step rate for drive %d\n",drive); |
drive | 560 | drivers/block/xd.c | printk("xd_dtc_init_drive: error reading geometry for drive %d\n",drive); |
drive | 582 | drivers/block/xd.c | static void xd_wd_init_drive (u_char drive) |
drive | 586 | drivers/block/xd.c | xd_build(cmdblk,CMD_READ,drive,0,0,0,1,0); |
drive | 588 | drivers/block/xd.c | xd_info[drive].heads = buf[0x1AF]; /* heads */ |
drive | 589 | drivers/block/xd.c | xd_info[drive].cylinders = ((u_short *) (buf + 1))[0xD6]; /* cylinders */ |
drive | 590 | drivers/block/xd.c | xd_info[drive].sectors = 17; /* sectors */ |
drive | 592 | drivers/block/xd.c | xd_info[drive].rwrite = ((u_short *) (buf))[0xD8]; /* reduced write */ |
drive | 593 | drivers/block/xd.c | xd_info[drive].wprecomp = ((u_short *) (buf))[0xDA]; /* write precomp */ |
drive | 594 | drivers/block/xd.c | xd_info[drive].ecc = buf[0x1B4]; /* ecc length */ |
drive | 596 | drivers/block/xd.c | xd_info[drive].control = buf[0x1B5]; /* control byte */ |
drive | 598 | drivers/block/xd.c | xd_setparam(CMD_WDSETPARAM,drive,xd_info[drive].heads,xd_info[drive].cylinders,((u_short *) (buf))[0xD8],((u_short *) (buf))[0xDA],buf[0x1B4]); |
drive | 601 | drivers/block/xd.c | printk("xd_wd_init_drive: error reading geometry for drive %d\n",drive); |
drive | 621 | drivers/block/xd.c | static void xd_seagate_init_drive (u_char drive) |
drive | 625 | drivers/block/xd.c | xd_build(cmdblk,CMD_ST11GETGEOM,drive,0,0,0,1,0); |
drive | 627 | drivers/block/xd.c | xd_info[drive].heads = buf[0x04]; /* heads */ |
drive | 628 | drivers/block/xd.c | xd_info[drive].cylinders = (buf[0x02] << 8) | buf[0x03]; /* cylinders */ |
drive | 629 | drivers/block/xd.c | xd_info[drive].sectors = buf[0x05]; /* sectors */ |
drive | 630 | drivers/block/xd.c | xd_info[drive].control = 0; /* control byte */ |
drive | 633 | drivers/block/xd.c | printk("xd_seagate_init_drive: error reading geometry from drive %d\n",drive); |
drive | 655 | drivers/block/xd.c | static void xd_omti_init_drive (u_char drive) |
drive | 658 | drivers/block/xd.c | xd_override_init_drive(drive); |
drive | 661 | drivers/block/xd.c | xd_info[drive].control = 2; |
drive | 666 | drivers/block/xd.c | static void xd_override_init_drive (u_char drive) |
drive | 674 | drivers/block/xd.c | xd_build(cmdblk,CMD_SEEK,drive,(u_char) test[0],(u_short) test[1],(u_char) test[2],0,0); |
drive | 682 | drivers/block/xd.c | xd_info[drive].heads = (u_char) min[0] + 1; |
drive | 683 | drivers/block/xd.c | xd_info[drive].cylinders = (u_short) min[1] + 1; |
drive | 684 | drivers/block/xd.c | xd_info[drive].sectors = (u_char) min[2] + 1; |
drive | 685 | drivers/block/xd.c | xd_info[drive].control = 0; |
drive | 702 | drivers/block/xd.c | static void xd_setparam (u_char command,u_char drive,u_char heads,u_short cylinders,u_short rwrite,u_short wprecomp,u_char ecc) |
drive | 706 | drivers/block/xd.c | xd_build(cmdblk,command,drive,0,0,0,0,0); |
drive | 717 | drivers/block/xd.c | printk("xd_setparam: error setting characteristics for drive %d\n",drive); |
drive | 1547 | drivers/scsi/fdomain.c | int drive; |
drive | 1603 | drivers/scsi/fdomain.c | drive = MINOR(dev) / 16; |
drive | 1607 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f33 + drive * 25 ); |
drive | 1609 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f31 + drive * 25 ); |
drive | 1617 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f71 + drive * 10 ); |
drive | 41 | include/linux/blkdev.h | extern void resetup_one_dev(struct gendisk *dev, int drive); |
drive | 103 | include/linux/xd.h | void (*init_drive)(u_char drive); |
drive | 110 | include/linux/xd.h | static u_char xd_initdrives (void (*init_drive)(u_char drive)); |
drive | 118 | include/linux/xd.h | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count); |
drive | 119 | include/linux/xd.h | static void xd_recalibrate (u_char drive); |
drive | 123 | include/linux/xd.h | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control); |
drive | 129 | include/linux/xd.h | static void xd_dtc_init_drive (u_char drive); |
drive | 131 | include/linux/xd.h | static void xd_wd_init_drive (u_char drive); |
drive | 133 | include/linux/xd.h | static void xd_seagate_init_drive (u_char drive); |
drive | 135 | include/linux/xd.h | static void xd_omti_init_drive (u_char drive); |
drive | 136 | include/linux/xd.h | static void xd_setparam (u_char command,u_char drive,u_char heads,u_short cylinders,u_short rwrite,u_short wprecomp,u_char ecc); |
drive | 137 | include/linux/xd.h | static void xd_override_init_drive (u_char drive); |