/kernel/linux/linux-5.10/drivers/ide/ |
H A D | ide-park.c | 10 static void issue_park_cmd(ide_drive_t *drive, unsigned long timeout) in issue_park_cmd() argument 12 ide_hwif_t *hwif = drive->hwif; in issue_park_cmd() 13 struct request_queue *q = drive->queue; in issue_park_cmd() 19 if (drive->dev_flags & IDE_DFLAG_PARKED) { in issue_park_cmd() 20 int reset_timer = time_before(timeout, drive->sleep); in issue_park_cmd() 23 drive->sleep = timeout; in issue_park_cmd() 47 * Make sure that *some* command is sent to the drive after the in issue_park_cmd() 58 ide_insert_request_head(drive, rq); in issue_park_cmd() 65 ide_startstop_t ide_do_park_unpark(ide_drive_t *drive, struct request *rq) in ide_do_park_unpark() argument 72 drive in ide_do_park_unpark() 95 ide_drive_t *drive = to_ide_device(dev); ide_park_show() local 119 ide_drive_t *drive = to_ide_device(dev); ide_park_store() local [all...] |
H A D | ide-ioctls.c | 29 int ide_setting_ioctl(ide_drive_t *drive, struct block_device *bdev, in ide_setting_ioctl() argument 47 err = ds->get(drive); in ide_setting_ioctl() 59 err = ide_devset_execute(drive, ds, arg); in ide_setting_ioctl() 67 static int ide_get_identity_ioctl(ide_drive_t *drive, unsigned int cmd, in ide_get_identity_ioctl() argument 74 if ((drive->dev_flags & IDE_DFLAG_ID_READ) == 0) { in ide_get_identity_ioctl() 86 memcpy(id, drive->id, size); in ide_get_identity_ioctl() 97 static int ide_get_nice_ioctl(ide_drive_t *drive, unsigned long arg) in ide_get_nice_ioctl() argument 99 return put_user_long((!!(drive->dev_flags & IDE_DFLAG_DSC_OVERLAP) in ide_get_nice_ioctl() 101 (!!(drive->dev_flags & IDE_DFLAG_NICE1) in ide_get_nice_ioctl() 105 static int ide_set_nice_ioctl(ide_drive_t *drive, unsigne argument 127 ide_cmd_ioctl(ide_drive_t *drive, void __user *argp) ide_cmd_ioctl() argument 203 ide_task_ioctl(ide_drive_t *drive, void __user *p) ide_task_ioctl() argument 229 generic_drive_reset(ide_drive_t *drive) generic_drive_reset() argument 244 generic_ide_ioctl(ide_drive_t *drive, struct block_device *bdev, unsigned int cmd, unsigned long arg) generic_ide_ioctl() argument [all...] |
H A D | it821x.c | 83 u16 udma[2]; /* Cached UDMA values (per drive) */ 105 * @drive: drive to tune 112 static void it821x_program(ide_drive_t *drive, u16 timing) in it821x_program() argument 114 ide_hwif_t *hwif = drive->hwif; in it821x_program() 131 * @drive: drive to tune 134 * Program the UDMA timing for this drive according to the 138 static void it821x_program_udma(ide_drive_t *drive, u16 timing) in it821x_program_udma() argument 140 ide_hwif_t *hwif = drive in it821x_program_udma() 168 it821x_clock_strategy(ide_drive_t *drive) it821x_clock_strategy() argument 239 it821x_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) it821x_set_pio_mode() argument 281 it821x_tune_mwdma(ide_drive_t *drive, u8 mode_wanted) it821x_tune_mwdma() argument 318 it821x_tune_udma(ide_drive_t *drive, u8 mode_wanted) it821x_tune_udma() argument 361 it821x_dma_start(ide_drive_t *drive) it821x_dma_start() argument 383 it821x_dma_end(ide_drive_t *drive) it821x_dma_end() argument 403 it821x_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) it821x_set_dma_mode() argument 442 it821x_quirkproc(ide_drive_t *drive) it821x_quirkproc() argument [all...] |
H A D | cs5536.c | 80 static void cs5536_program_dtc(ide_drive_t *drive, u8 tim) in cs5536_program_dtc() argument 82 struct pci_dev *pdev = to_pci_dev(drive->hwif->dev); in cs5536_program_dtc() 83 int dshift = (drive->dn & 1) ? IDE_D1_SHIFT : IDE_D0_SHIFT; in cs5536_program_dtc() 117 * @drive: ATA device 120 static void cs5536_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in cs5536_set_pio_mode() argument 135 ide_drive_t *pair = ide_get_pair_dev(drive); in cs5536_set_pio_mode() 136 int cshift = (drive->dn & 1) ? IDE_CAST_D1_SHIFT : IDE_CAST_D0_SHIFT; in cs5536_set_pio_mode() 137 unsigned long timings = (unsigned long)ide_get_drivedata(drive); in cs5536_set_pio_mode() 139 const u8 pio = drive->pio_mode - XFER_PIO_0; in cs5536_set_pio_mode() 147 ide_set_drivedata(drive, (voi in cs5536_set_pio_mode() 168 cs5536_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) cs5536_set_dma_mode() argument 199 cs5536_dma_start(ide_drive_t *drive) cs5536_dma_start() argument 210 cs5536_dma_end(ide_drive_t *drive) cs5536_dma_end() argument [all...] |
H A D | sl82c105.c | 43 static unsigned int get_pio_timings(ide_drive_t *drive, u8 pio) in get_pio_timings() argument 50 cmd_off = (ide_pio_cycle_time(drive, pio) - 30 * cmd_on + 29) / 30; in get_pio_timings() 58 if (ide_pio_need_iordy(drive, pio)) in get_pio_timings() 67 static void sl82c105_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sl82c105_set_pio_mode() argument 70 unsigned long timings = (unsigned long)ide_get_drivedata(drive); in sl82c105_set_pio_mode() 71 int reg = 0x44 + drive->dn * 4; in sl82c105_set_pio_mode() 73 const u8 pio = drive->pio_mode - XFER_PIO_0; in sl82c105_set_pio_mode() 75 drv_ctrl = get_pio_timings(drive, pio); in sl82c105_set_pio_mode() 83 ide_set_drivedata(drive, (void *)timings); in sl82c105_set_pio_mode() 88 printk(KERN_DEBUG "%s: selected %s (%dns) (%04X)\n", drive in sl82c105_set_pio_mode() 96 sl82c105_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) sl82c105_set_dma_mode() argument 148 sl82c105_dma_lost_irq(ide_drive_t *drive) sl82c105_dma_lost_irq() argument 186 sl82c105_dma_start(ide_drive_t *drive) sl82c105_dma_start() argument 199 sl82c105_dma_clear(ide_drive_t *drive) sl82c105_dma_clear() argument 206 sl82c105_dma_end(ide_drive_t *drive) sl82c105_dma_end() argument 222 sl82c105_resetproc(ide_drive_t *drive) sl82c105_resetproc() argument [all...] |
H A D | ide-dma-sff.c | 12 * @drive: the drive to place in DMA mode 14 * If the drive supports at least mode 2 DMA or UDMA of any kind 18 * on the good/bad drive lists. 21 int config_drive_for_dma(ide_drive_t *drive) in config_drive_for_dma() argument 23 ide_hwif_t *hwif = drive->hwif; in config_drive_for_dma() 24 u16 *id = drive->id; in config_drive_for_dma() 26 if (drive->media != ide_disk) { in config_drive_for_dma() 32 * Enable DMA on any drive that has in config_drive_for_dma() 40 * Enable DMA on any drive tha in config_drive_for_dma() 83 ide_dma_host_set(ide_drive_t *drive, int on) ide_dma_host_set() argument 115 ide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd) ide_build_dmatable() argument 188 ide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) ide_dma_setup() argument 238 ide_dma_sff_timer_expiry(ide_drive_t *drive) ide_dma_sff_timer_expiry() argument 264 ide_dma_start(ide_drive_t *drive) ide_dma_start() argument 286 ide_dma_end(ide_drive_t *drive) ide_dma_end() argument 317 ide_dma_test_irq(ide_drive_t *drive) ide_dma_test_irq() argument [all...] |
H A D | sis5513.c | 187 static u8 sis_ata133_get_base(ide_drive_t *drive) in sis_ata133_get_base() argument 189 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in sis_ata133_get_base() 194 return ((reg54 & 0x40000000) ? 0x70 : 0x40) + drive->dn * 4; in sis_ata133_get_base() 197 static void sis_ata16_program_timings(ide_drive_t *drive, const u8 mode) in sis_ata16_program_timings() argument 199 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in sis_ata16_program_timings() 201 u8 drive_pci = 0x40 + drive->dn * 2; in sis_ata16_program_timings() 220 static void sis_ata100_program_timings(ide_drive_t *drive, const u8 mode) in sis_ata100_program_timings() argument 222 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); in sis_ata100_program_timings() 223 u8 t1, drive_pci = 0x40 + drive->dn * 2; in sis_ata100_program_timings() 243 static void sis_ata133_program_timings(ide_drive_t *drive, cons argument 265 sis_program_timings(ide_drive_t *drive, const u8 mode) sis_program_timings() argument 275 config_drive_art_rwp(ide_drive_t *drive) config_drive_art_rwp() argument 293 sis_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) sis_set_pio_mode() argument 299 sis_ata133_program_udma_timings(ide_drive_t *drive, const u8 mode) sis_ata133_program_udma_timings() argument 318 sis_ata33_program_udma_timings(ide_drive_t *drive, const u8 mode) sis_ata33_program_udma_timings() argument 335 sis_program_udma_timings(ide_drive_t *drive, const u8 mode) sis_program_udma_timings() argument 343 sis_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) sis_set_dma_mode() argument 353 sis_ata133_udma_filter(ide_drive_t *drive) sis_ata133_udma_filter() argument [all...] |
H A D | it8172.c | 40 static void it8172_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in it8172_set_pio_mode() argument 45 const u8 pio = drive->pio_mode - XFER_PIO_0; in it8172_set_pio_mode() 65 drive_enables &= drive->dn ? 0xc006 : 0xc060; in it8172_set_pio_mode() 66 if (drive->media == ide_disk) in it8172_set_pio_mode() 68 drive_enables |= 0x0004 << (drive->dn * 4); in it8172_set_pio_mode() 69 if (ide_pio_need_iordy(drive, pio)) in it8172_set_pio_mode() 71 drive_enables |= 0x0002 << (drive->dn * 4); in it8172_set_pio_mode() 73 drive_timing &= drive->dn ? 0x00003f00 : 0x000fc000; in it8172_set_pio_mode() 74 drive_timing |= timings[pio] << (drive->dn * 6 + 8); in it8172_set_pio_mode() 80 static void it8172_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in it8172_set_dma_mode() argument [all...] |
H A D | trm290.c | 145 static void trm290_prepare_drive (ide_drive_t *drive, unsigned int use_dma) in trm290_prepare_drive() argument 147 ide_hwif_t *hwif = drive->hwif; in trm290_prepare_drive() 164 if (drive->dev_flags & IDE_DFLAG_PRESENT) { in trm290_prepare_drive() 174 static void trm290_dev_select(ide_drive_t *drive) in trm290_dev_select() argument 176 trm290_prepare_drive(drive, !!(drive->dev_flags & IDE_DFLAG_USING_DMA)); in trm290_dev_select() 178 outb(drive->select | ATA_DEVICE_OBS, drive->hwif->io_ports.device_addr); in trm290_dev_select() 181 static int trm290_dma_check(ide_drive_t *drive, struct ide_cmd *cmd) in trm290_dma_check() argument 192 static int trm290_dma_setup(ide_drive_t *drive, struc argument 209 trm290_dma_start(ide_drive_t *drive) trm290_dma_start() argument 214 trm290_dma_end(ide_drive_t *drive) trm290_dma_end() argument 223 trm290_dma_test_irq(ide_drive_t *drive) trm290_dma_test_irq() argument 230 trm290_dma_host_set(ide_drive_t *drive, int on) trm290_dma_host_set() argument [all...] |
H A D | ide-sysfs.c | 5 char *ide_media_string(ide_drive_t *drive) in ide_media_string() argument 7 switch (drive->media) { in ide_media_string() 26 ide_drive_t *drive = to_ide_device(dev); in media_show() local 27 return sprintf(buf, "%s\n", ide_media_string(drive)); in media_show() 34 ide_drive_t *drive = to_ide_device(dev); in drivename_show() local 35 return sprintf(buf, "%s\n", drive->name); in drivename_show() 42 ide_drive_t *drive = to_ide_device(dev); in modalias_show() local 43 return sprintf(buf, "ide:m-%s\n", ide_media_string(drive)); in modalias_show() 50 ide_drive_t *drive = to_ide_device(dev); in model_show() local 51 return sprintf(buf, "%s\n", (char *)&drive in model_show() 58 ide_drive_t *drive = to_ide_device(dev); firmware_show() local 66 ide_drive_t *drive = to_ide_device(dev); serial_show() local [all...] |
H A D | ide-lib.c | 26 static void ide_dump_sector(ide_drive_t *drive) in ide_dump_sector() argument 30 u8 lba48 = !!(drive->dev_flags & IDE_DFLAG_LBA48); in ide_dump_sector() 40 ide_tf_readback(drive, &cmd); in ide_dump_sector() 50 static void ide_dump_ata_error(ide_drive_t *drive, u8 err) in ide_dump_ata_error() argument 69 struct request *rq = drive->hwif->rq; in ide_dump_ata_error() 71 ide_dump_sector(drive); in ide_dump_ata_error() 80 static void ide_dump_atapi_error(ide_drive_t *drive, u8 err) in ide_dump_atapi_error() argument 99 * @drive: drive that status applies to 104 * Combines the drive nam 108 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat) ide_dump_status() argument [all...] |
H A D | pdc202xx_old.c | 25 static void pdc202xx_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in pdc202xx_set_mode() argument 28 u8 drive_pci = 0x60 + (drive->dn << 2); in pdc202xx_set_mode() 29 const u8 speed = drive->dma_mode; in pdc202xx_set_mode() 62 if (ide_pio_need_iordy(drive, speed - XFER_PIO_0)) in pdc202xx_set_mode() 64 if (drive->media == ide_disk) in pdc202xx_set_mode() 80 static void pdc202xx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in pdc202xx_set_pio_mode() argument 82 drive->dma_mode = drive->pio_mode; in pdc202xx_set_pio_mode() 83 pdc202xx_set_mode(hwif, drive); in pdc202xx_set_pio_mode() 147 static void pdc202xx_dma_start(ide_drive_t *drive) in pdc202xx_dma_start() argument 169 pdc202xx_dma_end(ide_drive_t *drive) pdc202xx_dma_end() argument [all...] |
H A D | cmd640.c | 59 * Version 0.07 Changed to more conservative drive tuning policy. 163 * Registers and masks for easy access by drive index: 174 * Current cmd640 timing values for each drive. 338 * Returns 1 if an IDE interface/drive exists at 0x170, 380 static void __set_prefetch_mode(ide_drive_t *drive, int mode) in __set_prefetch_mode() argument 384 drive->dev_flags |= IDE_DFLAG_NO_UNMASK; in __set_prefetch_mode() 385 drive->dev_flags &= ~IDE_DFLAG_UNMASK; in __set_prefetch_mode() 387 drive->dev_flags &= ~IDE_DFLAG_NO_IO_32BIT; in __set_prefetch_mode() 389 drive->dev_flags &= ~IDE_DFLAG_NO_UNMASK; in __set_prefetch_mode() 390 drive in __set_prefetch_mode() 400 check_prefetch(ide_drive_t *drive, unsigned int index) check_prefetch() argument 411 set_prefetch_mode(ide_drive_t *drive, unsigned int index, int mode) set_prefetch_mode() argument 459 program_drive_counts(ide_drive_t *drive, unsigned int index) program_drive_counts() argument 515 cmd640_set_mode(ide_drive_t *drive, unsigned int index, u8 pio_mode, unsigned int cycle_time) cmd640_set_mode() argument 577 cmd640_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) cmd640_set_pio_mode() argument 611 cmd640_init_dev(ide_drive_t *drive) cmd640_init_dev() argument [all...] |
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) in siimage_seldev() argument 116 ide_hwif_t *hwif = drive->hwif; in siimage_seldev() 118 u8 unit = drive->dn & 1; in siimage_seldev() 187 * @drive: IDE device 195 static u8 sil_pata_udma_filter(ide_drive_t *drive) in sil_pata_udma_filter() argument 197 ide_hwif_t *hwif = drive->hwif; in sil_pata_udma_filter() 223 static u8 sil_sata_udma_filter(ide_drive_t *drive) in sil_sata_udma_filter() argument 225 char *m = (char *)&drive->id[ATA_ID_PROD]; in sil_sata_udma_filter() 233 * @drive 239 sil_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) sil_set_pio_mode() argument 298 sil_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) sil_set_dma_mode() argument 359 siimage_mmio_dma_test_irq(ide_drive_t *drive) siimage_mmio_dma_test_irq() argument 393 siimage_dma_test_irq(ide_drive_t *drive) siimage_dma_test_irq() argument 409 sil_sata_reset_poll(ide_drive_t *drive) sil_sata_reset_poll() argument 437 sil_sata_pre_reset(ide_drive_t *drive) sil_sata_pre_reset() argument 605 is_dev_seagate_sata(ide_drive_t *drive) is_dev_seagate_sata() argument 630 sil_quirkproc(ide_drive_t *drive) sil_quirkproc() argument [all...] |
H A D | ide-disk_proc.c | 10 static int smart_enable(ide_drive_t *drive) in smart_enable() argument 23 return ide_no_data_taskfile(drive, &cmd); in smart_enable() 26 static int get_smart_data(ide_drive_t *drive, u8 *buf, u8 sub_cmd) in get_smart_data() argument 41 return ide_raw_taskfile(drive, &cmd, buf, 1); in get_smart_data() 46 ide_drive_t *drive = (ide_drive_t *) m->private; in idedisk_cache_proc_show() local 48 if (drive->dev_flags & IDE_DFLAG_ID_READ) in idedisk_cache_proc_show() 49 seq_printf(m, "%i\n", drive->id[ATA_ID_BUF_SIZE] / 2); in idedisk_cache_proc_show() 57 ide_drive_t*drive = (ide_drive_t *)m->private; in idedisk_capacity_proc_show() local 59 seq_printf(m, "%llu\n", (long long)ide_gd_capacity(drive)); in idedisk_capacity_proc_show() 63 static int __idedisk_proc_show(struct seq_file *m, ide_drive_t *drive, u argument [all...] |
H A D | ide-acpi.c | 202 * + _their_ children == drive objects */ in ide_acpi_hwif_get_handle() 212 * do_drive_get_GTF - get the drive bootup default taskfile settings 213 * @drive: the drive for which the taskfile settings should be retrieved 226 static int do_drive_get_GTF(ide_drive_t *drive, in do_drive_get_GTF() argument 239 if (!drive->acpidata->obj_handle) { in do_drive_get_GTF() 240 DEBPRINT("No ACPI object found for %s\n", drive->name); in do_drive_get_GTF() 250 status = acpi_evaluate_object(drive->acpidata->obj_handle, "_GTF", in do_drive_get_GTF() 299 * do_drive_set_taskfiles - write the drive taskfile settings from _GTF 300 * @drive 307 do_drive_set_taskfiles(ide_drive_t *drive, unsigned int gtf_length, unsigned long gtf_address) do_drive_set_taskfiles() argument 362 ide_acpi_exec_tfs(ide_drive_t *drive) ide_acpi_exec_tfs() argument 518 ide_drive_t *drive; ide_acpi_set_state() local 568 ide_drive_t *drive; ide_acpi_port_init_devices() local [all...] |
H A D | tc86c001.c | 17 static void tc86c001_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tc86c001_set_mode() argument 19 unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00); in tc86c001_set_mode() 21 const u8 speed = drive->dma_mode; in tc86c001_set_mode() 45 static void tc86c001_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tc86c001_set_pio_mode() argument 47 drive->dma_mode = drive->pio_mode; in tc86c001_set_pio_mode() 48 tc86c001_set_mode(hwif, drive); in tc86c001_set_pio_mode() 65 static int tc86c001_timer_expiry(ide_drive_t *drive) in tc86c001_timer_expiry() argument 67 ide_hwif_t *hwif = drive->hwif; in tc86c001_timer_expiry() 76 unsigned long twcr_port = sc_base + (drive in tc86c001_timer_expiry() 112 tc86c001_dma_start(ide_drive_t *drive) tc86c001_dma_start() argument [all...] |
H A D | slc90e66.c | 22 static void slc90e66_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in slc90e66_set_pio_mode() argument 25 int is_slave = drive->dn & 1; in slc90e66_set_pio_mode() 32 const u8 pio = drive->pio_mode - XFER_PIO_0; in slc90e66_set_pio_mode() 47 if (drive->media == ide_disk) in slc90e66_set_pio_mode() 49 if (ide_pio_need_iordy(drive, pio)) in slc90e66_set_pio_mode() 76 static void slc90e66_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in slc90e66_set_dma_mode() argument 80 int sitre = 0, a_speed = 7 << (drive->dn * 4); in slc90e66_set_dma_mode() 81 int u_speed = 0, u_flag = 1 << drive->dn; in slc90e66_set_dma_mode() 83 const u8 speed = drive->dma_mode; in slc90e66_set_dma_mode() 92 u_speed = (speed - XFER_UDMA_0) << (drive in slc90e66_set_dma_mode() [all...] |
H A D | tx4939ide.c | 107 static void tx4939ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tx4939ide_set_pio_mode() argument 109 int is_slave = drive->dn; in tx4939ide_set_pio_mode() 111 const u8 pio = drive->pio_mode - XFER_PIO_0; in tx4939ide_set_pio_mode() 115 pair = ide_get_pair_dev(drive); in tx4939ide_set_pio_mode() 120 * Transfer Mode for this drive. in tx4939ide_set_pio_mode() 128 static void tx4939ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tx4939ide_set_dma_mode() argument 131 const u8 mode = drive->dma_mode; in tx4939ide_set_dma_mode() 133 /* Update Data Transfer Mode for this drive. */ in tx4939ide_set_dma_mode() 138 if (drive->dn) { in tx4939ide_set_dma_mode() 173 static void tx4939ide_clear_irq(ide_drive_t *drive) in tx4939ide_clear_irq() argument 200 tx4939ide_dma_host_set(ide_drive_t *drive, int on) tx4939ide_dma_host_set() argument 234 tx4939ide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd) tx4939ide_build_dmatable() argument 287 tx4939ide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) tx4939ide_dma_setup() argument 314 tx4939ide_dma_end(ide_drive_t *drive) tx4939ide_dma_end() argument 342 tx4939ide_dma_test_irq(ide_drive_t *drive) tx4939ide_dma_test_irq() argument 420 tx4939ide_tf_load_fixup(ide_drive_t *drive) tx4939ide_tf_load_fixup() argument 435 tx4939ide_tf_load(ide_drive_t *drive, struct ide_taskfile *tf, u8 valid) tx4939ide_tf_load() argument 447 tx4939ide_input_data_swap(ide_drive_t *drive, struct ide_cmd *cmd, void *buf, unsigned int len) tx4939ide_input_data_swap() argument 459 tx4939ide_output_data_swap(ide_drive_t *drive, struct ide_cmd *cmd, void *buf, unsigned int len) tx4939ide_output_data_swap() argument [all...] |
H A D | it8213.c | 22 * @drive: drive 27 static void it8213_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in it8213_set_pio_mode() argument 30 int is_slave = drive->dn & 1; in it8213_set_pio_mode() 38 const u8 pio = drive->pio_mode - XFER_PIO_0; in it8213_set_pio_mode() 52 if (drive->media != ide_disk) in it8213_set_pio_mode() 54 if (ide_pio_need_iordy(drive, pio)) in it8213_set_pio_mode() 79 * @drive: drive 84 static void it8213_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in it8213_set_dma_mode() argument [all...] |
H A D | ns87415.c | 65 static void superio_tf_read(ide_drive_t *drive, struct ide_taskfile *tf, in superio_tf_read() argument 68 struct ide_io_ports *io_ports = &drive->hwif->io_ports; in superio_tf_read() 84 static void ns87415_dev_select(ide_drive_t *drive); 123 static void ns87415_prepare_drive (ide_drive_t *drive, unsigned int use_dma) in ns87415_prepare_drive() argument 125 ide_hwif_t *hwif = drive->hwif; in ns87415_prepare_drive() 136 if (drive->dev_flags & IDE_DFLAG_PRESENT) in ns87415_prepare_drive() 141 /* Select PIO or DMA, DMA may only be selected for one drive/channel. */ in ns87415_prepare_drive() 142 bit = 1 << (20 + (drive->dn & 1) + (hwif->channel << 1)); in ns87415_prepare_drive() 143 other = 1 << (20 + (1 - (drive->dn & 1)) + (hwif->channel << 1)); in ns87415_prepare_drive() 171 static void ns87415_dev_select(ide_drive_t *drive) in ns87415_dev_select() argument 179 ns87415_dma_start(ide_drive_t *drive) ns87415_dma_start() argument 185 ns87415_dma_end(ide_drive_t *drive) ns87415_dma_end() argument [all...] |
/third_party/ffmpeg/libavdevice/ |
H A D | libcdio.c | 45 cdrom_drive_t *drive; member 63 s->drive = cdio_cddap_identify(ctx->url, CDDA_MESSAGE_LOGIT, &err); in read_header() 64 if (!s->drive) { in read_header() 65 av_log(ctx, AV_LOG_ERROR, "Could not open drive %s.\n", ctx->url); in read_header() 72 if ((ret = cdio_cddap_open(s->drive)) < 0 || !s->drive->opened) { in read_header() 73 av_log(ctx, AV_LOG_ERROR, "Could not open disk in drive %s.\n", ctx->url); in read_header() 77 cdio_cddap_verbose_set(s->drive, CDDA_MESSAGE_LOGIT, CDDA_MESSAGE_LOGIT); in read_header() 79 cdio_cddap_speed_set(s->drive, s->speed); in read_header() 81 s->paranoia = cdio_paranoia_init(s->drive); in read_header() [all...] |
/kernel/linux/linux-5.10/drivers/block/ |
H A D | ataflop.c | 12 * - Disk change detection and drive deselecting after motor-off 15 * don't have an HD drive :-( 20 * - Removed drive type (unknown on atari) 43 * - Let user set max. supported drive type (speeds up format 176 { "D360", 9, 720, 0, 1}, /* 1: 360kb in 720k or 1.2MB drive */ 177 { "D720", 9,1440, 0, 0}, /* 2: 720kb in 720k or 1.2MB drive */ 274 * MSch: User-provided type information. 'drive' points to 280 * User-provided permanent type information. 'drive' points to 289 int connected; /* !=0 : drive is connected */ 306 #define UD unit[drive] 599 static int drive = 0; check_change() local 724 do_format(int drive, int type, struct atari_format_descr *desc) do_format() argument 1410 unsigned int drive = p - unit; floppy_check_events() local 1432 unsigned int drive = p - unit; floppy_revalidate() local 1488 int drive = floppy - unit; ataflop_queue_rq() local 1564 int drive = floppy - unit; fd_locked_ioctl() local 1849 int drive, cnt = 0; config_types() local 1967 int drive = *part & 3; floppy_find() local [all...] |
H A D | swim.c | 169 enum drive_location location; /* internal or external drive */ 170 int head_number; /* single- or double-sided drive */ 310 swim_write(base, mode0, EXTERNAL_DRIVE); /* clear drive 1 bit */ in swim_drive() 311 swim_write(base, mode1, INTERNAL_DRIVE); /* set drive 0 bit */ in swim_drive() 313 swim_write(base, mode0, INTERNAL_DRIVE); /* clear drive 0 bit */ in swim_drive() 314 swim_write(base, mode1, EXTERNAL_DRIVE); /* set drive 1 bit */ in swim_drive() 357 /* wait drive is ready */ in swim_head() 751 int drive = (*part & 3); in floppy_find() local 753 if (drive >= swd->floppy_count) in floppy_find() 757 return get_disk_and_module(swd->unit[drive] in floppy_find() 789 int drive; swim_floppy_init() local 932 int drive; swim_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/block/ |
H A D | ataflop.c | 12 * - Disk change detection and drive deselecting after motor-off 15 * don't have an HD drive :-( 20 * - Removed drive type (unknown on atari) 43 * - Let user set max. supported drive type (speeds up format 177 { "D360", 9, 720, 0, 1}, /* 1: 360kb in 720k or 1.2MB drive */ 178 { "D720", 9,1440, 0, 0}, /* 2: 720kb in 720k or 1.2MB drive */ 275 * MSch: User-provided type information. 'drive' points to 281 * User-provided permanent type information. 'drive' points to 290 int connected; /* !=0 : drive is connected */ 309 #define UD unit[drive] 612 static int drive = 0; check_change() local 743 do_format(int drive, int type, struct atari_format_descr *desc) do_format() argument 1439 unsigned int drive = p - unit; floppy_check_events() local 1461 unsigned int drive = p - unit; floppy_revalidate() local 1507 int drive = floppy - unit; ataflop_queue_rq() local 1589 int drive = floppy - unit; fd_locked_ioctl() local 1877 int drive, cnt = 0; config_types() local 1991 ataflop_alloc_disk(unsigned int drive, unsigned int type) ataflop_alloc_disk() argument 2015 int drive = MINOR(dev) & 3; ataflop_probe() local [all...] |