1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>intel_dp_drrs_init</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="ch04s02.html#idp1128179172" title="Display Refresh Rate Switching (DRRS)"><link rel="prev" href="API-intel-edp-drrs-flush.html" title="intel_edp_drrs_flush"><link rel="next" href="ch04s03.html" title="Memory Management and Command Submission"></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">intel_dp_drrs_init</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-intel-edp-drrs-flush.html">Prev</a> </td><th width="60%" align="center">Display Refresh Rate Switching (DRRS)</th><td width="20%" align="right"> <a accesskey="n" href="ch04s03.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-intel-dp-drrs-init"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>intel_dp_drrs_init — 2 Init basic DRRS work and mutex. 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">struct drm_display_mode * <b class="fsfunc">intel_dp_drrs_init </b>(</code></td><td>struct intel_connector * <var class="pdparam">intel_connector</var>, </td></tr><tr><td> </td><td>struct drm_display_mode * <var class="pdparam">fixed_mode</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1128228172"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>intel_connector</code></em></span></dt><dd><p> 4 eDP connector 5 </p></dd><dt><span class="term"><em class="parameter"><code>fixed_mode</code></em></span></dt><dd><p> 6 preferred mode of panel 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1128230772"></a><h2>Description</h2><p> 8 This function is called only once at driver load to initialize basic 9 DRRS stuff. 10</p></div><div class="refsect1"><a name="idp1128231460"></a><h2>Returns</h2><p> 11 Downclock mode if panel supports it, else return NULL. 12 DRRS support is determined by the presence of downclock mode (apart 13 from VBT setting). 14</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-intel-edp-drrs-flush.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04s02.html#idp1128179172">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch04s03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">intel_edp_drrs_flush</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Memory Management and Command Submission</td></tr></table></div></body></html> 15