1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>hsi_get_channel_id_by_name</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="hsi.html" title="Chapter&#160;11.&#160;High Speed Synchronous Serial Interface (HSI)"><link rel="prev" href="API-hsi-event.html" title="hsi_event"></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">hsi_get_channel_id_by_name</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-hsi-event.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;11.&#160;High Speed Synchronous Serial Interface (HSI)</th><td width="20%" align="right">&#160;</td></tr></table><hr></div><div class="refentry"><a name="API-hsi-get-channel-id-by-name"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>hsi_get_channel_id_by_name &#8212; 
2     acquire channel id by channel name
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">hsi_get_channel_id_by_name </b>(</code></td><td>struct hsi_client * <var class="pdparam">cl</var>, </td></tr><tr><td>&#160;</td><td>char * <var class="pdparam">name</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1115815684"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>cl</code></em></span></dt><dd><p>
4     HSI client, which uses the channel
5    </p></dd><dt><span class="term"><em class="parameter"><code>name</code></em></span></dt><dd><p>
6     name the channel is known under
7    </p></dd></dl></div></div><div class="refsect1"><a name="idp1115818332"></a><h2>Description</h2><p>
8   Clients can call this function to get the hsi channel ids similar to
9   requesting IRQs or GPIOs by name. This function assumes the same
10   channel configuration is used for RX and TX.
11   </p><p>
12
13   Returns -errno on error or channel id on success.
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-hsi-event.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="hsi.html">Up</a></td><td width="40%" align="right">&#160;</td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">hsi_event</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;</td></tr></table></div></body></html>
15