'\" t .\" Title: ata_xfer_mask2mode .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: libata Library .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "ATA_XFER_MASK2MODE" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "libata Library" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ata_xfer_mask2mode \- Find matching XFER_* for the given xfer_mask .SH "SYNOPSIS" .HP \w'u8\ ata_xfer_mask2mode('u .BI "u8 ata_xfer_mask2mode(unsigned\ long\ " "xfer_mask" ");" .SH "ARGUMENTS" .PP \fIunsigned long xfer_mask\fR .RS 4 xfer_mask of interest .RE .SH "DESCRIPTION" .PP Return matching XFER_* value for \fIxfer_mask\fR\&. Only the highest bit of \fIxfer_mask\fR is considered\&. .PP LOCKING: None\&. .SH "RETURN" .PP Matching XFER_* value, 0xff if no match found\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br