1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct spi_statistics</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="spi.html" title="Chapter 10. Serial Peripheral Interface (SPI)"><link rel="prev" href="spi.html" title="Chapter 10. Serial Peripheral Interface (SPI)"><link rel="next" href="API-struct-spi-device.html" title="struct spi_device"></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">struct spi_statistics</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="spi.html">Prev</a> </td><th width="60%" align="center">Chapter 10. Serial Peripheral Interface (SPI)</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-spi-device.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-spi-statistics"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct spi_statistics — 
2  statistics for spi transfers
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct spi_statistics {
5  spinlock_t lock;
6  unsigned long messages;
7  unsigned long transfers;
8  unsigned long errors;
9  unsigned long timedout;
10  unsigned long spi_sync;
11  unsigned long spi_sync_immediate;
12  unsigned long spi_async;
13  unsigned long long bytes;
14  unsigned long long bytes_rx;
15  unsigned long long bytes_tx;
16#define SPI_STATISTICS_HISTO_SIZE 17
17  unsigned long transfer_bytes_histo[SPI_STATISTICS_HISTO_SIZE];
18};  </pre></div><div class="refsect1"><a name="id-1.12.6.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">lock</span></dt><dd><p>
19lock protecting this structure
20      </p></dd><dt><span class="term">messages</span></dt><dd><p>
21number of spi-messages handled
22      </p></dd><dt><span class="term">transfers</span></dt><dd><p>
23number of spi_transfers handled
24      </p></dd><dt><span class="term">errors</span></dt><dd><p>
25number of errors during spi_transfer
26      </p></dd><dt><span class="term">timedout</span></dt><dd><p>
27number of timeouts during spi_transfer
28      </p></dd><dt><span class="term">spi_sync</span></dt><dd><p>
29number of times spi_sync is used
30      </p></dd><dt><span class="term">spi_sync_immediate</span></dt><dd><p>
31number of times spi_sync is executed immediately
32in calling context without queuing and scheduling
33      </p></dd><dt><span class="term">spi_async</span></dt><dd><p>
34number of times spi_async is used
35      </p></dd><dt><span class="term">bytes</span></dt><dd><p>
36number of bytes transferred to/from device
37      </p></dd><dt><span class="term">bytes_rx</span></dt><dd><p>
38number of bytes received from device
39      </p></dd><dt><span class="term">bytes_tx</span></dt><dd><p>
40number of bytes sent to device
41      </p></dd><dt><span class="term">transfer_bytes_histo[SPI_STATISTICS_HISTO_SIZE]</span></dt><dd><p>
42transfer bytes histogramm
43      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="spi.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="spi.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-spi-device.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 10. Serial Peripheral Interface (SPI) </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">struct spi_device</span></td></tr></table></div></body></html>
44