/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/block/ |
H A D | swim.c | 174 enum drive_location location; /* internal or external drive */ 175 int head_number; /* single- or double-sided drive */ 314 swim_write(base, mode0, EXTERNAL_DRIVE); /* clear drive 1 bit */ 315 swim_write(base, mode1, INTERNAL_DRIVE); /* set drive 0 bit */ 317 swim_write(base, mode0, INTERNAL_DRIVE); /* clear drive 0 bit */ 318 swim_write(base, mode1, EXTERNAL_DRIVE); /* set drive 1 bit */ 361 /* wait drive is ready */ 781 int drive = (*part & 3); local 783 if (drive > swd->floppy_count) 787 return get_disk(swd->unit[drive] 817 int drive; local 941 int drive; local [all...] |
H A D | hd.c | 14 * IRQ-unmask, drive-id, multiple-mode, support for ">16 heads", 67 #define HD_CURRENT 0x1f6 /* 101dhhhh , d=drive, hhhh=head */ 291 static int controller_ready(unsigned int drive, unsigned int head) argument 298 outb_p(0xA0 | (drive<<4) | head, HD_CURRENT); 398 * drive enters "idle", "standby", or "sleep" mode, so if the status looks 576 * data/cmds with a drive, because some drives seem to have very poor 710 int drive; local 728 * We don't know anything about the drive. This means 729 * that you *MUST* specify the drive parameters to the 735 * drive, an [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/block/ |
H A D | swim.c | 174 enum drive_location location; /* internal or external drive */ 175 int head_number; /* single- or double-sided drive */ 314 swim_write(base, mode0, EXTERNAL_DRIVE); /* clear drive 1 bit */ 315 swim_write(base, mode1, INTERNAL_DRIVE); /* set drive 0 bit */ 317 swim_write(base, mode0, INTERNAL_DRIVE); /* clear drive 0 bit */ 318 swim_write(base, mode1, EXTERNAL_DRIVE); /* set drive 1 bit */ 361 /* wait drive is ready */ 781 int drive = (*part & 3); local 783 if (drive > swd->floppy_count) 787 return get_disk(swd->unit[drive] 817 int drive; local 941 int drive; local [all...] |
H A D | hd.c | 14 * IRQ-unmask, drive-id, multiple-mode, support for ">16 heads", 67 #define HD_CURRENT 0x1f6 /* 101dhhhh , d=drive, hhhh=head */ 291 static int controller_ready(unsigned int drive, unsigned int head) argument 298 outb_p(0xA0 | (drive<<4) | head, HD_CURRENT); 398 * drive enters "idle", "standby", or "sleep" mode, so if the status looks 576 * data/cmds with a drive, because some drives seem to have very poor 710 int drive; local 728 * We don't know anything about the drive. This means 729 * that you *MUST* specify the drive parameters to the 735 * drive, an [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/ide/ |
H A D | cs5530.c | 45 * @drive: drive 53 static void cs5530_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 57 const u8 pio = drive->pio_mode - XFER_PIO_0; 59 outl(cs5530_pio_timings[format][pio], basereg + ((drive->dn & 1)<<3)); 64 * @drive: drive 66 * cs5530_udma_filter() does UDMA mask filtering for the given drive 71 * different timings can still be chosen for each drive. We could 74 * by looking at our mate drive t 81 cs5530_udma_filter(ide_drive_t *drive) argument 103 cs5530_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument [all...] |
H A D | ide-gd.h | 17 ide_drive_t *drive; member in struct:ide_disk_obj
|
H A D | icside.c | 165 * we write the command to the drive. 167 static void icside_maskproc(ide_drive_t *drive, int mask) argument 169 ide_hwif_t *hwif = drive->hwif; 207 * one drive can be accessed at one time. NOTE! We do not enforce that 216 * MW DMA specs that the drive provides in the IDENTIFY command. 237 static void icside_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 241 const u8 xfer_mode = drive->dma_mode; 269 if (use_dma_info && drive->id[ATA_ID_EIDE_DMA_TIME] > cycle_time) 270 cycle_time = drive->id[ATA_ID_EIDE_DMA_TIME]; 272 ide_set_drivedata(drive, (voi 284 icside_dma_host_set(ide_drive_t *drive, int on) argument 288 icside_dma_end(ide_drive_t *drive) argument 298 icside_dma_start(ide_drive_t *drive) argument 308 icside_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) argument 350 icside_dma_test_irq(ide_drive_t *drive) argument [all...] |
H A D | opti621.c | 65 static void opti621_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 67 ide_drive_t *pair = ide_get_pair_dev(drive); 69 unsigned long mode = drive->pio_mode, pair_mode; 83 ide_set_drivedata(drive, (void *)mode); 113 write_reg(drive->dn & 1, MISC_REG); 119 /* use Register-A for drive 0 */ 120 /* use Register-B for drive 1 */
|
H A D | ide-timings.c | 81 u16 ide_pio_cycle_time(ide_drive_t *drive, u8 pio) argument 83 u16 *id = drive->id; 88 if (ata_id_has_iordy(drive->id)) 144 int ide_timing_compute(ide_drive_t *drive, u8 speed, argument 147 u16 *id = drive->id; 163 * If the drive is an EIDE drive, it can tell us it needs extended 166 if (id[ATA_ID_FIELD_VALID] & 2) { /* EIDE drive */ 192 ide_timing_compute(drive, drive [all...] |
H A D | tx4938ide.c | 59 static void tx4938ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 62 u8 safe = drive->pio_mode - XFER_PIO_0; 65 pair = ide_get_pair_dev(drive); 74 static void tx4938ide_input_data_swap(ide_drive_t *drive, struct ide_cmd *cmd, argument 77 unsigned long port = drive->hwif->io_ports.data_addr; 86 static void tx4938ide_output_data_swap(ide_drive_t *drive, struct ide_cmd *cmd, argument 89 unsigned long port = drive->hwif->io_ports.data_addr;
|
H A D | amd74xx.c | 82 static void amd_set_drive(ide_hwif_t *hwif, ide_drive_t *drive) argument 85 ide_drive_t *peer = ide_get_pair_dev(drive); 89 const u8 speed = drive->dma_mode; 94 ide_timing_compute(drive, speed, &t, T, UT); 104 amd_set_speed(dev, drive->dn, udma_mask, &t); 111 static void amd_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 113 drive->dma_mode = drive->pio_mode; 114 amd_set_drive(hwif, drive); 142 * The initialization callback. Initialize drive independen [all...] |
H A D | palm_bk3710.c | 191 static void palm_bk3710_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 193 int is_slave = drive->dn & 1; 195 const u8 xferspeed = drive->dma_mode; 202 drive->id[ATA_ID_EIDE_DMA_MIN], 207 static void palm_bk3710_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 210 int is_slave = drive->dn & 1; 213 const u8 pio = drive->pio_mode - XFER_PIO_0; 216 * Obtain the drive PIO data for tuning the Palm Chip registers 218 cycle_time = ide_pio_cycle_time(drive, pio); 219 mate = ide_get_pair_dev(drive); [all...] |
H A D | umc8672.c | 33 * in the beginning of the driver, which sets the speed of drive 0 to 11 (there 58 #define UMC_DRIVE0 1 /* DOS measured drive speeds */ 103 printk("umc8672: drive speeds [0 to 11]: %d %d %d %d\n", 107 static void umc_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 111 const u8 pio = drive->pio_mode - XFER_PIO_0; 114 drive->name, pio, pio_to_umc[pio]); 120 current_speeds[drive->name[2] - 'a'] = pio_to_umc[pio];
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/ide/ |
H A D | cs5530.c | 45 * @drive: drive 53 static void cs5530_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 57 const u8 pio = drive->pio_mode - XFER_PIO_0; 59 outl(cs5530_pio_timings[format][pio], basereg + ((drive->dn & 1)<<3)); 64 * @drive: drive 66 * cs5530_udma_filter() does UDMA mask filtering for the given drive 71 * different timings can still be chosen for each drive. We could 74 * by looking at our mate drive t 81 cs5530_udma_filter(ide_drive_t *drive) argument 103 cs5530_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument [all...] |
H A D | ide-gd.h | 17 ide_drive_t *drive; member in struct:ide_disk_obj
|
H A D | icside.c | 165 * we write the command to the drive. 167 static void icside_maskproc(ide_drive_t *drive, int mask) argument 169 ide_hwif_t *hwif = drive->hwif; 207 * one drive can be accessed at one time. NOTE! We do not enforce that 216 * MW DMA specs that the drive provides in the IDENTIFY command. 237 static void icside_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 241 const u8 xfer_mode = drive->dma_mode; 269 if (use_dma_info && drive->id[ATA_ID_EIDE_DMA_TIME] > cycle_time) 270 cycle_time = drive->id[ATA_ID_EIDE_DMA_TIME]; 272 ide_set_drivedata(drive, (voi 284 icside_dma_host_set(ide_drive_t *drive, int on) argument 288 icside_dma_end(ide_drive_t *drive) argument 298 icside_dma_start(ide_drive_t *drive) argument 308 icside_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) argument 350 icside_dma_test_irq(ide_drive_t *drive) argument [all...] |
H A D | opti621.c | 65 static void opti621_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 67 ide_drive_t *pair = ide_get_pair_dev(drive); 69 unsigned long mode = drive->pio_mode, pair_mode; 83 ide_set_drivedata(drive, (void *)mode); 113 write_reg(drive->dn & 1, MISC_REG); 119 /* use Register-A for drive 0 */ 120 /* use Register-B for drive 1 */
|
H A D | ide-timings.c | 81 u16 ide_pio_cycle_time(ide_drive_t *drive, u8 pio) argument 83 u16 *id = drive->id; 88 if (ata_id_has_iordy(drive->id)) 144 int ide_timing_compute(ide_drive_t *drive, u8 speed, argument 147 u16 *id = drive->id; 163 * If the drive is an EIDE drive, it can tell us it needs extended 166 if (id[ATA_ID_FIELD_VALID] & 2) { /* EIDE drive */ 192 ide_timing_compute(drive, drive [all...] |
H A D | tx4938ide.c | 59 static void tx4938ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 62 u8 safe = drive->pio_mode - XFER_PIO_0; 65 pair = ide_get_pair_dev(drive); 74 static void tx4938ide_input_data_swap(ide_drive_t *drive, struct ide_cmd *cmd, argument 77 unsigned long port = drive->hwif->io_ports.data_addr; 86 static void tx4938ide_output_data_swap(ide_drive_t *drive, struct ide_cmd *cmd, argument 89 unsigned long port = drive->hwif->io_ports.data_addr;
|
H A D | amd74xx.c | 82 static void amd_set_drive(ide_hwif_t *hwif, ide_drive_t *drive) argument 85 ide_drive_t *peer = ide_get_pair_dev(drive); 89 const u8 speed = drive->dma_mode; 94 ide_timing_compute(drive, speed, &t, T, UT); 104 amd_set_speed(dev, drive->dn, udma_mask, &t); 111 static void amd_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 113 drive->dma_mode = drive->pio_mode; 114 amd_set_drive(hwif, drive); 142 * The initialization callback. Initialize drive independen [all...] |
H A D | palm_bk3710.c | 191 static void palm_bk3710_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 193 int is_slave = drive->dn & 1; 195 const u8 xferspeed = drive->dma_mode; 202 drive->id[ATA_ID_EIDE_DMA_MIN], 207 static void palm_bk3710_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 210 int is_slave = drive->dn & 1; 213 const u8 pio = drive->pio_mode - XFER_PIO_0; 216 * Obtain the drive PIO data for tuning the Palm Chip registers 218 cycle_time = ide_pio_cycle_time(drive, pio); 219 mate = ide_get_pair_dev(drive); [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/gdb/sim/ppc/ |
H A D | hw_ide.c | 235 ide_drive drive[nr_ide_drives_per_controller]; member in struct:_ide_controller 402 controller->current_drive = &controller->drive[drive_nr]; 504 return 0x40; /* drive ready */ 660 int drive; local 665 for (drive = 0; drive < nr_ide_drives_per_controller; drive++) { 666 ide->controller[controller].drive[drive].nr = drive; 696 ide_drive *drive; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/gdb/sim/ppc/ |
H A D | hw_ide.c | 235 ide_drive drive[nr_ide_drives_per_controller]; member in struct:_ide_controller 402 controller->current_drive = &controller->drive[drive_nr]; 504 return 0x40; /* drive ready */ 660 int drive; local 665 for (drive = 0; drive < nr_ide_drives_per_controller; drive++) { 666 ide->controller[controller].drive[drive].nr = drive; 696 ide_drive *drive; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/gdb/sim/ppc/ |
H A D | hw_ide.c | 235 ide_drive drive[nr_ide_drives_per_controller]; member in struct:_ide_controller 402 controller->current_drive = &controller->drive[drive_nr]; 504 return 0x40; /* drive ready */ 660 int drive; local 665 for (drive = 0; drive < nr_ide_drives_per_controller; drive++) { 666 ide->controller[controller].drive[drive].nr = drive; 696 ide_drive *drive; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/os_windows/ |
H A D | os_open.c | 29 _TCHAR *drive, dbuf[4]; /* <letter><colon><slash><nul> */ local 142 * we call GetDiskFreeSpace, which expects a drive name like "d:\\" 151 drive = dbuf; 154 drive = NULL; 160 if (GetDiskFreeSpace(drive, &cluster_size,
|