Home
last modified time | relevance | path

Searched +full:i +full:- +full:drive (Results 1 – 25 of 1028) sorted by relevance

12345678910>>...42

/kernel/linux/linux-5.10/drivers/ide/
Dide-probe.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 1994-1998 Linus Torvalds & authors (see below)
10 * and Andre Hedrick <andre@linux-ide.org>
16 * -- increase WAIT_PIDENTIFY to avoid CD-ROM locking at boot
44 * generic_id - add a generic drive id
45 * @drive: drive to make an ID block for
47 * Add a fake id field to the drive we are passed. This allows
49 * and make drive properties unconditional outside of this file
52 static void generic_id(ide_drive_t *drive) in generic_id() argument
54 u16 *id = drive->id; in generic_id()
[all …]
Dide.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 1994-1998 Linus Torvalds & authors (see below)
4 * Copyright (C) 2003-2005, 2007 Bartlomiej Zolnierkiewicz
10 * and Andre Hedrick <andre@linux-ide.org>
17 * There can be up to two drives per interface, as per the ATA-2 spec.
23 * | It traverses the request-list, using interrupts to jump between functions.
30 * | in the early extended-partition checks and added DM partitions.
34 * | IRQ-unmask, drive-id, multiple-mode, support for ">16 heads",
37 * October, 1994 -- Complete line-by-line overhaul for linux 1.1.x, by:
41 * Scott Snyder (snyder@fnald0.fnal.gov) (ATAPI IDE cd-rom)
[all …]
Dide-iops.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2000-2002 Andre Hedrick <andre@linux-ide.org>
31 void SELECT_MASK(ide_drive_t *drive, int mask) in SELECT_MASK() argument
33 const struct ide_port_ops *port_ops = drive->hwif->port_ops; in SELECT_MASK()
35 if (port_ops && port_ops->maskproc) in SELECT_MASK()
36 port_ops->maskproc(drive, mask); in SELECT_MASK()
39 u8 ide_read_error(ide_drive_t *drive) in ide_read_error() argument
43 drive->hwif->tp_ops->tf_read(drive, &tf, IDE_VALID_ERROR); in ide_read_error()
53 int i; in ide_fix_driveid() local
55 for (i = 0; i < 256; i++) in ide_fix_driveid()
[all …]
Dide-dma.c2 * IDE DMA support (including IDE PCI BM-DMA).
4 * Copyright (C) 1995-1998 Mark Lord
5 * Copyright (C) 1999-2000 Andre Hedrick <andre@linux-ide.org>
21 * Thanks to "Benoit Poulot-Cazajous" <poulot@chorus.fr> for testing
25 * at generic DMA -- his patches were referred to when preparing this code.
28 * for supplying a Promise UDMA board & WD UDMA drive for this work!
37 #include <linux/dma-mapping.h>
42 { "CONNER CTT8000-A" , NULL },
55 { "Compaq CRD-8241B" , NULL },
56 { "CRD-8400B" , NULL },
[all …]
Dide-floppy.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 1996-1999 Gadi Oxman <gadio@netvision.net.il>
6 * Copyright (C) 2000-2002 Paul Bristow <paul@paulbristow.net>
11 * LS-120/240 SuperDisk
16 * Documentation/ide/ChangeLog.ide-floppy.1996-2002
44 #include "ide-floppy.h"
59 * The following delay solves a problem with ATAPI Zip 100 drive where BSY bit
64 static int ide_floppy_callback(ide_drive_t *drive, int dsc) in ide_floppy_callback() argument
66 struct ide_disk_obj *floppy = drive->driver_data; in ide_floppy_callback()
67 struct ide_atapi_pc *pc = drive->pc; in ide_floppy_callback()
[all …]
Dht6560b.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 1995-2000 Linus Torvalds & author (see below)
7 * HT-6560B EIDE-controller support
11 * Author: Mikko Ala-Fossi <maf@iki.fi>
35 * The special i/o-port that HT-6560B uses to configuration:
40 * The special i/o-port that HT-6560A uses to configuration:
43 * bit2 (0x04): "0" enables multi-master system (?)
48 static inline u8 HT_CONFIG(ide_drive_t *drive) in HT_CONFIG() argument
50 return ((unsigned long)ide_get_drivedata(drive) & 0xff00) >> 8; in HT_CONFIG()
54 * FIFO + PREFETCH (both a/b-model)
[all …]
Dide-xfer-mode.c1 // SPDX-License-Identifier: GPL-2.0-only
21 * ide_xfer_verbose - return IDE mode names
31 u8 i = mode & 0xf; in ide_xfer_verbose() local
34 s = udma_str[i]; in ide_xfer_verbose()
36 s = mwdma_str[i]; in ide_xfer_verbose()
38 s = swdma_str[i]; in ide_xfer_verbose()
40 s = pio_str[i & 0x7]; in ide_xfer_verbose()
51 * ide_get_best_pio_mode - get PIO mode from drive
52 * @drive: drive to consider
56 * This routine returns the recommended PIO settings for a given drive,
[all …]
Dide-sysfs.c1 // SPDX-License-Identifier: GPL-2.0
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
[all …]
Dide-disk_proc.c1 // SPDX-License-Identifier: GPL-2.0
8 #include "ide-disk.h"
10 static int smart_enable(ide_drive_t *drive) in smart_enable() argument
16 tf->feature = ATA_SMART_ENABLE; in smart_enable()
17 tf->lbam = ATA_SMART_LBAM_PASS; in smart_enable()
18 tf->lbah = ATA_SMART_LBAH_PASS; in smart_enable()
19 tf->command = ATA_CMD_SMART; in smart_enable()
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
32 tf->feature = sub_cmd; in get_smart_data()
[all …]
Dide-floppy_ioctl.c1 // SPDX-License-Identifier: GPL-2.0
3 * ide-floppy IOCTLs handling.
16 #include "ide-floppy.h"
38 static int ide_floppy_get_format_capacities(ide_drive_t *drive, in ide_floppy_get_format_capacities() argument
42 struct ide_disk_obj *floppy = drive->driver_data; in ide_floppy_get_format_capacities()
43 int i, blocks, length, u_array_size, u_index; in ide_floppy_get_format_capacities() local
48 return -EFAULT; in ide_floppy_get_format_capacities()
51 return -EINVAL; in ide_floppy_get_format_capacities()
55 if (ide_queue_pc_tail(drive, floppy->disk, pc, pc_buf, pc->req_xfer)) { in ide_floppy_get_format_capacities()
56 printk(KERN_ERR "ide-floppy: Can't get floppy parameters\n"); in ide_floppy_get_format_capacities()
[all …]
Dide-proc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 1997-1998 Mark Lord
12 * Drive/Driver settings can be retrieved by reading the drive's
37 ide_hwif_t *hwif = (ide_hwif_t *) m->private; in ide_imodel_proc_show()
40 switch (hwif->chipset) { in ide_imodel_proc_show()
50 case ide_pmac: name = "mac-io"; break; in ide_imodel_proc_show()
62 ide_hwif_t *hwif = (ide_hwif_t *) m->private; in ide_mate_proc_show()
64 if (hwif && hwif->mate) in ide_mate_proc_show()
65 seq_printf(m, "%s\n", hwif->mate->name); in ide_mate_proc_show()
73 ide_hwif_t *hwif = (ide_hwif_t *) m->private; in ide_channel_proc_show()
[all …]
Dcmd640.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 1995-1996 Linus Torvalds & authors (see below)
25 * chrisc@dbass.demon.co.uk, dalecki@namu26.Num.Math.Uni-Goettingen.de,
26 * derekn@vw.ece.cmu.edu, florian@btp2x3.phy.uni-bayreuth.de,
28 * j@pobox.com, jkemp1@mises.uni-paderborn.de, jtoppe@hiwaay.net,
29 * kerouac@ssnet.com, meskes@informatik.rwth-aachen.de, hzoli@cs.elte.hu,
59 * Version 0.07 Changed to more conservative drive tuning policy.
61 * (reported_PIO - 1) if it is supported, or to PIO0.
79 * prefetch can be turned OFF/ON using "hdparm -p8/-p9"
80 * (requires hdparm-3.1 or newer)
[all …]
Dide-eh.c1 // SPDX-License-Identifier: GPL-2.0-only
8 static ide_startstop_t ide_ata_error(ide_drive_t *drive, struct request *rq, in ide_ata_error() argument
11 ide_hwif_t *hwif = drive->hwif; in ide_ata_error()
14 ((stat & ATA_DF) && (drive->dev_flags & IDE_DFLAG_NOWERR) == 0)) { in ide_ata_error()
16 scsi_req(rq)->result |= ERROR_RESET; in ide_ata_error()
20 if ((drive->dev_flags & IDE_DFLAG_LBA) && in ide_ata_error()
22 hwif->tp_ops->read_status(hwif) == ATA_CMD_INIT_DEV_PARAMS) in ide_ata_error()
26 drive->crc_count++; in ide_ata_error()
29 scsi_req(rq)->result = ERROR_MAX; in ide_ata_error()
32 scsi_req(rq)->result |= ERROR_RECAL; in ide_ata_error()
[all …]
/kernel/linux/linux-6.6/drivers/block/
Damiflop.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * - now no bugs(?) any more for both HD & DD
10 * - added support for 40 Track 5.25" drives, 80-track hopefully behaves
11 * like 3.5" dd (no way to test - are there any 5.25" drives out there
13 * - wrote formatting routine (maybe dirty, but works)
15 * june/july 1995 added ms-dos support by Joerg Dorchain
17 * - currently only 9 and 18 sector disks
19 * - fixed a bug with the internal trackbuffer when using multiple
21 * - made formatting a bit safer
22 * - added command line and machine based default for "silent" df0
[all …]
Dfloppy.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * 02.12.91 - Changed to static variables to indicate need for reset
18 * This file is certainly a mess. I've tried my best to get it working,
19 * but I don't like programming floppies, and I have only one anyway.
20 * Urgel. I should check for more errors, and do more graceful error
21 * recovery. Seems there are problems with several drives. I've tried to
28 * handler may not sleep, or a kernel panic will happen. Thus I cannot
29 * call "floppy-on" directly, but have to set a special timer interrupt
34 * 28.02.92 - made track-buffering routines, based on the routines written
39 * Automatic floppy-detection and formatting written by Werner Almesberger
[all …]
Dataflop.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * - Driver now works interrupt driven
10 * - Support for two drives; should work, but I cannot test that :-(
11 * - Reading is done in whole tracks and buffered to speed up things
12 * - Disk change detection and drive deselecting after motor-off
14 * - Autodetection of disk format (DD/HD); untested yet, because I
15 * don't have an HD drive :-(
18 * - Autodetection works now
19 * - Support for 5 1/4'' disks
20 * - Removed drive type (unknown on atari)
[all …]
Dswim.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * 2004-08-21 (lv) - Initial implementation
12 * 2008-10-30 (lv) - Port to 2.6
18 #include <linux/blk-mq.h>
39 #define DRIVER_VERSION "Version 0.2 (2008-10-30)"
41 #define REG(x) unsigned char x, x ## _pad[0x200 - 1];
63 #define swim_write(base, reg, v) out_8(&(base)->write_##reg, (v))
64 #define swim_read(base, reg) in_8(&(base)->read_##reg)
87 #define iwm_write(base, reg, v) out_8(&(base)->reg, (v))
88 #define iwm_read(base, reg) in_8(&(base)->reg)
[all …]
/kernel/linux/linux-5.10/drivers/block/
Damiflop.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * - now no bugs(?) any more for both HD & DD
10 * - added support for 40 Track 5.25" drives, 80-track hopefully behaves
11 * like 3.5" dd (no way to test - are there any 5.25" drives out there
13 * - wrote formatting routine (maybe dirty, but works)
15 * june/july 1995 added ms-dos support by Joerg Dorchain
17 * - currently only 9 and 18 sector disks
19 * - fixed a bug with the internal trackbuffer when using multiple
21 * - made formatting a bit safer
22 * - added command line and machine based default for "silent" df0
[all …]
Dfloppy.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * 02.12.91 - Changed to static variables to indicate need for reset
18 * This file is certainly a mess. I've tried my best to get it working,
19 * but I don't like programming floppies, and I have only one anyway.
20 * Urgel. I should check for more errors, and do more graceful error
21 * recovery. Seems there are problems with several drives. I've tried to
28 * handler may not sleep, or a kernel panic will happen. Thus I cannot
29 * call "floppy-on" directly, but have to set a special timer interrupt
34 * 28.02.92 - made track-buffering routines, based on the routines written
39 * Automatic floppy-detection and formatting written by Werner Almesberger
[all …]
Dataflop.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * - Driver now works interrupt driven
10 * - Support for two drives; should work, but I cannot test that :-(
11 * - Reading is done in whole tracks and buffered to speed up things
12 * - Disk change detection and drive deselecting after motor-off
14 * - Autodetection of disk format (DD/HD); untested yet, because I
15 * don't have an HD drive :-(
18 * - Autodetection works now
19 * - Support for 5 1/4'' disks
20 * - Removed drive type (unknown on atari)
[all …]
Dswim.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * 2004-08-21 (lv) - Initial implementation
12 * 2008-10-30 (lv) - Port to 2.6
18 #include <linux/blk-mq.h>
38 #define DRIVER_VERSION "Version 0.2 (2008-10-30)"
40 #define REG(x) unsigned char x, x ## _pad[0x200 - 1];
62 #define swim_write(base, reg, v) out_8(&(base)->write_##reg, (v))
63 #define swim_read(base, reg) in_8(&(base)->read_##reg)
86 #define iwm_write(base, reg, v) out_8(&(base)->reg, (v))
87 #define iwm_read(base, reg) in_8(&(base)->reg)
[all …]
/kernel/linux/linux-6.6/Documentation/scsi/
Dst.rst1 .. SPDX-License-Identifier: GPL-2.0
17 The driver is generic, i.e., it does not contain any code tailored
18 to any specific tape drive. The tape parameters can be specified with
23 flexible method and applicable to single-user workstations. However,
30 new tape is loaded into the drive or if writing begins at the
32 drive performs auto-detection of the tape format well (like some
33 QIC-drives). The result is that any tape can be read, writing can be
36 for the first time). The first method is applicable if the drive
37 does not perform auto-detection well enough and there is a single
38 "sensible" mode for the device. An example is a DAT drive that is
[all …]
/kernel/linux/linux-5.10/Documentation/scsi/
Dst.rst1 .. SPDX-License-Identifier: GPL-2.0
17 The driver is generic, i.e., it does not contain any code tailored
18 to any specific tape drive. The tape parameters can be specified with
23 flexible method and applicable to single-user workstations. However,
30 new tape is loaded into the drive or if writing begins at the
32 drive performs auto-detection of the tape format well (like some
33 QIC-drives). The result is that any tape can be read, writing can be
36 for the first time). The first method is applicable if the drive
37 does not perform auto-detection well enough and there is a single
38 "sensible" mode for the device. An example is a DAT drive that is
[all …]
/kernel/linux/linux-6.6/Documentation/admin-guide/laptops/
Ddisk-shock-protection.rst7 Last modified: 2008-10-03
19 --------
21 ATA/ATAPI-7 specifies the IDLE IMMEDIATE command with unload feature.
22 Issuing this command should cause the drive to switch to idle mode and
25 a shock protection facility. The idea is to stop all I/O operations on
26 the internal hard drive and park its heads on the ramp when critical
37 ----------------
42 -EOPNOTSUPP if the device does not support the unload feature.
44 of the respective drive off the platter and block all I/O operations
49 -EOVERFLOW, but heads will be parked anyway and the timeout will be
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/laptops/
Ddisk-shock-protection.rst7 Last modified: 2008-10-03
19 --------
21 ATA/ATAPI-7 specifies the IDLE IMMEDIATE command with unload feature.
22 Issuing this command should cause the drive to switch to idle mode and
25 a shock protection facility. The idea is to stop all I/O operations on
26 the internal hard drive and park its heads on the ramp when critical
37 ----------------
42 -EOPNOTSUPP if the device does not support the unload feature.
44 of the respective drive off the platter and block all I/O operations
49 -EOVERFLOW, but heads will be parked anyway and the timeout will be
[all …]

12345678910>>...42