'\" t .\" Title: struct spi_statistics .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Serial Peripheral Interface (SPI) .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "STRUCT SPI_STATISTIC" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Serial Peripheral Interface (S" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_spi_statistics \- statistics for spi transfers .SH "SYNOPSIS" .sp .nf struct spi_statistics { spinlock_t lock; unsigned long messages; unsigned long transfers; unsigned long errors; unsigned long timedout; unsigned long spi_sync; unsigned long spi_sync_immediate; unsigned long spi_async; unsigned long long bytes; unsigned long long bytes_rx; unsigned long long bytes_tx; #define SPI_STATISTICS_HISTO_SIZE 17 unsigned long transfer_bytes_histo[SPI_STATISTICS_HISTO_SIZE]; unsigned long transfers_split_maxsize; }; .fi .SH "MEMBERS" .PP lock .RS 4 lock protecting this structure .RE .PP messages .RS 4 number of spi\-messages handled .RE .PP transfers .RS 4 number of spi_transfers handled .RE .PP errors .RS 4 number of errors during spi_transfer .RE .PP timedout .RS 4 number of timeouts during spi_transfer .RE .PP spi_sync .RS 4 number of times spi_sync is used .RE .PP spi_sync_immediate .RS 4 number of times spi_sync is executed immediately in calling context without queuing and scheduling .RE .PP spi_async .RS 4 number of times spi_async is used .RE .PP bytes .RS 4 number of bytes transferred to/from device .RE .PP bytes_rx .RS 4 number of bytes received from device .RE .PP bytes_tx .RS 4 number of bytes sent to device .RE .PP transfer_bytes_histo[SPI_STATISTICS_HISTO_SIZE] .RS 4 transfer bytes histogramm .RE .PP transfers_split_maxsize .RS 4 number of transfers that have been split because of maxsize limit .RE .SH "COPYRIGHT" .br