/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/pci/ |
H A D | hpt366.c | 393 static int check_in_drive_list(ide_drive_t *drive, const char **list) argument 395 struct hd_driveid *id = drive->id; 408 static u8 hpt3xx_udma_filter(ide_drive_t *drive) argument 410 struct hpt_info *info = pci_get_drvdata(HWIF(drive)->pci_dev); 423 if (!check_in_drive_list(drive, bad_ata100_5)) 435 !check_in_drive_list(drive, bad_ata66_4)) 440 !check_in_drive_list(drive, bad_ata66_3)) 449 if (!check_in_drive_list(drive, bad_ata33)) 480 static int hpt36x_tune_chipset(ide_drive_t *drive, u8 xferspeed) argument 482 ide_hwif_t *hwif = HWIF(drive); 512 hpt37x_tune_chipset(ide_drive_t *drive, u8 xferspeed) argument 541 hpt3xx_tune_chipset(ide_drive_t *drive, u8 speed) argument 552 hpt3xx_tune_drive(ide_drive_t *drive, u8 pio) argument 558 hpt3xx_quirkproc(ide_drive_t *drive) argument 569 hpt3xx_intrproc(ide_drive_t *drive) argument 579 hpt3xx_maskproc(ide_drive_t *drive, int mask) argument 608 hpt366_config_drive_xfer_rate(ide_drive_t *drive) argument 625 hpt366_ide_dma_lostirq(ide_drive_t *drive) argument 640 hpt370_clear_engine(ide_drive_t *drive) argument 648 hpt370_irq_timeout(ide_drive_t *drive) argument 664 hpt370_ide_dma_start(ide_drive_t *drive) argument 672 hpt370_ide_dma_end(ide_drive_t *drive) argument 687 hpt370_ide_dma_timeout(ide_drive_t *drive) argument 694 hpt374_ide_dma_test_irq(ide_drive_t *drive) argument 717 hpt374_ide_dma_end(ide_drive_t *drive) argument 780 hpt3xxn_rw_disk(ide_drive_t *drive, struct request *rq) argument 793 hpt3xx_busproc(ide_drive_t *drive, int state) argument [all...] |
H A D | siimage.c | 24 * drive to "Single". "Master" will hang 111 static inline unsigned long siimage_seldev(ide_drive_t *drive, int r) argument 113 ide_hwif_t *hwif = HWIF(drive); 120 base |= drive->select.b.unit << drive->select.b.unit; 126 * @drive: IDE device 134 static u8 sil_udma_filter(ide_drive_t *drive) argument 136 ide_hwif_t *hwif = drive->hwif; 146 mask = strstr(drive->id->model, "Maxtor") ? 0x3f : 0x7f; 192 * simmage_tuneproc - tune a drive 201 siimage_tuneproc(ide_drive_t *drive, byte mode_wanted) argument 255 config_siimage_chipset_for_pio(ide_drive_t *drive, byte set_speed) argument 280 siimage_tune_chipset(ide_drive_t *drive, byte xferspeed) argument 371 siimage_config_drive_for_dma(ide_drive_t *drive) argument 383 siimage_io_ide_dma_test_irq(ide_drive_t *drive) argument 408 siimage_mmio_ide_dma_test_irq(ide_drive_t *drive) argument 456 siimage_busproc(ide_drive_t * drive, int state) argument 495 siimage_reset_poll(ide_drive_t *drive) argument 521 siimage_pre_reset(ide_drive_t *drive) argument 541 siimage_reset(ide_drive_t *drive) argument 846 is_dev_seagate_sata(ide_drive_t *drive) argument [all...] |
H A D | scc_pata.c | 163 scc_ide_outbsync(ide_drive_t * drive, u8 addr, unsigned long port) argument 165 ide_hwif_t *hwif = HWIF(drive); 193 * scc_tuneproc - tune a drive PIO mode 194 * @drive: drive to tune 201 static void scc_tuneproc(ide_drive_t *drive, byte mode_wanted) argument 203 ide_hwif_t *hwif = HWIF(drive); 213 mode_wanted = ide_get_best_pio_mode(drive, mode_wanted, 4, NULL); 244 ide_config_drive_speed(drive, speed); 248 * scc_tune_chipset - tune a drive DM 256 scc_tune_chipset(ide_drive_t *drive, byte xferspeed) argument 335 scc_config_drive_for_dma(ide_drive_t *drive) argument 357 scc_dma_setup(ide_drive_t *drive) argument 399 scc_ide_dma_end(ide_drive_t * drive) argument 476 scc_dma_test_irq(ide_drive_t *drive) argument [all...] |
H A D | delkin_cb.c | 55 ide_drive_t *drive; local 91 drive = &hwif->drives[0]; 92 if (drive->present) { 93 drive->io_32bit = 1; 94 drive->unmask = 1;
|
H A D | via82cxxx.c | 156 * @drive: Drive to set up 159 * via_set_drive() computes timing values configures the drive and 164 static int via_set_drive(ide_drive_t *drive, u8 speed) argument 166 ide_drive_t *peer = HWIF(drive)->drives + (~drive->dn & 1); 167 struct via82cxxx_dev *vdev = pci_get_drvdata(drive->hwif->pci_dev); 172 ide_config_drive_speed(drive, speed); 184 ide_timing_compute(drive, speed, &t, T, UT); 191 via_set_speed(HWIF(drive), drive 208 via82cxxx_tune_drive(ide_drive_t *drive, u8 pio) argument 227 via82cxxx_ide_dma_check(ide_drive_t *drive) argument [all...] |
H A D | alim15x3.c | 276 * @drive: drive to tune 279 * Select the best PIO mode for the drive in question. 285 static u8 ali15x3_tune_pio (ide_drive_t *drive, u8 pio) argument 288 ide_hwif_t *hwif = HWIF(drive); 297 int unit = drive->select.b.unit & 1; 299 pio = ide_get_best_pio_mode(drive, pio, 5, &d); 321 if (drive->media==ide_disk) { 336 pci_write_config_byte(dev, port+drive->select.b.unit+2, (a_clc << 4) | r_clc); 353 * ali15x3_tune_drive - set up drive fo 361 ali15x3_tune_drive(ide_drive_t *drive, u8 pio) argument 368 ali_udma_filter(ide_drive_t *drive) argument 391 ali15x3_tune_chipset(ide_drive_t *drive, u8 xferspeed) argument 440 ali15x3_config_drive_for_dma(ide_drive_t *drive) argument 459 ali15x3_dma_setup(ide_drive_t *drive) argument [all...] |
H A D | cmd640.c | 60 * Version 0.07 Changed to more conservative drive tuning policy. 168 * Registers and masks for easy access by drive index: 179 * Current cmd640 timing values for each drive. 347 * Returns 1 if an IDE interface/drive exists at 0x170, 390 * Check whether prefetch is on for a drive, 395 ide_drive_t *drive = cmd_drives[index]; local 399 drive->no_unmask = 0; 400 drive->no_io_32bit = 1; 401 drive->io_32bit = 0; 404 drive 442 ide_drive_t *drive = cmd_drives[index]; local 634 cmd640_tune_drive(ide_drive_t *drive, u8 mode_wanted) argument 838 ide_drive_t *drive = cmd_drives[index]; local [all...] |
H A D | amd74xx.c | 236 * amd_set_drive() computes timing values configures the drive and 241 static int amd_set_drive(ide_drive_t *drive, u8 speed) argument 243 ide_drive_t *peer = HWIF(drive)->drives + (~drive->dn & 1); 248 ide_config_drive_speed(drive, speed); 253 ide_timing_compute(drive, speed, &t, T, UT); 263 amd_set_speed(HWIF(drive)->pci_dev, drive->dn, &t); 265 if (!drive->init_speed) 266 drive 277 amd74xx_tune_drive(ide_drive_t *drive, u8 pio) argument 293 amd74xx_ide_dma_check(ide_drive_t *drive) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/mtools-4.0.10/ |
H A D | init.c | 106 Stream_t *find_device(char drive, int mode, struct device *out_dev, argument 118 sprintf(errmsg, "Drive '%c:' not supported", drive); 122 if (dev->drive != drive) 176 drive); 184 drive); 186 sprintf(errmsg,"init %c: non DOS media", drive); 197 drive, strerror(errno)); 201 drive, strerror(errno)); 206 drive); 224 fs_init(char drive, int mode, int *isRop) argument [all...] |
H A D | mcat.c | 59 char drive, name[EXPAND_BUF]; local 93 drive = toupper(argv[optindex][0]); 95 /* check out a drive whose letter and parameters match */ 96 sprintf(errmsg, "Drive '%c:' not supported", drive); 100 if (dev->drive != drive) 133 if ( dev->drive == 0 ){
|
H A D | config.c | 54 static char default_drive='\0'; /* default drive */ 176 static void maintain_default_drive(char drive) argument 181 default_drive > drive) 182 default_drive = drive; 195 char drive='\0'; local 199 drive = devices[cur_dev].drive; 201 if(drive) fprintf(stderr, "for drive %c: ", drive); 335 purge(char drive, int fn) argument 392 char drive; local 567 parse_old_device_line(char drive) argument 758 char drive='\\0'; local [all...] |
H A D | fs.h | 36 Stream_t *fs_init(char drive, int mode, int *isRop);
|
H A D | mmount.c | 37 char drive; local 48 fprintf(stderr,"Usage: %s -V drive:\n", argv[0]); 51 drive = toupper(argv[1][0]); 52 Stream= find_device(drive, O_RDONLY, &dev, boot, name, &media, 0, NULL);
|
H A D | mclasserase.c | 62 fprintf(stderr, "Usage: %s [-d] drive:\n", progname); 73 * @param drive the drive to erase 79 static void do_mclasserase(char drive,int debug) argument 97 char drivel[2]; /* Stores the drive letter */ 123 if(! (Stream = find_device(drive, O_RDONLY, &dev, boot, 151 sprintf( drivel, "%c:", tolower(drive) ); 278 * @info mclasserase [-p tempFilePath] [-d] drive: 288 char drive='a'; local 333 /* look for the drive t [all...] |
H A D | mzip.c | 20 * Iomega Zip/Jaz drive tool 160 "Usage: %s [-V] [-q] [-e] [-u] [-r|-w|-p|-x] [drive:]\n" 228 char drive; local 296 drive = toupper(argc - optind == 1 ? argv[argc - 1][0] : ':'); 315 if (dev->drive != drive) 339 * open the drive on Solaris if 381 fprintf(stderr,"Skipping drive with vendor='"); 392 break; /* found Zip/Jaz drive */ 395 if (dev->drive [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/cris/ |
H A D | ide-cris.c | 13 * There are two forms of DMA - "DMA handshaking" between the interface and the drive, 124 REG_WR_INT(ata, regi_ata, rw_ctrl2, command); /* write data to the drive's register */ 230 cris_ide_start_dma(ide_drive_t *drive, cris_dma_descr_type *d, int dir,int type,int len) argument 266 static int cris_dma_test_irq(ide_drive_t *drive) argument 502 static void cris_ide_start_dma(ide_drive_t *drive, cris_dma_descr_type *d, int dir, int type, int len) argument 548 static int cris_dma_test_irq(ide_drive_t *drive) argument 592 * drive times out on a command. See comment on timeout in 598 cris_ide_write_command(reg|data); /* write data to the drive's register */ 614 cris_ide_outbsync(ide_drive_t *drive, u8 addr, unsigned long port) argument 673 static int cris_dma_check (ide_drive_t *drive); 685 cris_dma_off(ide_drive_t *drive) argument 689 tune_cris_ide(ide_drive_t *drive, u8 pio) argument 727 speed_cris_ide(ide_drive_t *drive, u8 speed) argument 842 cris_dma_on(ide_drive_t *drive) argument 858 cris_atapi_input_bytes(ide_drive_t *drive, void *buffer, unsigned int bytecount) argument 880 cris_atapi_output_bytes(ide_drive_t *drive, void *buffer, unsigned int bytecount) argument 905 cris_ide_input_data(ide_drive_t *drive, void *buffer, unsigned int wcount) argument 914 cris_ide_output_data(ide_drive_t *drive, void *buffer, unsigned int wcount) argument 927 cris_ide_build_dmatable(ide_drive_t *drive) argument 1008 cris_dma_intr(ide_drive_t *drive) argument 1032 cris_dma_check(ide_drive_t *drive) argument 1040 cris_dma_end(ide_drive_t *drive) argument 1046 cris_dma_setup(ide_drive_t *drive) argument 1060 cris_dma_exec_cmd(ide_drive_t *drive, u8 command) argument 1069 cris_dma_start(ide_drive_t *drive) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/ |
H A D | ide.h | 83 #define HWIF(drive) ((ide_hwif_t *)((drive)->hwif)) 84 #define HWGROUP(drive) ((ide_hwgroup_t *)(HWIF(drive)->hwgroup)) 107 #define IDE_DATA_REG (HWIF(drive)->io_ports[IDE_DATA_OFFSET]) 108 #define IDE_ERROR_REG (HWIF(drive)->io_ports[IDE_ERROR_OFFSET]) 109 #define IDE_NSECTOR_REG (HWIF(drive)->io_ports[IDE_NSECTOR_OFFSET]) 110 #define IDE_SECTOR_REG (HWIF(drive)->io_ports[IDE_SECTOR_OFFSET]) 111 #define IDE_LCYL_REG (HWIF(drive)->io_ports[IDE_LCYL_OFFSET]) 112 #define IDE_HCYL_REG (HWIF(drive) 830 ide_drive_t *drive; member in struct:hwgroup_s 941 ide_proc_register_driver(ide_drive_t *drive, ide_driver_t *driver) argument 942 ide_proc_unregister_driver(ide_drive_t *drive, ide_driver_t *driver) argument 943 ide_add_generic_settings(ide_drive_t *drive) argument 1305 ide_max_dma_mode(ide_drive_t *drive) argument 1306 ide_tune_dma(ide_drive_t *drive) argument 1307 ide_dma_off(ide_drive_t *drive) argument 1308 ide_dma_verbose(ide_drive_t *drive) argument 1309 ide_set_dma(ide_drive_t *drive) argument 1313 ide_release_dma(ide_hwif_t *drive) argument 1322 ide_acpi_exec_tfs(ide_drive_t *drive) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/legacy/ |
H A D | hd.c | 14 * IRQ-unmask, drive-id, multiple-mode, support for ">16 heads", 66 #define HD_CURRENT 0x1f6 /* 101dhhhh , d=drive, hhhh=head */ 280 static int controller_ready(unsigned int drive, unsigned int head) argument 287 outb_p(0xA0 | (drive<<4) | head, HD_CURRENT); 388 * drive enters "idle", "standby", or "sleep" mode, so if the status looks 577 * data/cmds with a drive, because some drives seem to have very poor 705 int drive; local 728 for (drive=0 ; drive<2 ; drive [all...] |
H A D | dtc2278.c | 70 static void tune_dtc2278 (ide_drive_t *drive, u8 pio) argument 74 pio = ide_get_best_pio_mode(drive, pio, 4, NULL); 91 drive->io_32bit = 1; 92 HWIF(drive)->drives[!drive->select.b.unit].io_32bit = 1;
|
H A D | macide.c | 40 #define IDE_SELECT 0x18 /* 101dhhhh , d=drive, hhhh=head */ 123 /* Fix breakage in ide-disk.c: drive capacity */ 126 /* probing the drive which freezes a 190. */ 128 ide_drive_t *drive = &ide_hwifs[index].drives[0]; local 129 drive->capacity64 = drive->cyl*drive->head*drive->sect;
|
H A D | umc8672.c | 35 * in the beginning of the driver, which sets the speed of drive 0 to 11 (there 59 #define UMC_DRIVE0 1 /* DOS measured drive speeds */ 104 printk ("umc8672: drive speeds [0 to 11]: %d %d %d %d\n", 108 static void tune_umc (ide_drive_t *drive, u8 pio) argument 111 ide_hwgroup_t *hwgroup = ide_hwifs[HWIF(drive)->index^1].hwgroup; 113 pio = ide_get_best_pio_mode(drive, pio, 4, NULL); 115 drive->name, pio, pio_to_umc[pio]); 120 current_speeds[drive->name[2] - 'a'] = pio_to_umc[pio];
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/ |
H A D | ide-timing.h | 114 static short ide_find_best_mode(ide_drive_t *drive, int map) argument 116 struct hd_driveid *id = drive->id; 139 if ((map & XFER_MWDMA) && (id->field_valid & 2)) { /* Want MWDMA and drive has EIDE fields */ 166 if ((best = (drive->id->eide_pio_modes & 4) ? XFER_PIO_5 : 167 (drive->id->eide_pio_modes & 2) ? XFER_PIO_4 : 168 (drive->id->eide_pio_modes & 1) ? XFER_PIO_3 : 0)) return best; 171 return (drive->id->tPIO == 2) ? XFER_PIO_2 : 172 (drive->id->tPIO == 1) ? XFER_PIO_1 : 173 (drive->id->tPIO == 0) ? XFER_PIO_0 : XFER_PIO_SLOW; 210 static int ide_timing_compute(ide_drive_t *drive, shor argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/block/ |
H A D | floppy.c | 231 * motor of these drives causes system hangs on some PCI computers. drive 232 * 0 is the low bit (0x1), and drive 7 is the high bit (0x80). Bits are on if 233 * a drive is allowed. 292 #define UNIT(x) ((x) & 0x03) /* drive on fdc */ 293 #define FDC(x) (((x) & 0x04) >> 2) /* fdc of drive */ 295 /* reverse mapping from unit and fdc to drive */ 304 #define UDP (&drive_params[drive]) 305 #define UDRS (&drive_state[drive]) 306 #define UDRWE (&write_errors[drive]) 307 #define UFDCS (&fdc_state[FDC(drive)]) 600 fd_eject(int drive) argument 668 __reschedule_timeout(int drive, const char *message, int marg) argument 687 reschedule_timeout(int drive, const char *message, int marg) argument 733 disk_change(int drive) argument 790 register unsigned char drive, unit, newdor, olddor; local 833 int drive; local 845 set_fdc(int drive) argument 866 _lock_fdc(int drive, int interruptible, int line) argument 942 floppy_off(unsigned int drive) argument 971 int i, drive, saved_drive; local 2140 set_floppy(int drive) argument 2250 do_format(int drive, struct format_descr *tmp_format_req) argument 2884 int drive; local 3031 user_reset_fdc(int drive, int arg, int interruptible) argument 3068 drive_name(int type, int drive) argument 3232 int drive, ret, ret2; local 3290 set_geometry(unsigned int cmd, struct floppy_struct *g, int drive, int type, struct block_device *bdev) argument 3400 get_floppy_geometry(int drive, int type, struct floppy_struct **g) argument 3417 int drive = (long)bdev->bd_disk->private_data; local 3439 int drive = (long)inode->i_bdev->bd_disk->private_data; local 3596 int drive; local 3642 int drive = (long)inode->i_bdev->bd_disk->private_data; local 3665 int drive = (long)inode->i_bdev->bd_disk->private_data; local 3771 int drive = (long)disk->private_data; local 3854 int drive = (long)disk->private_data; local 4125 int drive; local 4142 int drive = (*part & 3) | ((*part & 0x80) >> 5); local 4155 int i, unit, drive; local 4440 int drive; local 4524 int drive; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/acorn/block/ |
H A D | mfmhd.c | 6 * MFM hard drive code [experimental] 54 * number of errors for my Miniscribe drive (8425). 56 * 30/6/96:DAG: Russell suggested that a check drive 0 might turn the LEDs off 58 * check drive 0 - and the LEDs go off!!!! 96 * Multi-thread the code so that it is possible that while one drive 98 * This would be a performance boost with dual drive systems. 270 #define CMD_CKV 0x28 /* Check drive */ 631 static void mfm_setupspecify (int drive, unsigned char *cmdb) argument 637 cmdb[4] = 0xfc | ((mfm_info[drive].cylinders - 1) >> 8);/* RW time over/high part of number of cylinders */ 638 cmdb[5] = mfm_info[drive] 969 mfm_geometry(int drive) argument 993 mfm_detectdrive(int drive) argument 1083 int drive; local 1160 int drive = p - mfm_info; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/Netware/ |
H A D | cpy_tests.bat | 6 rem specified NetWare drive and copy the required files to run the tests. 10 rem cpy_tests.bat <test subdirectory> <NetWare drive> 12 rem <NetWare drive> - any mapped drive letter 17 rem CAUTION: If a directory named OpenSSL exists on the target drive 32 rem make sure target drive is valid 35 rem If an OpenSSL directory exists on the target drive, remove it 46 rem make an "openssl" directory and others at the root of the NetWare drive 99 echo Invalid drive: %2 105 echo usage: cpy_tests.bat [test subdirectory] [NetWare drive] [all...] |