tag | line | file | source code |
drive | 225 | drivers/block/floppy.c | #define UDP (&drive_params[drive]) |
drive | 226 | drivers/block/floppy.c | #define UDRS (&drive_state[drive]) |
drive | 227 | drivers/block/floppy.c | #define UDRWE (&write_errors[drive]) |
drive | 228 | drivers/block/floppy.c | #define UFDCS (&fdc_state[FDC(drive)]) |
drive | 596 | drivers/block/floppy.c | static void reschedule_timeout(int drive, char *message, int marg) |
drive | 598 | drivers/block/floppy.c | if (drive == CURRENTD ) |
drive | 599 | drivers/block/floppy.c | drive = current_drive; |
drive | 601 | drivers/block/floppy.c | if (drive < 0 || drive > N_DRIVE) { |
drive | 603 | drivers/block/floppy.c | drive=0; |
drive | 648 | drivers/block/floppy.c | static int disk_change(int drive) |
drive | 650 | drivers/block/floppy.c | int fdc=FDC(drive); |
drive | 654 | drivers/block/floppy.c | if(! (FDCS->dor & (0x10 << UNIT(drive))) || |
drive | 655 | drivers/block/floppy.c | (FDCS->dor & 3) != UNIT(drive) || |
drive | 656 | drivers/block/floppy.c | fdc != FDC(drive)){ |
drive | 658 | drivers/block/floppy.c | DPRINT3("drive=%d fdc=%d dor=%x\n",drive, FDC(drive), |
drive | 665 | drivers/block/floppy.c | DPRINT1("checking disk change line for drive %d\n",drive); |
drive | 682 | drivers/block/floppy.c | current_type[drive] != NULL) |
drive | 685 | drivers/block/floppy.c | current_type[drive] = NULL; |
drive | 705 | drivers/block/floppy.c | register unsigned char drive, unit, newdor,olddor; |
drive | 715 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
drive | 721 | drivers/block/floppy.c | disk_change(drive); |
drive | 728 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
drive | 752 | drivers/block/floppy.c | int drive; |
drive | 758 | drivers/block/floppy.c | for ( drive = 0; drive < N_DRIVE; drive++) |
drive | 759 | drivers/block/floppy.c | if (FDC(drive) == fdc && |
drive | 765 | drivers/block/floppy.c | static void set_fdc(int drive) |
drive | 767 | drivers/block/floppy.c | if (drive >= 0 && drive < N_DRIVE){ |
drive | 768 | drivers/block/floppy.c | fdc = FDC(drive); |
drive | 769 | drivers/block/floppy.c | current_drive = drive; |
drive | 780 | drivers/block/floppy.c | static int lock_fdc(int drive, int interruptible) |
drive | 799 | drivers/block/floppy.c | set_fdc(drive); |
drive | 800 | drivers/block/floppy.c | reschedule_timeout(drive, "lock fdc", 0); |
drive | 804 | drivers/block/floppy.c | #define LOCK_FDC(drive,interruptible) \ |
drive | 805 | drivers/block/floppy.c | if(lock_fdc(drive,interruptible)) return -EINTR; |
drive | 845 | drivers/block/floppy.c | static void floppy_off(unsigned int drive) |
drive | 848 | drivers/block/floppy.c | register int fdc=FDC(drive); |
drive | 850 | drivers/block/floppy.c | if( !(FDCS->dor & ( 0x10 << UNIT(drive)))) |
drive | 853 | drivers/block/floppy.c | del_timer(motor_off_timer+drive); |
drive | 861 | drivers/block/floppy.c | motor_off_timer[drive].expires = UDP->spindown - delta; |
drive | 863 | drivers/block/floppy.c | add_timer(motor_off_timer+drive); |
drive | 873 | drivers/block/floppy.c | int i, drive, saved_drive; |
drive | 880 | drivers/block/floppy.c | drive = (saved_drive + i + 1 ) % N_DRIVE; |
drive | 883 | drivers/block/floppy.c | set_fdc(drive); |
drive | 884 | drivers/block/floppy.c | if(! (set_dor( fdc, ~3, UNIT(drive) | ( 0x10 << UNIT(drive))) & |
drive | 885 | drivers/block/floppy.c | (0x10 << UNIT(drive)))) |
drive | 888 | drivers/block/floppy.c | set_dor( fdc, ~( 0x10 << UNIT(drive) ), 0 ); |
drive | 2078 | drivers/block/floppy.c | int drive=DRIVE(device); |
drive | 2080 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2766 | drivers/block/floppy.c | static int user_reset_fdc(int drive, int arg, int interruptible) |
drive | 2773 | drivers/block/floppy.c | LOCK_FDC(drive,interruptible); |
drive | 2803 | drivers/block/floppy.c | static char *drive_name(int type, int drive ) |
drive | 2830 | drivers/block/floppy.c | int i, drive, count, ret; |
drive | 2834 | drivers/block/floppy.c | for ( drive= 0; drive < N_DRIVE; drive++){ |
drive | 2835 | drivers/block/floppy.c | if ( FDC(drive) != fdc) |
drive | 2837 | drivers/block/floppy.c | if ( drive == current_drive ){ |
drive | 2924 | drivers/block/floppy.c | int i,device,drive,type,cnt; |
drive | 2933 | drivers/block/floppy.c | drive = DRIVE(device); |
drive | 2939 | drivers/block/floppy.c | name = drive_name(type,drive); |
drive | 2951 | drivers/block/floppy.c | else if ((this_floppy = current_type[drive]) == |
drive | 2956 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2983 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2998 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 2999 | drivers/block/floppy.c | current_type[drive] = NULL; |
drive | 3000 | drivers/block/floppy.c | floppy_sizes[drive] = MAX_DISK_SIZE; |
drive | 3005 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 3021 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 3025 | drivers/block/floppy.c | set_bit(drive, &fake_change); |
drive | 3045 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 3050 | drivers/block/floppy.c | user_params[drive] = newparams; |
drive | 3051 | drivers/block/floppy.c | if (buffer_drive == drive && |
drive | 3052 | drivers/block/floppy.c | buffer_max > user_params[drive].sect) |
drive | 3053 | drivers/block/floppy.c | buffer_max=user_params[drive].sect; |
drive | 3054 | drivers/block/floppy.c | current_type[drive] = &user_params[drive]; |
drive | 3055 | drivers/block/floppy.c | floppy_sizes[drive] = user_params[drive].size >> 1; |
drive | 3066 | drivers/block/floppy.c | user_params[drive].sect || |
drive | 3073 | drivers/block/floppy.c | return user_reset_fdc( drive, (int)param, 1); |
drive | 3085 | drivers/block/floppy.c | LOCK_FDC(drive,1); |
drive | 3104 | drivers/block/floppy.c | int drive; |
drive | 3107 | drivers/block/floppy.c | drive=0; |
drive | 3110 | drivers/block/floppy.c | drive=1; |
drive | 3117 | drivers/block/floppy.c | for (drive=0; drive < N_DRIVE; drive++){ |
drive | 3129 | drivers/block/floppy.c | ALLOWED_DRIVE_MASK |= 1 << drive; |
drive | 3130 | drivers/block/floppy.c | printk("fd%d is %s", drive, |
drive | 3133 | drivers/block/floppy.c | printk("fd%d is unknown type %d",drive, |
drive | 3144 | drivers/block/floppy.c | int drive = DRIVE(inode->i_rdev); |
drive | 3157 | drivers/block/floppy.c | int drive = DRIVE(inode->i_rdev); |
drive | 3175 | drivers/block/floppy.c | int drive; |
drive | 3177 | drivers/block/floppy.c | drive = DRIVE(inode->i_rdev); |
drive | 3204 | drivers/block/floppy.c | int drive; |
drive | 3214 | drivers/block/floppy.c | drive = DRIVE(inode->i_rdev); |
drive | 3216 | drivers/block/floppy.c | if (drive >= N_DRIVE || |
drive | 3217 | drivers/block/floppy.c | !( ALLOWED_DRIVE_MASK & ( 1 << drive)) || |
drive | 3218 | drivers/block/floppy.c | fdc_state[FDC(drive)].version == FDC_NONE) |
drive | 3274 | drivers/block/floppy.c | if (buffer_drive == drive) |
drive | 3307 | drivers/block/floppy.c | int drive = DRIVE( dev ); |
drive | 3318 | drivers/block/floppy.c | lock_fdc(drive,0); |
drive | 3324 | drivers/block/floppy.c | test_bit(drive, &fake_change) || |
drive | 3325 | drivers/block/floppy.c | (!TYPE(dev) && !current_type[drive])) |
drive | 3336 | drivers/block/floppy.c | #define NO_GEOM (!current_type[drive] && !TYPE(dev)) |
drive | 3338 | drivers/block/floppy.c | int drive=DRIVE(dev); |
drive | 3341 | drivers/block/floppy.c | if(UTESTF(FD_DISK_CHANGED) || test_bit(drive, &fake_change) || NO_GEOM){ |
drive | 3342 | drivers/block/floppy.c | lock_fdc(drive,0); |
drive | 3344 | drivers/block/floppy.c | if(! (cf || test_bit(drive, &fake_change) || NO_GEOM)){ |
drive | 3350 | drivers/block/floppy.c | if ( buffer_drive == drive) |
drive | 3352 | drivers/block/floppy.c | clear_bit(drive, &fake_change); |
drive | 3569 | drivers/block/floppy.c | int i,drive; |
drive | 3612 | drivers/block/floppy.c | for (drive = 0; drive < N_DRIVE ; drive++) { |
drive | 3710 | drivers/block/floppy.c | int drive; |
drive | 3744 | drivers/block/floppy.c | for(drive=0; drive < N_FDC * 4; drive++) |
drive | 3745 | drivers/block/floppy.c | if( motor_off_timer[drive].next ) |
drive | 3746 | drivers/block/floppy.c | printk("motor off timer %d still active\n", drive); |
drive | 318 | drivers/block/genhd.c | void resetup_one_dev(struct gendisk *dev, int drive) |
drive | 321 | drivers/block/genhd.c | int start = drive<<dev->minor_shift; |
drive | 325 | drivers/block/genhd.c | current_minor = 1+(drive<<dev->minor_shift); |
drive | 326 | drivers/block/genhd.c | check_partition(dev, major+(drive<<dev->minor_shift)); |
drive | 337 | drivers/block/genhd.c | int drive; |
drive | 345 | drivers/block/genhd.c | for (drive=0 ; drive<dev->nr_real ; drive++) { |
drive | 346 | drivers/block/genhd.c | current_minor = 1+(drive<<dev->minor_shift); |
drive | 347 | 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 | 963 | drivers/block/hd.c | int cmos_disks, drive; |
drive | 965 | drivers/block/hd.c | for (drive=0 ; drive<2 ; drive++) { |
drive | 966 | drivers/block/hd.c | bios_info[drive].cyl = hd_info[drive].cyl = *(unsigned short *) BIOS; |
drive | 967 | drivers/block/hd.c | bios_info[drive].head = hd_info[drive].head = *(2+BIOS); |
drive | 968 | drivers/block/hd.c | bios_info[drive].wpcom = hd_info[drive].wpcom = *(unsigned short *) (5+BIOS); |
drive | 969 | drivers/block/hd.c | bios_info[drive].ctl = hd_info[drive].ctl = *(8+BIOS); |
drive | 970 | drivers/block/hd.c | bios_info[drive].lzone = hd_info[drive].lzone = *(unsigned short *) (12+BIOS); |
drive | 971 | drivers/block/hd.c | bios_info[drive].sect = hd_info[drive].sect = *(14+BIOS); |
drive | 973 | drivers/block/hd.c | if (hd_info[drive].cyl && NR_HD == drive) |
drive | 487 | drivers/block/ide-cd.c | reqbuf = &cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data; |
drive | 498 | drivers/block/ide-cd.c | rq->dev = MKDEV (major, (dev->select.b.drive) << PARTN_BITS); |
drive | 537 | drivers/block/ide-cd.c | reqbuf = &cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data; |
drive | 551 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].nsectors_buffered = 0; |
drive | 743 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[DEV_HWIF][dev->select.b.drive]; |
drive | 950 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[DEV_HWIF][dev->select.b.drive]; |
drive | 1103 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].nsectors_buffered = 0; |
drive | 1297 | drivers/block/ide-cd.c | req.dev = MKDEV (major, (dev->select.b.drive) << PARTN_BITS); |
drive | 1334 | drivers/block/ide-cd.c | &cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data; |
drive | 1547 | drivers/block/ide-cd.c | struct atapi_toc *toc = cdrom_info[DEV_HWIF][dev->select.b.drive].toc; |
drive | 1554 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].toc = toc; |
drive | 1732 | drivers/block/ide-cd.c | reqbuf = &cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data; |
drive | 1761 | drivers/block/ide-cd.c | toc = cdrom_info[DEV_HWIF][dev->select.b.drive].toc; |
drive | 1857 | drivers/block/ide-cd.c | toc = cdrom_info[DEV_HWIF][dev->select.b.drive].toc; |
drive | 2074 | drivers/block/ide-cd.c | ide_capacity[DEV_HWIF][dev->select.b.drive] = 0x1fffff; |
drive | 2076 | drivers/block/ide-cd.c | ide_blksizes[DEV_HWIF][dev->select.b.drive << PARTN_BITS] = CD_FRAMESIZE; |
drive | 2104 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].toc = NULL; |
drive | 2105 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].sector_buffer = NULL; |
drive | 2106 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].sector_buffered = 0; |
drive | 2107 | drivers/block/ide-cd.c | cdrom_info[DEV_HWIF][dev->select.b.drive].nsectors_buffered = 0; |
drive | 298 | drivers/block/ide.c | unsigned drive : 1; /* drive number */ |
drive | 1106 | drivers/block/ide.c | unsigned int minor, drive; |
drive | 1136 | drivers/block/ide.c | drive = minor >> PARTN_BITS; |
drive | 1137 | drivers/block/ide.c | ide_cur_dev[HWIF] = dev = &ide_dev[HWIF][drive]; |
drive | 1138 | drivers/block/ide.c | if ((MAJOR(rq->dev) != ide_major[HWIF]) || (drive >= MAX_DRIVES)) { |
drive | 1332 | drivers/block/ide.c | unsigned int drive = DEVICE_NR(i_rdev); |
drive | 1335 | drivers/block/ide.c | if (drive < MAX_DRIVES) { |
drive | 1337 | drivers/block/ide.c | case IDE0_MAJOR: dev = &ide_dev[0][drive]; |
drive | 1340 | drivers/block/ide.c | case IDE1_MAJOR: dev = &ide_dev[1][drive]; |
drive | 1398 | drivers/block/ide.c | unsigned int i, major, start, drive = DEVICE_NR(i_rdev); |
drive | 1417 | drivers/block/ide.c | start = drive << PARTN_BITS; |
drive | 1428 | drivers/block/ide.c | gd->part[start].nr_sects = ide_capacity[DEV_HWIF][drive]; |
drive | 1429 | drivers/block/ide.c | resetup_one_dev(gd, drive); |
drive | 1826 | drivers/block/ide.c | ide_capacity[DEV_HWIF][dev->select.b.drive] = capacity; |
drive | 1971 | drivers/block/ide.c | if (dev->select.b.drive == 1) { |
drive | 2062 | drivers/block/ide.c | int i, hwif, drive = next_drive++; |
drive | 2066 | drivers/block/ide.c | if (drive < 2) { |
drive | 2071 | drivers/block/ide.c | hwif = (drive > 1); |
drive | 2073 | drivers/block/ide.c | if (drive > 3) { |
drive | 2077 | drivers/block/ide.c | drive = drive & 1; |
drive | 2078 | drivers/block/ide.c | printk("%s: ", ide_devname[hwif][drive]); |
drive | 2083 | drivers/block/ide.c | dev = &ide_dev[hwif][drive]; |
drive | 2133 | drivers/block/ide.c | ide_capacity[HWIF][drive] = BIOS_SECTORS(dev); |
drive | 2195 | drivers/block/ide.c | byte drive, cmos_disks, *BIOS = (byte *) &drive_info; |
drive | 2200 | drivers/block/ide.c | for (drive = 0; drive < MAX_DRIVES; drive++) { |
drive | 2201 | drivers/block/ide.c | ide_dev_t *dev = &ide_dev[0][drive]; |
drive | 2202 | drivers/block/ide.c | if ((cmos_disks & (0xf0 >> (drive*4))) && !dev->present) { |
drive | 2211 | drivers/block/ide.c | ide_capacity[0][drive] = BIOS_SECTORS(dev); |
drive | 2221 | drivers/block/ide.c | int drive; |
drive | 2223 | drivers/block/ide.c | for (drive = 0; drive < (MAX_DRIVES<<PARTN_BITS); drive++) |
drive | 2224 | drivers/block/ide.c | ide_blksizes[hwif][drive] = 1024; |
drive | 2228 | drivers/block/ide.c | for (drive = 0; drive < MAX_DRIVES; drive++) { |
drive | 2229 | drivers/block/ide.c | ide_dev_t *dev = &ide_dev[hwif][drive]; |
drive | 2230 | drivers/block/ide.c | dev->select.all = (drive<<4)|0xa0; |
drive | 2246 | drivers/block/ide.c | ide_hd[hwif][drive<<PARTN_BITS].start_sect = 0; |
drive | 2247 | drivers/block/ide.c | dev->name = ide_devname[hwif][drive]; |
drive | 2297 | drivers/block/ide.c | static int drive; |
drive | 2299 | drivers/block/ide.c | for (drive = 0; drive < MAX_DRIVES; drive++) { |
drive | 2300 | drivers/block/ide.c | ide_dev_t *dev = &ide_dev[HWIF][drive]; |
drive | 2302 | drivers/block/ide.c | ide_hd[HWIF][drive<<PARTN_BITS].nr_sects = ide_capacity[HWIF][drive]; |
drive | 2305 | drivers/block/ide.c | ide_hd[HWIF][drive<<PARTN_BITS].start_sect = -1; |
drive | 940 | drivers/block/mcdx.c | int drive; |
drive | 947 | drivers/block/mcdx.c | for (drive = 0; drive < MCDX_NDRIVES; drive++) |
drive | 948 | drivers/block/mcdx.c | mcdx_stuffp[drive] = NULL; |
drive | 951 | drivers/block/mcdx.c | for (drive = 0; drive < MCDX_NDRIVES; drive++) { |
drive | 955 | drivers/block/mcdx.c | TRACE((INIT, "init() try drive %d\n", drive)); |
drive | 973 | drivers/block/mcdx.c | stuffp->irq = irq(mcdx_drive_map[drive]); |
drive | 974 | drivers/block/mcdx.c | stuffp->wreg_data = stuffp->rreg_data = port(mcdx_drive_map[drive]); |
drive | 1068 | drivers/block/mcdx.c | stuffp->minor = drive; |
drive | 1073 | drivers/block/mcdx.c | mcdx_stuffp[drive] = stuffp; |
drive | 1074 | drivers/block/mcdx.c | TRACE((INIT, "init() mcdx_stuffp[%d] = %p\n", drive, stuffp)); |
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 | 1754 | drivers/scsi/fdomain.c | int drive; |
drive | 1810 | drivers/scsi/fdomain.c | drive = MINOR(dev) / 16; |
drive | 1817 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f33 + drive * 25 ); |
drive | 1820 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f36 + drive * 15 ); |
drive | 1823 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f34 + drive * 15 ); |
drive | 1826 | drivers/scsi/fdomain.c | i = (struct drive_info *)( (char *)bios_base + 0x1f31 + drive * 25 ); |
drive | 1835 | 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); |