Home
last modified time | relevance | path

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

12345678910>>...36

/Linux-v5.10/drivers/ide/
Dide-xfer-mode.c1 // SPDX-License-Identifier: GPL-2.0-only
21 * ide_xfer_verbose - return IDE mode names
22 * @mode: transfer mode
24 * Returns a constant string giving the name of the mode
28 const char *ide_xfer_verbose(u8 mode) in ide_xfer_verbose() argument
31 u8 i = mode & 0xf; in ide_xfer_verbose()
33 if (mode >= XFER_UDMA_0 && mode <= XFER_UDMA_7) in ide_xfer_verbose()
35 else if (mode >= XFER_MW_DMA_0 && mode <= XFER_MW_DMA_4) in ide_xfer_verbose()
37 else if (mode >= XFER_SW_DMA_0 && mode <= XFER_SW_DMA_2) in ide_xfer_verbose()
39 else if (mode >= XFER_PIO_0 && mode <= XFER_PIO_6) in ide_xfer_verbose()
[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 …]
Dit821x.c12 * modes. In pass through mode then it is an IDE controller. In its smart
13 * mode its actually quite a capable hardware raid controller disguised
14 * as an IDE controller. Smart mode only understands DMA read/write and
16 * in other respects but lacks the raid mode.
24 * o If you write LBA48 sized I/O's (ie > 256 sector) in smart mode
26 * o Smart mode without RAID doesn't clear all the necessary identify
30 * - In pass through mode we do all the work you would expect
31 * - In smart mode the clocking set up is done by the controller generally
33 * - There are a few extra vendor commands that actually talk to the
36 * Vendor areas of the identify block in smart mode are used for the
[all …]
Dide-gd.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #include "ide-disk.h"
21 #include "ide-floppy.h"
41 if (ide_device_get(idkp->drive)) in ide_disk_get()
44 get_device(&idkp->dev); in ide_disk_get()
52 ide_drive_t *drive = idkp->drive; in ide_disk_put() local
55 put_device(&idkp->dev); in ide_disk_put()
56 ide_device_put(drive); in ide_disk_put()
60 sector_t ide_gd_capacity(ide_drive_t *drive) in ide_gd_capacity() argument
62 return drive->capacity64; in ide_gd_capacity()
[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()
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()
57 return -EIO; in ide_floppy_get_format_capacities()
[all …]
Dsc1200.c2 * Copyright (C) 2000-2002 Mark Lord <mlord@pobox.com>
66 * Here are the standard PIO mode 0-4 timings for each "format".
67 * Format-0 uses fast data reg timings, with slower command reg timings.
68 * Format-1 uses fast timings for all registers, but won't work with all drives.
81 static void sc1200_tunepio(ide_drive_t *drive, u8 pio) in sc1200_tunepio() argument
83 ide_hwif_t *hwif = drive->hwif; in sc1200_tunepio()
84 struct pci_dev *pdev = to_pci_dev(hwif->dev); in sc1200_tunepio()
85 unsigned int basereg = hwif->channel ? 0x50 : 0x40, format = 0; in sc1200_tunepio()
91 pci_write_config_dword(pdev, basereg + ((drive->dn & 1) << 3), in sc1200_tunepio()
98 * different timings can still be chosen for each drive. We could
[all …]
Dsis5513.c2 * Copyright (C) 1999-2000 Andre Hedrick <andre@linux-ide.org>
5 * Copyright (C) 2007-2009 Bartlomiej Zolnierkiewicz
32 * or SiS5596, we can assume we see the first MWDMA-16 capable SiS5513 chip.
41 * ID, while the now ATA-133 capable 5513 still has the same PCI ID.
43 * bits, changing its device id to the true one - 5517 for 961 and 5518 for
110 Indexed by chipset_family and (dma_mode - XFER_UDMA_0) */
115 static u8 cycle_time_value[][XFER_UDMA_6 - XFER_UDMA_0 + 1] = {
128 static u8 cvs_time_value[][XFER_UDMA_6 - XFER_UDMA_0 + 1] = {
140 for PIO0/1/2/3/4 and DMA0/1/2 mode in order */
187 static u8 sis_ata133_get_base(ide_drive_t *drive) in sis_ata133_get_base() argument
[all …]
Dtc86c001.c3 * Copyright (C) 2005-2006 MontaVista Software, Inc. <source@mvista.com>
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()
20 u16 mode, scr = inw(scr_port); in tc86c001_set_mode() local
21 const u8 speed = drive->dma_mode; in tc86c001_set_mode()
24 case XFER_UDMA_4: mode = 0x00c0; break; in tc86c001_set_mode()
25 case XFER_UDMA_3: mode = 0x00b0; break; in tc86c001_set_mode()
26 case XFER_UDMA_2: mode = 0x00a0; break; in tc86c001_set_mode()
27 case XFER_UDMA_1: mode = 0x0090; break; in tc86c001_set_mode()
28 case XFER_UDMA_0: mode = 0x0080; break; in tc86c001_set_mode()
[all …]
Dsiimage.c2 * Copyright (C) 2001-2002 Andre Hedrick <andre@linux-ide.org>
4 * Copyright (C) 2007-2008 MontaVista Software, Inc.
5 * Copyright (C) 2007-2008 Bartlomiej Zolnierkiewicz
10 * http://gkernel.sourceforge.net/specs/sii/sii-0680a-v1.31.pdf.bz2
13 * http://gkernel.sourceforge.net/specs/sii/3112A_SiI-DS-0095-B2.pdf.bz2
19 * If you are using Marvell SATA-IDE adapters with Maxtor drives
23 * drive to "Single". "Master" will hang.
35 * - VDMA support
48 * pdev_is_sata - check if device is SATA
57 switch (pdev->device) { in pdev_is_sata()
[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
9 * Use hdparm utility to enable PIO mode 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()
[all …]
Dsl82c105.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Drive tuning added from Rebel.com's kernel sources
8 * -- Russell King (15/11/98) linux@arm.linux.org.uk
12 * -- Benjamin Herrenschmidt (01/11/03) benh@kernel.crashing.org
14 * Copyright (C) 2006-2007,2009 MontaVista Software, Inc. <source@mvista.com>
40 * Convert a PIO mode and cycle time to the required on/off times
43 static unsigned int get_pio_timings(ide_drive_t *drive, u8 pio) in get_pio_timings() argument
49 cmd_on = (t->active + 29) / 30; in get_pio_timings()
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()
[all …]
Dcs5536.c1 // SPDX-License-Identifier: GPL-2.0-only
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()
93 * cs5536_cable_detect - detect cable type
103 struct pci_dev *pdev = to_pci_dev(hwif->dev); in cs5536_cable_detect()
115 * cs5536_set_pio_mode - PIO timing setup
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
134 struct pci_dev *pdev = to_pci_dev(hwif->dev); in cs5536_set_pio_mode()
[all …]
Dit8213.c1 // SPDX-License-Identifier: GPL-2.0-only
20 * it8213_set_pio_mode - set host controller for PIO mode
22 * @drive: drive
24 * Set the interface PIO mode.
27 static void it8213_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in it8213_set_pio_mode() argument
29 struct pci_dev *dev = to_pci_dev(hwif->dev); in it8213_set_pio_mode()
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()
[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,
45 * with prefetch mode. Separate function for setting
52 * Added new function cmd640_set_mode to set PIO mode
59 * Version 0.07 Changed to more conservative drive tuning policy.
61 * (reported_PIO - 1) if it is supported, or to PIO0.
[all …]
Dtx4939ide.c9 * (C) Copyright TOSHIBA CORPORATION 2005-2007
25 /* ATA Shadow Registers (8-bit except for Data which is 16-bit) */
36 #define TX4939IDE_DMA_Cmd 0x800 /* 8-bit */
37 #define TX4939IDE_DMA_Stat 0x802 /* 8-bit */
38 #define TX4939IDE_PRD_Ptr 0x804 /* 32-bit */
39 /* ATA100 CORE Registers (16-bit) */
105 #define TX4939IDE_BASE(hwif) ((void __iomem *)(hwif)->extra_base)
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()
[all …]
Dide-dma-sff.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/dma-mapping.h>
11 * config_drive_for_dma - attempt to activate IDE DMA
12 * @drive: the drive to place in DMA mode
14 * If the drive supports at least mode 2 DMA or UDMA of any kind
15 * then attempt to place it into DMA mode. Drives that are known to
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()
[all …]
Datiixp.c1 // SPDX-License-Identifier: GPL-2.0-only
45 * atiixp_set_pio_mode - set host controller for PIO mode
47 * @drive: drive
49 * Set the interface PIO mode.
52 static void atiixp_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in atiixp_set_pio_mode() argument
54 struct pci_dev *dev = to_pci_dev(hwif->dev); in atiixp_set_pio_mode()
56 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_pio_mode()
59 const u8 pio = drive->pio_mode - XFER_PIO_0; in atiixp_set_pio_mode()
64 pio_mode_data &= ~(0x07 << (drive->dn * 4)); in atiixp_set_pio_mode()
65 pio_mode_data |= (pio << (drive->dn * 4)); in atiixp_set_pio_mode()
[all …]
Dserverworks.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 1998-2000 Michel Aubry
4 * Copyright (C) 1998-2000 Andrzej Krzysztofowicz
5 * Copyright (C) 1998-2000 Andre Hedrick <andre@linux-ide.org>
6 * Copyright (C) 2007-2010 Bartlomiej Zolnierkiewicz
13 * supports UDMA mode 2 (33 MB/s)
16 * all revisions support UDMA mode 4 (66 MB/s)
17 * revision A2.0 and up support UDMA mode 5 (100 MB/s)
20 * *** to detect 80-conductor cable presence. ***
24 * HT1000: AKA BCM5785 - Hypertransport Southbridge for Opteron systems. IDE
[all …]
/Linux-v5.10/Documentation/scsi/
Dst.rst1 .. SPDX-License-Identifier: GPL-2.0
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
39 used only in variable block mode (I don't know if this is sensible
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/pinctrl/
Dpincfg-node.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/pinctrl/pincfg-node.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linus.walleij@linaro.org>
21 bias-disable:
25 bias-high-impedance:
27 description: high impedance mode ("third-state", "floating")
29 bias-bus-hold:
33 bias-pull-up:
[all …]
/Linux-v5.10/Documentation/hwmon/
Ddrivetemp.rst1 .. SPDX-License-Identifier: GPL-2.0
8 ----------
10 ANS T13/1699-D
11 Information technology - AT Attachment 8 - ATA/ATAPI Command Set (ATA8-ACS)
14 Information technology - SCSI Primary Commands - 4 (SPC-4)
17 Information technology - SCSI / ATA Translation - 5 (SAT-5)
21 -----------
27 the current drive temperature and, if available, temperature limits
30 the drive temperature.
34 ----------
[all …]
/Linux-v5.10/Documentation/userspace-api/ioctl/
Dcdrom.rst5 - Edward A. Falk <efalk@google.com>
10 the CDROM layer. These are by-and-large implemented (as of Linux 2.6)
23 CDROMSTOP Stop the cdrom drive
24 CDROMSTART Start the cdrom drive
28 CDROMREADMODE2 Read CDROM mode 2 data (2336 Bytes)
30 CDROMREADMODE1 Read CDROM mode 1 data (2048 Bytes)
33 CDROMEJECT_SW enable(1)/disable(0) auto-ejecting
34 CDROMMULTISESSION Obtain the start-of-last-session
40 CDROMRESET hard-reset the drive
41 CDROMVOLREAD Get the drive's volume setting
[all …]
Dhdio.rst5 - Edward A. Falk <efalk@google.com>
10 the HD/IDE layer. These are by-and-large implemented (as of Linux 2.6)
22 HDIO_GET_QDMA get use-qdma flag
25 HDIO_GET_KEEPSETTINGS get keep-settings-on-reset flag
27 HDIO_GET_NOWERR get ignore-write-error flag
28 HDIO_GET_DMA get use-dma flag
31 HDIO_GET_WCACHE get write cache mode on|off
33 HDIO_GET_ADDRESS get sector addressing mode
38 HDIO_DRIVE_TASK execute task and special drive command
39 HDIO_DRIVE_CMD execute a special drive command
[all …]
/Linux-v5.10/drivers/block/
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 …]
/Linux-v5.10/arch/arm64/boot/dts/qcom/
Dsc7180-idp.dts1 // SPDX-License-Identifier: BSD-3-Clause
8 /dts-v1/;
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
18 compatible = "qcom,sc7180-idp", "qcom,sc7180";
28 stdout-path = "serial0:115200n8";
40 /delete-node/ &hyp_mem;
41 /delete-node/ &xbl_mem;
42 /delete-node/ &aop_mem;
43 /delete-node/ &sec_apps_mem;
[all …]

12345678910>>...36