1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>usb_buffer_unmap_sg</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux-USB Host Side API"><link rel="up" href="usbcore.html" title="Chapter 5. USB Core APIs"><link rel="prev" href="API-usb-buffer-dmasync-sg.html" title="usb_buffer_dmasync_sg"><link rel="next" href="API-usb-hub-clear-tt-buffer.html" title="usb_hub_clear_tt_buffer"></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">usb_buffer_unmap_sg</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-usb-buffer-dmasync-sg.html">Prev</a> </td><th width="60%" align="center">Chapter 5. USB Core APIs</th><td width="20%" align="right"> <a accesskey="n" href="API-usb-hub-clear-tt-buffer.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-usb-buffer-unmap-sg"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>usb_buffer_unmap_sg — 2 free DMA mapping(s) for a scatterlist 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">void <b class="fsfunc">usb_buffer_unmap_sg </b>(</code></td><td>const struct usb_device * <var class="pdparam">dev</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">is_in</var>, </td></tr><tr><td> </td><td>struct scatterlist * <var class="pdparam">sg</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">n_hw_ents</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1116640948"></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 scatterlist will be mapped 5 </p></dd><dt><span class="term"><em class="parameter"><code>is_in</code></em></span></dt><dd><p> 6 mapping transfer direction 7 </p></dd><dt><span class="term"><em class="parameter"><code>sg</code></em></span></dt><dd><p> 8 the scatterlist to unmap 9 </p></dd><dt><span class="term"><em class="parameter"><code>n_hw_ents</code></em></span></dt><dd><p> 10 the positive return value from usb_buffer_map_sg 11 </p></dd></dl></div></div><div class="refsect1"><a name="idp1116645660"></a><h2>Description</h2><p> 12 Reverses the effect of <code class="function">usb_buffer_map_sg</code>. 13</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-usb-buffer-dmasync-sg.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="usbcore.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-usb-hub-clear-tt-buffer.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">usb_buffer_dmasync_sg</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">usb_hub_clear_tt_buffer</span></td></tr></table></div></body></html> 14