Lines Matching defs:mode

115 MODULE_PARM_DESC(force, "Force ATA configurations including cable type, link speed and transfer mode (see Documentation/admin-guide/kernel-parameters.rst for details)");
179 * @mode: iteration mode, one of ATA_LITER_*
188 enum ata_link_iter_mode mode)
190 BUG_ON(mode != ATA_LITER_EDGE &&
191 mode != ATA_LITER_PMP_FIRST && mode != ATA_LITER_HOST_FIRST);
195 switch (mode) {
207 switch (mode) {
228 if (mode == ATA_LITER_PMP_FIRST)
239 * @mode: iteration mode, one of ATA_DITER_*
248 enum ata_dev_iter_mode mode)
250 BUG_ON(mode != ATA_DITER_ENABLED && mode != ATA_DITER_ENABLED_REVERSE &&
251 mode != ATA_DITER_ALL && mode != ATA_DITER_ALL_REVERSE);
255 switch (mode) {
268 switch (mode) {
282 if ((mode == ATA_DITER_ENABLED || mode == ATA_DITER_ENABLED_REVERSE) &&
1434 u8 mode = (id[ATA_ID_OLD_PIO_MODES] >> 8) & 0xFF;
1435 if (mode < 5) /* Valid PIO range */
1436 pio_mask = (2 << mode) - 1;
1731 * Compute the highest mode possible if we are not using iordy. Return
1732 * -1 if no iordy mode is available.
1918 * Drive powered-up in standby mode, and requires a specific
2016 ata_dev_err(dev, "Check power mode failed (err_mask=0x%x)\n",
2019 * Assume we are in standby mode so that we always force a
2025 ata_dev_dbg(dev, "Power mode: 0x%02x\n", tf.nsect);
2032 * ata_dev_power_set_standby - Set a device power mode to standby
2035 * Issue a STANDBY IMMEDIATE command to set a device power mode to standby.
2069 ata_dev_notice(dev, "Entering standby power mode\n");
2078 * ata_dev_power_set_active - Set a device power mode to active
2082 * active power mode. For a spun-down HDD (standby or idle power mode),
2107 ata_dev_notice(dev, "Entering active power mode\n");
2944 /* find max transfer mode; for printk only */
3179 * transfer mode.
3328 * ata_timing_cycle2mode - find xfer mode for the specified cycle duration
3332 * Return matching xfer mode for @cycle. The returned mode is of
3335 * than the fastest known mode, the fasted mode is returned.
3354 t && ata_xfer_mode2shift(t->mode) == xfer_shift; t++) {
3372 last_mode = t->mode;
3517 /* Early MWDMA devices do DMA but don't allow DMA mode setting.
3557 * ATA device disk transfer mode (PIO3, UDMA6, etc.). If
3631 /* step 4: update devices' xfer mode */
4275 * is put into the slumber mode. We don't have full list of the
4503 ata_dev_dbg(dev, "set features - xfer mode\n");
4506 * behavior after setting xfer mode. Use polling instead.
4513 /* If we are using IORDY we must send the mode setting command */
6023 * have set polling mode on the port. In this case, @irq_handler
6043 /* Special case for polling mode */
6324 #define force_xfer(mode, shift) \
6325 { #mode, .xfer_mask = (1UL << (shift)) }