1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>ata_exec_internal</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="libATA Developer's Guide"><link rel="up" href="libataInt.html" title="Chapter&#160;5.&#160;libata Core Internals"><link rel="prev" href="API-ata-exec-internal-sg.html" title="ata_exec_internal_sg"><link rel="next" href="API-ata-pio-mask-no-iordy.html" title="ata_pio_mask_no_iordy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">ata_exec_internal</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-ata-exec-internal-sg.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;5.&#160;libata Core Internals</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-ata-pio-mask-no-iordy.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-ata-exec-internal"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ata_exec_internal &#8212; 
2     execute libata internal command
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">unsigned <b class="fsfunc">ata_exec_internal </b>(</code></td><td>struct ata_device * <var class="pdparam">dev</var>, </td></tr><tr><td>&#160;</td><td>struct ata_taskfile * <var class="pdparam">tf</var>, </td></tr><tr><td>&#160;</td><td>const u8 * <var class="pdparam">cdb</var>, </td></tr><tr><td>&#160;</td><td>int <var class="pdparam">dma_dir</var>, </td></tr><tr><td>&#160;</td><td>void * <var class="pdparam">buf</var>, </td></tr><tr><td>&#160;</td><td>unsigned int <var class="pdparam">buflen</var>, </td></tr><tr><td>&#160;</td><td>unsigned long <var class="pdparam">timeout</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1124084292"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dev</code></em></span></dt><dd><p>
4     Device to which the command is sent
5    </p></dd><dt><span class="term"><em class="parameter"><code>tf</code></em></span></dt><dd><p>
6     Taskfile registers for the command and the result
7    </p></dd><dt><span class="term"><em class="parameter"><code>cdb</code></em></span></dt><dd><p>
8     CDB for packet command
9    </p></dd><dt><span class="term"><em class="parameter"><code>dma_dir</code></em></span></dt><dd><p>
10     Data transfer direction of the command
11    </p></dd><dt><span class="term"><em class="parameter"><code>buf</code></em></span></dt><dd><p>
12     Data buffer of the command
13    </p></dd><dt><span class="term"><em class="parameter"><code>buflen</code></em></span></dt><dd><p>
14     Length of data buffer
15    </p></dd><dt><span class="term"><em class="parameter"><code>timeout</code></em></span></dt><dd><p>
16     Timeout in msecs (0 for default)
17    </p></dd></dl></div></div><div class="refsect1"><a name="idp1124091892"></a><h2>Description</h2><p>
18   Wrapper around <code class="function">ata_exec_internal_sg</code> which takes simple
19   buffer instead of sg list.
20</p></div><div class="refsect1"><a name="idp1124092836"></a><h2>LOCKING</h2><p>
21   None.  Should be called with kernel context, might sleep.
22</p></div><div class="refsect1"><a name="idp1124093484"></a><h2>RETURNS</h2><p>
23   Zero on success, AC_ERR_* mask on failure
24</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-ata-exec-internal-sg.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="libataInt.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-ata-pio-mask-no-iordy.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">ata_exec_internal_sg</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">ata_pio_mask_no_iordy</span></td></tr></table></div></body></html>
25