Lines Matching +full:active +full:- +full:semi

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pata_ns87410.c - National Semiconductor 87410 PATA for new ATA layer
19 * ns87410_pre_reset - probe begin
28 struct ata_port *ap = link->ap; in ns87410_pre_reset()
29 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in ns87410_pre_reset()
35 if (!pci_test_config_bits(pdev, &ns87410_enable_bits[ap->port_no])) in ns87410_pre_reset()
36 return -ENOENT; in ns87410_pre_reset()
42 * ns87410_set_piomode - set initial PIO mode data
52 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in ns87410_set_piomode()
53 int port = 0x40 + 4 * ap->port_no; in ns87410_set_piomode()
74 if (ata_timing_compute(adev, adev->pio_mode, &at, 30303, 1) < 0) { in ns87410_set_piomode()
75 dev_err(&pdev->dev, "unknown mode %d\n", adev->pio_mode); in ns87410_set_piomode()
79 at.active = clamp_val(at.active, 2, 16) - 2; in ns87410_set_piomode()
80 at.setup = clamp_val(at.setup, 1, 4) - 1; in ns87410_set_piomode()
81 at.recover = clamp_val(at.recover, 1, 12) - 1; in ns87410_set_piomode()
83 idetcr = (at.setup << 6) | (recoverbits[at.recover] << 3) | activebits[at.active]; in ns87410_set_piomode()
87 /* We use ap->private_data as a pointer to the device currently in ns87410_set_piomode()
89 ap->private_data = adev; in ns87410_set_piomode()
93 * ns87410_qc_issue - command issue
103 struct ata_port *ap = qc->ap; in ns87410_qc_issue()
104 struct ata_device *adev = qc->dev; in ns87410_qc_issue()
108 does not set adev->pio_mode to XFER_PIO_0 while probing as would be in ns87410_qc_issue()
111 if (adev->pio_mode && adev != ap->private_data) in ns87410_qc_issue()
160 MODULE_DESCRIPTION("low-level driver for Nat Semi 87410");