Home
last modified time | relevance | path

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

12345678910>>...43

/kernel/linux/linux-5.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 …]
/kernel/linux/linux-6.6/arch/arm64/boot/dts/qcom/
Dqru1000-idp.dts1 // SPDX-License-Identifier: BSD-3-Clause
6 /dts-v1/;
8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
14 compatible = "qcom,qru1000-idp", "qcom,qru1000";
15 chassis-type = "embedded";
22 stdout-path = "serial0:115200n8";
26 xo_board: xo-board-clk {
27 compatible = "fixed-clock";
28 clock-frequency = <19200000>;
29 #clock-cells = <0>;
[all …]
Dqdu1000-idp.dts1 // SPDX-License-Identifier: BSD-3-Clause
6 /dts-v1/;
8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
14 compatible = "qcom,qdu1000-idp", "qcom,qdu1000";
15 chassis-type = "embedded";
22 stdout-path = "serial0:115200n8";
26 xo_board: xo-board-clk {
27 compatible = "fixed-clock";
28 clock-frequency = <19200000>;
29 #clock-cells = <0>;
[all …]
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>
12 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
14 #include "sc7180-firmware-tfa.dtsi"
20 compatible = "qcom,sc7180-idp", "qcom,sc7180";
30 stdout-path = "serial0:115200n8";
42 /delete-node/ &hyp_mem;
43 /delete-node/ &xbl_mem;
[all …]
Dsc8280xp-crd.dts1 // SPDX-License-Identifier: BSD-3-Clause
7 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
13 #include "sc8280xp-pmics.dtsi"
17 compatible = "qcom,sc8280xp-crd", "qcom,sc8280xp";
26 compatible = "pwm-backlight";
28 enable-gpios = <&pmc8280_1_gpios 8 GPIO_ACTIVE_HIGH>;
29 power-supply = <&vreg_edp_bl>;
31 pinctrl-names = "default";
[all …]
Dsa8540p-ride.dts1 // SPDX-License-Identifier: BSD-3-Clause
7 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
13 #include "sa8540p-pmics.dtsi"
17 compatible = "qcom,sa8540p-ride", "qcom,sa8540p";
29 stdout-path = "serial0:115200n8";
34 regulators-0 {
35 compatible = "qcom,pm8150-rpmh-regulators";
36 qcom,pmic-id = "a";
[all …]
Dsc7180-acer-aspire1.dts1 // SPDX-License-Identifier: BSD-3-Clause
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
13 /delete-node/ &tz_mem;
14 /delete-node/ &ipa_fw_mem;
19 chassis-type = "laptop";
29 stdout-path = "serial0:115200n8";
32 reserved-memory {
33 zap_mem: zap-shader@80840000 {
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.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 …]

12345678910>>...43