---
name: "ata_timing_cycle2mode"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_timing_cycle2mode"
---

# ata\_timing\_cycle2mode(9)

find xfer mode for the specified cycle duration

## NAME

ata\_timing\_cycle2mode - find xfer mode for the specified cycle duration

## SYNOPSIS

**u8 ata\_timing\_cycle2mode(unsigned int** *xfer\_shift***, int** *cycle***);**

## ARGUMENTS

*xfer\_shift*

ATA\_SHIFT\_\* value for transfer type to examine.

*cycle*

cycle duration in ns

## DESCRIPTION

Return matching xfer mode for *cycle*. The returned mode is of the transfer type specified by *xfer\_shift*. If *cycle* is too slow for *xfer\_shift*, 0xff is returned. If *cycle* is faster than the fastest known mode, the fasted mode is returned.

LOCKING: None.

## RETURN

Matching xfer\_mode, 0xff if no match found.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
