1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>i915_vma_bind</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux DRM Developer's Guide"><link rel="up" href="ch04s03.html#idp1128435628" title="Global GTT views"><link rel="prev" href="API-alloc-pt-range.html" title="alloc_pt_range"><link rel="next" href="API-i915-gem-evict-something.html" title="i915_gem_evict_something"></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">i915_vma_bind</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-alloc-pt-range.html">Prev</a>&#160;</td><th width="60%" align="center">Global GTT views</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-i915-gem-evict-something.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-i915-vma-bind"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>i915_vma_bind &#8212; 
2     Sets up PTEs for an VMA in it's corresponding address space.
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">int <b class="fsfunc">i915_vma_bind </b>(</code></td><td>struct i915_vma * <var class="pdparam">vma</var>, </td></tr><tr><td>&#160;</td><td>enum i915_cache_level <var class="pdparam">cache_level</var>, </td></tr><tr><td>&#160;</td><td>u32 <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1128468892"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>vma</code></em></span></dt><dd><p>
4     VMA to map
5    </p></dd><dt><span class="term"><em class="parameter"><code>cache_level</code></em></span></dt><dd><p>
6     mapping cache level
7    </p></dd><dt><span class="term"><em class="parameter"><code>flags</code></em></span></dt><dd><p>
8     flags like global or local mapping
9    </p></dd></dl></div></div><div class="refsect1"><a name="idp1128472548"></a><h2>Description</h2><p>
10   DMA addresses are taken from the scatter-gather table of this object (or of
11   this VMA in case of non-default GGTT views) and PTE entries set up.
12   Note that DMA addresses are also the only part of the SG table we care about.
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-alloc-pt-range.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch04s03.html#idp1128435628">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-i915-gem-evict-something.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">alloc_pt_range</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">i915_gem_evict_something</span></td></tr></table></div></body></html>
14