/drivers/ide/ |
H A D | siimage.c | 23 * drive to "Single". "Master" will hang. 114 static inline unsigned long siimage_seldev(ide_drive_t *drive, int r) argument 116 ide_hwif_t *hwif = drive->hwif; 118 u8 unit = drive->dn & 1; 187 * @drive: IDE device 195 static u8 sil_pata_udma_filter(ide_drive_t *drive) argument 197 ide_hwif_t *hwif = drive->hwif; 223 static u8 sil_sata_udma_filter(ide_drive_t *drive) argument 225 char *m = (char *)&drive->id[ATA_ID_PROD]; 233 * @drive 239 sil_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 298 sil_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 359 siimage_mmio_dma_test_irq(ide_drive_t *drive) argument 393 siimage_dma_test_irq(ide_drive_t *drive) argument 409 sil_sata_reset_poll(ide_drive_t *drive) argument 437 sil_sata_pre_reset(ide_drive_t *drive) argument 605 is_dev_seagate_sata(ide_drive_t *drive) argument 630 sil_quirkproc(ide_drive_t *drive) argument [all...] |
H A D | alim15x3.c | 51 static void ali_fifo_control(ide_hwif_t *hwif, ide_drive_t *drive, int on) argument 56 int shift = 4 * (drive->dn & 1); 64 static void ali_program_timings(ide_hwif_t *hwif, ide_drive_t *drive, argument 70 u8 unit = drive->dn & 1, udma; 97 * @drive: drive 102 static void ali_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 104 ide_drive_t *pair = ide_get_pair_dev(drive); 109 ide_timing_compute(drive, drive 143 ali_udma_filter(ide_drive_t *drive) argument 164 ali_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 210 ali_dma_check(ide_drive_t *drive, struct ide_cmd *cmd) argument [all...] |
H A D | tx4939ide.c | 107 static void tx4939ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 109 int is_slave = drive->dn; 111 const u8 pio = drive->pio_mode - XFER_PIO_0; 115 pair = ide_get_pair_dev(drive); 120 * Transfer Mode for this drive. 128 static void tx4939ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 131 const u8 mode = drive->dma_mode; 133 /* Update Data Transfer Mode for this drive. */ 138 if (drive->dn) { 174 static void tx4939ide_clear_irq(ide_drive_t *drive) argument 201 tx4939ide_dma_host_set(ide_drive_t *drive, int on) argument 235 tx4939ide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd) argument 288 tx4939ide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) argument 315 tx4939ide_dma_end(ide_drive_t *drive) argument 343 tx4939ide_dma_test_irq(ide_drive_t *drive) argument 422 tx4939ide_tf_load_fixup(ide_drive_t *drive) argument 437 tx4939ide_tf_load(ide_drive_t *drive, struct ide_taskfile *tf, u8 valid) argument 449 tx4939ide_input_data_swap(ide_drive_t *drive, struct ide_cmd *cmd, void *buf, unsigned int len) argument 461 tx4939ide_output_data_swap(ide_drive_t *drive, struct ide_cmd *cmd, void *buf, unsigned int len) argument [all...] |
H A D | aec62xx.c | 84 static void aec6210_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 92 const u8 speed = drive->dma_mode; 96 /* 0x40|(2*drive->dn): Active, 0x41|(2*drive->dn): Recovery */ 97 pci_read_config_word(dev, 0x40|(2*drive->dn), &d_conf); 100 pci_write_config_word(dev, 0x40|(2*drive->dn), d_conf); 105 tmp1 = ((0x00 << (2*drive->dn)) | (ultra & ~(3 << (2*drive->dn)))); 107 tmp2 = ((ultra_conf << (2*drive->dn)) | (tmp1 & ~(3 << (2*drive 112 aec6260_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 137 aec_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument [all...] |
H A D | ide-io-std.c | 77 void ide_dev_select(ide_drive_t *drive) argument 79 ide_hwif_t *hwif = drive->hwif; 80 u8 select = drive->select | ATA_DEVICE_OBS; 89 void ide_tf_load(ide_drive_t *drive, struct ide_taskfile *tf, u8 valid) argument 91 ide_hwif_t *hwif = drive->hwif; 116 void ide_tf_read(ide_drive_t *drive, struct ide_taskfile *tf, u8 valid) argument 118 ide_hwif_t *hwif = drive->hwif; 164 void ide_input_data(ide_drive_t *drive, struct ide_cmd *cmd, void *buf, argument 167 ide_hwif_t *hwif = drive->hwif; 171 u8 io_32bit = drive 208 ide_output_data(ide_drive_t *drive, struct ide_cmd *cmd, void *buf, unsigned int len) argument [all...] |
H A D | slc90e66.c | 21 static void slc90e66_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 24 int is_slave = drive->dn & 1; 31 const u8 pio = drive->pio_mode - XFER_PIO_0; 46 if (drive->media == ide_disk) 48 if (ide_pio_need_iordy(drive, pio)) 75 static void slc90e66_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 79 int sitre = 0, a_speed = 7 << (drive->dn * 4); 80 int u_speed = 0, u_flag = 1 << drive->dn; 82 const u8 speed = drive->dma_mode; 91 u_speed = (speed - XFER_UDMA_0) << (drive [all...] |
H A D | ide-floppy_proc.c | 10 ide_drive_t*drive = (ide_drive_t *)m->private; local 12 seq_printf(m, "%llu\n", (long long)ide_gd_capacity(drive));
|
H A D | au1xxx-ide.c | 93 static void au1xxx_input_data(ide_drive_t *drive, struct ide_cmd *cmd, argument 96 auide_insw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2); 99 static void au1xxx_output_data(ide_drive_t *drive, struct ide_cmd *cmd, argument 102 auide_outsw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2); 106 static void au1xxx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 110 switch (drive->pio_mode - XFER_PIO_0) { 167 static void auide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 171 switch (drive->dma_mode) { 215 static int auide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd) argument 217 ide_hwif_t *hwif = drive 278 auide_dma_end(ide_drive_t *drive) argument 288 auide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) argument 296 auide_dma_test_irq(ide_drive_t *drive) argument 311 auide_dma_host_set(ide_drive_t *drive, int on) argument [all...] |
H A D | serverworks.c | 55 static int check_in_drive_lists (ide_drive_t *drive, const char **list) argument 57 char *m = (char *)&drive->id[ATA_ID_PROD]; 65 static u8 svwks_udma_filter(ide_drive_t *drive) argument 67 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); 81 if (mode > 2 && check_in_drive_lists(drive, svwks_bad_ata100)) 109 static void svwks_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 115 const u8 pio = drive->pio_mode - XFER_PIO_0; 117 pci_write_config_byte(dev, drive_pci[drive->dn], pio_modes[pio]); 124 csb_pio &= ~(0x0f << (4 * drive->dn)); 125 csb_pio |= (pio << (4 * drive 131 svwks_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument [all...] |
H A D | atiixp.c | 46 * @drive: drive 51 static void atiixp_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 55 int timing_shift = (drive->dn ^ 1) * 8; 58 const u8 pio = drive->pio_mode - XFER_PIO_0; 63 pio_mode_data &= ~(0x07 << (drive->dn * 4)); 64 pio_mode_data |= (pio << (drive->dn * 4)); 79 * @drive: drive 85 static void atiixp_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument [all...] |
H A D | ide-4drives.c | 14 static void ide_4drives_init_dev(ide_drive_t *drive) argument 16 if (drive->hwif->channel) 17 drive->select ^= 0x20;
|
H A D | ide-disk_proc.c | 9 static int smart_enable(ide_drive_t *drive) argument 22 return ide_no_data_taskfile(drive, &cmd); 25 static int get_smart_data(ide_drive_t *drive, u8 *buf, u8 sub_cmd) argument 40 return ide_raw_taskfile(drive, &cmd, buf, 1); 45 ide_drive_t *drive = (ide_drive_t *) m->private; local 47 if (drive->dev_flags & IDE_DFLAG_ID_READ) 48 seq_printf(m, "%i\n", drive->id[ATA_ID_BUF_SIZE] / 2); 69 ide_drive_t*drive = (ide_drive_t *)m->private; local 71 seq_printf(m, "%llu\n", (long long)ide_gd_capacity(drive)); 88 static int __idedisk_proc_show(struct seq_file *m, ide_drive_t *drive, u argument [all...] |
H A D | cmd64x.c | 54 static void cmd64x_program_timings(ide_drive_t *drive, u8 mode) argument 56 ide_hwif_t *hwif = drive->hwif; 57 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); 68 ide_timing_compute(drive, mode, &t, T, 0); 88 pci_write_config_byte(dev, drwtim_regs[drive->dn], 93 * for each drive and the hardware selects the slowest timing itself. 98 ide_drive_t *pair = ide_get_pair_dev(drive); 120 (void) pci_read_config_byte (dev, arttim_regs[drive->dn], &arttim); 125 (void) pci_write_config_byte(dev, arttim_regs[drive->dn], arttim); 129 * Attempts to set drive' 133 cmd64x_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 147 cmd64x_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 186 cmd648_clear_irq(ide_drive_t *drive) argument 200 cmd64x_clear_irq(ide_drive_t *drive) argument 249 cmd646_1_dma_end(ide_drive_t *drive) argument [all...] |
H A D | hpt366.c | 22 * - add function for getting/setting power status of drive 37 * add drive timings for 66MHz PCI bus, 39 * add /proc display for per-drive PIO/DMA/UDMA mode and 80 * - optimize the UltraDMA filtering and the drive list lookup code 534 static int check_in_drive_list(ide_drive_t *drive, const char **list) argument 536 char *m = (char *)&drive->id[ATA_ID_PROD]; 557 static u8 hpt3xx_udma_filter(ide_drive_t *drive) argument 559 ide_hwif_t *hwif = drive->hwif; 566 check_in_drive_list(drive, bad_ata66_4)) 570 check_in_drive_list(drive, bad_ata66_ 596 hpt3xx_mdma_filter(ide_drive_t *drive) argument 631 hpt3xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 655 hpt3xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 661 hpt3xx_maskproc(ide_drive_t *drive, int mask) argument 691 hpt366_dma_lost_irq(ide_drive_t *drive) argument 706 hpt370_clear_engine(ide_drive_t *drive) argument 715 hpt370_irq_timeout(ide_drive_t *drive) argument 732 hpt370_dma_start(ide_drive_t *drive) argument 740 hpt370_dma_end(ide_drive_t *drive) argument 756 hpt374_dma_test_irq(ide_drive_t *drive) argument 777 hpt374_dma_end(ide_drive_t *drive) argument 839 hpt3xxn_rw_disk(ide_drive_t *drive, struct request *rq) argument [all...] |
H A D | cmd640.c | 58 * Version 0.07 Changed to more conservative drive tuning policy. 162 * Registers and masks for easy access by drive index: 173 * Current cmd640 timing values for each drive. 337 * Returns 1 if an IDE interface/drive exists at 0x170, 379 static void __set_prefetch_mode(ide_drive_t *drive, int mode) argument 383 drive->dev_flags |= IDE_DFLAG_NO_UNMASK; 384 drive->dev_flags &= ~IDE_DFLAG_UNMASK; 386 drive->dev_flags &= ~IDE_DFLAG_NO_IO_32BIT; 388 drive->dev_flags &= ~IDE_DFLAG_NO_UNMASK; 389 drive 399 check_prefetch(ide_drive_t *drive, unsigned int index) argument 410 set_prefetch_mode(ide_drive_t *drive, unsigned int index, int mode) argument 458 program_drive_counts(ide_drive_t *drive, unsigned int index) argument 514 cmd640_set_mode(ide_drive_t *drive, unsigned int index, u8 pio_mode, unsigned int cycle_time) argument 576 cmd640_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 610 cmd640_init_dev(ide_drive_t *drive) argument [all...] |
H A D | pmac.c | 409 ((void __iomem *)((drive)->hwif->io_ports.data_addr + (x))) 416 static void pmac_ide_apply_timings(ide_drive_t *drive) argument 418 ide_hwif_t *hwif = drive->hwif; 421 if (drive->dn & 1) 433 static void pmac_ide_kauai_apply_timings(ide_drive_t *drive) argument 435 ide_hwif_t *hwif = drive->hwif; 438 if (drive->dn & 1) { 449 * Force an update of controller timing values for a given drive 452 pmac_ide_do_update_timings(ide_drive_t *drive) argument 454 ide_hwif_t *hwif = drive 465 pmac_dev_select(ide_drive_t *drive) argument 473 pmac_kauai_dev_select(ide_drive_t *drive) argument 498 pmac_ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 645 set_timings_mdma(ide_drive_t *drive, int intf_type, u32 *timings, u32 *timings2, u8 speed) argument 778 pmac_ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 945 pmac_ide_init_dev(ide_drive_t *drive) argument 1457 pmac_ide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd) argument 1534 pmac_ide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) argument 1559 pmac_ide_dma_start(ide_drive_t *drive) argument 1576 pmac_ide_dma_end(ide_drive_t *drive) argument 1600 pmac_ide_dma_test_irq(ide_drive_t *drive) argument 1649 pmac_ide_dma_host_set(ide_drive_t *drive, int on) argument 1654 pmac_ide_dma_lost_irq(ide_drive_t *drive) argument [all...] |
H A D | scc_pata.c | 203 * @drive: drive 209 static void scc_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 218 const u8 pio = drive->pio_mode - XFER_PIO_0; 235 * @drive: drive 241 static void scc_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 252 int is_slave = drive->dn & 1; 256 const u8 speed = drive->dma_mode; 282 static void scc_dma_host_set(ide_drive_t *drive, in argument 308 scc_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) argument 333 scc_dma_start(ide_drive_t *drive) argument 342 __scc_dma_end(ide_drive_t *drive) argument 367 scc_dma_end(ide_drive_t *drive) argument 388 ide_drive_t *drive; local 477 scc_dma_test_irq(ide_drive_t *drive) argument 495 scc_udma_filter(ide_drive_t *drive) argument 646 scc_tf_load(ide_drive_t *drive, struct ide_taskfile *tf, u8 valid) argument 664 scc_tf_read(ide_drive_t *drive, struct ide_taskfile *tf, u8 valid) argument 682 scc_input_data(ide_drive_t *drive, struct ide_cmd *cmd, void *buf, unsigned int len) argument 698 scc_output_data(ide_drive_t *drive, struct ide_cmd *cmd, void *buf, unsigned int len) argument [all...] |
H A D | piix.c | 33 * drive hotswap [NOT YET SUPPORTED] 63 * @drive: drive 68 static void piix_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 71 int is_slave = drive->dn & 1; 79 const u8 pio = drive->pio_mode - XFER_PIO_0; 99 if (drive->media == ide_disk) 101 if (ide_pio_need_iordy(drive, pio)) 131 * @drive: drive 137 piix_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) argument 225 ich_clear_irq(ide_drive_t *drive) argument [all...] |
H A D | falconide.c | 66 static void falconide_input_data(ide_drive_t *drive, struct ide_cmd *cmd, argument 69 unsigned long data_addr = drive->hwif->io_ports.data_addr; 71 if (drive->media == ide_disk && cmd && (cmd->tf_flags & IDE_TFLAG_FS)) { 79 static void falconide_output_data(ide_drive_t *drive, struct ide_cmd *cmd, argument 82 unsigned long data_addr = drive->hwif->io_ports.data_addr; 84 if (drive->media == ide_disk && cmd && (cmd->tf_flags & IDE_TFLAG_FS)) {
|
H A D | q40ide.c | 73 static void q40ide_input_data(ide_drive_t *drive, struct ide_cmd *cmd, argument 76 unsigned long data_addr = drive->hwif->io_ports.data_addr; 78 if (drive->media == ide_disk && cmd && (cmd->tf_flags & IDE_TFLAG_FS)) { 86 static void q40ide_output_data(ide_drive_t *drive, struct ide_cmd *cmd, argument 89 unsigned long data_addr = drive->hwif->io_ports.data_addr; 91 if (drive->media == ide_disk && cmd && (cmd->tf_flags & IDE_TFLAG_FS)) {
|
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
|
/drivers/block/ |
H A D | swim.c | 173 enum drive_location location; /* internal or external drive */ 174 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 */ 780 int drive = (*part & 3); local 782 if (drive > swd->floppy_count) 786 return get_disk(swd->unit[drive] 815 int drive; local 939 int drive; local [all...] |
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 */ 290 static int controller_ready(unsigned int drive, unsigned int head) argument 297 outb_p(0xA0 | (drive<<4) | head, HD_CURRENT); 397 * drive enters "idle", "standby", or "sleep" mode, so if the status looks 575 * data/cmds with a drive, because some drives seem to have very poor 699 int drive; local 717 * We don't know anything about the drive. This means 718 * that you *MUST* specify the drive parameters to the 724 * drive, an [all...] |
/drivers/gpu/drm/nouveau/core/include/subdev/bios/ |
H A D | i2c.h | 16 u8 drive; member in struct:dcb_i2c_entry
|