sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget"/translations/zh_CN/driver-api/i2cmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/zh_TW/driver-api/i2cmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/it_IT/driver-api/i2cmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/ja_JP/driver-api/i2cmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/ko_KR/driver-api/i2cmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/sp_SP/driver-api/i2cmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h"I\ :sup:`2`\ C and SMBus Subsystemh](hI }(hhhhhNhNubh superscript)}(h:sup:`2`h]h2}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhubh C and SMBus Subsystem}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhhh` representing each I2C bus segment it manages. On each I2C bus segment will be I2C devices represented by a :c:type:`struct i2c_client `. Those devices will be bound to a :c:type:`struct i2c_driver `, which should follow the standard Linux driver model. There are functions to perform various I2C protocol operations; at this writing all such functions are usable only from task context.h](hXWThe Linux I2C programming interfaces support the master side of bus interactions and the slave side. The programming interface is structured around two kinds of driver, and two kinds of device. An I2C “Adapter Driver” abstracts the controller hardware; it binds to a physical device (perhaps a PCI device or platform_device) and exposes a }(hhhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]hliteral)}(hhh]hstruct i2c_adapter}(hhhhhNhNubah}(h]h ](xrefcc-typeeh"]h$]h&]uh1hhhubah}(h]h ]h"]h$]h&]refdocdriver-api/i2c refdomainjreftypetype refexplicitrefwarn reftarget i2c_adapteruh1hhhhKhhubhl representing each I2C bus segment it manages. On each I2C bus segment will be I2C devices represented by a }(hhhhhNhNubh)}(h(:c:type:`struct i2c_client `h]h)}(hj h]hstruct i2c_client}(hj"hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnj i2c_clientuh1hhhhKhhubh#. Those devices will be bound to a }(hhhhhNhNubh)}(h(:c:type:`struct i2c_driver `h]h)}(hjCh]hstruct i2c_driver}(hjEhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnj i2c_driveruh1hhhhKhhubh, which should follow the standard Linux driver model. There are functions to perform various I2C protocol operations; at this writing all such functions are usable only from task context.}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hX.The System Management Bus (SMBus) is a sibling protocol. Most SMBus systems are also I2C conformant. The electrical constraints are tighter for SMBus, and it standardizes particular protocol messages and idioms. Controllers that support I2C can also support most SMBus operations, but SMBus controllers don't support all the protocol options that an I2C controller will. There are functions to perform various SMBus protocol operations, either using I2C primitives or by issuing SMBus commands to i2c_adapter devices which don't support those I2C operations.h]hX2The System Management Bus (SMBus) is a sibling protocol. Most SMBus systems are also I2C conformant. The electrical constraints are tighter for SMBus, and it standardizes particular protocol messages and idioms. Controllers that support I2C can also support most SMBus operations, but SMBus controllers don’t support all the protocol options that an I2C controller will. There are functions to perform various SMBus protocol operations, either using I2C primitives or by issuing SMBus commands to i2c_adapter devices which don’t support those I2C operations.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlei2c_master_recv (C function)c.i2c_master_recvhNtauh1jxhhhhhNhNubhdesc)}(hhh](hdesc_signature)}(hKint i2c_master_recv (const struct i2c_client *client, char *buf, int count)h]hdesc_signature_line)}(hJint i2c_master_recv(const struct i2c_client *client, char *buf, int count)h](hdesc_sig_keyword_type)}(hinth]hint}(hjhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKLubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhjhKLubh desc_name)}(hi2c_master_recvh]h desc_sig_name)}(hi2c_master_recvh]hi2c_master_recv}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jhjhhhjhKLubhdesc_parameterlist)}(h7(const struct i2c_client *client, char *buf, int count)h](hdesc_parameter)}(hconst struct i2c_client *clienth](hdesc_sig_keyword)}(hconsth]hconst}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstructh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetj*modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]jC ASTIdentifier)}j>jsbc.i2c_master_recvasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubhdesc_sig_punctuation)}(h*h]h*}(hj`hhhNhNubah}(h]h ]pah"]h$]h&]uh1j^hjubj)}(hclienth]hclient}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char *bufh](j)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj_)}(hjbh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int counth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKLubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1jsphinx_line_type declaratorhjhhhjhKLubah}(h]jah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jhjhKLhjhhubh desc_content)}(hhh]h)}(h1issue a single I2C message in master receive modeh]h1issue a single I2C message in master receive mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKEhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKLubeh}(h]h ](jfunctioneh"]h$]h&]domainjobjtypej2desctypej2noindex noindexentrynocontentsentryuh1jhhhhhNhNubh container)}(hX!**Parameters** ``const struct i2c_client *client`` Handle to slave device ``char *buf`` Where to store data read from slave ``int count`` How many bytes to read, must be less than 64k since msg.len is u16 **Description** Returns negative errno, or else the number of bytes read.h](h)}(h**Parameters**h]hstrong)}(hjDh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjBubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKIhj>ubhdefinition_list)}(hhh](hdefinition_list_item)}(h;``const struct i2c_client *client`` Handle to slave device h](hterm)}(h#``const struct i2c_client *client``h]h)}(hjkh]hconst struct i2c_client *client}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKFhjcubh definition)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKFhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jahjhKFhj^ubjb)}(h2``char *buf`` Where to store data read from slave h](jh)}(h ``char *buf``h]h)}(hjh]h char *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKGhjubj)}(hhh]h)}(h#Where to store data read from slaveh]h#Where to store data read from slave}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhKGhj^ubjb)}(hQ``int count`` How many bytes to read, must be less than 64k since msg.len is u16 h](jh)}(h ``int count``h]h)}(hjh]h int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKHhjubj)}(hhh]h)}(hBHow many bytes to read, must be less than 64k since msg.len is u16h]hBHow many bytes to read, must be less than 64k since msg.len is u16}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhKHhj^ubeh}(h]h ]h"]h$]h&]uh1j\hj>ubh)}(h**Description**h]jG)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKJhj>ubh)}(h9Returns negative errno, or else the number of bytes read.h]h9Returns negative errno, or else the number of bytes read.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKJhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j$i2c_master_recv_dmasafe (C function)c.i2c_master_recv_dmasafehNtauh1jxhhhhhNhNubj)}(hhh](j)}(hSint i2c_master_recv_dmasafe (const struct i2c_client *client, char *buf, int count)h]j)}(hRint i2c_master_recv_dmasafe(const struct i2c_client *client, char *buf, int count)h](j)}(hinth]hint}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhK[ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhjmhK[ubj)}(hi2c_master_recv_dmasafeh]j)}(hi2c_master_recv_dmasafeh]hi2c_master_recv_dmasafe}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj[hhhjmhK[ubj)}(h7(const struct i2c_client *client, char *buf, int count)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjmodnameN classnameNjBjE)}jH]jK)}j>jsbc.i2c_master_recv_dmasafeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj_)}(hjbh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjubj)}(hclienth]hclient}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char *bufh](j)}(hcharh]hchar}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj_)}(hjbh]h*}(hjEhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj%ubj)}(hbufh]hbuf}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int counth](j)}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj[hhhjmhK[ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjWhhhjmhK[ubah}(h]jRah ](j jeh"]h$]h&]jj)jhuh1jhjmhK[hjThhubj)}(hhh]h)}(hIissue a single I2C message in master receive mode using a DMA safe bufferh]hIissue a single I2C message in master receive mode using a DMA safe buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKShjhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjmhK[ubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jj8jj9j:j;uh1jhhhhhNhNubj=)}(hX?**Parameters** ``const struct i2c_client *client`` Handle to slave device ``char *buf`` Where to store data read from slave, must be safe to use with DMA ``int count`` How many bytes to read, must be less than 64k since msg.len is u16 **Description** Returns negative errno, or else the number of bytes read.h](h)}(h**Parameters**h]jG)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKWhjubj])}(hhh](jb)}(h;``const struct i2c_client *client`` Handle to slave device h](jh)}(h#``const struct i2c_client *client``h]h)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKUhjubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhKUhjubjb)}(hP``char *buf`` Where to store data read from slave, must be safe to use with DMA h](jh)}(h ``char *buf``h]h)}(hj+h]h char *buf}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKVhj%ubj)}(hhh]h)}(hAWhere to store data read from slave, must be safe to use with DMAh]hAWhere to store data read from slave, must be safe to use with DMA}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKVhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jahj@hKVhjubjb)}(hQ``int count`` How many bytes to read, must be less than 64k since msg.len is u16 h](jh)}(h ``int count``h]h)}(hjdh]h int count}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKWhj^ubj)}(hhh]h)}(hBHow many bytes to read, must be less than 64k since msg.len is u16h]hBHow many bytes to read, must be less than 64k since msg.len is u16}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKWhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jahjyhKWhjubeh}(h]h ]h"]h$]h&]uh1j\hjubh)}(h**Description**h]jG)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKYhjubh)}(h9Returns negative errno, or else the number of bytes read.h]h9Returns negative errno, or else the number of bytes read.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_master_send (C function)c.i2c_master_sendhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hQint i2c_master_send (const struct i2c_client *client, const char *buf, int count)h]j)}(hPint i2c_master_send(const struct i2c_client *client, const char *buf, int count)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKjubj)}(hi2c_master_sendh]j)}(hi2c_master_sendh]hi2c_master_send}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKjubj)}(h=(const struct i2c_client *client, const char *buf, int count)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj\modnameN classnameNjBjE)}jH]jK)}j>jsbc.i2c_master_sendasbuh1hhjubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj_)}(hjbh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjubj)}(hclienth]hclient}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *bufh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj_)}(hjbh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int counth](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKjubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjhhhjhKjubah}(h]jah ](j jeh"]h$]h&]jj)jhuh1jhjhKjhjhhubj)}(hhh]h)}(h2issue a single I2C message in master transmit modeh]h2issue a single I2C message in master transmit mode}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKchjNhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKjubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jij8jij9j:j;uh1jhhhhhNhNubj=)}(hX.**Parameters** ``const struct i2c_client *client`` Handle to slave device ``const char *buf`` Data that will be written to the slave ``int count`` How many bytes to write, must be less than 64k since msg.len is u16 **Description** Returns negative errno, or else the number of bytes written.h](h)}(h**Parameters**h]jG)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjqubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKghjmubj])}(hhh](jb)}(h;``const struct i2c_client *client`` Handle to slave device h](jh)}(h#``const struct i2c_client *client``h]h)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKdhjubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhKdhjubjb)}(h;``const char *buf`` Data that will be written to the slave h](jh)}(h``const char *buf``h]h)}(hjh]hconst char *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKehjubj)}(hhh]h)}(h&Data that will be written to the slaveh]h&Data that will be written to the slave}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhKehjubjb)}(hR``int count`` How many bytes to write, must be less than 64k since msg.len is u16 h](jh)}(h ``int count``h]h)}(hj h]h int count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKfhjubj)}(hhh]h)}(hCHow many bytes to write, must be less than 64k since msg.len is u16h]hCHow many bytes to write, must be less than 64k since msg.len is u16}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKfhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahj hKfhjubeh}(h]h ]h"]h$]h&]uh1j\hjmubh)}(h**Description**h]jG)}(hj? h]h Description}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj= ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhhjmubh)}(h reftargetj modnameN classnameNjBjE)}jH]jK)}j>j sbc.i2c_master_send_dmasafeasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj_)}(hjbh]h*}(hj( hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj ubj)}(hclienth]hclient}(hj5 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *bufh](j)}(hjh]hconst}(hjN hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubj)}(h h]h }(hj[ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubj)}(hcharh]hchar}(hji hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubj)}(h h]h }(hjw hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubj_)}(hjbh]h*}(hj hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjJ ubj)}(hbufh]hbuf}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h int counth](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hcounth]hcount}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hKyubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj| hhhj hKyubah}(h]jw ah ](j jeh"]h$]h&]jj)jhuh1jhj hKyhjy hhubj)}(hhh]h)}(hJissue a single I2C message in master transmit mode using a DMA safe bufferh]hJissue a single I2C message in master transmit mode using a DMA safe buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKqhj hhubah}(h]h ]h"]h$]h&]uh1jhjy hhhj hKyubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j j8j j9j:j;uh1jhhhhhNhNubj=)}(hXL**Parameters** ``const struct i2c_client *client`` Handle to slave device ``const char *buf`` Data that will be written to the slave, must be safe to use with DMA ``int count`` How many bytes to write, must be less than 64k since msg.len is u16 **Description** Returns negative errno, or else the number of bytes written.h](h)}(h**Parameters**h]jG)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKuhj ubj])}(hhh](jb)}(h;``const struct i2c_client *client`` Handle to slave device h](jh)}(h#``const struct i2c_client *client``h]h)}(hj2 h]hconst struct i2c_client *client}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0 ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKshj, ubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG hKshjH ubah}(h]h ]h"]h$]h&]uh1jhj, ubeh}(h]h ]h"]h$]h&]uh1jahjG hKshj) ubjb)}(hY``const char *buf`` Data that will be written to the slave, must be safe to use with DMA h](jh)}(h``const char *buf``h]h)}(hjk h]hconst char *buf}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKthje ubj)}(hhh]h)}(hDData that will be written to the slave, must be safe to use with DMAh]hDData that will be written to the slave, must be safe to use with DMA}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKthj ubah}(h]h ]h"]h$]h&]uh1jhje ubeh}(h]h ]h"]h$]h&]uh1jahj hKthj) ubjb)}(hR``int count`` How many bytes to write, must be less than 64k since msg.len is u16 h](jh)}(h ``int count``h]h)}(hj h]h int count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKuhj ubj)}(hhh]h)}(hCHow many bytes to write, must be less than 64k since msg.len is u16h]hCHow many bytes to write, must be less than 64k since msg.len is u16}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKuhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jahj hKuhj) ubeh}(h]h ]h"]h$]h&]uh1j\hj ubh)}(h**Description**h]jG)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKwhj ubh)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahj:hKhjubah}(h]h ]h"]h$]h&]uh1j\hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_driver (C struct) c.i2c_driverhNtauh1jxhhhhhNhNubj)}(hhh](j)}(h i2c_driverh]j)}(hstruct i2c_driverh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhjhKubj)}(h i2c_driverh]j)}(hjyh]h i2c_driver}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj{hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjwhhhjhKubah}(h]jrah ](j jeh"]h$]h&]jj)jhuh1jhjhKhjthhubj)}(hhh]h)}(hrepresent an I2C device driverh]hrepresent an I2C device driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhKubeh}(h]h ](jstructeh"]h$]h&]j6jj7jj8jj9j:j;uh1jhhhhhNhNubj=)}(hXJ**Definition**:: struct i2c_driver { unsigned int class; int (*probe)(struct i2c_client *client); void (*remove)(struct i2c_client *client); void (*shutdown)(struct i2c_client *client); void (*alert)(struct i2c_client *client, enum i2c_alert_protocol protocol, unsigned int data); int (*command)(struct i2c_client *client, unsigned int cmd, void *arg); struct device_driver driver; const struct i2c_device_id *id_table; int (*detect)(struct i2c_client *client, struct i2c_board_info *info); const unsigned short *address_list; struct list_head clients; u32 flags; }; **Members** ``class`` What kind of i2c device we instantiate (for detect) ``probe`` Callback for device binding ``remove`` Callback for device unbinding ``shutdown`` Callback for device shutdown ``alert`` Alert callback, for example for the SMBus alert protocol ``command`` Callback for bus-wide signaling (optional) ``driver`` Device driver model driver ``id_table`` List of I2C devices supported by this driver ``detect`` Callback for device detection ``address_list`` The I2C addresses to probe (for detect) ``clients`` List of detected clients we created (for i2c-core use only) ``flags`` A bitmask of flags defined in :c:type:`enum i2c_driver_flags `h](h)}(h**Definition**::h](jG)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj )}(hXUstruct i2c_driver { unsigned int class; int (*probe)(struct i2c_client *client); void (*remove)(struct i2c_client *client); void (*shutdown)(struct i2c_client *client); void (*alert)(struct i2c_client *client, enum i2c_alert_protocol protocol, unsigned int data); int (*command)(struct i2c_client *client, unsigned int cmd, void *arg); struct device_driver driver; const struct i2c_device_id *id_table; int (*detect)(struct i2c_client *client, struct i2c_board_info *info); const unsigned short *address_list; struct list_head clients; u32 flags; };h]hXUstruct i2c_driver { unsigned int class; int (*probe)(struct i2c_client *client); void (*remove)(struct i2c_client *client); void (*shutdown)(struct i2c_client *client); void (*alert)(struct i2c_client *client, enum i2c_alert_protocol protocol, unsigned int data); int (*command)(struct i2c_client *client, unsigned int cmd, void *arg); struct device_driver driver; const struct i2c_device_id *id_table; int (*detect)(struct i2c_client *client, struct i2c_board_info *info); const unsigned short *address_list; struct list_head clients; u32 flags; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubh)}(h **Members**h]jG)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj])}(hhh](jb)}(h>``class`` What kind of i2c device we instantiate (for detect) h](jh)}(h ``class``h]h)}(hj.h]hclass}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj(ubj)}(hhh]h)}(h3What kind of i2c device we instantiate (for detect)h]h3What kind of i2c device we instantiate (for detect)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jahjChKhj%ubjb)}(h&``probe`` Callback for device binding h](jh)}(h ``probe``h]h)}(hjgh]hprobe}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjaubj)}(hhh]h)}(hCallback for device bindingh]hCallback for device binding}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jahj|hKhj%ubjb)}(h)``remove`` Callback for device unbinding h](jh)}(h ``remove``h]h)}(hjh]hremove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(hCallback for device unbindingh]hCallback for device unbinding}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhKhj%ubjb)}(h*``shutdown`` Callback for device shutdown h](jh)}(h ``shutdown``h]h)}(hjh]hshutdown}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(hCallback for device shutdownh]hCallback for device shutdown}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhKhj%ubjb)}(hC``alert`` Alert callback, for example for the SMBus alert protocol h](jh)}(h ``alert``h]h)}(hjh]halert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj ubj)}(hhh]h)}(h8Alert callback, for example for the SMBus alert protocolh]h8Alert callback, for example for the SMBus alert protocol}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jahj'hKhj%ubjb)}(h7``command`` Callback for bus-wide signaling (optional) h](jh)}(h ``command``h]h)}(hjKh]hcommand}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjEubj)}(hhh]h)}(h*Callback for bus-wide signaling (optional)h]h*Callback for bus-wide signaling (optional)}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jahj`hKhj%ubjb)}(h&``driver`` Device driver model driver h](jh)}(h ``driver``h]h)}(hjh]hdriver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj~ubj)}(hhh]h)}(hDevice driver model driverh]hDevice driver model driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jahjhKhj%ubjb)}(h:``id_table`` List of I2C devices supported by this driver h](jh)}(h ``id_table``h]h)}(hjh]hid_table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(h,List of I2C devices supported by this driverh]h,List of I2C devices supported by this driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhKhj%ubjb)}(h)``detect`` Callback for device detection h](jh)}(h ``detect``h]h)}(hjh]hdetect}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(hCallback for device detectionh]hCallback for device detection}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahj hKhj%ubjb)}(h9``address_list`` The I2C addresses to probe (for detect) h](jh)}(h``address_list``h]h)}(hj/h]h address_list}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhj)ubj)}(hhh]h)}(h'The I2C addresses to probe (for detect)h]h'The I2C addresses to probe (for detect)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jahjDhKhj%ubjb)}(hH``clients`` List of detected clients we created (for i2c-core use only) h](jh)}(h ``clients``h]h)}(hjhh]hclients}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjbubj)}(hhh]h)}(h;List of detected clients we created (for i2c-core use only)h]h;List of detected clients we created (for i2c-core use only)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jahj}hKhj%ubjb)}(hZ``flags`` A bitmask of flags defined in :c:type:`enum i2c_driver_flags `h](jh)}(h ``flags``h]h)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(hPA bitmask of flags defined in :c:type:`enum i2c_driver_flags `h](hA bitmask of flags defined in }(hjhhhNhNubh)}(h2:c:type:`enum i2c_driver_flags `h]h)}(hjh]henum i2c_driver_flags}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjE)}jH]sbji2c_driver_flagsuh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhKhj%ubeh}(h]h ]h"]h$]h&]uh1j\hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubh)}(h**Description**h]jG)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhhhhubh)}(hThe driver.owner field should be set to the module owner of this driver. The driver.name field should be set to the name of this driver.h]hThe driver.owner field should be set to the module owner of this driver. The driver.name field should be set to the name of this driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhhhhubh)}(hXZFor automatic device detection, both **detect** and **address_list** must be defined. **class** should also be set, otherwise only devices forced with module parameters will be created. The detect function must fill at least the name field of the i2c_board_info structure it is handed upon successful detection, and possibly also the flags field.h](h%For automatic device detection, both }(hj+hhhNhNubjG)}(h **detect**h]hdetect}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj+ubh and }(hj+hhhNhNubjG)}(h**address_list**h]h address_list}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj+ubh must be defined. }(hj+hhhNhNubjG)}(h **class**h]hclass}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj+ubh should also be set, otherwise only devices forced with module parameters will be created. The detect function must fill at least the name field of the i2c_board_info structure it is handed upon successful detection, and possibly also the flags field.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhhhhubh)}(hXIf **detect** is missing, the driver will still work fine for enumerated devices. Detected devices simply won't be supported. This is expected for the many I2C/SMBus devices which can't be detected reliably, and the ones which can always be enumerated in practice.h](hIf }(hjphhhNhNubjG)}(h **detect**h]hdetect}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjpubh is missing, the driver will still work fine for enumerated devices. Detected devices simply won’t be supported. This is expected for the many I2C/SMBus devices which can’t be detected reliably, and the ones which can always be enumerated in practice.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hXThe i2c_client structure which is handed to the **detect** callback is not a real i2c_client. It is initialized just enough so that you can call i2c_smbus_read_byte_data and friends on it. Don't do anything else with it. In particular, calling dev_dbg and friends on it is not allowed.h](h0The i2c_client structure which is handed to the }(hjhhhNhNubjG)}(h **detect**h]hdetect}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh callback is not a real i2c_client. It is initialized just enough so that you can call i2c_smbus_read_byte_data and friends on it. Don’t do anything else with it. In particular, calling dev_dbg and friends on it is not allowed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_client (C struct) c.i2c_clienthNtauh1jxhhhhhNhNubj)}(hhh](j)}(h i2c_clienth]j)}(hstruct i2c_clienth](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h i2c_clienth]j)}(hjh]h i2c_client}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjhhhjhMubah}(h]jah ](j jeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hrepresent an I2C slave deviceh]hrepresent an I2C slave device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM5hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]j6jj7j%j8j%j9j:j;uh1jhhhhhNhNubj=)}(hXE**Definition**:: struct i2c_client { unsigned short flags; #define I2C_CLIENT_PEC 0x04 ; #define I2C_CLIENT_TEN 0x10 ; #define I2C_CLIENT_SLAVE 0x20 ; #define I2C_CLIENT_HOST_NOTIFY 0x40 ; #define I2C_CLIENT_WAKE 0x80 ; #define I2C_CLIENT_SCCB 0x9000 ; unsigned short addr; char name[I2C_NAME_SIZE]; struct i2c_adapter *adapter; struct device dev; int init_irq; int irq; struct list_head detected; #if IS_ENABLED(CONFIG_I2C_SLAVE); i2c_slave_cb_t slave_cb; #endif; void *devres_group_id; struct dentry *debugfs; }; **Members** ``flags`` see I2C_CLIENT_* for possible flags ``addr`` Address used on the I2C bus connected to the parent adapter. ``name`` Indicates the type of the device, usually a chip name that's generic enough to hide second-sourcing and compatible revisions. ``adapter`` manages the bus segment hosting this I2C device ``dev`` Driver model device node for the slave. ``init_irq`` IRQ that was set at initialization ``irq`` indicates the IRQ generated by this device (if any) ``detected`` member of an i2c_driver.clients list or i2c-core's userspace_devices list ``slave_cb`` Callback when I2C slave mode of an adapter is used. The adapter calls it to pass on slave events to the slave driver. ``devres_group_id`` id of the devres group that will be created for resources acquired when probing this device. ``debugfs`` pointer to the debugfs subdirectory which the I2C core created for this client. h](h)}(h**Definition**::h](jG)}(h**Definition**h]h Definition}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj-ubh:}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM9hj)ubj )}(hXWstruct i2c_client { unsigned short flags; #define I2C_CLIENT_PEC 0x04 ; #define I2C_CLIENT_TEN 0x10 ; #define I2C_CLIENT_SLAVE 0x20 ; #define I2C_CLIENT_HOST_NOTIFY 0x40 ; #define I2C_CLIENT_WAKE 0x80 ; #define I2C_CLIENT_SCCB 0x9000 ; unsigned short addr; char name[I2C_NAME_SIZE]; struct i2c_adapter *adapter; struct device dev; int init_irq; int irq; struct list_head detected; #if IS_ENABLED(CONFIG_I2C_SLAVE); i2c_slave_cb_t slave_cb; #endif; void *devres_group_id; struct dentry *debugfs; };h]hXWstruct i2c_client { unsigned short flags; #define I2C_CLIENT_PEC 0x04 ; #define I2C_CLIENT_TEN 0x10 ; #define I2C_CLIENT_SLAVE 0x20 ; #define I2C_CLIENT_HOST_NOTIFY 0x40 ; #define I2C_CLIENT_WAKE 0x80 ; #define I2C_CLIENT_SCCB 0x9000 ; unsigned short addr; char name[I2C_NAME_SIZE]; struct i2c_adapter *adapter; struct device dev; int init_irq; int irq; struct list_head detected; #if IS_ENABLED(CONFIG_I2C_SLAVE); i2c_slave_cb_t slave_cb; #endif; void *devres_group_id; struct dentry *debugfs; };}hjJsbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM;hj)ubh)}(h **Members**h]jG)}(hj[h]hMembers}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjYubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMQhj)ubj])}(hhh](jb)}(h.``flags`` see I2C_CLIENT_* for possible flags h](jh)}(h ``flags``h]h)}(hjzh]hflags}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM7hjtubj)}(hhh]h)}(h#see I2C_CLIENT_* for possible flagsh]h#see I2C_CLIENT_* for possible flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jahjhM7hjqubjb)}(hF``addr`` Address used on the I2C bus connected to the parent adapter. h](jh)}(h``addr``h]h)}(hjh]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM8hjubj)}(hhh]h)}(h
hjubj)}(hhh]h)}(h3indicates the IRQ generated by this device (if any)h]h3indicates the IRQ generated by this device (if any)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhM>hjqubjb)}(hW``detected`` member of an i2c_driver.clients list or i2c-core's userspace_devices list h](jh)}(h ``detected``h]h)}(hj h]hdetected}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM@hjubj)}(hhh]h)}(hImember of an i2c_driver.clients list or i2c-core's userspace_devices listh]hKmember of an i2c_driver.clients list or i2c-core’s userspace_devices list}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM?hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhM@hjqubjb)}(h``slave_cb`` Callback when I2C slave mode of an adapter is used. The adapter calls it to pass on slave events to the slave driver. h](jh)}(h ``slave_cb``h]h)}(hjDh]hslave_cb}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMBhj>ubj)}(hhh]h)}(huCallback when I2C slave mode of an adapter is used. The adapter calls it to pass on slave events to the slave driver.h]huCallback when I2C slave mode of an adapter is used. The adapter calls it to pass on slave events to the slave driver.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMAhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jahjYhMBhjqubjb)}(hq``devres_group_id`` id of the devres group that will be created for resources acquired when probing this device. h](jh)}(h``devres_group_id``h]h)}(hj~h]hdevres_group_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMDhjxubj)}(hhh]h)}(h\id of the devres group that will be created for resources acquired when probing this device.h]h\id of the devres group that will be created for resources acquired when probing this device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMChjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jahjhMDhjqubjb)}(h[``debugfs`` pointer to the debugfs subdirectory which the I2C core created for this client.h](jh)}(h ``debugfs``h]h)}(hjh]hdebugfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMEhjubj)}(hhh]h)}(hOpointer to the debugfs subdirectory which the I2C core created for this client.h]hOpointer to the debugfs subdirectory which the I2C core created for this client.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMEhjqubeh}(h]h ]h"]h$]h&]uh1j\hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubh)}(h**Description**h]jG)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMIhhhhubh)}(hAn i2c_client identifies a single device (i.e. chip) connected to an i2c bus. The behaviour exposed to Linux is defined by the driver managing the device.h]hAn i2c_client identifies a single device (i.e. chip) connected to an i2c bus. The behaviour exposed to Linux is defined by the driver managing the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMGhhhhubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_board_info (C struct)c.i2c_board_infohNtauh1jxhhhhhNhNubj)}(hhh](j)}(hi2c_board_infoh]j)}(hstruct i2c_board_infoh](j)}(hj h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMNubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjEhMNubj)}(hi2c_board_infoh]j)}(hj2h]hi2c_board_info}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jhj4hhhjEhMNubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj0hhhjEhMNubah}(h]j+ah ](j jeh"]h$]h&]jj)jhuh1jhjEhMNhj-hhubj)}(hhh]h)}(htemplate for device creationh]htemplate for device creation}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjwhhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjEhMNubeh}(h]h ](jstructeh"]h$]h&]j6jj7jj8jj9j:j;uh1jhhhhhNhNubj=)}(hX**Definition**:: struct i2c_board_info { char type[I2C_NAME_SIZE]; unsigned short flags; unsigned short addr; const char *dev_name; void *platform_data; struct device_node *of_node; struct fwnode_handle *fwnode; const struct software_node *swnode; const struct resource *resources; unsigned int num_resources; int irq; }; **Members** ``type`` chip type, to initialize i2c_client.name ``flags`` to initialize i2c_client.flags ``addr`` stored in i2c_client.addr ``dev_name`` Overrides the default - dev_name if set ``platform_data`` stored in i2c_client.dev.platform_data ``of_node`` pointer to OpenFirmware device node ``fwnode`` device node supplied by the platform firmware ``swnode`` software node for the device ``resources`` resources associated with the device ``num_resources`` number of resources in the **resources** array ``irq`` stored in i2c_client.irqh](h)}(h**Definition**::h](jG)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj )}(hXfstruct i2c_board_info { char type[I2C_NAME_SIZE]; unsigned short flags; unsigned short addr; const char *dev_name; void *platform_data; struct device_node *of_node; struct fwnode_handle *fwnode; const struct software_node *swnode; const struct resource *resources; unsigned int num_resources; int irq; };h]hXfstruct i2c_board_info { char type[I2C_NAME_SIZE]; unsigned short flags; unsigned short addr; const char *dev_name; void *platform_data; struct device_node *of_node; struct fwnode_handle *fwnode; const struct software_node *swnode; const struct resource *resources; unsigned int num_resources; int irq; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubh)}(h **Members**h]jG)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj])}(hhh](jb)}(h2``type`` chip type, to initialize i2c_client.name h](jh)}(h``type``h]h)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h(chip type, to initialize i2c_client.nameh]h(chip type, to initialize i2c_client.name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h)``flags`` to initialize i2c_client.flags h](jh)}(h ``flags``h]h)}(hj h]hflags}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(hto initialize i2c_client.flagsh]hto initialize i2c_client.flags}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahj5hMhjubjb)}(h#``addr`` stored in i2c_client.addr h](jh)}(h``addr``h]h)}(hjYh]haddr}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjSubj)}(hhh]h)}(hstored in i2c_client.addrh]hstored in i2c_client.addr}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jahjnhMhjubjb)}(hB``dev_name`` Overrides the default - dev_name if set h](jh)}(h ``dev_name``h]h)}(hjh]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h4Overrides the default - dev_name if seth]h4Overrides the default - dev_name if set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h9``platform_data`` stored in i2c_client.dev.platform_data h](jh)}(h``platform_data``h]h)}(hjh]h platform_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h&stored in i2c_client.dev.platform_datah]h&stored in i2c_client.dev.platform_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h0``of_node`` pointer to OpenFirmware device node h](jh)}(h ``of_node``h]h)}(hjh]hof_node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h#pointer to OpenFirmware device nodeh]h#pointer to OpenFirmware device node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h9``fwnode`` device node supplied by the platform firmware h](jh)}(h ``fwnode``h]h)}(hj=h]hfwnode}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj7ubj)}(hhh]h)}(h-device node supplied by the platform firmwareh]h-device node supplied by the platform firmware}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jahjRhMhjubjb)}(h(``swnode`` software node for the device h](jh)}(h ``swnode``h]h)}(hjvh]hswnode}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjpubj)}(hhh]h)}(hsoftware node for the deviceh]hsoftware node for the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h3``resources`` resources associated with the device h](jh)}(h ``resources``h]h)}(hjh]h resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h$resources associated with the deviceh]h$resources associated with the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(hA``num_resources`` number of resources in the **resources** array h](jh)}(h``num_resources``h]h)}(hjh]h num_resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h.number of resources in the **resources** arrayh](hnumber of resources in the }(hjhhhNhNubjG)}(h **resources**h]h resources}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh array}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h ``irq`` stored in i2c_client.irqh](jh)}(h``irq``h]h)}(hj3h]hirq}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj-ubj)}(hhh]h)}(hstored in i2c_client.irqh]hstored in i2c_client.irq}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jahjHhMhjubeh}(h]h ]h"]h$]h&]uh1j\hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubh)}(h**Description**h]jG)}(hjvh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjtubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hXI2C doesn't actually support hardware probing, although controllers and devices may be able to use I2C_SMBUS_QUICK to tell whether or not there's a device at a given address. Drivers commonly need more information than that, such as chip type, configuration, associated IRQ, and so on.h]hX"I2C doesn’t actually support hardware probing, although controllers and devices may be able to use I2C_SMBUS_QUICK to tell whether or not there’s a device at a given address. Drivers commonly need more information than that, such as chip type, configuration, associated IRQ, and so on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hXwi2c_board_info is used to build tables of information listing I2C devices that are present. This information is used to grow the driver model tree. For mainboards this is done statically using i2c_register_board_info(); bus numbers identify adapters that aren't yet available. For add-on boards, i2c_new_client_device() does this dynamically with the adapter already known.h]hXyi2c_board_info is used to build tables of information listing I2C devices that are present. This information is used to grow the driver model tree. For mainboards this is done statically using i2c_register_board_info(); bus numbers identify adapters that aren’t yet available. For add-on boards, i2c_new_client_device() does this dynamically with the adapter already known.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](jI2C_BOARD_INFO (C macro)c.I2C_BOARD_INFOhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hI2C_BOARD_INFOh]j)}(hI2C_BOARD_INFOh]j)}(hI2C_BOARD_INFOh]j)}(hjh]hI2C_BOARD_INFO}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjj hjhhhjhMubah}(h]jah ](j jeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]j6jj7jj8jj9j:j;uh1jhhhhhNhNubh)}(h'``I2C_BOARD_INFO (dev_type, dev_addr)``h]h)}(hjh]h#I2C_BOARD_INFO (dev_type, dev_addr)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh block_quote)}(h1macro used to list an i2c device and its address h]h)}(h0macro used to list an i2c device and its addressh]h0macro used to list an i2c device and its address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj#hMhhhhubj=)}(hXl**Parameters** ``dev_type`` identifies the device type ``dev_addr`` the device's address on the bus. **Description** This macro initializes essential fields of a struct i2c_board_info, declaring what has been provided on a particular board. Optional fields (such as associated irq, or device-specific platform_data) are provided using conventional syntax.h](h)}(h**Parameters**h]jG)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj.ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj*ubj])}(hhh](jb)}(h(``dev_type`` identifies the device type h](jh)}(h ``dev_type``h]h)}(hjOh]hdev_type}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjIubj)}(hhh]h)}(hidentifies the device typeh]hidentifies the device type}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jahjdhMhjFubjb)}(h.``dev_addr`` the device's address on the bus. h](jh)}(h ``dev_addr``h]h)}(hjh]hdev_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h the device's address on the bus.h]h"the device’s address on the bus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjFubeh}(h]h ]h"]h$]h&]uh1j\hj*ubh)}(h**Description**h]jG)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj*ubh)}(hThis macro initializes essential fields of a struct i2c_board_info, declaring what has been provided on a particular board. Optional fields (such as associated irq, or device-specific platform_data) are provided using conventional syntax.h]hThis macro initializes essential fields of a struct i2c_board_info, declaring what has been provided on a particular board. Optional fields (such as associated irq, or device-specific platform_data) are provided using conventional syntax.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_algorithm (C struct)c.i2c_algorithmhNtauh1jxhhhhhNhNubj)}(hhh](j)}(h i2c_algorithmh]j)}(hstruct i2c_algorithmh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h i2c_algorithmh]j)}(hjh]h i2c_algorithm}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjhhhjhMubah}(h]jah ](j jeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hrepresent I2C transfer methodsh]hrepresent I2C transfer methods}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]j6jj7jbj8jbj9j:j;uh1jhhhhhNhNubj=)}(hX **Definition**:: struct i2c_algorithm { union { int (*xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); }; union { int (*xfer_atomic)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*master_xfer_atomic)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); }; int (*smbus_xfer)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); int (*smbus_xfer_atomic)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); u32 (*functionality)(struct i2c_adapter *adap); #if IS_ENABLED(CONFIG_I2C_SLAVE); union { int (*reg_target)(struct i2c_client *client); int (*reg_slave)(struct i2c_client *client); }; union { int (*unreg_target)(struct i2c_client *client); int (*unreg_slave)(struct i2c_client *client); }; #endif; }; **Members** ``{unnamed_union}`` anonymous ``xfer`` Transfer a given number of messages defined by the msgs array via the specified adapter. ``master_xfer`` deprecated, use **xfer** ``{unnamed_union}`` anonymous ``xfer_atomic`` Same as **xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional. ``master_xfer_atomic`` deprecated, use **xfer_atomic** ``smbus_xfer`` Issue SMBus transactions to the given I2C adapter. If this is not present, then the bus layer will try and convert the SMBus calls into I2C transfers instead. ``smbus_xfer_atomic`` Same as **smbus_xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional. ``functionality`` Return the flags that this algorithm/adapter pair supports from the ``I2C_FUNC_*`` flags. ``{unnamed_union}`` anonymous ``reg_target`` Register given client to local target mode of this adapter ``reg_slave`` deprecated, use **reg_target** ``{unnamed_union}`` anonymous ``unreg_target`` Unregister given client from local target mode of this adapter ``unreg_slave`` deprecated, use **unreg_target**h](h)}(h**Definition**::h](jG)}(h**Definition**h]h Definition}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjjubh:}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjfubj )}(hXstruct i2c_algorithm { union { int (*xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); }; union { int (*xfer_atomic)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*master_xfer_atomic)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); }; int (*smbus_xfer)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); int (*smbus_xfer_atomic)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); u32 (*functionality)(struct i2c_adapter *adap); #if IS_ENABLED(CONFIG_I2C_SLAVE); union { int (*reg_target)(struct i2c_client *client); int (*reg_slave)(struct i2c_client *client); }; union { int (*unreg_target)(struct i2c_client *client); int (*unreg_slave)(struct i2c_client *client); }; #endif; };h]hXstruct i2c_algorithm { union { int (*xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); }; union { int (*xfer_atomic)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); int (*master_xfer_atomic)(struct i2c_adapter *adap, struct i2c_msg *msgs, int num); }; int (*smbus_xfer)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); int (*smbus_xfer_atomic)(struct i2c_adapter *adap, u16 addr,unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data); u32 (*functionality)(struct i2c_adapter *adap); #if IS_ENABLED(CONFIG_I2C_SLAVE); union { int (*reg_target)(struct i2c_client *client); int (*reg_slave)(struct i2c_client *client); }; union { int (*unreg_target)(struct i2c_client *client); int (*unreg_slave)(struct i2c_client *client); }; #endif; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjfubh)}(h **Members**h]jG)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM#hjfubj])}(hhh](jb)}(h``{unnamed_union}`` anonymous h](jh)}(h``{unnamed_union}``h]h)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM&hjubj)}(hhh]h)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhM&hjubjb)}(hb``xfer`` Transfer a given number of messages defined by the msgs array via the specified adapter. h](jh)}(h``xfer``h]h)}(hjh]hxfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(hXTransfer a given number of messages defined by the msgs array via the specified adapter.h]hXTransfer a given number of messages defined by the msgs array via the specified adapter.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h)``master_xfer`` deprecated, use **xfer** h](jh)}(h``master_xfer``h]h)}(hj*h]h master_xfer}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj$ubj)}(hhh]h)}(hdeprecated, use **xfer**h](hdeprecated, use }(hjChhhNhNubjG)}(h**xfer**h]hxfer}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjCubeh}(h]h ]h"]h$]h&]uh1hhj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jahj?hMhjubjb)}(h``{unnamed_union}`` anonymous h](jh)}(h``{unnamed_union}``h]h)}(hjqh]h{unnamed_union}}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjkubj)}(hhh]h)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h``xfer_atomic`` Same as **xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional. h](jh)}(h``xfer_atomic``h]h)}(hjh]h xfer_atomic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjubj)}(hhh]h)}(hsSame as **xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional.h](hSame as }(hjhhhNhNubjG)}(h**xfer**h]hxfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubhc. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhM hjubjb)}(h7``master_xfer_atomic`` deprecated, use **xfer_atomic** h](jh)}(h``master_xfer_atomic``h]h)}(hjh]hmaster_xfer_atomic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(hdeprecated, use **xfer_atomic**h](hdeprecated, use }(hjhhhNhNubjG)}(h**xfer_atomic**h]h xfer_atomic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahj hMhjubjb)}(h``smbus_xfer`` Issue SMBus transactions to the given I2C adapter. If this is not present, then the bus layer will try and convert the SMBus calls into I2C transfers instead. h](jh)}(h``smbus_xfer``h]h)}(hj=h]h smbus_xfer}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hj7ubj)}(hhh]h)}(hIssue SMBus transactions to the given I2C adapter. If this is not present, then the bus layer will try and convert the SMBus calls into I2C transfers instead.h]hIssue SMBus transactions to the given I2C adapter. If this is not present, then the bus layer will try and convert the SMBus calls into I2C transfers instead.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jahjRhM hjubjb)}(h``smbus_xfer_atomic`` Same as **smbus_xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional. h](jh)}(h``smbus_xfer_atomic``h]h)}(hjwh]hsmbus_xfer_atomic}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjqubj)}(hhh]h)}(hySame as **smbus_xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional.h](hSame as }(hjhhhNhNubjG)}(h**smbus_xfer**h]h smbus_xfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubhc. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(hl``functionality`` Return the flags that this algorithm/adapter pair supports from the ``I2C_FUNC_*`` flags. h](jh)}(h``functionality``h]h)}(hjh]h functionality}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(hYReturn the flags that this algorithm/adapter pair supports from the ``I2C_FUNC_*`` flags.h](hDReturn the flags that this algorithm/adapter pair supports from the }(hjhhhNhNubh)}(h``I2C_FUNC_*``h]h I2C_FUNC_*}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh flags.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h``{unnamed_union}`` anonymous h](jh)}(h``{unnamed_union}``h]h)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj ubj)}(hhh]h)}(h anonymoush]h anonymous}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jahj$hMhjubjb)}(hJ``reg_target`` Register given client to local target mode of this adapter h](jh)}(h``reg_target``h]h)}(hjHh]h reg_target}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjBubj)}(hhh]h)}(h:Register given client to local target mode of this adapterh]h:Register given client to local target mode of this adapter}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jahj]hMhjubjb)}(h-``reg_slave`` deprecated, use **reg_target** h](jh)}(h ``reg_slave``h]h)}(hjh]h reg_slave}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj{ubj)}(hhh]h)}(hdeprecated, use **reg_target**h](hdeprecated, use }(hjhhhNhNubjG)}(h**reg_target**h]h reg_target}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h``{unnamed_union}`` anonymous h](jh)}(h``{unnamed_union}``h]h)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(hP``unreg_target`` Unregister given client from local target mode of this adapter h](jh)}(h``unreg_target``h]h)}(hjh]h unreg_target}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h>Unregister given client from local target mode of this adapterh]h>Unregister given client from local target mode of this adapter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h0``unreg_slave`` deprecated, use **unreg_target**h](jh)}(h``unreg_slave``h]h)}(hj:h]h unreg_slave}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj4ubj)}(hhh]h)}(h deprecated, use **unreg_target**h](hdeprecated, use }(hjShhhNhNubjG)}(h**unreg_target**h]h unreg_target}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjSubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jahjOhMhjubeh}(h]h ]h"]h$]h&]uh1j\hjfubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubh)}(h**Description**h]jG)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hi2c_algorithm is the interface to a class of hardware solutions which can be addressed using the same bus algorithms - i.e. bit-banging or the PCF8584 to name two of the most common.h]hi2c_algorithm is the interface to a class of hardware solutions which can be addressed using the same bus algorithms - i.e. bit-banging or the PCF8584 to name two of the most common.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hX The return codes from the ``xfer{_atomic}`` fields should indicate the type of error code that occurred during the transfer, as documented in the Kernel Documentation file Documentation/i2c/fault-codes.rst. Otherwise, the number of messages executed should be returned.h](hThe return codes from the }(hjhhhNhNubh)}(h``xfer{_atomic}``h]h xfer{_atomic}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh fields should indicate the type of error code that occurred during the transfer, as documented in the Kernel Documentation file Documentation/i2c/fault-codes.rst. Otherwise, the number of messages executed should be returned.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_lock_operations (C struct)c.i2c_lock_operationshNtauh1jxhhhhhNhNubj)}(hhh](j)}(hi2c_lock_operationsh]j)}(hstruct i2c_lock_operationsh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM%ubj)}(hi2c_lock_operationsh]j)}(hjh]hi2c_lock_operations}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM%ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjhhhjhM%ubah}(h]jah ](j jeh"]h$]h&]jj)jhuh1jhjhM%hjhhubj)}(hhh]h)}(h represent I2C locking operationsh]h represent I2C locking operations}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMLhj) hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM%ubeh}(h]h ](jstructeh"]h$]h&]j6jj7jD j8jD j9j:j;uh1jhhhhhNhNubj=)}(hX**Definition**:: struct i2c_lock_operations { void (*lock_bus)(struct i2c_adapter *adapter, unsigned int flags); int (*trylock_bus)(struct i2c_adapter *adapter, unsigned int flags); void (*unlock_bus)(struct i2c_adapter *adapter, unsigned int flags); }; **Members** ``lock_bus`` Get exclusive access to an I2C bus segment ``trylock_bus`` Try to get exclusive access to an I2C bus segment ``unlock_bus`` Release exclusive access to an I2C bus segmenth](h)}(h**Definition**::h](jG)}(h**Definition**h]h Definition}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjL ubh:}(hjL hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMPhjH ubj )}(hstruct i2c_lock_operations { void (*lock_bus)(struct i2c_adapter *adapter, unsigned int flags); int (*trylock_bus)(struct i2c_adapter *adapter, unsigned int flags); void (*unlock_bus)(struct i2c_adapter *adapter, unsigned int flags); };h]hstruct i2c_lock_operations { void (*lock_bus)(struct i2c_adapter *adapter, unsigned int flags); int (*trylock_bus)(struct i2c_adapter *adapter, unsigned int flags); void (*unlock_bus)(struct i2c_adapter *adapter, unsigned int flags); };}hji sbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMRhjH ubh)}(h **Members**h]jG)}(hjz h]hMembers}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjx ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMXhjH ubj])}(hhh](jb)}(h8``lock_bus`` Get exclusive access to an I2C bus segment h](jh)}(h ``lock_bus``h]h)}(hj h]hlock_bus}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMNhj ubj)}(hhh]h)}(h*Get exclusive access to an I2C bus segmenth]h*Get exclusive access to an I2C bus segment}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMNhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jahj hMNhj ubjb)}(hB``trylock_bus`` Try to get exclusive access to an I2C bus segment h](jh)}(h``trylock_bus``h]h)}(hj h]h trylock_bus}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMOhj ubj)}(hhh]h)}(h1Try to get exclusive access to an I2C bus segmenth]h1Try to get exclusive access to an I2C bus segment}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMOhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jahj hMOhj ubjb)}(h=``unlock_bus`` Release exclusive access to an I2C bus segmenth](jh)}(h``unlock_bus``h]h)}(hj !h]h unlock_bus}(hj !hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj !ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMOhj!ubj)}(hhh]h)}(h.Release exclusive access to an I2C bus segmenth]h.Release exclusive access to an I2C bus segment}(hj$!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMPhj!!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jahj !hMOhj ubeh}(h]h ]h"]h$]h&]uh1j\hjH ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubh)}(h**Description**h]jG)}(hjN!h]h Description}(hjP!hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjL!ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMShhhhubh)}(hCThe main operations are wrapped by i2c_lock_bus and i2c_unlock_bus.h]hCThe main operations are wrapped by i2c_lock_bus and i2c_unlock_bus.}(hjd!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMQhhhhubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_timings (C struct) c.i2c_timingshNtauh1jxhhhhhNhNubj)}(hhh](j)}(h i2c_timingsh]j)}(hstruct i2c_timingsh](j)}(hj h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMVubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj!hMVubj)}(h i2c_timingsh]j)}(hj!h]h i2c_timings}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj!hhhj!hMVubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj!hhhj!hMVubah}(h]j!ah ](j jeh"]h$]h&]jj)jhuh1jhj!hMVhj!hhubj)}(hhh]h)}(hI2C timing informationh]hI2C timing information}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMZhj!hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!hMVubeh}(h]h ](jstructeh"]h$]h&]j6jj7j!j8j!j9j:j;uh1jhhhhhNhNubj=)}(hX**Definition**:: struct i2c_timings { u32 bus_freq_hz; u32 scl_rise_ns; u32 scl_fall_ns; u32 scl_int_delay_ns; u32 sda_fall_ns; u32 sda_hold_ns; u32 digital_filter_width_ns; u32 analog_filter_cutoff_freq_hz; }; **Members** ``bus_freq_hz`` the bus frequency in Hz ``scl_rise_ns`` time SCL signal takes to rise in ns; t(r) in the I2C specification ``scl_fall_ns`` time SCL signal takes to fall in ns; t(f) in the I2C specification ``scl_int_delay_ns`` time IP core additionally needs to setup SCL in ns ``sda_fall_ns`` time SDA signal takes to fall in ns; t(f) in the I2C specification ``sda_hold_ns`` time IP core additionally needs to hold SDA in ns ``digital_filter_width_ns`` width in ns of spikes on i2c lines that the IP core digital filter can filter out ``analog_filter_cutoff_freq_hz`` threshold frequency for the low pass IP core analog filterh](h)}(h**Definition**::h](jG)}(h**Definition**h]h Definition}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj!ubh:}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM^hj!ubj )}(hstruct i2c_timings { u32 bus_freq_hz; u32 scl_rise_ns; u32 scl_fall_ns; u32 scl_int_delay_ns; u32 sda_fall_ns; u32 sda_hold_ns; u32 digital_filter_width_ns; u32 analog_filter_cutoff_freq_hz; };h]hstruct i2c_timings { u32 bus_freq_hz; u32 scl_rise_ns; u32 scl_fall_ns; u32 scl_int_delay_ns; u32 sda_fall_ns; u32 sda_hold_ns; u32 digital_filter_width_ns; u32 analog_filter_cutoff_freq_hz; };}hj "sbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM`hj!ubh)}(h **Members**h]jG)}(hj"h]hMembers}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj"ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMkhj!ubj])}(hhh](jb)}(h(``bus_freq_hz`` the bus frequency in Hz h](jh)}(h``bus_freq_hz``h]h)}(hj;"h]h bus_freq_hz}(hj="hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9"ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM\hj5"ubj)}(hhh]h)}(hthe bus frequency in Hzh]hthe bus frequency in Hz}(hjT"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP"hM\hjQ"ubah}(h]h ]h"]h$]h&]uh1jhj5"ubeh}(h]h ]h"]h$]h&]uh1jahjP"hM\hj2"ubjb)}(hS``scl_rise_ns`` time SCL signal takes to rise in ns; t(r) in the I2C specification h](jh)}(h``scl_rise_ns``h]h)}(hjt"h]h scl_rise_ns}(hjv"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr"ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM]hjn"ubj)}(hhh]h)}(hBtime SCL signal takes to rise in ns; t(r) in the I2C specificationh]hBtime SCL signal takes to rise in ns; t(r) in the I2C specification}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hM]hj"ubah}(h]h ]h"]h$]h&]uh1jhjn"ubeh}(h]h ]h"]h$]h&]uh1jahj"hM]hj2"ubjb)}(hS``scl_fall_ns`` time SCL signal takes to fall in ns; t(f) in the I2C specification h](jh)}(h``scl_fall_ns``h]h)}(hj"h]h scl_fall_ns}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM^hj"ubj)}(hhh]h)}(hBtime SCL signal takes to fall in ns; t(f) in the I2C specificationh]hBtime SCL signal takes to fall in ns; t(f) in the I2C specification}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hM^hj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jahj"hM^hj2"ubjb)}(hH``scl_int_delay_ns`` time IP core additionally needs to setup SCL in ns h](jh)}(h``scl_int_delay_ns``h]h)}(hj"h]hscl_int_delay_ns}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM_hj"ubj)}(hhh]h)}(h2time IP core additionally needs to setup SCL in nsh]h2time IP core additionally needs to setup SCL in ns}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hM_hj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jahj"hM_hj2"ubjb)}(hS``sda_fall_ns`` time SDA signal takes to fall in ns; t(f) in the I2C specification h](jh)}(h``sda_fall_ns``h]h)}(hj#h]h sda_fall_ns}(hj!#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM`hj#ubj)}(hhh]h)}(hBtime SDA signal takes to fall in ns; t(f) in the I2C specificationh]hBtime SDA signal takes to fall in ns; t(f) in the I2C specification}(hj8#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4#hM`hj5#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jahj4#hM`hj2"ubjb)}(hB``sda_hold_ns`` time IP core additionally needs to hold SDA in ns h](jh)}(h``sda_hold_ns``h]h)}(hjX#h]h sda_hold_ns}(hjZ#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV#ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMahjR#ubj)}(hhh]h)}(h1time IP core additionally needs to hold SDA in nsh]h1time IP core additionally needs to hold SDA in ns}(hjq#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm#hMahjn#ubah}(h]h ]h"]h$]h&]uh1jhjR#ubeh}(h]h ]h"]h$]h&]uh1jahjm#hMahj2"ubjb)}(hn``digital_filter_width_ns`` width in ns of spikes on i2c lines that the IP core digital filter can filter out h](jh)}(h``digital_filter_width_ns``h]h)}(hj#h]hdigital_filter_width_ns}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMchj#ubj)}(hhh]h)}(hQwidth in ns of spikes on i2c lines that the IP core digital filter can filter outh]hQwidth in ns of spikes on i2c lines that the IP core digital filter can filter out}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMbhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jahj#hMchj2"ubjb)}(h[``analog_filter_cutoff_freq_hz`` threshold frequency for the low pass IP core analog filterh](jh)}(h ``analog_filter_cutoff_freq_hz``h]h)}(hj#h]hanalog_filter_cutoff_freq_hz}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMdhj#ubj)}(hhh]h)}(h:threshold frequency for the low pass IP core analog filterh]h:threshold frequency for the low pass IP core analog filter}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMdhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jahj#hMdhj2"ubeh}(h]h ]h"]h$]h&]uh1j\hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j i2c_bus_recovery_info (C struct)c.i2c_bus_recovery_infohNtauh1jxhhhhhNhNubj)}(hhh](j)}(hi2c_bus_recovery_infoh]j)}(hstruct i2c_bus_recovery_infoh](j)}(hj h]hstruct}(hj$$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj $hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMkubj)}(h h]h }(hj2$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj $hhhj1$hMkubj)}(hi2c_bus_recovery_infoh]j)}(hj$h]hi2c_bus_recovery_info}(hjD$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@$ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj $hhhj1$hMkubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj$hhhj1$hMkubah}(h]j$ah ](j jeh"]h$]h&]jj)jhuh1jhj1$hMkhj$hhubj)}(hhh]h)}(hI2C bus recovery informationh]hI2C bus recovery information}(hjf$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.h*hMrhjc$hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj1$hMkubeh}(h]h ](jstructeh"]h$]h&]j6jj7j~$j8j~$j9j:j;uh1jhhhhhNhNubj=)}(hX **Definition**:: struct i2c_bus_recovery_info { int (*recover_bus)(struct i2c_adapter *adap); int (*get_scl)(struct i2c_adapter *adap); void (*set_scl)(struct i2c_adapter *adap, int val); int (*get_sda)(struct i2c_adapter *adap); void (*set_sda)(struct i2c_adapter *adap, int val); int (*get_bus_free)(struct i2c_adapter *adap); void (*prepare_recovery)(struct i2c_adapter *adap); void (*unprepare_recovery)(struct i2c_adapter *adap); struct gpio_desc *scl_gpiod; struct gpio_desc *sda_gpiod; struct pinctrl *pinctrl; struct pinctrl_state *pins_default; struct pinctrl_state *pins_gpio; }; **Members** ``recover_bus`` Recover routine. Either pass driver's recover_bus() routine, or i2c_generic_scl_recovery(). ``get_scl`` This gets current value of SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery. ``set_scl`` This sets/clears the SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery. ``get_sda`` This gets current value of SDA line. This or set_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery. ``set_sda`` This sets/clears the SDA line. This or get_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery. ``get_bus_free`` Returns the bus free state as seen from the IP core in case it has a more complex internal logic than just reading SDA. Optional. ``prepare_recovery`` This will be called before starting recovery. Platform may configure padmux here for SDA/SCL line or something else they want. ``unprepare_recovery`` This will be called after completing recovery. Platform may configure padmux here for SDA/SCL line or something else they want. ``scl_gpiod`` gpiod of the SCL line. Only required for GPIO recovery. ``sda_gpiod`` gpiod of the SDA line. Only required for GPIO recovery. ``pinctrl`` pinctrl used by GPIO recovery to change the state of the I2C pins. Optional. ``pins_default`` default pinctrl state of SCL/SDA lines, when they are assigned to the I2C bus. Optional. Populated internally for GPIO recovery, if state with the name PINCTRL_STATE_DEFAULT is found and pinctrl is valid. ``pins_gpio`` recovery pinctrl state of SCL/SDA lines, when they are used as GPIOs. Optional. Populated internally for GPIO recovery, if this state is called "gpio" or "recovery" and pinctrl is valid.h](h)}(h**Definition**::h](jG)}(h**Definition**h]h Definition}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj$ubh:}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMvhj$ubj )}(hXpstruct i2c_bus_recovery_info { int (*recover_bus)(struct i2c_adapter *adap); int (*get_scl)(struct i2c_adapter *adap); void (*set_scl)(struct i2c_adapter *adap, int val); int (*get_sda)(struct i2c_adapter *adap); void (*set_sda)(struct i2c_adapter *adap, int val); int (*get_bus_free)(struct i2c_adapter *adap); void (*prepare_recovery)(struct i2c_adapter *adap); void (*unprepare_recovery)(struct i2c_adapter *adap); struct gpio_desc *scl_gpiod; struct gpio_desc *sda_gpiod; struct pinctrl *pinctrl; struct pinctrl_state *pins_default; struct pinctrl_state *pins_gpio; };h]hXpstruct i2c_bus_recovery_info { int (*recover_bus)(struct i2c_adapter *adap); int (*get_scl)(struct i2c_adapter *adap); void (*set_scl)(struct i2c_adapter *adap, int val); int (*get_sda)(struct i2c_adapter *adap); void (*set_sda)(struct i2c_adapter *adap, int val); int (*get_bus_free)(struct i2c_adapter *adap); void (*prepare_recovery)(struct i2c_adapter *adap); void (*unprepare_recovery)(struct i2c_adapter *adap); struct gpio_desc *scl_gpiod; struct gpio_desc *sda_gpiod; struct pinctrl *pinctrl; struct pinctrl_state *pins_default; struct pinctrl_state *pins_gpio; };}hj$sbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMxhj$ubh)}(h **Members**h]jG)}(hj$h]hMembers}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj$ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj$ubj])}(hhh](jb)}(hl``recover_bus`` Recover routine. Either pass driver's recover_bus() routine, or i2c_generic_scl_recovery(). h](jh)}(h``recover_bus``h]h)}(hj$h]h recover_bus}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMuhj$ubj)}(hhh]h)}(h[Recover routine. Either pass driver's recover_bus() routine, or i2c_generic_scl_recovery().h]h]Recover routine. Either pass driver’s recover_bus() routine, or i2c_generic_scl_recovery().}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMthj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jahj$hMuhj$ubjb)}(h``get_scl`` This gets current value of SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery. h](jh)}(h ``get_scl``h]h)}(hj %h]hget_scl}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj %ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMwhj%ubj)}(hhh]h)}(hxThis gets current value of SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery.h]hxThis gets current value of SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery.}(hj&%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMvhj#%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jahj"%hMwhj$ubjb)}(h``set_scl`` This sets/clears the SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery. h](jh)}(h ``set_scl``h]h)}(hjG%h]hset_scl}(hjI%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjE%ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMyhjA%ubj)}(hhh]h)}(hrThis sets/clears the SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery.h]hrThis sets/clears the SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery.}(hj`%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMxhj]%ubah}(h]h ]h"]h$]h&]uh1jhjA%ubeh}(h]h ]h"]h$]h&]uh1jahj\%hMyhj$ubjb)}(h``get_sda`` This gets current value of SDA line. This or set_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery. h](jh)}(h ``get_sda``h]h)}(hj%h]hget_sda}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM|hj{%ubj)}(hhh]h)}(hThis gets current value of SDA line. This or set_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery.h]hThis gets current value of SDA line. This or set_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMzhj%ubah}(h]h ]h"]h$]h&]uh1jhj{%ubeh}(h]h ]h"]h$]h&]uh1jahj%hM|hj$ubjb)}(h``set_sda`` This sets/clears the SDA line. This or get_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery. h](jh)}(h ``set_sda``h]h)}(hj%h]hset_sda}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj%ubj)}(hhh]h)}(hThis sets/clears the SDA line. This or get_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery.h]hThis sets/clears the SDA line. This or get_sda() is mandatory for generic SCL recovery. Populated internally, if sda_gpio is a valid GPIO, for generic GPIO recovery.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM}hj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jahj%hMhj$ubjb)}(h``get_bus_free`` Returns the bus free state as seen from the IP core in case it has a more complex internal logic than just reading SDA. Optional. h](jh)}(h``get_bus_free``h]h)}(hj%h]h get_bus_free}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj%ubj)}(hhh]h)}(hReturns the bus free state as seen from the IP core in case it has a more complex internal logic than just reading SDA. Optional.h]hReturns the bus free state as seen from the IP core in case it has a more complex internal logic than just reading SDA. Optional.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj &ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jahj &hMhj$ubjb)}(h``prepare_recovery`` This will be called before starting recovery. Platform may configure padmux here for SDA/SCL line or something else they want. h](jh)}(h``prepare_recovery``h]h)}(hj/&h]hprepare_recovery}(hj1&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-&ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj)&ubj)}(hhh]h)}(h~This will be called before starting recovery. Platform may configure padmux here for SDA/SCL line or something else they want.h]h~This will be called before starting recovery. Platform may configure padmux here for SDA/SCL line or something else they want.}(hjH&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjE&ubah}(h]h ]h"]h$]h&]uh1jhj)&ubeh}(h]h ]h"]h$]h&]uh1jahjD&hMhj$ubjb)}(h``unprepare_recovery`` This will be called after completing recovery. Platform may configure padmux here for SDA/SCL line or something else they want. h](jh)}(h``unprepare_recovery``h]h)}(hji&h]hunprepare_recovery}(hjk&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg&ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjc&ubj)}(hhh]h)}(hThis will be called after completing recovery. Platform may configure padmux here for SDA/SCL line or something else they want.h]hThis will be called after completing recovery. Platform may configure padmux here for SDA/SCL line or something else they want.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj&ubah}(h]h ]h"]h$]h&]uh1jhjc&ubeh}(h]h ]h"]h$]h&]uh1jahj~&hMhj$ubjb)}(hF``scl_gpiod`` gpiod of the SCL line. Only required for GPIO recovery. h](jh)}(h ``scl_gpiod``h]h)}(hj&h]h scl_gpiod}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj&ubj)}(hhh]h)}(h7gpiod of the SCL line. Only required for GPIO recovery.h]h7gpiod of the SCL line. Only required for GPIO recovery.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jahj&hMhj$ubjb)}(hF``sda_gpiod`` gpiod of the SDA line. Only required for GPIO recovery. h](jh)}(h ``sda_gpiod``h]h)}(hj&h]h sda_gpiod}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj&ubj)}(hhh]h)}(h7gpiod of the SDA line. Only required for GPIO recovery.h]h7gpiod of the SDA line. Only required for GPIO recovery.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jahj&hMhj$ubjb)}(hY``pinctrl`` pinctrl used by GPIO recovery to change the state of the I2C pins. Optional. h](jh)}(h ``pinctrl``h]h)}(hj'h]hpinctrl}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj'ubj)}(hhh]h)}(hLpinctrl used by GPIO recovery to change the state of the I2C pins. Optional.h]hLpinctrl used by GPIO recovery to change the state of the I2C pins. Optional.}(hj.'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj+'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jahj*'hMhj$ubjb)}(h``pins_default`` default pinctrl state of SCL/SDA lines, when they are assigned to the I2C bus. Optional. Populated internally for GPIO recovery, if state with the name PINCTRL_STATE_DEFAULT is found and pinctrl is valid. h](jh)}(h``pins_default``h]h)}(hjO'h]h pins_default}(hjQ'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM'ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjI'ubj)}(hhh]h)}(hdefault pinctrl state of SCL/SDA lines, when they are assigned to the I2C bus. Optional. Populated internally for GPIO recovery, if state with the name PINCTRL_STATE_DEFAULT is found and pinctrl is valid.h]hdefault pinctrl state of SCL/SDA lines, when they are assigned to the I2C bus. Optional. Populated internally for GPIO recovery, if state with the name PINCTRL_STATE_DEFAULT is found and pinctrl is valid.}(hjh'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhje'ubah}(h]h ]h"]h$]h&]uh1jhjI'ubeh}(h]h ]h"]h$]h&]uh1jahjd'hMhj$ubjb)}(h``pins_gpio`` recovery pinctrl state of SCL/SDA lines, when they are used as GPIOs. Optional. Populated internally for GPIO recovery, if this state is called "gpio" or "recovery" and pinctrl is valid.h](jh)}(h ``pins_gpio``h]h)}(hj'h]h pins_gpio}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj'ubj)}(hhh]h)}(hrecovery pinctrl state of SCL/SDA lines, when they are used as GPIOs. Optional. Populated internally for GPIO recovery, if this state is called "gpio" or "recovery" and pinctrl is valid.h]hrecovery pinctrl state of SCL/SDA lines, when they are used as GPIOs. Optional. Populated internally for GPIO recovery, if this state is called “gpio” or “recovery” and pinctrl is valid.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jahj'hMhj$ubeh}(h]h ]h"]h$]h&]uh1j\hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_adapter_quirks (C struct)c.i2c_adapter_quirkshNtauh1jxhhhhhNhNubj)}(hhh](j)}(hi2c_adapter_quirksh]j)}(hstruct i2c_adapter_quirksh](j)}(hj h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj'hMubj)}(hi2c_adapter_quirksh]j)}(hj'h]hi2c_adapter_quirks}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj'hhhj'hMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj'hhhj'hMubah}(h]j'ah ](j jeh"]h$]h&]jj)jhuh1jhj'hMhj'hhubj)}(hhh]h)}(h describe flaws of an i2c adapterh]h describe flaws of an i2c adapter}(hj%(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj"(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hMubeh}(h]h ](jstructeh"]h$]h&]j6jj7j=(j8j=(j9j:j;uh1jhhhhhNhNubj=)}(hXd**Definition**:: struct i2c_adapter_quirks { u64 flags; int max_num_msgs; u16 max_write_len; u16 max_read_len; u16 max_comb_1st_msg_len; u16 max_comb_2nd_msg_len; }; **Members** ``flags`` see I2C_AQ_* for possible flags and read below ``max_num_msgs`` maximum number of messages per transfer ``max_write_len`` maximum length of a write message ``max_read_len`` maximum length of a read message ``max_comb_1st_msg_len`` maximum length of the first msg in a combined message ``max_comb_2nd_msg_len`` maximum length of the second msg in a combined messageh](h)}(h**Definition**::h](jG)}(h**Definition**h]h Definition}(hjI(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjE(ubh:}(hjE(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjA(ubj )}(hstruct i2c_adapter_quirks { u64 flags; int max_num_msgs; u16 max_write_len; u16 max_read_len; u16 max_comb_1st_msg_len; u16 max_comb_2nd_msg_len; };h]hstruct i2c_adapter_quirks { u64 flags; int max_num_msgs; u16 max_write_len; u16 max_read_len; u16 max_comb_1st_msg_len; u16 max_comb_2nd_msg_len; };}hjb(sbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjA(ubh)}(h **Members**h]jG)}(hjs(h]hMembers}(hju(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjq(ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjA(ubj])}(hhh](jb)}(h9``flags`` see I2C_AQ_* for possible flags and read below h](jh)}(h ``flags``h]h)}(hj(h]hflags}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj(ubj)}(hhh]h)}(h.see I2C_AQ_* for possible flags and read belowh]h.see I2C_AQ_* for possible flags and read below}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jahj(hMhj(ubjb)}(h9``max_num_msgs`` maximum number of messages per transfer h](jh)}(h``max_num_msgs``h]h)}(hj(h]h max_num_msgs}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj(ubj)}(hhh]h)}(h'maximum number of messages per transferh]h'maximum number of messages per transfer}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jahj(hMhj(ubjb)}(h4``max_write_len`` maximum length of a write message h](jh)}(h``max_write_len``h]h)}(hj)h]h max_write_len}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj(ubj)}(hhh]h)}(h!maximum length of a write messageh]h!maximum length of a write message}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jahj)hMhj(ubjb)}(h2``max_read_len`` maximum length of a read message h](jh)}(h``max_read_len``h]h)}(hj=)h]h max_read_len}(hj?)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;)ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj7)ubj)}(hhh]h)}(h maximum length of a read messageh]h maximum length of a read message}(hjV)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR)hMhjS)ubah}(h]h ]h"]h$]h&]uh1jhj7)ubeh}(h]h ]h"]h$]h&]uh1jahjR)hMhj(ubjb)}(hO``max_comb_1st_msg_len`` maximum length of the first msg in a combined message h](jh)}(h``max_comb_1st_msg_len``h]h)}(hjv)h]hmax_comb_1st_msg_len}(hjx)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt)ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjp)ubj)}(hhh]h)}(h5maximum length of the first msg in a combined messageh]h5maximum length of the first msg in a combined message}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jhjp)ubeh}(h]h ]h"]h$]h&]uh1jahj)hMhj(ubjb)}(hO``max_comb_2nd_msg_len`` maximum length of the second msg in a combined messageh](jh)}(h``max_comb_2nd_msg_len``h]h)}(hj)h]hmax_comb_2nd_msg_len}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj)ubj)}(hhh]h)}(h6maximum length of the second msg in a combined messageh]h6maximum length of the second msg in a combined message}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jahj)hMhj(ubeh}(h]h ]h"]h$]h&]uh1j\hjA(ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubh)}(h**Description**h]jG)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj)ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubh)}(hXNote about combined messages: Some I2C controllers can only send one message per transfer, plus something called combined message or write-then-read. This is (usually) a small write message followed by a read message and barely enough to access register based devices like EEPROMs. There is a flag to support this mode. It implies max_num_msg = 2 and does the length checks with max_comb_*_len because combined message mode usually has its own limitations. Because of HW implementations, some controllers can actually do write-then-anything or other variants. To support that, write-then-read has been broken out into smaller bits like write-first and read-second which can be combined as needed.h]hXNote about combined messages: Some I2C controllers can only send one message per transfer, plus something called combined message or write-then-read. This is (usually) a small write message followed by a read message and barely enough to access register based devices like EEPROMs. There is a flag to support this mode. It implies max_num_msg = 2 and does the length checks with max_comb_*_len because combined message mode usually has its own limitations. Because of HW implementations, some controllers can actually do write-then-anything or other variants. To support that, write-then-read has been broken out into smaller bits like write-first and read-second which can be combined as needed.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_lock_bus (C function)c.i2c_lock_bushNtauh1jxhhhhhNhNubj)}(hhh](j)}(hCvoid i2c_lock_bus (struct i2c_adapter *adapter, unsigned int flags)h]j)}(hBvoid i2c_lock_bus(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hvoidh]hvoid}(hj0*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,*hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM(ubj)}(h h]h }(hj?*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,*hhhj>*hM(ubj)}(h i2c_lock_bush]j)}(h i2c_lock_bush]h i2c_lock_bus}(hjQ*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM*ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj,*hhhj>*hM(ubj)}(h1(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hstruct i2c_adapter *adapterh](j)}(hj h]hstruct}(hjm*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji*ubj)}(h h]h }(hjz*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji*ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj*modnameN classnameNjBjE)}jH]jK)}j>jS*sbc.i2c_lock_busasbuh1hhji*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji*ubj_)}(hjbh]h*}(hj*hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hji*ubj)}(hadapterh]hadapter}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhje*ubj)}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hinth]hint}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj +hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hflagsh]hflags}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhje*ubeh}(h]h ]h"]h$]h&]jjuh1jhj,*hhhj>*hM(ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj(*hhhj>*hM(ubah}(h]j#*ah ](j jeh"]h$]h&]jj)jhuh1jhj>*hM(hj%*hhubj)}(hhh]h)}(h*Get exclusive access to an I2C bus segmenth]h*Get exclusive access to an I2C bus segment}(hjA+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM#hj>+hhubah}(h]h ]h"]h$]h&]uh1jhj%*hhhj>*hM(ubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jY+j8jY+j9j:j;uh1jhhhhhNhNubj=)}(h**Parameters** ``struct i2c_adapter *adapter`` Target I2C bus segment ``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT locks only this branch in the adapter treeh](h)}(h**Parameters**h]jG)}(hjc+h]h Parameters}(hje+hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhja+ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM'hj]+ubj])}(hhh](jb)}(h7``struct i2c_adapter *adapter`` Target I2C bus segment h](jh)}(h``struct i2c_adapter *adapter``h]h)}(hj+h]hstruct i2c_adapter *adapter}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM$hj|+ubj)}(hhh]h)}(hTarget I2C bus segmenth]hTarget I2C bus segment}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM$hj+ubah}(h]h ]h"]h$]h&]uh1jhj|+ubeh}(h]h ]h"]h$]h&]uh1jahj+hM$hjy+ubjb)}(h``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT locks only this branch in the adapter treeh](jh)}(h``unsigned int flags``h]h)}(hj+h]hunsigned int flags}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM%hj+ubj)}(hhh]h)}(hmI2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT locks only this branch in the adapter treeh]hmI2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT locks only this branch in the adapter tree}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM%hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jahj+hM%hjy+ubeh}(h]h ]h"]h$]h&]uh1j\hj]+ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_trylock_bus (C function)c.i2c_trylock_bushNtauh1jxhhhhhNhNubj)}(hhh](j)}(hEint i2c_trylock_bus (struct i2c_adapter *adapter, unsigned int flags)h]j)}(hDint i2c_trylock_bus(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hinth]hint}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM6ubj)}(h h]h }(hj#,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj",hM6ubj)}(hi2c_trylock_bush]j)}(hi2c_trylock_bush]hi2c_trylock_bus}(hj5,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1,ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj,hhhj",hM6ubj)}(h1(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hstruct i2c_adapter *adapterh](j)}(hj h]hstruct}(hjQ,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM,ubj)}(h h]h }(hj^,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM,ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjo,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl,ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjq,modnameN classnameNjBjE)}jH]jK)}j>j7,sbc.i2c_trylock_busasbuh1hhjM,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM,ubj_)}(hjbh]h*}(hj,hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjM,ubj)}(hadapterh]hadapter}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjI,ubj)}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hinth]hint}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hflagsh]hflags}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjI,ubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj",hM6ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj ,hhhj",hM6ubah}(h]j,ah ](j jeh"]h$]h&]jj)jhuh1jhj",hM6hj ,hhubj)}(hhh]h)}(h1Try to get exclusive access to an I2C bus segmenth]h1Try to get exclusive access to an I2C bus segment}(hj%-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM/hj"-hhubah}(h]h ]h"]h$]h&]uh1jhj ,hhhj",hM6ubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j=-j8j=-j9j:j;uh1jhhhhhNhNubj=)}(hX'**Parameters** ``struct i2c_adapter *adapter`` Target I2C bus segment ``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER tries to locks the root i2c adapter, I2C_LOCK_SEGMENT tries to lock only this branch in the adapter tree **Return** true if the I2C bus segment is locked, false otherwiseh](h)}(h**Parameters**h]jG)}(hjG-h]h Parameters}(hjI-hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjE-ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM3hjA-ubj])}(hhh](jb)}(h7``struct i2c_adapter *adapter`` Target I2C bus segment h](jh)}(h``struct i2c_adapter *adapter``h]h)}(hjf-h]hstruct i2c_adapter *adapter}(hjh-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd-ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM0hj`-ubj)}(hhh]h)}(hTarget I2C bus segmenth]hTarget I2C bus segment}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{-hM0hj|-ubah}(h]h ]h"]h$]h&]uh1jhj`-ubeh}(h]h ]h"]h$]h&]uh1jahj{-hM0hj]-ubjb)}(h``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER tries to locks the root i2c adapter, I2C_LOCK_SEGMENT tries to lock only this branch in the adapter tree h](jh)}(h``unsigned int flags``h]h)}(hj-h]hunsigned int flags}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM2hj-ubj)}(hhh]h)}(h~I2C_LOCK_ROOT_ADAPTER tries to locks the root i2c adapter, I2C_LOCK_SEGMENT tries to lock only this branch in the adapter treeh]h~I2C_LOCK_ROOT_ADAPTER tries to locks the root i2c adapter, I2C_LOCK_SEGMENT tries to lock only this branch in the adapter tree}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM1hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jahj-hM2hj]-ubeh}(h]h ]h"]h$]h&]uh1j\hjA-ubh)}(h **Return**h]jG)}(hj-h]hReturn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj-ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM4hjA-ubh)}(h6true if the I2C bus segment is locked, false otherwiseh]h6true if the I2C bus segment is locked, false otherwise}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM4hjA-ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_unlock_bus (C function)c.i2c_unlock_bushNtauh1jxhhhhhNhNubj)}(hhh](j)}(hEvoid i2c_unlock_bus (struct i2c_adapter *adapter, unsigned int flags)h]j)}(hDvoid i2c_unlock_bus(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hvoidh]hvoid}(hj .hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMBubj)}(h h]h }(hj/.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj..hMBubj)}(hi2c_unlock_bush]j)}(hi2c_unlock_bush]hi2c_unlock_bus}(hjA.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=.ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj.hhhj..hMBubj)}(h1(struct i2c_adapter *adapter, unsigned int flags)h](j)}(hstruct i2c_adapter *adapterh](j)}(hj h]hstruct}(hj].hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY.ubj)}(h h]h }(hjj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY.ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hj{.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx.ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj}.modnameN classnameNjBjE)}jH]jK)}j>jC.sbc.i2c_unlock_busasbuh1hhjY.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY.ubj_)}(hjbh]h*}(hj.hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjY.ubj)}(hadapterh]hadapter}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU.ubj)}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hflagsh]hflags}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU.ubeh}(h]h ]h"]h$]h&]jjuh1jhj.hhhj..hMBubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj.hhhj..hMBubah}(h]j.ah ](j jeh"]h$]h&]jj)jhuh1jhj..hMBhj.hhubj)}(hhh]h)}(h.Release exclusive access to an I2C bus segmenth]h.Release exclusive access to an I2C bus segment}(hj1/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM=hj./hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj..hMBubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jI/j8jI/j9j:j;uh1jhhhhhNhNubj=)}(h**Parameters** ``struct i2c_adapter *adapter`` Target I2C bus segment ``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER unlocks the root i2c adapter, I2C_LOCK_SEGMENT unlocks only this branch in the adapter treeh](h)}(h**Parameters**h]jG)}(hjS/h]h Parameters}(hjU/hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjQ/ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMAhjM/ubj])}(hhh](jb)}(h7``struct i2c_adapter *adapter`` Target I2C bus segment h](jh)}(h``struct i2c_adapter *adapter``h]h)}(hjr/h]hstruct i2c_adapter *adapter}(hjt/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp/ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM>hjl/ubj)}(hhh]h)}(hTarget I2C bus segmenth]hTarget I2C bus segment}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hM>hj/ubah}(h]h ]h"]h$]h&]uh1jhjl/ubeh}(h]h ]h"]h$]h&]uh1jahj/hM>hji/ubjb)}(h``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER unlocks the root i2c adapter, I2C_LOCK_SEGMENT unlocks only this branch in the adapter treeh](jh)}(h``unsigned int flags``h]h)}(hj/h]hunsigned int flags}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM?hj/ubj)}(hhh]h)}(hqI2C_LOCK_ROOT_ADAPTER unlocks the root i2c adapter, I2C_LOCK_SEGMENT unlocks only this branch in the adapter treeh]hqI2C_LOCK_ROOT_ADAPTER unlocks the root i2c adapter, I2C_LOCK_SEGMENT unlocks only this branch in the adapter tree}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hM?hj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jahj/hM?hji/ubeh}(h]h ]h"]h$]h&]uh1j\hjM/ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_mark_adapter_suspended (C function)c.i2c_mark_adapter_suspendedhNtauh1jxhhhhhNhNubj)}(hhh](j)}(h:void i2c_mark_adapter_suspended (struct i2c_adapter *adap)h]j)}(h9void i2c_mark_adapter_suspended(struct i2c_adapter *adap)h](j)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMRubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj0hMRubj)}(hi2c_mark_adapter_suspendedh]j)}(hi2c_mark_adapter_suspendedh]hi2c_mark_adapter_suspended}(hj%0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!0ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj0hhhj0hMRubj)}(h(struct i2c_adapter *adap)h]j)}(hstruct i2c_adapter *adaph](j)}(hj h]hstruct}(hjA0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=0ubj)}(h h]h }(hjN0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=0ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hj_0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\0ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetja0modnameN classnameNjBjE)}jH]jK)}j>j'0sbc.i2c_mark_adapter_suspendedasbuh1hhj=0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=0ubj_)}(hjbh]h*}(hj0hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj=0ubj)}(hadaph]hadap}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj90ubah}(h]h ]h"]h$]h&]jjuh1jhj0hhhj0hMRubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj/hhhj0hMRubah}(h]j/ah ](j jeh"]h$]h&]jj)jhuh1jhj0hMRhj/hhubj)}(hhh]h)}(h1Report suspended state of the adapter to the coreh]h1Report suspended state of the adapter to the core}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMIhj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj0hMRubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j0j8j0j9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct i2c_adapter *adap`` Adapter to mark as suspended **Description** When using this helper to mark an adapter as suspended, the core will reject further transfers to this adapter. The usage of this helper is optional but recommended for devices having distinct handlers for system suspend and runtime suspend. More complex devices are free to implement custom solutions to reject transfers when suspended.h](h)}(h**Parameters**h]jG)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj0ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMMhj0ubj])}(hhh]jb)}(h:``struct i2c_adapter *adap`` Adapter to mark as suspended h](jh)}(h``struct i2c_adapter *adap``h]h)}(hj1h]hstruct i2c_adapter *adap}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMJhj0ubj)}(hhh]h)}(hAdapter to mark as suspendedh]hAdapter to mark as suspended}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMJhj1ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jahj1hMJhj0ubah}(h]h ]h"]h$]h&]uh1j\hj0ubh)}(h**Description**h]jG)}(hj@1h]h Description}(hjB1hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj>1ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMLhj0ubh)}(hXQWhen using this helper to mark an adapter as suspended, the core will reject further transfers to this adapter. The usage of this helper is optional but recommended for devices having distinct handlers for system suspend and runtime suspend. More complex devices are free to implement custom solutions to reject transfers when suspended.h]hXQWhen using this helper to mark an adapter as suspended, the core will reject further transfers to this adapter. The usage of this helper is optional but recommended for devices having distinct handlers for system suspend and runtime suspend. More complex devices are free to implement custom solutions to reject transfers when suspended.}(hjV1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMLhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_mark_adapter_resumed (C function)c.i2c_mark_adapter_resumedhNtauh1jxhhhhhNhNubj)}(hhh](j)}(h8void i2c_mark_adapter_resumed (struct i2c_adapter *adap)h]j)}(h7void i2c_mark_adapter_resumed(struct i2c_adapter *adap)h](j)}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMaubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hMaubj)}(hi2c_mark_adapter_resumedh]j)}(hi2c_mark_adapter_resumedh]hi2c_mark_adapter_resumed}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj1hhhj1hMaubj)}(h(struct i2c_adapter *adap)h]j)}(hstruct i2c_adapter *adaph](j)}(hj h]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj1modnameN classnameNjBjE)}jH]jK)}j>j1sbc.i2c_mark_adapter_resumedasbuh1hhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj_)}(hjbh]h*}(hj2hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj1ubj)}(hadaph]hadap}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubah}(h]h ]h"]h$]h&]jjuh1jhj1hhhj1hMaubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj}1hhhj1hMaubah}(h]jx1ah ](j jeh"]h$]h&]jj)jhuh1jhj1hMahjz1hhubj)}(hhh]h)}(h/Report resumed state of the adapter to the coreh]h/Report resumed state of the adapter to the core}(hjE2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMZhjB2hhubah}(h]h ]h"]h$]h&]uh1jhjz1hhhj1hMaubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j]2j8j]2j9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct i2c_adapter *adap`` Adapter to mark as resumed **Description** When using this helper to mark an adapter as resumed, the core will allow further transfers to this adapter. See also further notes to **i2c_mark_adapter_suspended\(\)**.h](h)}(h**Parameters**h]jG)}(hjg2h]h Parameters}(hji2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhje2ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM^hja2ubj])}(hhh]jb)}(h8``struct i2c_adapter *adap`` Adapter to mark as resumed h](jh)}(h``struct i2c_adapter *adap``h]h)}(hj2h]hstruct i2c_adapter *adap}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM[hj2ubj)}(hhh]h)}(hAdapter to mark as resumedh]hAdapter to mark as resumed}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM[hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jahj2hM[hj}2ubah}(h]h ]h"]h$]h&]uh1j\hja2ubh)}(h**Description**h]jG)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM]hja2ubh)}(hWhen using this helper to mark an adapter as resumed, the core will allow further transfers to this adapter. See also further notes to **i2c_mark_adapter_suspended\(\)**.h](hWhen using this helper to mark an adapter as resumed, the core will allow further transfers to this adapter. See also further notes to }(hj2hhhNhNubjG)}(h"**i2c_mark_adapter_suspended\(\)**h]hi2c_mark_adapter_suspended()}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2ubh.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM]hja2ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_check_quirks (C function)c.i2c_check_quirkshNtauh1jxhhhhhNhNubj)}(hhh](j)}(h reftargetju3modnameN classnameNjBjE)}jH]jK)}j>j;3sbc.i2c_check_quirksasbuh1hhjQ3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ3ubj_)}(hjbh]h*}(hj3hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjQ3ubj)}(hadaph]hadap}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjM3ubj)}(h u64 quirksh](h)}(hhh]j)}(hu64h]hu64}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj3modnameN classnameNjBjE)}jH]j3c.i2c_check_quirksasbuh1hhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hquirksh]hquirks}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjM3ubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhj&3hMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj3hhhj&3hMubah}(h]j 3ah ](j jeh"]h$]h&]jj)jhuh1jhj&3hMhj 3hhubj)}(hhh]h)}(h7Function for checking the quirk flags in an i2c adapterh]h7Function for checking the quirk flags in an i2c adapter}(hj 4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj4hhubah}(h]h ]h"]h$]h&]uh1jhj 3hhhj&3hMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j84j8j84j9j:j;uh1jhhhhhNhNubj=)}(h**Parameters** ``struct i2c_adapter *adap`` i2c adapter ``u64 quirks`` quirk flags **Return** true if the adapter has all the specified quirk flags, false if noth](h)}(h**Parameters**h]jG)}(hjB4h]h Parameters}(hjD4hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj@4ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj<4ubj])}(hhh](jb)}(h)``struct i2c_adapter *adap`` i2c adapter h](jh)}(h``struct i2c_adapter *adap``h]h)}(hja4h]hstruct i2c_adapter *adap}(hjc4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_4ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj[4ubj)}(hhh]h)}(h i2c adapterh]h i2c adapter}(hjz4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv4hMhjw4ubah}(h]h ]h"]h$]h&]uh1jhj[4ubeh}(h]h ]h"]h$]h&]uh1jahjv4hMhjX4ubjb)}(h``u64 quirks`` quirk flags h](jh)}(h``u64 quirks``h]h)}(hj4h]h u64 quirks}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj4ubj)}(hhh]h)}(h quirk flagsh]h quirk flags}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jahj4hMhjX4ubeh}(h]h ]h"]h$]h&]uh1j\hj<4ubh)}(h **Return**h]jG)}(hj4h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj4ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj<4ubh)}(hCtrue if the adapter has all the specified quirk flags, false if noth]hCtrue if the adapter has all the specified quirk flags, false if not}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj<4ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](jmodule_i2c_driver (C macro)c.module_i2c_driverhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hmodule_i2c_driverh]j)}(hmodule_i2c_driverh]j)}(hmodule_i2c_driverh]j)}(hj5h]hmodule_i2c_driver}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj5hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjj hj5hhhj15hMubah}(h]j 5ah ](j jeh"]h$]h&]jj)jhuh1jhj15hMhj5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj5hhhj15hMubeh}(h]h ](jmacroeh"]h$]h&]j6jj7jJ5j8jJ5j9j:j;uh1jhhhhhNhNubh)}(h$``module_i2c_driver (__i2c_driver)``h]h)}(hjP5h]h module_i2c_driver (__i2c_driver)}(hjR5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN5ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubj)}(h2Helper macro for registering a modular I2C driver h]h)}(h1Helper macro for registering a modular I2C driverh]h1Helper macro for registering a modular I2C driver}(hjj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjf5ubah}(h]h ]h"]h$]h&]uh1jhjx5hMhhhhubj=)}(hX!**Parameters** ``__i2c_driver`` i2c_driver struct **Description** Helper macro for I2C drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit()h](h)}(h**Parameters**h]jG)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj5ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj5ubj])}(hhh]jb)}(h#``__i2c_driver`` i2c_driver struct h](jh)}(h``__i2c_driver``h]h)}(hj5h]h __i2c_driver}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj5ubj)}(hhh]h)}(hi2c_driver structh]hi2c_driver struct}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jahj5hMhj5ubah}(h]h ]h"]h$]h&]uh1j\hj5ubh)}(h**Description**h]jG)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj5ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj5ubh)}(hHelper macro for I2C drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit()h]hHelper macro for I2C drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit()}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](jbuiltin_i2c_driver (C macro)c.builtin_i2c_driverhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hbuiltin_i2c_driverh]j)}(hbuiltin_i2c_driverh]j)}(hbuiltin_i2c_driverh]j)}(hj6h]hbuiltin_i2c_driver}(hj(6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$6ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj 6hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjj hj6hhhj;6hMubah}(h]j6ah ](j jeh"]h$]h&]jj)jhuh1jhj;6hMhj6hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj6hhhj;6hMubeh}(h]h ](jmacroeh"]h$]h&]j6jj7jT6j8jT6j9j:j;uh1jhhhhhNhNubh)}(h%``builtin_i2c_driver (__i2c_driver)``h]h)}(hjZ6h]h!builtin_i2c_driver (__i2c_driver)}(hj\6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX6ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubj)}(h2Helper macro for registering a builtin I2C driver h]h)}(h1Helper macro for registering a builtin I2C driverh]h1Helper macro for registering a builtin I2C driver}(hjt6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjp6ubah}(h]h ]h"]h$]h&]uh1jhj6hMhhhhubj=)}(hX**Parameters** ``__i2c_driver`` i2c_driver struct **Description** Helper macro for I2C drivers which do not do anything special in their init. This eliminates a lot of boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall().h](h)}(h**Parameters**h]jG)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj6ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj6ubj])}(hhh]jb)}(h#``__i2c_driver`` i2c_driver struct h](jh)}(h``__i2c_driver``h]h)}(hj6h]h __i2c_driver}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1jghR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj6ubj)}(hhh]h)}(hi2c_driver structh]hi2c_driver struct}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jahj6hMhj6ubah}(h]h ]h"]h$]h&]uh1j\hj6ubh)}(h**Description**h]jG)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj6ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj6ubh)}(hHelper macro for I2C drivers which do not do anything special in their init. This eliminates a lot of boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall().h]hHelper macro for I2C drivers which do not do anything special in their init. This eliminates a lot of boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall().}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j$i2c_register_board_info (C function)c.i2c_register_board_infohNtauh1jxhhhhhNhNubj)}(hhh](j)}(hYint i2c_register_board_info (int busnum, struct i2c_board_info const *info, unsigned len)h]j)}(hXint i2c_register_board_info(int busnum, struct i2c_board_info const *info, unsigned len)h](j)}(hinth]hint}(hj.7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*7hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK3ubj)}(h h]h }(hj=7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*7hhhj<7hK3ubj)}(hi2c_register_board_infoh]j)}(hi2c_register_board_infoh]hi2c_register_board_info}(hjO7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK7ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj*7hhhj<7hK3ubj)}(h=(int busnum, struct i2c_board_info const *info, unsigned len)h](j)}(h int busnumh](j)}(hinth]hint}(hjk7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg7ubj)}(h h]h }(hjy7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg7ubj)}(hbusnumh]hbusnum}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc7ubj)}(h!struct i2c_board_info const *infoh](j)}(hj h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(hi2c_board_infoh]hi2c_board_info}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj7modnameN classnameNjBjE)}jH]jK)}j>jQ7sbc.i2c_register_board_infoasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjh]hconst}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj_)}(hjbh]h*}(hj8hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj7ubj)}(hinfoh]hinfo}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc7ubj)}(h unsigned lenh](j)}(hunsignedh]hunsigned}(hj-8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)8ubj)}(h h]h }(hj;8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)8ubj)}(hlenh]hlen}(hjI8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc7ubeh}(h]h ]h"]h$]h&]jjuh1jhj*7hhhj<7hK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj&7hhhj<7hK3ubah}(h]j!7ah ](j jeh"]h$]h&]jj)jhuh1jhj<7hK3hj#7hhubj)}(hhh]h)}(hstatically declare I2C devicesh]hstatically declare I2C devices}(hjs8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chKhjp8hhubah}(h]h ]h"]h$]h&]uh1jhj#7hhhj<7hK3ubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j8j8j8j9j:j;uh1jhhhhhNhNubj=)}(hXF**Parameters** ``int busnum`` identifies the bus to which these devices belong ``struct i2c_board_info const *info`` vector of i2c device descriptors ``unsigned len`` how many descriptors in the vector; may be zero to reserve the specified bus number. **Description** Systems using the Linux I2C driver stack can declare tables of board info while they initialize. This should be done in board-specific init code near arch_initcall() time, or equivalent, before any I2C adapter driver is registered. For example, mainboard init code could define several devices, as could the init code for each daughtercard in a board stack. The I2C devices will be created later, after the adapter for the relevant bus has been registered. After that moment, standard driver model tools are used to bind "new style" I2C drivers to the devices. The bus number for any device declared using this routine is not available for dynamic allocation. The board info passed can safely be __initdata, but be careful of embedded pointers (for platform_data, functions, etc) since that won't be copied.h](h)}(h**Parameters**h]jG)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj8ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK"hj8ubj])}(hhh](jb)}(h@``int busnum`` identifies the bus to which these devices belong h](jh)}(h``int busnum``h]h)}(hj8h]h int busnum}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chKhj8ubj)}(hhh]h)}(h0identifies the bus to which these devices belongh]h0identifies the bus to which these devices belong}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jahj8hKhj8ubjb)}(hG``struct i2c_board_info const *info`` vector of i2c device descriptors h](jh)}(h%``struct i2c_board_info const *info``h]h)}(hj8h]h!struct i2c_board_info const *info}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK hj8ubj)}(hhh]h)}(h vector of i2c device descriptorsh]h vector of i2c device descriptors}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hK hj9ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jahj9hK hj8ubjb)}(hf``unsigned len`` how many descriptors in the vector; may be zero to reserve the specified bus number. h](jh)}(h``unsigned len``h]h)}(hj&9h]h unsigned len}(hj(9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$9ubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK"hj 9ubj)}(hhh]h)}(hThow many descriptors in the vector; may be zero to reserve the specified bus number.h]hThow many descriptors in the vector; may be zero to reserve the specified bus number.}(hj?9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK!hj<9ubah}(h]h ]h"]h$]h&]uh1jhj 9ubeh}(h]h ]h"]h$]h&]uh1jahj;9hK"hj8ubeh}(h]h ]h"]h$]h&]uh1j\hj8ubh)}(h**Description**h]jG)}(hjb9h]h Description}(hjd9hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj`9ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK$hj8ubh)}(hXgSystems using the Linux I2C driver stack can declare tables of board info while they initialize. This should be done in board-specific init code near arch_initcall() time, or equivalent, before any I2C adapter driver is registered. For example, mainboard init code could define several devices, as could the init code for each daughtercard in a board stack.h]hXgSystems using the Linux I2C driver stack can declare tables of board info while they initialize. This should be done in board-specific init code near arch_initcall() time, or equivalent, before any I2C adapter driver is registered. For example, mainboard init code could define several devices, as could the init code for each daughtercard in a board stack.}(hjx9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK$hj8ubh)}(hX/The I2C devices will be created later, after the adapter for the relevant bus has been registered. After that moment, standard driver model tools are used to bind "new style" I2C drivers to the devices. The bus number for any device declared using this routine is not available for dynamic allocation.h]hX3The I2C devices will be created later, after the adapter for the relevant bus has been registered. After that moment, standard driver model tools are used to bind “new style” I2C drivers to the devices. The bus number for any device declared using this routine is not available for dynamic allocation.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK*hj8ubh)}(hThe board info passed can safely be __initdata, but be careful of embedded pointers (for platform_data, functions, etc) since that won't be copied.h]hThe board info passed can safely be __initdata, but be careful of embedded pointers (for platform_data, functions, etc) since that won’t be copied.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK0hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_verify_client (C function)c.i2c_verify_clienthNtauh1jxhhhhhNhNubj)}(hhh](j)}(h:struct i2c_client * i2c_verify_client (struct device *dev)h]j)}(h8struct i2c_client *i2c_verify_client(struct device *dev)h](j)}(hj h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hMubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj9modnameN classnameNjBjE)}jH]jK)}j>i2c_verify_clientsbc.i2c_verify_clientasbuh1hhj9hhhj9hMubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hMubj_)}(hjbh]h*}(hj:hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj9hhhj9hMubj)}(hi2c_verify_clienth]j)}(hj:h]hi2c_verify_client}(hj$:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj :ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj9hhhj9hMubj)}(h(struct device *dev)h]j)}(hstruct device *devh](j)}(hj h]hstruct}(hj?:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;:ubj)}(h h]h }(hjL:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;:ubh)}(hhh]j)}(hdeviceh]hdevice}(hj]:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ:ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj_:modnameN classnameNjBjE)}jH]j:c.i2c_verify_clientasbuh1hhj;:ubj)}(h h]h }(hj{:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;:ubj_)}(hjbh]h*}(hj:hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj;:ubj)}(hdevh]hdev}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7:ubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj9hhhj9hMubah}(h]j9ah ](j jeh"]h$]h&]jj)jhuh1jhj9hMhj9hhubj)}(hhh]h)}(h'return parameter as i2c_client, or NULLh]h'return parameter as i2c_client, or NULL}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj:hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j:j8j:j9j:j;uh1jhhhhhNhNubj=)}(hXt**Parameters** ``struct device *dev`` device, probably from some driver model iterator **Description** When traversing the driver model tree, perhaps using driver model iterators like **device_for_each_child\(\)**, you can't assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_client.h](h)}(h**Parameters**h]jG)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj:ubj])}(hhh]jb)}(hH``struct device *dev`` device, probably from some driver model iterator h](jh)}(h``struct device *dev``h]h)}(hj;h]hstruct device *dev}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj:ubj)}(hhh]h)}(h0device, probably from some driver model iteratorh]h0device, probably from some driver model iterator}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jahj;hMhj:ubah}(h]h ]h"]h$]h&]uh1j\hj:ubh)}(h**Description**h]jG)}(hj<;h]h Description}(hj>;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:;ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj:ubh)}(hXWhen traversing the driver model tree, perhaps using driver model iterators like **device_for_each_child\(\)**, you can't assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_client.h](hQWhen traversing the driver model tree, perhaps using driver model iterators like }(hjR;hhhNhNubjG)}(h**device_for_each_child\(\)**h]hdevice_for_each_child()}(hjZ;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjR;ubh, you can’t assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_client.}(hjR;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j"i2c_new_client_device (C function)c.i2c_new_client_devicehNtauh1jxhhhhhNhNubj)}(hhh](j)}(hgstruct i2c_client * i2c_new_client_device (struct i2c_adapter *adap, struct i2c_board_info const *info)h]j)}(hestruct i2c_client *i2c_new_client_device(struct i2c_adapter *adap, struct i2c_board_info const *info)h](j)}(hj h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhj;hMubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj;modnameN classnameNjBjE)}jH]jK)}j>i2c_new_client_devicesbc.i2c_new_client_deviceasbuh1hhj;hhhj;hMubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhj;hMubj_)}(hjbh]h*}(hj;hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj;hhhj;hMubj)}(hi2c_new_client_deviceh]j)}(hj;h]hi2c_new_client_device}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj;hhhj;hMubj)}(h=(struct i2c_adapter *adap, struct i2c_board_info const *info)h](j)}(hstruct i2c_adapter *adaph](j)}(hj h]hstruct}(hj <hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj <ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj <ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hj+<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(<ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj-<modnameN classnameNjBjE)}jH]j;c.i2c_new_client_deviceasbuh1hhj <ubj)}(h h]h }(hjI<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj <ubj_)}(hjbh]h*}(hjW<hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj <ubj)}(hadaph]hadap}(hjd<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj <ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(h!struct i2c_board_info const *infoh](j)}(hj h]hstruct}(hj}<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy<ubh)}(hhh]j)}(hi2c_board_infoh]hi2c_board_info}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj<modnameN classnameNjBjE)}jH]j;c.i2c_new_client_deviceasbuh1hhjy<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy<ubj)}(hjh]hconst}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy<ubj_)}(hjbh]h*}(hj<hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjy<ubj)}(hinfoh]hinfo}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhj;hMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj;hhhj;hMubah}(h]j;ah ](j jeh"]h$]h&]jj)jhuh1jhj;hMhj;hhubj)}(hhh]h)}(hinstantiate an i2c deviceh]hinstantiate an i2c device}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj;hMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j1=j8j1=j9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct i2c_adapter *adap`` the adapter managing the device ``struct i2c_board_info const *info`` describes one I2C device; bus_num is ignored **Context** can sleep **Description** Create an i2c device. Binding is handled through driver model probe()/remove() methods. A driver may be bound to this device when we return from this function, or any later moment (e.g. maybe hotplugging will load the driver module). This call is not appropriate for use by mainboard initialization logic, which usually runs during an arch_initcall() long before any i2c_adapter could exist. This returns the new i2c client, which may be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h](h)}(h**Parameters**h]jG)}(hj;=h]h Parameters}(hj==hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj9=ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj5=ubj])}(hhh](jb)}(h=``struct i2c_adapter *adap`` the adapter managing the device h](jh)}(h``struct i2c_adapter *adap``h]h)}(hjZ=h]hstruct i2c_adapter *adap}(hj\=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX=ubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjT=ubj)}(hhh]h)}(hthe adapter managing the deviceh]hthe adapter managing the device}(hjs=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo=hMhjp=ubah}(h]h ]h"]h$]h&]uh1jhjT=ubeh}(h]h ]h"]h$]h&]uh1jahjo=hMhjQ=ubjb)}(hS``struct i2c_board_info const *info`` describes one I2C device; bus_num is ignored h](jh)}(h%``struct i2c_board_info const *info``h]h)}(hj=h]h!struct i2c_board_info const *info}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj=ubj)}(hhh]h)}(h,describes one I2C device; bus_num is ignoredh]h,describes one I2C device; bus_num is ignored}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jahj=hMhjQ=ubeh}(h]h ]h"]h$]h&]uh1j\hj5=ubh)}(h **Context**h]jG)}(hj=h]hContext}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj=ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj5=ubh)}(h can sleeph]h can sleep}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj5=ubh)}(h**Description**h]jG)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj=ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj5=ubh)}(hXCreate an i2c device. Binding is handled through driver model probe()/remove() methods. A driver may be bound to this device when we return from this function, or any later moment (e.g. maybe hotplugging will load the driver module). This call is not appropriate for use by mainboard initialization logic, which usually runs during an arch_initcall() long before any i2c_adapter could exist.h]hXCreate an i2c device. Binding is handled through driver model probe()/remove() methods. A driver may be bound to this device when we return from this function, or any later moment (e.g. maybe hotplugging will load the driver module). This call is not appropriate for use by mainboard initialization logic, which usually runs during an arch_initcall() long before any i2c_adapter could exist.}(hj >hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj5=ubh)}(hThis returns the new i2c client, which may be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h]hThis returns the new i2c client, which may be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj5=ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j"i2c_unregister_device (C function)c.i2c_unregister_devicehNtauh1jxhhhhhNhNubj)}(hhh](j)}(h6void i2c_unregister_device (struct i2c_client *client)h]j)}(h5void i2c_unregister_device(struct i2c_client *client)h](j)}(hvoidh]hvoid}(hjI>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE>hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hjX>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE>hhhjW>hMubj)}(hi2c_unregister_deviceh]j)}(hi2c_unregister_deviceh]hi2c_unregister_device}(hjj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf>ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjE>hhhjW>hMubj)}(h(struct i2c_client *client)h]j)}(hstruct i2c_client *clienth](j)}(hj h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj>modnameN classnameNjBjE)}jH]jK)}j>jl>sbc.i2c_unregister_deviceasbuh1hhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj_)}(hjbh]h*}(hj>hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj>ubj)}(hclienth]hclient}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~>ubah}(h]h ]h"]h$]h&]jjuh1jhjE>hhhjW>hMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjA>hhhjW>hMubah}(h]j<>ah ](j jeh"]h$]h&]jj)jhuh1jhjW>hMhj>>hhubj)}(hhh]h)}(h$reverse effect of i2c_new_*_device()h]h$reverse effect of i2c_new_*_device()}(hj ?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhj>>hhhjW>hMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j!?j8j!?j9j:j;uh1jhhhhhNhNubj=)}(hn**Parameters** ``struct i2c_client *client`` value returned from i2c_new_*_device() **Context** can sleeph](h)}(h**Parameters**h]jG)}(hj+?h]h Parameters}(hj-?hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj)?ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj%?ubj])}(hhh]jb)}(hE``struct i2c_client *client`` value returned from i2c_new_*_device() h](jh)}(h``struct i2c_client *client``h]h)}(hjJ?h]hstruct i2c_client *client}(hjL?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH?ubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjD?ubj)}(hhh]h)}(h&value returned from i2c_new_*_device()h]h&value returned from i2c_new_*_device()}(hjc?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_?hMhj`?ubah}(h]h ]h"]h$]h&]uh1jhjD?ubeh}(h]h ]h"]h$]h&]uh1jahj_?hMhjA?ubah}(h]h ]h"]h$]h&]uh1j\hj%?ubh)}(h **Context**h]jG)}(hj?h]hContext}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj?ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj%?ubh)}(h can sleeph]h can sleep}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj%?ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_find_device_by_fwnode (C function)c.i2c_find_device_by_fwnodehNtauh1jxhhhhhNhNubj)}(hhh](j)}(hLstruct i2c_client * i2c_find_device_by_fwnode (struct fwnode_handle *fwnode)h]j)}(hJstruct i2c_client *i2c_find_device_by_fwnode(struct fwnode_handle *fwnode)h](j)}(hj h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM:ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj?hM:ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj?modnameN classnameNjBjE)}jH]jK)}j>i2c_find_device_by_fwnodesbc.i2c_find_device_by_fwnodeasbuh1hhj?hhhj?hM:ubj)}(h h]h }(hj @hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj?hM:ubj_)}(hjbh]h*}(hj@hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj?hhhj?hM:ubj)}(hi2c_find_device_by_fwnodeh]j)}(hj@h]hi2c_find_device_by_fwnode}(hj)@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%@ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj?hhhj?hM:ubj)}(h(struct fwnode_handle *fwnode)h]j)}(hstruct fwnode_handle *fwnodeh](j)}(hj h]hstruct}(hjD@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@@ubj)}(h h]h }(hjQ@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@@ubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hjb@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_@ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjd@modnameN classnameNjBjE)}jH]j@c.i2c_find_device_by_fwnodeasbuh1hhj@@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@@ubj_)}(hjbh]h*}(hj@hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj@@ubj)}(hfwnodeh]hfwnode}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<@ubah}(h]h ]h"]h$]h&]jjuh1jhj?hhhj?hM:ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj?hhhj?hM:ubah}(h]j?ah ](j jeh"]h$]h&]jj)jhuh1jhj?hM:hj?hhubj)}(hhh]h)}(h!find an i2c_client for the fwnodeh]h!find an i2c_client for the fwnode}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM2hj@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hM:ubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j@j8j@j9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_client ` **Description** Look up and return the :c:type:`struct i2c_client ` corresponding to the **fwnode**. If no client can be found, or **fwnode** is NULL, this returns NULL. The user must call put_device(:c:type:`client->dev `) once done with the i2c client.h](h)}(h**Parameters**h]jG)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj@ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM6hj@ubj])}(hhh]jb)}(h``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_client ` h](jh)}(h ``struct fwnode_handle *fwnode``h]h)}(hjAh]hstruct fwnode_handle *fwnode}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM3hjAubj)}(hhh]h)}(hl:c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_client `h](h)}(h.:c:type:`struct fwnode_handle `h]h)}(hj%Ah]hstruct fwnode_handle}(hj'AhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj#Aubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjj fwnode_handleuh1hhjAhM3hjAubh corresponding to the }(hjAhhhNhNubh)}(h(:c:type:`struct i2c_client `h]h)}(hjHAh]hstruct i2c_client}(hjJAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjFAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjj i2c_clientuh1hhjAhM3hjAubeh}(h]h ]h"]h$]h&]uh1hhjAhM3hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jahjAhM3hj@ubah}(h]h ]h"]h$]h&]uh1j\hj@ubh)}(h**Description**h]jG)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj}Aubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM5hj@ubh)}(hLook up and return the :c:type:`struct i2c_client ` corresponding to the **fwnode**. If no client can be found, or **fwnode** is NULL, this returns NULL.h](hLook up and return the }(hjAhhhNhNubh)}(h(:c:type:`struct i2c_client `h]h)}(hjAh]hstruct i2c_client}(hjAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjj i2c_clientuh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM5hjAubh corresponding to the }(hjAhhhNhNubjG)}(h **fwnode**h]hfwnode}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjAubh . If no client can be found, or }(hjAhhhNhNubjG)}(h **fwnode**h]hfwnode}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjAubh is NULL, this returns NULL.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhM5hj@ubh)}(h\The user must call put_device(:c:type:`client->dev `) once done with the i2c client.h](hThe user must call put_device(}(hjAhhhNhNubh)}(h:c:type:`client->dev `h]h)}(hjAh]h client->dev}(hjAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjjclientuh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM8hjAubh ) once done with the i2c client.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjBhM8hj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j!i2c_new_dummy_device (C function)c.i2c_new_dummy_devicehNtauh1jxhhhhhNhNubj)}(hhh](j)}(hSstruct i2c_client * i2c_new_dummy_device (struct i2c_adapter *adapter, u16 address)h]j)}(hQstruct i2c_client *i2c_new_dummy_device(struct i2c_adapter *adapter, u16 address)h](j)}(hj h]hstruct}(hj=BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9BhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMrubj)}(h h]h }(hjKBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9BhhhjJBhMrubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj\BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYBubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj^BmodnameN classnameNjBjE)}jH]jK)}j>i2c_new_dummy_devicesbc.i2c_new_dummy_deviceasbuh1hhj9BhhhjJBhMrubj)}(h h]h }(hj}BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9BhhhjJBhMrubj_)}(hjbh]h*}(hjBhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj9BhhhjJBhMrubj)}(hi2c_new_dummy_deviceh]j)}(hjzBh]hi2c_new_dummy_device}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jhj9BhhhjJBhMrubj)}(h*(struct i2c_adapter *adapter, u16 address)h](j)}(hstruct i2c_adapter *adapterh](j)}(hj h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjBmodnameN classnameNjBjE)}jH]jxBc.i2c_new_dummy_deviceasbuh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj_)}(hjbh]h*}(hjChhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjBubj)}(hadapterh]hadapter}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(h u16 addressh](h)}(hhh]j)}(hu16h]hu16}(hj*ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Cubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj,CmodnameN classnameNjBjE)}jH]jxBc.i2c_new_dummy_deviceasbuh1hhj#Cubj)}(h h]h }(hjHChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Cubj)}(haddressh]haddress}(hjVChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhj9BhhhjJBhMrubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj5BhhhjJBhMrubah}(h]j0Bah ](j jeh"]h$]h&]jj)jhuh1jhjJBhMrhj2Bhhubj)}(hhh]h)}(h/return a new i2c device bound to a dummy driverh]h/return a new i2c device bound to a dummy driver}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMahj}Chhubah}(h]h ]h"]h$]h&]uh1jhj2BhhhjJBhMrubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jCj8jCj9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct i2c_adapter *adapter`` the adapter managing the device ``u16 address`` seven bit address to be used **Context** can sleep **Description** This returns an I2C client bound to the "dummy" driver, intended for use with devices that consume multiple addresses. Examples of such chips include various EEPROMS (like 24c04 and 24c08 models). These dummy devices have two main uses. First, most I2C and SMBus calls except i2c_transfer() need a client handle; the dummy will be that handle. And second, this prevents the specified address from being bound to a different driver. This returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h](h)}(h**Parameters**h]jG)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjCubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMehjCubj])}(hhh](jb)}(h@``struct i2c_adapter *adapter`` the adapter managing the device h](jh)}(h``struct i2c_adapter *adapter``h]h)}(hjCh]hstruct i2c_adapter *adapter}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMbhjCubj)}(hhh]h)}(hthe adapter managing the deviceh]hthe adapter managing the device}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMbhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jahjChMbhjCubjb)}(h-``u16 address`` seven bit address to be used h](jh)}(h``u16 address``h]h)}(hjCh]h u16 address}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMchjCubj)}(hhh]h)}(hseven bit address to be usedh]hseven bit address to be used}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMchjDubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jahjDhMchjCubeh}(h]h ]h"]h$]h&]uh1j\hjCubh)}(h **Context**h]jG)}(hj5Dh]hContext}(hj7DhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj3Dubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMehjCubh)}(h can sleeph]h can sleep}(hjKDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMdhjCubh)}(h**Description**h]jG)}(hj\Dh]h Description}(hj^DhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjZDubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMfhjCubh)}(hThis returns an I2C client bound to the "dummy" driver, intended for use with devices that consume multiple addresses. Examples of such chips include various EEPROMS (like 24c04 and 24c08 models).h]hThis returns an I2C client bound to the “dummy” driver, intended for use with devices that consume multiple addresses. Examples of such chips include various EEPROMS (like 24c04 and 24c08 models).}(hjrDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMehjCubh)}(hThese dummy devices have two main uses. First, most I2C and SMBus calls except i2c_transfer() need a client handle; the dummy will be that handle. And second, this prevents the specified address from being bound to a different driver.h]hThese dummy devices have two main uses. First, most I2C and SMBus calls except i2c_transfer() need a client handle; the dummy will be that handle. And second, this prevents the specified address from being bound to a different driver.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMihjCubh)}(hThis returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h]hThis returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMnhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j&devm_i2c_new_dummy_device (C function)c.devm_i2c_new_dummy_devicehNtauh1jxhhhhhNhNubj)}(hhh](j)}(hlstruct i2c_client * devm_i2c_new_dummy_device (struct device *dev, struct i2c_adapter *adapter, u16 address)h]j)}(hjstruct i2c_client *devm_i2c_new_dummy_device(struct device *dev, struct i2c_adapter *adapter, u16 address)h](j)}(hj h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjDhMubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjDmodnameN classnameNjBjE)}jH]jK)}j>devm_i2c_new_dummy_devicesbc.devm_i2c_new_dummy_deviceasbuh1hhjDhhhjDhMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjDhMubj_)}(hjbh]h*}(hj EhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjDhhhjDhMubj)}(hdevm_i2c_new_dummy_deviceh]j)}(hjDh]hdevm_i2c_new_dummy_device}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jhjDhhhjDhMubj)}(h>(struct device *dev, struct i2c_adapter *adapter, u16 address)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hj9EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Eubj)}(h h]h }(hjFEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Eubh)}(hhh]j)}(hdeviceh]hdevice}(hjWEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTEubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjYEmodnameN classnameNjBjE)}jH]jDc.devm_i2c_new_dummy_deviceasbuh1hhj5Eubj)}(h h]h }(hjuEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Eubj_)}(hjbh]h*}(hjEhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj5Eubj)}(hdevh]hdev}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1Eubj)}(hstruct i2c_adapter *adapterh](j)}(hj h]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjEmodnameN classnameNjBjE)}jH]jDc.devm_i2c_new_dummy_deviceasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj_)}(hjbh]h*}(hjEhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjEubj)}(hadapterh]hadapter}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1Eubj)}(h u16 addressh](h)}(hhh]j)}(hu16h]hu16}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjFmodnameN classnameNjBjE)}jH]jDc.devm_i2c_new_dummy_deviceasbuh1hhjFubj)}(h h]h }(hj:FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(haddressh]haddress}(hjHFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1Eubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhjDhMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjDhhhjDhMubah}(h]jDah ](j jeh"]h$]h&]jj)jhuh1jhjDhMhjDhhubj)}(hhh]h)}(h/return a new i2c device bound to a dummy driverh]h/return a new i2c device bound to a dummy driver}(hjrFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjoFhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jFj8jFj9j:j;uh1jhhhhhNhNubj=)}(hXn**Parameters** ``struct device *dev`` device the managed resource is bound to ``struct i2c_adapter *adapter`` the adapter managing the device ``u16 address`` seven bit address to be used **Context** can sleep **Description** This is the device-managed version of **i2c_new_dummy_device**. It returns the new i2c client or an ERR_PTR in case of an error.h](h)}(h**Parameters**h]jG)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjFubj])}(hhh](jb)}(h?``struct device *dev`` device the managed resource is bound to h](jh)}(h``struct device *dev``h]h)}(hjFh]hstruct device *dev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjFubj)}(hhh]h)}(h'device the managed resource is bound toh]h'device the managed resource is bound to}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jahjFhMhjFubjb)}(h@``struct i2c_adapter *adapter`` the adapter managing the device h](jh)}(h``struct i2c_adapter *adapter``h]h)}(hjFh]hstruct i2c_adapter *adapter}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjFubj)}(hhh]h)}(hthe adapter managing the deviceh]hthe adapter managing the device}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jahjGhMhjFubjb)}(h-``u16 address`` seven bit address to be used h](jh)}(h``u16 address``h]h)}(hj%Gh]h u16 address}(hj'GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#Gubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjGubj)}(hhh]h)}(hseven bit address to be usedh]hseven bit address to be used}(hj>GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:GhMhj;Gubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jahj:GhMhjFubeh}(h]h ]h"]h$]h&]uh1j\hjFubh)}(h **Context**h]jG)}(hj`Gh]hContext}(hjbGhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj^Gubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjFubh)}(h can sleeph]h can sleep}(hjvGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjFubh)}(h**Description**h]jG)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjGubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjFubh)}(hThis is the device-managed version of **i2c_new_dummy_device**. It returns the new i2c client or an ERR_PTR in case of an error.h](h&This is the device-managed version of }(hjGhhhNhNubjG)}(h**i2c_new_dummy_device**h]hi2c_new_dummy_device}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjGubhB. It returns the new i2c client or an ERR_PTR in case of an error.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_new_ancillary_device (C function)c.i2c_new_ancillary_devicehNtauh1jxhhhhhNhNubj)}(hhh](j)}(hlstruct i2c_client * i2c_new_ancillary_device (struct i2c_client *client, const char *name, u16 default_addr)h]j)}(hjstruct i2c_client *i2c_new_ancillary_device(struct i2c_client *client, const char *name, u16 default_addr)h](j)}(hj h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjGhMubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjGmodnameN classnameNjBjE)}jH]jK)}j>i2c_new_ancillary_devicesbc.i2c_new_ancillary_deviceasbuh1hhjGhhhjGhMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjGhMubj_)}(hjbh]h*}(hj,HhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjGhhhjGhMubj)}(hi2c_new_ancillary_deviceh]j)}(hjHh]hi2c_new_ancillary_device}(hj=HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Hubah}(h]h ](jjeh"]h$]h&]jjuh1jhjGhhhjGhMubj)}(h?(struct i2c_client *client, const char *name, u16 default_addr)h](j)}(hstruct i2c_client *clienth](j)}(hj h]hstruct}(hjXHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTHubj)}(h h]h }(hjeHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTHubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjvHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsHubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjxHmodnameN classnameNjBjE)}jH]jHc.i2c_new_ancillary_deviceasbuh1hhjTHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTHubj_)}(hjbh]h*}(hjHhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjTHubj)}(hclienth]hclient}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPHubj)}(hconst char *nameh](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hcharh]hchar}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj_)}(hjbh]h*}(hjHhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjHubj)}(hnameh]hname}(hj IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPHubj)}(hu16 default_addrh](h)}(hhh]j)}(hu16h]hu16}(hj(IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Iubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj*ImodnameN classnameNjBjE)}jH]jHc.i2c_new_ancillary_deviceasbuh1hhj!Iubj)}(h h]h }(hjFIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Iubj)}(h default_addrh]h default_addr}(hjTIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPHubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjGhhhjGhMubah}(h]jGah ](j jeh"]h$]h&]jj)jhuh1jhjGhMhjGhhubj)}(hhh]h)}(hQHelper to get the instantiated secondary address and create the associated deviceh]hQHelper to get the instantiated secondary address and create the associated device}(hj~IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj{Ihhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jIj8jIj9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct i2c_client *client`` Handle to the primary client ``const char *name`` Handle to specify which secondary address to get ``u16 default_addr`` Used as a fallback if no secondary address was specified **Context** can sleep **Description** I2C clients can be composed of multiple I2C slaves bound together in a single component. The I2C client driver then binds to the master I2C slave and needs to create I2C dummy clients to communicate with all the other slaves. This function creates and returns an I2C dummy client whose I2C address is retrieved from the platform firmware based on the given slave name. If no address is specified by the firmware default_addr is used. On DT-based platforms the address is retrieved from the "reg" property entry cell whose "reg-names" value matches the slave name. This returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h](h)}(h**Parameters**h]jG)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjIubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjIubj])}(hhh](jb)}(h;``struct i2c_client *client`` Handle to the primary client h](jh)}(h``struct i2c_client *client``h]h)}(hjIh]hstruct i2c_client *client}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjIubj)}(hhh]h)}(hHandle to the primary clienth]hHandle to the primary client}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jahjIhMhjIubjb)}(hF``const char *name`` Handle to specify which secondary address to get h](jh)}(h``const char *name``h]h)}(hjIh]hconst char *name}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjIubj)}(hhh]h)}(h0Handle to specify which secondary address to geth]h0Handle to specify which secondary address to get}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj JhMhjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jahj JhMhjIubjb)}(hN``u16 default_addr`` Used as a fallback if no secondary address was specified h](jh)}(h``u16 default_addr``h]h)}(hj1Jh]hu16 default_addr}(hj3JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/Jubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj+Jubj)}(hhh]h)}(h8Used as a fallback if no secondary address was specifiedh]h8Used as a fallback if no secondary address was specified}(hjJJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFJhMhjGJubah}(h]h ]h"]h$]h&]uh1jhj+Jubeh}(h]h ]h"]h$]h&]uh1jahjFJhMhjIubeh}(h]h ]h"]h$]h&]uh1j\hjIubh)}(h **Context**h]jG)}(hjlJh]hContext}(hjnJhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjjJubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjIubh)}(h can sleeph]h can sleep}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjIubh)}(h**Description**h]jG)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjJubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjIubh)}(hI2C clients can be composed of multiple I2C slaves bound together in a single component. The I2C client driver then binds to the master I2C slave and needs to create I2C dummy clients to communicate with all the other slaves.Nh]hI2C clients can be composed of multiple I2C slaves bound together in a single component. The I2C client driver then binds to the master I2C slave and needs to create I2C dummy clients to communicate with all the other slaves.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjIubh)}(hThis function creates and returns an I2C dummy client whose I2C address is retrieved from the platform firmware based on the given slave name. If no address is specified by the firmware default_addr is used.h]hThis function creates and returns an I2C dummy client whose I2C address is retrieved from the platform firmware based on the given slave name. If no address is specified by the firmware default_addr is used.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjIubh)}(hOn DT-based platforms the address is retrieved from the "reg" property entry cell whose "reg-names" value matches the slave name.h]hOn DT-based platforms the address is retrieved from the “reg” property entry cell whose “reg-names” value matches the slave name.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjIubh)}(hThis returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.h]hThis returns the new i2c client, which should be saved for later use with i2c_unregister_device(); or an ERR_PTR to describe the error.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_verify_adapter (C function)c.i2c_verify_adapterhNtauh1jxhhhhhNhNubj)}(hhh](j)}(h reftargetj&KmodnameN classnameNjBjE)}jH]jK)}j>i2c_verify_adaptersbc.i2c_verify_adapterasbuh1hhjKhhhjKhMuubj)}(h h]h }(hjEKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhjKhMuubj_)}(hjbh]h*}(hjSKhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjKhhhjKhMuubj)}(hi2c_verify_adapterh]j)}(hjBKh]hi2c_verify_adapter}(hjdKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Kubah}(h]h ](jjeh"]h$]h&]jjuh1jhjKhhhjKhMuubj)}(h(struct device *dev)h]j)}(hstruct device *devh](j)}(hj h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Kubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Kubh)}(hhh]j)}(hdeviceh]hdevice}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjKmodnameN classnameNjBjE)}jH]j@Kc.i2c_verify_adapterasbuh1hhj{Kubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Kubj_)}(hjbh]h*}(hjKhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj{Kubj)}(hdevh]hdev}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwKubah}(h]h ]h"]h$]h&]jjuh1jhjKhhhjKhMuubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjJhhhjKhMuubah}(h]jJah ](j jeh"]h$]h&]jj)jhuh1jhjKhMuhjJhhubj)}(hhh]h)}(h'return parameter as i2c_adapter or NULLh]h'return parameter as i2c_adapter or NULL}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMmhjKhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjKhMuubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jLj8jLj9j:j;uh1jhhhhhNhNubj=)}(hXu**Parameters** ``struct device *dev`` device, probably from some driver model iterator **Description** When traversing the driver model tree, perhaps using driver model iterators like **device_for_each_child\(\)**, you can't assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_adapter.h](h)}(h**Parameters**h]jG)}(hj"Lh]h Parameters}(hj$LhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj Lubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMqhjLubj])}(hhh]jb)}(hH``struct device *dev`` device, probably from some driver model iterator h](jh)}(h``struct device *dev``h]h)}(hjALh]hstruct device *dev}(hjCLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?Lubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMnhj;Lubj)}(hhh]h)}(h0device, probably from some driver model iteratorh]h0device, probably from some driver model iterator}(hjZLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVLhMnhjWLubah}(h]h ]h"]h$]h&]uh1jhj;Lubeh}(h]h ]h"]h$]h&]uh1jahjVLhMnhj8Lubah}(h]h ]h"]h$]h&]uh1j\hjLubh)}(h**Description**h]jG)}(hj|Lh]h Description}(hj~LhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjzLubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMphjLubh)}(hX When traversing the driver model tree, perhaps using driver model iterators like **device_for_each_child\(\)**, you can't assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_adapter.h](hQWhen traversing the driver model tree, perhaps using driver model iterators like }(hjLhhhNhNubjG)}(h**device_for_each_child\(\)**h]hdevice_for_each_child()}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjLubh, you can’t assume very much about the nodes you find. Use this function to avoid oopses caused by wrongly treating some non-I2C device as an i2c_adapter.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMphjLubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j)i2c_handle_smbus_host_notify (C function)c.i2c_handle_smbus_host_notifyhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hPint i2c_handle_smbus_host_notify (struct i2c_adapter *adap, unsigned short addr)h]j)}(hOint i2c_handle_smbus_host_notify(struct i2c_adapter *adap, unsigned short addr)h](j)}(hinth]hint}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhMubj)}(hi2c_handle_smbus_host_notifyh]j)}(hi2c_handle_smbus_host_notifyh]hi2c_handle_smbus_host_notify}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jhjLhhhjLhMubj)}(h/(struct i2c_adapter *adap, unsigned short addr)h](j)}(hstruct i2c_adapter *adaph](j)}(hj h]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Mubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Mubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hj.MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Mubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj0MmodnameN classnameNjBjE)}jH]jK)}j>jLsbc.i2c_handle_smbus_host_notifyasbuh1hhj Mubj)}(h h]h }(hjNMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Mubj_)}(hjbh]h*}(hj\MhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj Mubj)}(hadaph]hadap}(hjiMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hunsigned short addrh](j)}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Mubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Mubj)}(hshorth]hshort}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Mubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Mubj)}(haddrh]haddr}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhjLhhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjLhhhjLhMubah}(h]jLah ](j jeh"]h$]h&]jj)jhuh1jhjLhMhjLhhubj)}(hhh]h)}(h6Forward a Host Notify event to the correct I2C client.h]h6Forward a Host Notify event to the correct I2C client.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jMj8jMj9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct i2c_adapter *adap`` the adapter ``unsigned short addr`` the I2C address of the notifying device **Context** can't sleep **Description** Helper function to be called from an I2C bus driver's interrupt handler. It will schedule the Host Notify IRQ.h](h)}(h**Parameters**h]jG)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjNubj])}(hhh](jb)}(h)``struct i2c_adapter *adap`` the adapter h](jh)}(h``struct i2c_adapter *adap``h]h)}(hj%Nh]hstruct i2c_adapter *adap}(hj'NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#Nubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjNubj)}(hhh]h)}(h the adapterh]h the adapter}(hj>NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:NhMhj;Nubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jahj:NhMhjNubjb)}(h@``unsigned short addr`` the I2C address of the notifying device h](jh)}(h``unsigned short addr``h]h)}(hj^Nh]hunsigned short addr}(hj`NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\Nubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjXNubj)}(hhh]h)}(h'the I2C address of the notifying deviceh]h'the I2C address of the notifying device}(hjwNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsNhMhjtNubah}(h]h ]h"]h$]h&]uh1jhjXNubeh}(h]h ]h"]h$]h&]uh1jahjsNhMhjNubeh}(h]h ]h"]h$]h&]uh1j\hjNubh)}(h **Context**h]jG)}(hjNh]hContext}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjNubh)}(h can't sleeph]h can’t sleep}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjNubh)}(h**Description**h]jG)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjNubh)}(hnHelper function to be called from an I2C bus driver's interrupt handler. It will schedule the Host Notify IRQ.h]hpHelper function to be called from an I2C bus driver’s interrupt handler. It will schedule the Host Notify IRQ.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_add_adapter (C function)c.i2c_add_adapterhNtauh1jxhhhhhNhNubj)}(hhh](j)}(h1int i2c_add_adapter (struct i2c_adapter *adapter)h]j)}(h0int i2c_add_adapter(struct i2c_adapter *adapter)h](j)}(hinth]hint}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMqubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjOhMqubj)}(hi2c_add_adapterh]j)}(hi2c_add_adapterh]hi2c_add_adapter}(hj&OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Oubah}(h]h ](jjeh"]h$]h&]jjuh1jhjOhhhjOhMqubj)}(h(struct i2c_adapter *adapter)h]j)}(hstruct i2c_adapter *adapterh](j)}(hj h]hstruct}(hjBOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Oubj)}(h h]h }(hjOOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Oubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hj`OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Oubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjbOmodnameN classnameNjBjE)}jH]jK)}j>j(Osbc.i2c_add_adapterasbuh1hhj>Oubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Oubj_)}(hjbh]h*}(hjOhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj>Oubj)}(hadapterh]hadapter}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:Oubah}(h]h ]h"]h$]h&]jjuh1jhjOhhhjOhMqubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjNhhhjOhMqubah}(h]jNah ](j jeh"]h$]h&]jj)jhuh1jhjOhMqhjNhhubj)}(hhh]h)}(h+declare i2c adapter, use dynamic bus numberh]h+declare i2c adapter, use dynamic bus number}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMdhjOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjOhMqubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jOj8jOj9j:j;uh1jhhhhhNhNubj=)}(hX"**Parameters** ``struct i2c_adapter *adapter`` the adapter to add **Context** can sleep **Description** This routine is used to declare an I2C adapter when its bus number doesn't matter or when its bus number is specified by an dt alias. Examples of bases when the bus number doesn't matter: I2C adapters dynamically added by USB links or PCI plugin cards. When this returns zero, a new bus number was allocated and stored in adap->nr, and the specified adapter became available for clients. Otherwise, a negative errno value is returned.h](h)}(h**Parameters**h]jG)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjOubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhhjOubj])}(hhh]jb)}(h3``struct i2c_adapter *adapter`` the adapter to add h](jh)}(h``struct i2c_adapter *adapter``h]h)}(hjPh]hstruct i2c_adapter *adapter}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMehjPubj)}(hhh]h)}(hthe adapter to addh]hthe adapter to add}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMehjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jahjPhMehjOubah}(h]h ]h"]h$]h&]uh1j\hjOubh)}(h **Context**h]jG)}(hjAPh]hContext}(hjCPhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj?Pubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMghjOubh)}(h can sleeph]h can sleep}(hjWPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMfhjOubh)}(h**Description**h]jG)}(hjhPh]h Description}(hjjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjfPubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhhjOubh)}(hThis routine is used to declare an I2C adapter when its bus number doesn't matter or when its bus number is specified by an dt alias. Examples of bases when the bus number doesn't matter: I2C adapters dynamically added by USB links or PCI plugin cards.h]hXThis routine is used to declare an I2C adapter when its bus number doesn’t matter or when its bus number is specified by an dt alias. Examples of bases when the bus number doesn’t matter: I2C adapters dynamically added by USB links or PCI plugin cards.}(hj~PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMghjOubh)}(hWhen this returns zero, a new bus number was allocated and stored in adap->nr, and the specified adapter became available for clients. Otherwise, a negative errno value is returned.h]hWhen this returns zero, a new bus number was allocated and stored in adap->nr, and the specified adapter became available for clients. Otherwise, a negative errno value is returned.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMlhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_add_numbered_adapter (C function)c.i2c_add_numbered_adapterhNtauh1jxhhhhhNhNubj)}(hhh](j)}(h7int i2c_add_numbered_adapter (struct i2c_adapter *adap)h]j)}(h6int i2c_add_numbered_adapter(struct i2c_adapter *adap)h](j)}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjPhMubj)}(hi2c_add_numbered_adapterh]j)}(hi2c_add_numbered_adapterh]hi2c_add_numbered_adapter}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jhjPhhhjPhMubj)}(h(struct i2c_adapter *adap)h]j)}(hstruct i2c_adapter *adaph](j)}(hj h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjQmodnameN classnameNjBjE)}jH]jK)}j>jPsbc.i2c_add_numbered_adapterasbuh1hhjPubj)}(h h]h }(hj7QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj_)}(hjbh]h*}(hjEQhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjPubj)}(hadaph]hadap}(hjRQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjPhhhjPhMubah}(h]jPah ](j jeh"]h$]h&]jj)jhuh1jhjPhMhjPhhubj)}(hhh]h)}(h*declare i2c adapter, use static bus numberh]h*declare i2c adapter, use static bus number}(hj|QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjyQhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jQj8jQj9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct i2c_adapter *adap`` the adapter to register (with adap->nr initialized) **Context** can sleep **Description** This routine is used to declare an I2C adapter when its bus number matters. For example, use it for I2C adapters from system-on-chip CPUs, or otherwise built in to the system's mainboard, and where i2c_board_info is used to properly configure I2C devices. If the requested bus number is set to -1, then this function will behave identically to i2c_add_adapter, and will dynamically assign a bus number. If no devices have pre-been declared for this bus, then be sure to register the adapter before any dynamically allocated ones. Otherwise the required bus ID may not be available. When this returns zero, the specified adapter became available for clients using the bus number provided in adap->nr. Also, the table of I2C devices pre-declared using i2c_register_board_info() is scanned, and the appropriate driver model device nodes are created. Otherwise, a negative errno value is returned.h](h)}(h**Parameters**h]jG)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjQubj])}(hhh]jb)}(hQ``struct i2c_adapter *adap`` the adapter to register (with adap->nr initialized) h](jh)}(h``struct i2c_adapter *adap``h]h)}(hjQh]hstruct i2c_adapter *adap}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjQubj)}(hhh]h)}(h3the adapter to register (with adap->nr initialized)h]h3the adapter to register (with adap->nr initialized)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jahjQhMhjQubah}(h]h ]h"]h$]h&]uh1j\hjQubh)}(h **Context**h]jG)}(hjQh]hContext}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjQubh)}(h can sleeph]h can sleep}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjQubh)}(h**Description**h]jG)}(hjRh]h Description}(hj!RhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjQubh)}(hXThis routine is used to declare an I2C adapter when its bus number matters. For example, use it for I2C adapters from system-on-chip CPUs, or otherwise built in to the system's mainboard, and where i2c_board_info is used to properly configure I2C devices.h]hXThis routine is used to declare an I2C adapter when its bus number matters. For example, use it for I2C adapters from system-on-chip CPUs, or otherwise built in to the system’s mainboard, and where i2c_board_info is used to properly configure I2C devices.}(hj5RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjQubh)}(hIf the requested bus number is set to -1, then this function will behave identically to i2c_add_adapter, and will dynamically assign a bus number.h]hIf the requested bus number is set to -1, then this function will behave identically to i2c_add_adapter, and will dynamically assign a bus number.}(hjDRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjQubh)}(hIf no devices have pre-been declared for this bus, then be sure to register the adapter before any dynamically allocated ones. Otherwise the required bus ID may not be available.h]hIf no devices have pre-been declared for this bus, then be sure to register the adapter before any dynamically allocated ones. Otherwise the required bus ID may not be available.}(hjSRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjQubh)}(hX9When this returns zero, the specified adapter became available for clients using the bus number provided in adap->nr. Also, the table of I2C devices pre-declared using i2c_register_board_info() is scanned, and the appropriate driver model device nodes are created. Otherwise, a negative errno value is returned.h]hX9When this returns zero, the specified adapter became available for clients using the bus number provided in adap->nr. Also, the table of I2C devices pre-declared using i2c_register_board_info() is scanned, and the appropriate driver model device nodes are created. Otherwise, a negative errno value is returned.}(hjbRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_del_adapter (C function)c.i2c_del_adapterhNtauh1jxhhhhhNhNubj)}(hhh](j)}(h/void i2c_del_adapter (struct i2c_adapter *adap)h]j)}(h.void i2c_del_adapter(struct i2c_adapter *adap)h](j)}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjRhMubj)}(hi2c_del_adapterh]j)}(hi2c_del_adapterh]hi2c_del_adapter}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jhjRhhhjRhMubj)}(h(struct i2c_adapter *adap)h]j)}(hstruct i2c_adapter *adaph](j)}(hj h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjRmodnameN classnameNjBjE)}jH]jK)}j>jRsbc.i2c_del_adapterasbuh1hhjRubj)}(h h]h }(hj ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj_)}(hjbh]h*}(hjShhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjRubj)}(hadaph]hadap}(hj'ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubah}(h]h ]h"]h$]h&]jjuh1jhjRhhhjRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjRhhhjRhMubah}(h]jRah ](j jeh"]h$]h&]jj)jhuh1jhjRhMhjRhhubj)}(hhh]h)}(hunregister I2C adapterh]hunregister I2C adapter}(hjQShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjNShhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jiSj8jiSj9j:j;uh1jhhhhhNhNubj=)}(h**Parameters** ``struct i2c_adapter *adap`` the adapter being unregistered **Context** can sleep **Description** This unregisters an I2C adapter which was previously registered by **i2c_add_adapter** or **i2c_add_numbered_adapter**.h](h)}(h**Parameters**h]jG)}(hjsSh]h Parameters}(hjuShhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjqSubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjmSubj])}(hhh]jb)}(h<``struct i2c_adapter *adap`` the adapter being unregistered h](jh)}(h``struct i2c_adapter *adap``h]h)}(hjSh]hstruct i2c_adapter *adap}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjSubj)}(hhh]h)}(hthe adapter being unregisteredh]hthe adapter being unregistered}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jahjShMhjSubah}(h]h ]h"]h$]h&]uh1j\hjmSubh)}(h **Context**h]jG)}(hjSh]hContext}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjSubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjmSubh)}(h can sleeph]h can sleep}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjmSubh)}(h**Description**h]jG)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjSubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjmSubh)}(hwThis unregisters an I2C adapter which was previously registered by **i2c_add_adapter** or **i2c_add_numbered_adapter**.h](hCThis unregisters an I2C adapter which was previously registered by }(hj ThhhNhNubjG)}(h**i2c_add_adapter**h]hi2c_add_adapter}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj Tubh or }(hj ThhhNhNubjG)}(h**i2c_add_numbered_adapter**h]hi2c_add_numbered_adapter}(hj$ThhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj Tubh.}(hj ThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjmSubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j!devm_i2c_add_adapter (C function)c.devm_i2c_add_adapterhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hJint devm_i2c_add_adapter (struct device *dev, struct i2c_adapter *adapter)h]j)}(hIint devm_i2c_add_adapter(struct device *dev, struct i2c_adapter *adapter)h](j)}(hinth]hint}(hj]ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYThhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM/ubj)}(h h]h }(hjlThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYThhhjkThM/ubj)}(hdevm_i2c_add_adapterh]j)}(hdevm_i2c_add_adapterh]hdevm_i2c_add_adapter}(hj~ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzTubah}(h]h ](jjeh"]h$]h&]jjuh1jhjYThhhjkThM/ubj)}(h1(struct device *dev, struct i2c_adapter *adapter)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j)}(hdeviceh]hdevice}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjTmodnameN classnameNjBjE)}jH]jK)}j>jTsbc.devm_i2c_add_adapterasbuh1hhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj_)}(hjbh]h*}(hjThhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjTubj)}(hdevh]hdev}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hstruct i2c_adapter *adapterh](j)}(hj h]hstruct}(hj UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hj*UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Uubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj,UmodnameN classnameNjBjE)}jH]jTc.devm_i2c_add_adapterasbuh1hhjUubj)}(h h]h }(hjHUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj_)}(hjbh]h*}(hjVUhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjUubj)}(hadapterh]hadapter}(hjcUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubeh}(h]h ]h"]h$]h&]jjuh1jhjYThhhjkThM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjUThhhjkThM/ubah}(h]jPTah ](j jeh"]h$]h&]jj)jhuh1jhjkThM/hjRThhubj)}(hhh]h)}(h+device-managed variant of i2c_add_adapter()h]h+device-managed variant of i2c_add_adapter()}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM'hjUhhubah}(h]h ]h"]h$]h&]uh1jhjRThhhjkThM/ubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jUj8jUj9j:j;uh1jhhhhhNhNubj=)}(hX,**Parameters** ``struct device *dev`` managing device for adding this I2C adapter ``struct i2c_adapter *adapter`` the adapter to add **Context** can sleep **Description** Add adapter with dynamic bus number, same with i2c_add_adapter() but the adapter will be auto deleted on driver detach.h](h)}(h**Parameters**h]jG)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjUubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM+hjUubj])}(hhh](jb)}(hC``struct device *dev`` managing device for adding this I2C adapter h](jh)}(h``struct device *dev``h]h)}(hjUh]hstruct device *dev}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM(hjUubj)}(hhh]h)}(h+managing device for adding this I2C adapterh]h+managing device for adding this I2C adapter}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM(hjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jahjUhM(hjUubjb)}(h3``struct i2c_adapter *adapter`` the adapter to add h](jh)}(h``struct i2c_adapter *adapter``h]h)}(hjVh]hstruct i2c_adapter *adapter}(hj VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM)hjVubj)}(hhh]h)}(hthe adapter to addh]hthe adapter to add}(hj VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhM)hjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jahjVhM)hjUubeh}(h]h ]h"]h$]h&]uh1j\hjUubh)}(h **Context**h]jG)}(hjBVh]hContext}(hjDVhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj@Vubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM+hjUubh)}(h can sleeph]h can sleep}(hjXVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM*hjUubh)}(h**Description**h]jG)}(hjiVh]h Description}(hjkVhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjgVubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM,hjUubh)}(hwAdd adapter with dynamic bus number, same with i2c_add_adapter() but the adapter will be auto deleted on driver detach.h]hwAdd adapter with dynamic bus number, same with i2c_add_adapter() but the adapter will be auto deleted on driver detach.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM+hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_find_adapter_by_fwnode (C function)c.i2c_find_adapter_by_fwnodehNtauh1jxhhhhhNhNubj)}(hhh](j)}(hNstruct i2c_adapter * i2c_find_adapter_by_fwnode (struct fwnode_handle *fwnode)h]j)}(hLstruct i2c_adapter *i2c_find_adapter_by_fwnode(struct fwnode_handle *fwnode)h](j)}(hj h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMOubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhMOubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjVmodnameN classnameNjBjE)}jH]jK)}j>i2c_find_adapter_by_fwnodesbc.i2c_find_adapter_by_fwnodeasbuh1hhjVhhhjVhMOubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhMOubj_)}(hjbh]h*}(hjVhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjVhhhjVhMOubj)}(hi2c_find_adapter_by_fwnodeh]j)}(hjVh]hi2c_find_adapter_by_fwnode}(hj WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Wubah}(h]h ](jjeh"]h$]h&]jjuh1jhjVhhhjVhMOubj)}(h(struct fwnode_handle *fwnode)h]j)}(hstruct fwnode_handle *fwnodeh](j)}(hj h]hstruct}(hj(WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Wubj)}(h h]h }(hj5WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Wubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hjFWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCWubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjHWmodnameN classnameNjBjE)}jH]jVc.i2c_find_adapter_by_fwnodeasbuh1hhj$Wubj)}(h h]h }(hjdWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Wubj_)}(hjbh]h*}(hjrWhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj$Wubj)}(hfwnodeh]hfwnode}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Wubah}(h]h ]h"]h$]h&]jjuh1jhjVhhhjVhMOubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjVhhhjVhMOubah}(h]jVah ](j jeh"]h$]h&]jj)jhuh1jhjVhMOhjVhhubj)}(hhh]h)}(h"find an i2c_adapter for the fwnodeh]h"find an i2c_adapter for the fwnode}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMGhjWhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhMOubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jWj8jWj9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter ` **Description** Look up and return the :c:type:`struct i2c_adapter ` corresponding to the **fwnode**. If no adapter can be found, or **fwnode** is NULL, this returns NULL. The user must call put_device(:c:type:`adapter->dev `) once done with the i2c adapter.h](h)}(h**Parameters**h]jG)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjWubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMKhjWubj])}(hhh]jb)}(h``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter ` h](jh)}(h ``struct fwnode_handle *fwnode``h]h)}(hjWh]hstruct fwnode_handle *fwnode}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMHhjWubj)}(hhh]h)}(hn:c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter `h](h)}(h.:c:type:`struct fwnode_handle `h]h)}(hj Xh]hstruct fwnode_handle}(hj XhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjj fwnode_handleuh1hhjWhMHhjXubh corresponding to the }(hjXhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]h)}(hj,Xh]hstruct i2c_adapter}(hj.XhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhj*Xubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjj i2c_adapteruh1hhjWhMHhjXubeh}(h]h ]h"]h$]h&]uh1hhjWhMHhjXubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jahjWhMHhjWubah}(h]h ]h"]h$]h&]uh1j\hjWubh)}(h**Description**h]jG)}(hjcXh]h Description}(hjeXhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjaXubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMJhjWubh)}(hLook up and return the :c:type:`struct i2c_adapter ` corresponding to the **fwnode**. If no adapter can be found, or **fwnode** is NULL, this returns NULL.h](hLook up and return the }(hjyXhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]h)}(hjXh]hstruct i2c_adapter}(hjXhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjj i2c_adapteruh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMJhjyXubh corresponding to the }(hjyXhhhNhNubjG)}(h **fwnode**h]hfwnode}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjyXubh!. If no adapter can be found, or }(hjyXhhhNhNubjG)}(h **fwnode**h]hfwnode}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjyXubh is NULL, this returns NULL.}(hjyXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjXhMJhjWubh)}(h_The user must call put_device(:c:type:`adapter->dev `) once done with the i2c adapter.h](hThe user must call put_device(}(hjXhhhNhNubh)}(h :c:type:`adapter->dev `h]h)}(hjXh]h adapter->dev}(hjXhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjjadapteruh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMMhjXubh!) once done with the i2c adapter.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjXhMMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_get_adapter_by_fwnode (C function)c.i2c_get_adapter_by_fwnodehNtauh1jxhhhhhNhNubj)}(hhh](j)}(hMstruct i2c_adapter * i2c_get_adapter_by_fwnode (struct fwnode_handle *fwnode)h]j)}(hKstruct i2c_adapter *i2c_get_adapter_by_fwnode(struct fwnode_handle *fwnode)h](j)}(hj h]hstruct}(hj!YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMoubj)}(h h]h }(hj/YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhj.YhMoubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hj@YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Yubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjBYmodnameN classnameNjBjE)}jH]jK)}j>i2c_get_adapter_by_fwnodesbc.i2c_get_adapter_by_fwnodeasbuh1hhjYhhhj.YhMoubj)}(h h]h }(hjaYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhj.YhMoubj_)}(hjbh]h*}(hjoYhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjYhhhj.YhMoubj)}(hi2c_get_adapter_by_fwnodeh]j)}(hj^Yh]hi2c_get_adapter_by_fwnode}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Yubah}(h]h ](jjeh"]h$]h&]jjuh1jhjYhhhj.YhMoubj)}(h(struct fwnode_handle *fwnode)h]j)}(hstruct fwnode_handle *fwnodeh](j)}(hj h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjYmodnameN classnameNjBjE)}jH]j\Yc.i2c_get_adapter_by_fwnodeasbuh1hhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj_)}(hjbh]h*}(hjYhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjYubj)}(hfwnodeh]hfwnode}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhjYhhhj.YhMoubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjYhhhj.YhMoubah}(h]jYah ](j jeh"]h$]h&]jj)jhuh1jhj.YhMohjYhhubj)}(hhh]h)}(h"find an i2c_adapter for the fwnodeh]h"find an i2c_adapter for the fwnode}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMehjZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhj.YhMoubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j4Zj8j4Zj9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter ` **Description** Look up and return the :c:type:`struct i2c_adapter ` corresponding to the **fwnode**, and increment the adapter module's use count. If no adapter can be found, or **fwnode** is NULL, this returns NULL. The user must call i2c_put_adapter(adapter) once done with the i2c adapter. Note that this is different from i2c_find_adapter_by_node().h](h)}(h**Parameters**h]jG)}(hj>Zh]h Parameters}(hj@ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj` corresponding to the :c:type:`struct i2c_adapter ` h](jh)}(h ``struct fwnode_handle *fwnode``h]h)}(hj]Zh]hstruct fwnode_handle *fwnode}(hj_ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[Zubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMfhjWZubj)}(hhh]h)}(hn:c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter `h](h)}(h.:c:type:`struct fwnode_handle `h]h)}(hj|Zh]hstruct fwnode_handle}(hj~ZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjzZubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjj fwnode_handleuh1hhjrZhMfhjvZubh corresponding to the }(hjvZhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]h)}(hjZh]hstruct i2c_adapter}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjj i2c_adapteruh1hhjrZhMfhjvZubeh}(h]h ]h"]h$]h&]uh1hhjrZhMfhjsZubah}(h]h ]h"]h$]h&]uh1jhjWZubeh}(h]h ]h"]h$]h&]uh1jahjrZhMfhjTZubah}(h]h ]h"]h$]h&]uh1j\hj8Zubh)}(h**Description**h]jG)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjZubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhhj8Zubh)}(hLook up and return the :c:type:`struct i2c_adapter ` corresponding to the **fwnode**, and increment the adapter module's use count. If no adapter can be found, or **fwnode** is NULL, this returns NULL.h](hLook up and return the }(hjZhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]h)}(hjZh]hstruct i2c_adapter}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]refdocj refdomainjreftypetype refexplicitrefwarnjBjj i2c_adapteruh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhhjZubh corresponding to the }(hjZhhhNhNubjG)}(h **fwnode**h]hfwnode}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjZubhQ, and increment the adapter module’s use count. If no adapter can be found, or }(hjZhhhNhNubjG)}(h **fwnode**h]hfwnode}(hj*[hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjZubh is NULL, this returns NULL.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj[hMhhj8Zubh)}(hThe user must call i2c_put_adapter(adapter) once done with the i2c adapter. Note that this is different from i2c_find_adapter_by_node().h]hThe user must call i2c_put_adapter(adapter) once done with the i2c adapter. Note that this is different from i2c_find_adapter_by_node().}(hjB[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMlhj8Zubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j!i2c_parse_fw_timings (C function)c.i2c_parse_fw_timingshNtauh1jxhhhhhNhNubj)}(hhh](j)}(hXvoid i2c_parse_fw_timings (struct device *dev, struct i2c_timings *t, bool use_defaults)h]j)}(hWvoid i2c_parse_fw_timings(struct device *dev, struct i2c_timings *t, bool use_defaults)h](j)}(hvoidh]hvoid}(hjq[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm[hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm[hhhj[hMubj)}(hi2c_parse_fw_timingsh]j)}(hi2c_parse_fw_timingsh]hi2c_parse_fw_timings}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjm[hhhj[hMubj)}(h>(struct device *dev, struct i2c_timings *t, bool use_defaults)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(hhh]j)}(hdeviceh]hdevice}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj[modnameN classnameNjBjE)}jH]jK)}j>j[sbc.i2c_parse_fw_timingsasbuh1hhj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj_)}(hjbh]h*}(hj[hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj[ubj)}(hdevh]hdev}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hstruct i2c_timings *th](j)}(hj h]hstruct}(hj \hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hj-\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hhh]j)}(h i2c_timingsh]h i2c_timings}(hj>\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;\ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj@\modnameN classnameNjBjE)}jH]j[c.i2c_parse_fw_timingsasbuh1hhj\ubj)}(h h]h }(hj\\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj_)}(hjbh]h*}(hjj\hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj\ubj)}(hth]ht}(hjw\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hbool use_defaultsh](j)}(hj3h]hbool}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h use_defaultsh]h use_defaults}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhjm[hhhj[hMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hji[hhhj[hMubah}(h]jd[ah ](j jeh"]h$]h&]jj)jhuh1jhj[hMhjf[hhubj)}(hhh]h)}(h/get I2C related timing parameters from firmwareh]h/get I2C related timing parameters from firmware}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj\hhubah}(h]h ]h"]h$]h&]uh1jhjf[hhhj[hMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j\j8j\j9j:j;uh1jhhhhhNhNubj=)}(hXt**Parameters** ``struct device *dev`` The device to scan for I2C timing properties ``struct i2c_timings *t`` the i2c_timings struct to be filled with values ``bool use_defaults`` bool to use sane defaults derived from the I2C specification when properties are not found, otherwise don't update **Description** Scan the device for the generic I2C properties describing timing parameters for the signal and fill the given struct with the results. If a property was not found and use_defaults was true, then maximum timings are assumed which are derived from the I2C specification. If use_defaults is not used, the results will be as before, so drivers can apply their own defaults before calling this helper. The latter is mainly intended for avoiding regressions of existing drivers which want to switch to this function. New drivers almost always should use the defaults.h](h)}(h**Parameters**h]jG)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj\ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj\ubj])}(hhh](jb)}(hD``struct device *dev`` The device to scan for I2C timing properties h](jh)}(h``struct device *dev``h]h)}(hj]h]hstruct device *dev}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj]ubj)}(hhh]h)}(h,The device to scan for I2C timing propertiesh]h,The device to scan for I2C timing properties}(hj/]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+]hMhj,]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jahj+]hMhj ]ubjb)}(hJ``struct i2c_timings *t`` the i2c_timings struct to be filled with values h](jh)}(h``struct i2c_timings *t``h]h)}(hjO]h]hstruct i2c_timings *t}(hjQ]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM]ubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjI]ubj)}(hhh]h)}(h/the i2c_timings struct to be filled with valuesh]h/the i2c_timings struct to be filled with values}(hjh]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd]hMhje]ubah}(h]h ]h"]h$]h&]uh1jhjI]ubeh}(h]h ]h"]h$]h&]uh1jahjd]hMhj ]ubjb)}(h``bool use_defaults`` bool to use sane defaults derived from the I2C specification when properties are not found, otherwise don't update h](jh)}(h``bool use_defaults``h]h)}(hj]h]hbool use_defaults}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj]ubj)}(hhh]h)}(hrbool to use sane defaults derived from the I2C specification when properties are not found, otherwise don't updateh]htbool to use sane defaults derived from the I2C specification when properties are not found, otherwise don’t update}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jahj]hMhj ]ubeh}(h]h ]h"]h$]h&]uh1j\hj\ubh)}(h**Description**h]jG)}(hj]h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj]ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj\ubh)}(hX1Scan the device for the generic I2C properties describing timing parameters for the signal and fill the given struct with the results. If a property was not found and use_defaults was true, then maximum timings are assumed which are derived from the I2C specification. If use_defaults is not used, the results will be as before, so drivers can apply their own defaults before calling this helper. The latter is mainly intended for avoiding regressions of existing drivers which want to switch to this function. New drivers almost always should use the defaults.h]hX1Scan the device for the generic I2C properties describing timing parameters for the signal and fill the given struct with the results. If a property was not found and use_defaults was true, then maximum timings are assumed which are derived from the I2C specification. If use_defaults is not used, the results will be as before, so drivers can apply their own defaults before calling this helper. The latter is mainly intended for avoiding regressions of existing drivers which want to switch to this function. New drivers almost always should use the defaults.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_del_driver (C function)c.i2c_del_driverhNtauh1jxhhhhhNhNubj)}(hhh](j)}(h/void i2c_del_driver (struct i2c_driver *driver)h]j)}(h.void i2c_del_driver(struct i2c_driver *driver)h](j)}(hvoidh]hvoid}(hj ^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj^hMubj)}(hi2c_del_driverh]j)}(hi2c_del_driverh]hi2c_del_driver}(hj*^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&^ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj^hhhj^hMubj)}(h(struct i2c_driver *driver)h]j)}(hstruct i2c_driver *driverh](j)}(hj h]hstruct}(hjF^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB^ubj)}(h h]h }(hjS^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB^ubh)}(hhh]j)}(h i2c_driverh]h i2c_driver}(hjd^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja^ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjf^modnameN classnameNjBjE)}jH]jK)}j>j,^sbc.i2c_del_driverasbuh1hhjB^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB^ubj_)}(hjbh]h*}(hj^hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjB^ubj)}(hdriverh]hdriver}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>^ubah}(h]h ]h"]h$]h&]jjuh1jhj^hhhj^hMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj^hhhj^hMubah}(h]j]ah ](j jeh"]h$]h&]jj)jhuh1jhj^hMhj]hhubj)}(hhh]h)}(hunregister I2C driverh]hunregister I2C driver}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj^hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j^j8j^j9j:j;uh1jhhhhhNhNubj=)}(he**Parameters** ``struct i2c_driver *driver`` the driver being unregistered **Context** can sleeph](h)}(h**Parameters**h]jG)}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj^ubj])}(hhh]jb)}(h<``struct i2c_driver *driver`` the driver being unregistered h](jh)}(h``struct i2c_driver *driver``h]h)}(hj _h]hstruct i2c_driver *driver}(hj _hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj_ubj)}(hhh]h)}(hthe driver being unregisteredh]hthe driver being unregistered}(hj#_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj _ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jahj_hMhj_ubah}(h]h ]h"]h$]h&]uh1j\hj^ubh)}(h **Context**h]jG)}(hjE_h]hContext}(hjG_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjC_ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj^ubh)}(h can sleeph]h can sleep}(hj[_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j__i2c_transfer (C function)c.__i2c_transferhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hLint __i2c_transfer (struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h]j)}(hKint __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h](j)}(hinth]hint}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhj_hMubj)}(h__i2c_transferh]j)}(h__i2c_transferh]h__i2c_transfer}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj_hhhj_hMubj)}(h9(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h](j)}(hstruct i2c_adapter *adaph](j)}(hj h]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj_modnameN classnameNjBjE)}jH]jK)}j>j_sbc.__i2c_transferasbuh1hhj_ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj_)}(hjbh]h*}(hj`hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj_ubj)}(hadaph]hadap}(hj `hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hstruct i2c_msg *msgsh](j)}(hj h]hstruct}(hj9`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5`ubj)}(h h]h }(hjF`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5`ubh)}(hhh]j)}(hi2c_msgh]hi2c_msg}(hjW`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT`ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjY`modnameN classnameNjBjE)}jH]j`c.__i2c_transferasbuh1hhj5`ubj)}(h h]h }(hju`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5`ubj_)}(hjbh]h*}(hj`hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj5`ubj)}(hmsgsh]hmsgs}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hint numh](j)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hnumh]hnum}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhj_hhhj_hMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj_hhhj_hMubah}(h]j}_ah ](j jeh"]h$]h&]jj)jhuh1jhj_hMhj_hhubj)}(hhh]h)}(hunlocked flavor of i2c_transferh]hunlocked flavor of i2c_transfer}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj`hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj_hMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jaj8jaj9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct i2c_adapter *adap`` Handle to I2C bus ``struct i2c_msg *msgs`` One or more messages to execute before STOP is issued to terminate the operation; each message begins with a START. ``int num`` Number of messages to be executed. **Description** Returns negative errno, else the number of messages executed. Adapter lock must be held when calling this function. No debug logging takes place.h](h)}(h**Parameters**h]jG)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj aubj])}(hhh](jb)}(h/``struct i2c_adapter *adap`` Handle to I2C bus h](jh)}(h``struct i2c_adapter *adap``h]h)}(hj0ah]hstruct i2c_adapter *adap}(hj2ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.aubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj*aubj)}(hhh]h)}(hHandle to I2C bush]hHandle to I2C bus}(hjIahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEahMhjFaubah}(h]h ]h"]h$]h&]uh1jhj*aubeh}(h]h ]h"]h$]h&]uh1jahjEahMhj'aubjb)}(h``struct i2c_msg *msgs`` One or more messages to execute before STOP is issued to terminate the operation; each message begins with a START. h](jh)}(h``struct i2c_msg *msgs``h]h)}(hjiah]hstruct i2c_msg *msgs}(hjkahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgaubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjcaubj)}(hhh]h)}(hsOne or more messages to execute before STOP is issued to terminate the operation; each message begins with a START.h]hsOne or more messages to execute before STOP is issued to terminate the operation; each message begins with a START.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjaubah}(h]h ]h"]h$]h&]uh1jhjcaubeh}(h]h ]h"]h$]h&]uh1jahj~ahMhj'aubjb)}(h/``int num`` Number of messages to be executed. h](jh)}(h ``int num``h]h)}(hjah]hint num}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjaubj)}(hhh]h)}(h"Number of messages to be executed.h]h"Number of messages to be executed.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jahjahMhj'aubeh}(h]h ]h"]h$]h&]uh1j\hj aubh)}(h**Description**h]jG)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj aubh)}(h=Returns negative errno, else the number of messages executed.h]h=Returns negative errno, else the number of messages executed.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj aubh)}(hSAdapter lock must be held when calling this function. No debug logging takes place.h]hSAdapter lock must be held when calling this function. No debug logging takes place.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj aubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_transfer (C function)c.i2c_transferhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hJint i2c_transfer (struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h]j)}(hIint i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h](j)}(hinth]hint}(hj2bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.bhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hjAbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.bhhhj@bhMubj)}(h i2c_transferh]j)}(h i2c_transferh]h i2c_transfer}(hjSbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjObubah}(h]h ](jjeh"]h$]h&]jjuh1jhj.bhhhj@bhMubj)}(h9(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h](j)}(hstruct i2c_adapter *adaph](j)}(hj h]hstruct}(hjobhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkbubj)}(h h]h }(hj|bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkbubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjbmodnameN classnameNjBjE)}jH]jK)}j>jUbsbc.i2c_transferasbuh1hhjkbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkbubj_)}(hjbh]h*}(hjbhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjkbubj)}(hadaph]hadap}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgbubj)}(hstruct i2c_msg *msgsh](j)}(hj h]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j)}(hi2c_msgh]hi2c_msg}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjcmodnameN classnameNjBjE)}jH]jbc.i2c_transferasbuh1hhjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj_)}(hjbh]h*}(hj+chhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjbubj)}(hmsgsh]hmsgs}(hj8chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgbubj)}(hint numh](j)}(hinth]hint}(hjQchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMcubj)}(h h]h }(hj_chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMcubj)}(hnumh]hnum}(hjmchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgbubeh}(h]h ]h"]h$]h&]jjuh1jhj.bhhhj@bhMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj*bhhhj@bhMubah}(h]j%bah ](j jeh"]h$]h&]jj)jhuh1jhj@bhMhj'bhhubj)}(hhh]h)}(h(execute a single or combined I2C messageh]h(execute a single or combined I2C message}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhj'bhhhj@bhMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jcj8jcj9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct i2c_adapter *adap`` Handle to I2C bus ``struct i2c_msg *msgs`` One or more messages to execute before STOP is issued to terminate the operation; each message begins with a START. ``int num`` Number of messages to be executed. **Description** Returns negative errno, else the number of messages executed. Note that there is no requirement that each message be sent to the same slave address, although that is the most common model.h](h)}(h**Parameters**h]jG)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjcubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjcubj])}(hhh](jb)}(h/``struct i2c_adapter *adap`` Handle to I2C bus h](jh)}(h``struct i2c_adapter *adap``h]h)}(hjch]hstruct i2c_adapter *adap}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjcubj)}(hhh]h)}(hHandle to I2C bush]hHandle to I2C bus}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jahjchMhjcubjb)}(h``struct i2c_msg *msgs`` One or more messages to execute before STOP is issued to terminate the operation; each message begins with a START. h](jh)}(h``struct i2c_msg *msgs``h]h)}(hjdh]hstruct i2c_msg *msgs}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj dubj)}(hhh]h)}(hsOne or more messages to execute before STOP is issued to terminate the operation; each message begins with a START.h]hsOne or more messages to execute before STOP is issued to terminate the operation; each message begins with a START.}(hj*dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj'dubah}(h]h ]h"]h$]h&]uh1jhj dubeh}(h]h ]h"]h$]h&]uh1jahj&dhMhjcubjb)}(h/``int num`` Number of messages to be executed. h](jh)}(h ``int num``h]h)}(hjKdh]hint num}(hjMdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIdubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjEdubj)}(hhh]h)}(h"Number of messages to be executed.h]h"Number of messages to be executed.}(hjddhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`dhMhjadubah}(h]h ]h"]h$]h&]uh1jhjEdubeh}(h]h ]h"]h$]h&]uh1jahj`dhMhjcubeh}(h]h ]h"]h$]h&]uh1j\hjcubh)}(h**Description**h]jG)}(hjdh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjdubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjcubh)}(h=Returns negative errno, else the number of messages executed.h]h=Returns negative errno, else the number of messages executed.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjcubh)}(h~Note that there is no requirement that each message be sent to the same slave address, although that is the most common model.h]h~Note that there is no requirement that each message be sent to the same slave address, although that is the most common model.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_transfer_buffer_flags (C function)c.i2c_transfer_buffer_flagshNtauh1jxhhhhhNhNubj)}(hhh](j)}(h`int i2c_transfer_buffer_flags (const struct i2c_client *client, char *buf, int count, u16 flags)h]j)}(h_int i2c_transfer_buffer_flags(const struct i2c_client *client, char *buf, int count, u16 flags)h](j)}(hinth]hint}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhM ubj)}(hi2c_transfer_buffer_flagsh]j)}(hi2c_transfer_buffer_flagsh]hi2c_transfer_buffer_flags}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jhjdhhhjdhM ubj)}(hB(const struct i2c_client *client, char *buf, int count, u16 flags)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hj$ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hj h]hstruct}(hj2ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hj?ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjPehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMeubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjRemodnameN classnameNjBjE)}jH]jK)}j>jdsbc.i2c_transfer_buffer_flagsasbuh1hhjeubj)}(h h]h }(hjpehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj_)}(hjbh]h*}(hj~ehhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjeubj)}(hclienth]hclient}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(h char *bufh](j)}(hcharh]hchar}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj_)}(hjbh]h*}(hjehhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjeubj)}(hbufh]hbuf}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(h int counth](j)}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hcounth]hcount}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(h u16 flagsh](h)}(hhh]j)}(hu16h]hu16}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj fmodnameN classnameNjBjE)}jH]jlec.i2c_transfer_buffer_flagsasbuh1hhjfubj)}(h h]h }(hj reftargetjXhmodnameN classnameNjBjE)}jH]jK)}j>jhsbc.i2c_get_device_idasbuh1hhjhubj)}(h h]h }(hjvhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj_)}(hjbh]h*}(hjhhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjhubj)}(hclienth]hclient}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(hstruct i2c_device_identity *idh](j)}(hj h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j)}(hi2c_device_identityh]hi2c_device_identity}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjhmodnameN classnameNjBjE)}jH]jrhc.i2c_get_device_idasbuh1hhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj_)}(hjbh]h*}(hjhhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjhubj)}(hidh]hid}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjghM8 ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjghhhjghM8 ubah}(h]jgah ](j jeh"]h$]h&]jj)jhuh1jhjghM8 hjghhubj)}(hhh]h)}(h6get manufacturer, part id and die revision of a deviceh]h6get manufacturer, part id and die revision of a device}(hj+ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM2 hj(ihhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghM8 ubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jCij8jCij9j:j;uh1jhhhhhNhNubj=)}(h**Parameters** ``const struct i2c_client *client`` The device to query ``struct i2c_device_identity *id`` The queried information **Description** Returns negative errno on error, zero on success.h](h)}(h**Parameters**h]jG)}(hjMih]h Parameters}(hjOihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjKiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM6 hjGiubj])}(hhh](jb)}(h8``const struct i2c_client *client`` The device to query h](jh)}(h#``const struct i2c_client *client``h]h)}(hjlih]hconst struct i2c_client *client}(hjnihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjiubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM3 hjfiubj)}(hhh]h)}(hThe device to queryh]hThe device to query}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM3 hjiubah}(h]h ]h"]h$]h&]uh1jhjfiubeh}(h]h ]h"]h$]h&]uh1jahjihM3 hjciubjb)}(h;``struct i2c_device_identity *id`` The queried information h](jh)}(h"``struct i2c_device_identity *id``h]h)}(hjih]hstruct i2c_device_identity *id}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM4 hjiubj)}(hhh]h)}(hThe queried informationh]hThe queried information}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM4 hjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jahjihM4 hjciubeh}(h]h ]h"]h$]h&]uh1j\hjGiubh)}(h**Description**h]jG)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM6 hjGiubh)}(h1Returns negative errno on error, zero on success.h]h1Returns negative errno on error, zero on success.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM6 hjGiubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_client_get_device_id (C function)c.i2c_client_get_device_idhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hWconst struct i2c_device_id * i2c_client_get_device_id (const struct i2c_client *client)h]j)}(hUconst struct i2c_device_id *i2c_client_get_device_id(const struct i2c_client *client)h](j)}(hjh]hconst}(hj%jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!jhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMV ubj)}(h h]h }(hj3jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!jhhhj2jhMV ubj)}(hj h]hstruct}(hjAjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!jhhhj2jhMV ubj)}(h h]h }(hjNjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!jhhhj2jhMV ubh)}(hhh]j)}(h i2c_device_idh]h i2c_device_id}(hj_jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\jubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjajmodnameN classnameNjBjE)}jH]jK)}j>i2c_client_get_device_idsbc.i2c_client_get_device_idasbuh1hhj!jhhhj2jhMV ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!jhhhj2jhMV ubj_)}(hjbh]h*}(hjjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj!jhhhj2jhMV ubj)}(hi2c_client_get_device_idh]j)}(hj}jh]hi2c_client_get_device_id}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj!jhhhj2jhMV ubj)}(h!(const struct i2c_client *client)h]j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hj h]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjjmodnameN classnameNjBjE)}jH]j{jc.i2c_client_get_device_idasbuh1hhjjubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj_)}(hjbh]h*}(hjkhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjjubj)}(hclienth]hclient}(hj,khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubah}(h]h ]h"]h$]h&]jjuh1jhj!jhhhj2jhMV ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjjhhhj2jhMV ubah}(h]jjah ](j jeh"]h$]h&]jj)jhuh1jhj2jhMV hjjhhubj)}(hhh]h)}(h,get the driver match table entry of a deviceh]h,get the driver match table entry of a device}(hjVkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMQ hjSkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhj2jhMV ubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jnkj8jnkj9j:j;uh1jhhhhhNhNubj=)}(h**Parameters** ``const struct i2c_client *client`` the device to query. The device must be bound to a driver **Description** Returns a pointer to the matching entry if found, NULL otherwise.h](h)}(h**Parameters**h]jG)}(hjxkh]h Parameters}(hjzkhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjvkubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMU hjrkubj])}(hhh]jb)}(h^``const struct i2c_client *client`` the device to query. The device must be bound to a driver h](jh)}(h#``const struct i2c_client *client``h]h)}(hjkh]hconst struct i2c_client *client}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMR hjkubj)}(hhh]h)}(h9the device to query. The device must be bound to a driverh]h9the device to query. The device must be bound to a driver}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMR hjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jahjkhMR hjkubah}(h]h ]h"]h$]h&]uh1j\hjrkubh)}(h**Description**h]jG)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjkubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMT hjrkubh)}(hAReturns a pointer to the matching entry if found, NULL otherwise.h]hAReturns a pointer to the matching entry if found, NULL otherwise.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMT hjrkubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_get_dma_safe_msg_buf (C function)c.i2c_get_dma_safe_msg_bufhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hKu8 * i2c_get_dma_safe_msg_buf (struct i2c_msg *msg, unsigned int threshold)h]j)}(hIu8 *i2c_get_dma_safe_msg_buf(struct i2c_msg *msg, unsigned int threshold)h](h)}(hhh]j)}(hu8h]hu8}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjlmodnameN classnameNjBjE)}jH]jK)}j>i2c_get_dma_safe_msg_bufsbc.i2c_get_dma_safe_msg_bufasbuh1hhjlhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMS ubj)}(h h]h }(hj reftargetjlmodnameN classnameNjBjE)}jH]j6lc.i2c_get_dma_safe_msg_bufasbuh1hhjrlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrlubj_)}(hjbh]h*}(hjlhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjrlubj)}(hmsgh]hmsg}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnlubj)}(hunsigned int thresholdh](j)}(hunsignedh]hunsigned}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hinth]hint}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h thresholdh]h threshold}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnlubeh}(h]h ]h"]h$]h&]jjuh1jhjlhhhj;lhMS ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjlhhhj;lhMS ubah}(h]j lah ](j jeh"]h$]h&]jj)jhuh1jhj;lhMS hj lhhubj)}(hhh]h)}(h+get a DMA safe buffer for the given i2c_msgh]h+get a DMA safe buffer for the given i2c_msg}(hjHmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMH hjEmhhubah}(h]h ]h"]h$]h&]uh1jhj lhhhj;lhMS ubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j`mj8j`mj9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``struct i2c_msg *msg`` the message to be checked ``unsigned int threshold`` the minimum number of bytes for which using DMA makes sense. Should at least be 1. **Return** NULL if a DMA safe buffer was not obtained. Use msg->buf with PIO. Or a valid pointer to be used with DMA. After use, release it by calling i2c_put_dma_safe_msg_buf(). **Description** This function must only be called from process context!h](h)}(h**Parameters**h]jG)}(hjjmh]h Parameters}(hjlmhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhmubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chML hjdmubj])}(hhh](jb)}(h2``struct i2c_msg *msg`` the message to be checked h](jh)}(h``struct i2c_msg *msg``h]h)}(hjmh]hstruct i2c_msg *msg}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMI hjmubj)}(hhh]h)}(hthe message to be checkedh]hthe message to be checked}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMI hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jahjmhMI hjmubjb)}(hn``unsigned int threshold`` the minimum number of bytes for which using DMA makes sense. Should at least be 1. h](jh)}(h``unsigned int threshold``h]h)}(hjmh]hunsigned int threshold}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMK hjmubj)}(hhh]h)}(hRthe minimum number of bytes for which using DMA makes sense. Should at least be 1.h]hRthe minimum number of bytes for which using DMA makes sense. Should at least be 1.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMJ hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jahjmhMK hjmubeh}(h]h ]h"]h$]h&]uh1j\hjdmubh)}(h **Return**h]jG)}(hjmh]hReturn}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjmubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMM hjdmubj])}(hhh]jb)}(hNULL if a DMA safe buffer was not obtained. Use msg->buf with PIO. Or a valid pointer to be used with DMA. After use, release it by calling i2c_put_dma_safe_msg_buf(). h](jh)}(hBNULL if a DMA safe buffer was not obtained. Use msg->buf with PIO.h]hBNULL if a DMA safe buffer was not obtained. Use msg->buf with PIO.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMO hjnubj)}(hhh]h)}(hdOr a valid pointer to be used with DMA. After use, release it by calling i2c_put_dma_safe_msg_buf().h]hdOr a valid pointer to be used with DMA. After use, release it by calling i2c_put_dma_safe_msg_buf().}(hj-nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMN hj*nubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jahj)nhMO hjnubah}(h]h ]h"]h$]h&]uh1j\hjdmubh)}(h**Description**h]jG)}(hjPnh]h Description}(hjRnhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjNnubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMQ hjdmubh)}(h7This function must only be called from process context!h]h7This function must only be called from process context!}(hjfnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMQ hjdmubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_put_dma_safe_msg_buf (C function)c.i2c_put_dma_safe_msg_bufhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hJvoid i2c_put_dma_safe_msg_buf (u8 *buf, struct i2c_msg *msg, bool xferred)h]j)}(hIvoid i2c_put_dma_safe_msg_buf(u8 *buf, struct i2c_msg *msg, bool xferred)h](j)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMo ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhMo ubj)}(hi2c_put_dma_safe_msg_bufh]j)}(hi2c_put_dma_safe_msg_bufh]hi2c_put_dma_safe_msg_buf}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jhjnhhhjnhMo ubj)}(h,(u8 *buf, struct i2c_msg *msg, bool xferred)h](j)}(hu8 *bufh](h)}(hhh]j)}(hu8h]hu8}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjnmodnameN classnameNjBjE)}jH]jK)}j>jnsbc.i2c_put_dma_safe_msg_bufasbuh1hhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj_)}(hjbh]h*}(hjohhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjnubj)}(hbufh]hbuf}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct i2c_msg *msgh](j)}(hj h]hstruct}(hj)ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%oubj)}(h h]h }(hj6ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%oubh)}(hhh]j)}(hi2c_msgh]hi2c_msg}(hjGohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDoubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjIomodnameN classnameNjBjE)}jH]jnc.i2c_put_dma_safe_msg_bufasbuh1hhj%oubj)}(h h]h }(hjeohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%oubj_)}(hjbh]h*}(hjsohhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj%oubj)}(hmsgh]hmsg}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(h bool xferredh](j)}(hj3h]hbool}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hxferredh]hxferred}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhjnhhhjnhMo ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjnhhhjnhMo ubah}(h]jnah ](j jeh"]h$]h&]jj)jhuh1jhjnhMo hjnhhubj)}(hhh]h)}(h-release DMA safe buffer and sync with i2c_msgh]h-release DMA safe buffer and sync with i2c_msg}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMj hjohhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhMo ubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7joj8joj9j:j;uh1jhhhhhNhNubj=)}(h**Parameters** ``u8 *buf`` the buffer obtained from i2c_get_dma_safe_msg_buf(). May be NULL. ``struct i2c_msg *msg`` the message which the buffer corresponds to ``bool xferred`` bool saying if the message was transferredh](h)}(h**Parameters**h]jG)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjoubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMn hjoubj])}(hhh](jb)}(hN``u8 *buf`` the buffer obtained from i2c_get_dma_safe_msg_buf(). May be NULL. h](jh)}(h ``u8 *buf``h]h)}(hjph]hu8 *buf}(hj!phhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMk hjpubj)}(hhh]h)}(hAthe buffer obtained from i2c_get_dma_safe_msg_buf(). May be NULL.h]hAthe buffer obtained from i2c_get_dma_safe_msg_buf(). May be NULL.}(hj8phhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4phMk hj5pubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jahj4phMk hjpubjb)}(hD``struct i2c_msg *msg`` the message which the buffer corresponds to h](jh)}(h``struct i2c_msg *msg``h]h)}(hjXph]hstruct i2c_msg *msg}(hjZphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVpubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMl hjRpubj)}(hhh]h)}(h+the message which the buffer corresponds toh]h+the message which the buffer corresponds to}(hjqphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmphMl hjnpubah}(h]h ]h"]h$]h&]uh1jhjRpubeh}(h]h ]h"]h$]h&]uh1jahjmphMl hjpubjb)}(h;``bool xferred`` bool saying if the message was transferredh](jh)}(h``bool xferred``h]h)}(hjph]h bool xferred}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&]uh1jghZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMn hjpubj)}(hhh]h)}(h*bool saying if the message was transferredh]h*bool saying if the message was transferred}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMm hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jahjphMn hjpubeh}(h]h ]h"]h$]h&]uh1j\hjoubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_smbus_pec (C function)c.i2c_smbus_pechNtauh1jxhhhhhNhNubj)}(hhh](j)}(h.u8 i2c_smbus_pec (u8 crc, u8 *p, size_t count)h]j)}(h-u8 i2c_smbus_pec(u8 crc, u8 *p, size_t count)h](h)}(hhh]j)}(hu8h]hu8}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjpmodnameN classnameNjBjE)}jH]jK)}j> i2c_smbus_pecsbc.i2c_smbus_pecasbuh1hhjphhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK1ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjqhK1ubj)}(h i2c_smbus_pech]j)}(hj qh]h i2c_smbus_pec}(hj"qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jhjphhhjqhK1ubj)}(h(u8 crc, u8 *p, size_t count)h](j)}(hu8 crch](h)}(hhh]j)}(hu8h]hu8}(hj@qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=qubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjBqmodnameN classnameNjBjE)}jH]j qc.i2c_smbus_pecasbuh1hhj9qubj)}(h h]h }(hj^qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9qubj)}(hcrch]hcrc}(hjlqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5qubj)}(hu8 *ph](h)}(hhh]j)}(hu8h]hu8}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjqmodnameN classnameNjBjE)}jH]j qc.i2c_smbus_pecasbuh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj_)}(hjbh]h*}(hjqhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjqubj)}(hjkh]hp}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5qubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjqmodnameN classnameNjBjE)}jH]j qc.i2c_smbus_pecasbuh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hcounth]hcount}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5qubeh}(h]h ]h"]h$]h&]jjuh1jhjphhhjqhK1ubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjphhhjqhK1ubah}(h]jpah ](j jeh"]h$]h&]jj)jhuh1jhjqhK1hjphhubj)}(hhh]h)}(h0Incremental CRC8 over the given input data arrayh]h0Incremental CRC8 over the given input data array}(hj2rhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK*hj/rhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjqhK1ubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jJrj8jJrj9j:j;uh1jhhhhhNhNubj=)}(h**Parameters** ``u8 crc`` previous return crc8 value ``u8 *p`` pointer to data buffer. ``size_t count`` number of bytes in data buffer. **Description** Incremental CRC8 over count bytes in the array pointed to by ph](h)}(h**Parameters**h]jG)}(hjTrh]h Parameters}(hjVrhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjRrubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK.hjNrubj])}(hhh](jb)}(h&``u8 crc`` previous return crc8 value h](jh)}(h ``u8 crc``h]h)}(hjsrh]hu8 crc}(hjurhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqrubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK+hjmrubj)}(hhh]h)}(hprevious return crc8 valueh]hprevious return crc8 value}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhK+hjrubah}(h]h ]h"]h$]h&]uh1jhjmrubeh}(h]h ]h"]h$]h&]uh1jahjrhK+hjjrubjb)}(h"``u8 *p`` pointer to data buffer. h](jh)}(h ``u8 *p``h]h)}(hjrh]hu8 *p}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK,hjrubj)}(hhh]h)}(hpointer to data buffer.h]hpointer to data buffer.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhK,hjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jahjrhK,hjjrubjb)}(h1``size_t count`` number of bytes in data buffer. h](jh)}(h``size_t count``h]h)}(hjrh]h size_t count}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK-hjrubj)}(hhh]h)}(hnumber of bytes in data buffer.h]hnumber of bytes in data buffer.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhK-hjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jahjrhK-hjjrubeh}(h]h ]h"]h$]h&]uh1j\hjNrubh)}(h**Description**h]jG)}(hj sh]h Description}(hj"shhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjsubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK/hjNrubh)}(h>Incremental CRC8 over count bytes in the array pointed to by ph]h>Incremental CRC8 over count bytes in the array pointed to by p}(hj6shhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK/hjNrubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j i2c_smbus_read_byte (C function)c.i2c_smbus_read_bytehNtauh1jxhhhhhNhNubj)}(hhh](j)}(h9s32 i2c_smbus_read_byte (const struct i2c_client *client)h]j)}(h8s32 i2c_smbus_read_byte(const struct i2c_client *client)h](h)}(hhh]j)}(hs32h]hs32}(hjhshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjesubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjjsmodnameN classnameNjBjE)}jH]jK)}j>i2c_smbus_read_bytesbc.i2c_smbus_read_byteasbuh1hhjashhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKfubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjashhhjshKfubj)}(hi2c_smbus_read_byteh]j)}(hjsh]hi2c_smbus_read_byte}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jhjashhhjshKfubj)}(h!(const struct i2c_client *client)h]j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hj h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjsmodnameN classnameNjBjE)}jH]jsc.i2c_smbus_read_byteasbuh1hhjsubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj_)}(hjbh]h*}(hjthhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjsubj)}(hclienth]hclient}(hj)thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhjashhhjshKfubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj]shhhjshKfubah}(h]jXsah ](j jeh"]h$]h&]jj)jhuh1jhjshKfhjZshhubj)}(hhh]h)}(hSMBus "receive byte" protocolh]h!SMBus “receive byte” protocol}(hjSthhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK`hjPthhubah}(h]h ]h"]h$]h&]uh1jhjZshhhjshKfubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jktj8jktj9j:j;uh1jhhhhhNhNubj=)}(h**Parameters** ``const struct i2c_client *client`` Handle to slave device **Description** This executes the SMBus "receive byte" protocol, returning negative errno else the byte received from the device.h](h)}(h**Parameters**h]jG)}(hjuth]h Parameters}(hjwthhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjstubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKdhjotubj])}(hhh]jb)}(h;``const struct i2c_client *client`` Handle to slave device h](jh)}(h#``const struct i2c_client *client``h]h)}(hjth]hconst struct i2c_client *client}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKahjtubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKahjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jahjthKahjtubah}(h]h ]h"]h$]h&]uh1j\hjotubh)}(h**Description**h]jG)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjtubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKchjotubh)}(hqThis executes the SMBus "receive byte" protocol, returning negative errno else the byte received from the device.h]huThis executes the SMBus “receive byte” protocol, returning negative errno else the byte received from the device.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKchjotubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j!i2c_smbus_write_byte (C function)c.i2c_smbus_write_bytehNtauh1jxhhhhhNhNubj)}(hhh](j)}(hDs32 i2c_smbus_write_byte (const struct i2c_client *client, u8 value)h]j)}(hCs32 i2c_smbus_write_byte(const struct i2c_client *client, u8 value)h](h)}(hhh]j)}(hs32h]hs32}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjumodnameN classnameNjBjE)}jH]jK)}j>i2c_smbus_write_bytesbc.i2c_smbus_write_byteasbuh1hhjuhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKzubj)}(h h]h }(hj9uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhj8uhKzubj)}(hi2c_smbus_write_byteh]j)}(hj5uh]hi2c_smbus_write_byte}(hjKuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGuubah}(h]h ](jjeh"]h$]h&]jjuh1jhjuhhhj8uhKzubj)}(h+(const struct i2c_client *client, u8 value)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjfuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbuubj)}(h h]h }(hjsuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbuubj)}(hj h]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbuubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjumodnameN classnameNjBjE)}jH]j3uc.i2c_smbus_write_byteasbuh1hhjbuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbuubj_)}(hjbh]h*}(hjuhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjbuubj)}(hclienth]hclient}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^uubj)}(hu8 valueh](h)}(hhh]j)}(hu8h]hu8}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjumodnameN classnameNjBjE)}jH]j3uc.i2c_smbus_write_byteasbuh1hhjuubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hvalueh]hvalue}(hj vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^uubeh}(h]h ]h"]h$]h&]jjuh1jhjuhhhj8uhKzubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj uhhhj8uhKzubah}(h]juah ](j jeh"]h$]h&]jj)jhuh1jhj8uhKzhj uhhubj)}(hhh]h)}(hSMBus "send byte" protocolh]hSMBus “send byte” protocol}(hjJvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKshjGvhhubah}(h]h ]h"]h$]h&]uh1jhj uhhhj8uhKzubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jbvj8jbvj9j:j;uh1jhhhhhNhNubj=)}(h**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 value`` Byte to be sent **Description** This executes the SMBus "send byte" protocol, returning negative errno else zero on success.h](h)}(h**Parameters**h]jG)}(hjlvh]h Parameters}(hjnvhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjjvubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKwhjfvubj])}(hhh](jb)}(h;``const struct i2c_client *client`` Handle to slave device h](jh)}(h#``const struct i2c_client *client``h]h)}(hjvh]hconst struct i2c_client *client}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKthjvubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKthjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jahjvhKthjvubjb)}(h``u8 value`` Byte to be sent h](jh)}(h ``u8 value``h]h)}(hjvh]hu8 value}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKuhjvubj)}(hhh]h)}(hByte to be senth]hByte to be sent}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKuhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jahjvhKuhjvubeh}(h]h ]h"]h$]h&]uh1j\hjfvubh)}(h**Description**h]jG)}(hjvh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjvubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKwhjfvubh)}(h\This executes the SMBus "send byte" protocol, returning negative errno else zero on success.h]h`This executes the SMBus “send byte” protocol, returning negative errno else zero on success.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKwhjfvubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_smbus_read_byte_data (C function)c.i2c_smbus_read_byte_datahNtauh1jxhhhhhNhNubj)}(hhh](j)}(hJs32 i2c_smbus_read_byte_data (const struct i2c_client *client, u8 command)h]j)}(hIs32 i2c_smbus_read_byte_data(const struct i2c_client *client, u8 command)h](h)}(hhh]j)}(hs32h]hs32}(hjGwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDwubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjIwmodnameN classnameNjBjE)}jH]jK)}j>i2c_smbus_read_byte_datasbc.i2c_smbus_read_byte_dataasbuh1hhj@whhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hjiwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@whhhjhwhKubj)}(hi2c_smbus_read_byte_datah]j)}(hjewh]hi2c_smbus_read_byte_data}(hj{whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwwubah}(h]h ](jjeh"]h$]h&]jjuh1jhj@whhhjhwhKubj)}(h-(const struct i2c_client *client, u8 command)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hj h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjwmodnameN classnameNjBjE)}jH]jcwc.i2c_smbus_read_byte_dataasbuh1hhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj_)}(hjbh]h*}(hjwhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjwubj)}(hclienth]hclient}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hj$xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!xubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj&xmodnameN classnameNjBjE)}jH]jcwc.i2c_smbus_read_byte_dataasbuh1hhjxubj)}(h h]h }(hjBxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hcommandh]hcommand}(hjPxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhj@whhhjhwhKubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj reftargetjyymodnameN classnameNjBjE)}jH]jK)}j>i2c_smbus_write_byte_datasbc.i2c_smbus_write_byte_dataasbuh1hhjpyhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpyhhhjyhKubj)}(hi2c_smbus_write_byte_datah]j)}(hjyh]hi2c_smbus_write_byte_data}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jhjpyhhhjyhKubj)}(h7(const struct i2c_client *client, u8 command, u8 value)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hj h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjzmodnameN classnameNjBjE)}jH]jyc.i2c_smbus_write_byte_dataasbuh1hhjyubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj_)}(hjbh]h*}(hj+zhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjyubj)}(hclienth]hclient}(hj8zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hjTzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQzubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjVzmodnameN classnameNjBjE)}jH]jyc.i2c_smbus_write_byte_dataasbuh1hhjMzubj)}(h h]h }(hjrzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMzubj)}(hcommandh]hcommand}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hu8 valueh](h)}(hhh]j)}(hu8h]hu8}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjzmodnameN classnameNjBjE)}jH]jyc.i2c_smbus_write_byte_dataasbuh1hhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hvalueh]hvalue}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhjpyhhhjyhKubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjlyhhhjyhKubah}(h]jgyah ](j jeh"]h$]h&]jj)jhuh1jhjyhKhjiyhhubj)}(hhh]h)}(hSMBus "write byte" protocolh]hSMBus “write byte” protocol}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjzhhubah}(h]h ]h"]h$]h&]uh1jhjiyhhhjyhKubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7j {j8j {j9j:j;uh1jhhhhhNhNubj=)}(hX **Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave ``u8 value`` Byte being written **Description** This executes the SMBus "write byte" protocol, returning negative errno else zero on success.h](h)}(h**Parameters**h]jG)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj{ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj{ubj])}(hhh](jb)}(h;``const struct i2c_client *client`` Handle to slave device h](jh)}(h#``const struct i2c_client *client``h]h)}(hj3{h]hconst struct i2c_client *client}(hj5{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1{ubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj-{ubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjL{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH{hKhjI{ubah}(h]h ]h"]h$]h&]uh1jhj-{ubeh}(h]h ]h"]h$]h&]uh1jahjH{hKhj*{ubjb)}(h)``u8 command`` Byte interpreted by slave h](jh)}(h``u8 command``h]h)}(hjl{h]h u8 command}(hjn{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj{ubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjf{ubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hKhj{ubah}(h]h ]h"]h$]h&]uh1jhjf{ubeh}(h]h ]h"]h$]h&]uh1jahj{hKhj*{ubjb)}(h ``u8 value`` Byte being written h](jh)}(h ``u8 value``h]h)}(hj{h]hu8 value}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj{ubj)}(hhh]h)}(hByte being writtenh]hByte being written}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hKhj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jahj{hKhj*{ubeh}(h]h ]h"]h$]h&]uh1j\hj{ubh)}(h**Description**h]jG)}(hj{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj{ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj{ubh)}(h]This executes the SMBus "write byte" protocol, returning negative errno else zero on success.h]haThis executes the SMBus “write byte” protocol, returning negative errno else zero on success.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_smbus_read_word_data (C function)c.i2c_smbus_read_word_datahNtauh1jxhhhhhNhNubj)}(hhh](j)}(hJs32 i2c_smbus_read_word_data (const struct i2c_client *client, u8 command)h]j)}(hIs32 i2c_smbus_read_word_data(const struct i2c_client *client, u8 command)h](h)}(hhh]j)}(hs32h]hs32}(hj(|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%|ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj*|modnameN classnameNjBjE)}jH]jK)}j>i2c_smbus_read_word_datasbc.i2c_smbus_read_word_dataasbuh1hhj!|hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hjJ|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!|hhhjI|hKubj)}(hi2c_smbus_read_word_datah]j)}(hjF|h]hi2c_smbus_read_word_data}(hj\|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX|ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj!|hhhjI|hKubj)}(h-(const struct i2c_client *client, u8 command)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjw|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs|ubj)}(hj h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs|ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj|modnameN classnameNjBjE)}jH]jD|c.i2c_smbus_read_word_dataasbuh1hhjs|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs|ubj_)}(hjbh]h*}(hj|hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjs|ubj)}(hclienth]hclient}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo|ubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj}modnameN classnameNjBjE)}jH]jD|c.i2c_smbus_read_word_dataasbuh1hhj|ubj)}(h h]h }(hj#}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hcommandh]hcommand}(hj1}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo|ubeh}(h]h ]h"]h$]h&]jjuh1jhj!|hhhjI|hKubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj|hhhjI|hKubah}(h]j|ah ](j jeh"]h$]h&]jj)jhuh1jhjI|hKhj|hhubj)}(hhh]h)}(hSMBus "read word" protocolh]hSMBus “read word” protocol}(hj[}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjX}hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjI|hKubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7js}j8js}j9j:j;uh1jhhhhhNhNubj=)}(hX **Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave **Description** This executes the SMBus "read word" protocol, returning negative errno else a 16-bit unsigned "word" received from the device.h](h)}(h**Parameters**h]jG)}(hj}}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj{}ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjw}ubj])}(hhh](jb)}(h;``const struct i2c_client *client`` Handle to slave device h](jh)}(h#``const struct i2c_client *client``h]h)}(hj}h]hconst struct i2c_client *client}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj}ubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jahj}hKhj}ubjb)}(h)``u8 command`` Byte interpreted by slave h](jh)}(h``u8 command``h]h)}(hj}h]h u8 command}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj}ubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jahj}hKhj}ubeh}(h]h ]h"]h$]h&]uh1j\hjw}ubh)}(h**Description**h]jG)}(hj~h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj~ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjw}ubh)}(h~This executes the SMBus "read word" protocol, returning negative errno else a 16-bit unsigned "word" received from the device.h]hThis executes the SMBus “read word” protocol, returning negative errno else a 16-bit unsigned “word” received from the device.}(hj&~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjw}ubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_smbus_write_word_data (C function)c.i2c_smbus_write_word_datahNtauh1jxhhhhhNhNubj)}(hhh](j)}(hVs32 i2c_smbus_write_word_data (const struct i2c_client *client, u8 command, u16 value)h]j)}(hUs32 i2c_smbus_write_word_data(const struct i2c_client *client, u8 command, u16 value)h](h)}(hhh]j)}(hs32h]hs32}(hjX~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU~ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjZ~modnameN classnameNjBjE)}jH]jK)}j>i2c_smbus_write_word_datasbc.i2c_smbus_write_word_dataasbuh1hhjQ~hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hjz~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ~hhhjy~hKubj)}(hi2c_smbus_write_word_datah]j)}(hjv~h]hi2c_smbus_write_word_data}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjQ~hhhjy~hKubj)}(h8(const struct i2c_client *client, u8 command, u16 value)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hj h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj~modnameN classnameNjBjE)}jH]jt~c.i2c_smbus_write_word_dataasbuh1hhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj_)}(hjbh]h*}(hj hhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj~ubj)}(hclienth]hclient}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj7modnameN classnameNjBjE)}jH]jt~c.i2c_smbus_write_word_dataasbuh1hhj.ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hcommandh]hcommand}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(h u16 valueh](h)}(hhh]j)}(hu16h]hu16}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjmodnameN classnameNjBjE)}jH]jt~c.i2c_smbus_write_word_dataasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhjQ~hhhjy~hKubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjM~hhhjy~hKubah}(h]jH~ah ](j jeh"]h$]h&]jj)jhuh1jhjy~hKhjJ~hhubj)}(hhh]h)}(hSMBus "write word" protocolh]hSMBus “write word” protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjJ~hhhjy~hKubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jj8jj9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave ``u16 value`` 16-bit "word" being written **Description** This executes the SMBus "write word" protocol, returning negative errno else zero on success.h](h)}(h**Parameters**h]jG)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubj])}(hhh](jb)}(h;``const struct i2c_client *client`` Handle to slave device h](jh)}(h#``const struct i2c_client *client``h]h)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahj)hKhj ubjb)}(h)``u8 command`` Byte interpreted by slave h](jh)}(h``u8 command``h]h)}(hjMh]h u8 command}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjGubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jahjbhKhj ubjb)}(h*``u16 value`` 16-bit "word" being written h](jh)}(h ``u16 value``h]h)}(hjh]h u16 value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubj)}(hhh]h)}(h16-bit "word" being writtenh]h16-bit “word” being written}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhKhj ubeh}(h]h ]h"]h$]h&]uh1j\hjubh)}(h**Description**h]jG)}(hjh]h Description}(hjÀhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubh)}(h]This executes the SMBus "write word" protocol, returning negative errno else zero on success.h]haThis executes the SMBus “write word” protocol, returning negative errno else zero on success.}(hj׀hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_smbus_read_block_data (C function)c.i2c_smbus_read_block_datahNtauh1jxhhhhhNhNubj)}(hhh](j)}(hWs32 i2c_smbus_read_block_data (const struct i2c_client *client, u8 command, u8 *values)h]j)}(hVs32 i2c_smbus_read_block_data(const struct i2c_client *client, u8 command, u8 *values)h](h)}(hhh]j)}(hs32h]hs32}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj modnameN classnameNjBjE)}jH]jK)}j>i2c_smbus_read_block_datasbc.i2c_smbus_read_block_dataasbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hKubj)}(hi2c_smbus_read_block_datah]j)}(hj'h]hi2c_smbus_read_block_data}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj*hKubj)}(h9(const struct i2c_client *client, u8 command, u8 *values)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hj h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjmodnameN classnameNjBjE)}jH]j%c.i2c_smbus_read_block_dataasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj_)}(hjbh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjTubj)}(hclienth]hclient}(hjʁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjmodnameN classnameNjBjE)}jH]j%c.i2c_smbus_read_block_dataasbuh1hhj߁ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߁ubj)}(hcommandh]hcommand}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߁ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(h u8 *valuesh](h)}(hhh]j)}(hu8h]hu8}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj0modnameN classnameNjBjE)}jH]j%c.i2c_smbus_read_block_dataasbuh1hhj'ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj_)}(hjbh]h*}(hjZhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj'ubj)}(hvaluesh]hvalues}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj*hKubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjhhhj*hKubah}(h]jah ](j jeh"]h$]h&]jj)jhuh1jhj*hKhjhhubj)}(hhh]h)}(hSMBus "block read" protocolh]hSMBus “block read” protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hKubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jj8jj9j:j;uh1jhhhhhNhNubj=)}(hX**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave ``u8 *values`` Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most 32 bytes. **Description** This executes the SMBus "block read" protocol, returning negative errno else the number of data bytes in the slave's response. Note that using this function requires that the client's adapter support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality. Not all adapter drivers support this; its emulation through I2C messaging relies on a specific mechanism (I2C_M_RECV_LEN) which may not be implemented.h](h)}(h**Parameters**h]jG)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubj])}(hhh](jb)}(h;``const struct i2c_client *client`` Handle to slave device h](jh)}(h#``const struct i2c_client *client``h]h)}(hj҂h]hconst struct i2c_client *client}(hjԂhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjЂubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhĵubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhĵubeh}(h]h ]h"]h$]h&]uh1jahjhKhjɂubjb)}(h)``u8 command`` Byte interpreted by slave h](jh)}(h``u8 command``h]h)}(hj h]h u8 command}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahj hKhjɂubjb)}(h``u8 *values`` Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most 32 bytes. h](jh)}(h``u8 *values``h]h)}(hjDh]h u8 *values}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj>ubj)}(hhh]h)}(h{Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most 32 bytes.h]h{Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most 32 bytes.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jahjYhKhjɂubeh}(h]h ]h"]h$]h&]uh1j\hjubh)}(h**Description**h]jG)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj~ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubh)}(h~This executes the SMBus "block read" protocol, returning negative errno else the number of data bytes in the slave's response.h]hThis executes the SMBus “block read” protocol, returning negative errno else the number of data bytes in the slave’s response.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubh)}(hXNote that using this function requires that the client's adapter support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality. Not all adapter drivers support this; its emulation through I2C messaging relies on a specific mechanism (I2C_M_RECV_LEN) which may not be implemented.h]hXNote that using this function requires that the client’s adapter support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality. Not all adapter drivers support this; its emulation through I2C messaging relies on a specific mechanism (I2C_M_RECV_LEN) which may not be implemented.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_smbus_write_block_data (C function)c.i2c_smbus_write_block_datahNtauh1jxhhhhhNhNubj)}(hhh](j)}(his32 i2c_smbus_write_block_data (const struct i2c_client *client, u8 command, u8 length, const u8 *values)h]j)}(hhs32 i2c_smbus_write_block_data(const struct i2c_client *client, u8 command, u8 length, const u8 *values)h](h)}(hhh]j)}(hs32h]hs32}(hj׃hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԃubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjكmodnameN classnameNjBjE)}jH]jK)}j>i2c_smbus_write_block_datasbc.i2c_smbus_write_block_dataasbuh1hhjЃhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЃhhhjhKubj)}(hi2c_smbus_write_block_datah]j)}(hjh]hi2c_smbus_write_block_data}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjЃhhhjhKubj)}(hJ(const struct i2c_client *client, u8 command, u8 length, const u8 *values)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hj h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjamodnameN classnameNjBjE)}jH]jc.i2c_smbus_write_block_dataasbuh1hhj"ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj_)}(hjbh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj"ubj)}(hclienth]hclient}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjmodnameN classnameNjBjE)}jH]jc.i2c_smbus_write_block_dataasbuh1hhjubj)}(h h]h }(hj҄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcommandh]hcommand}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 lengthh](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjmodnameN classnameNjBjE)}jH]jc.i2c_smbus_write_block_dataasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlengthh]hlength}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst u8 *valuesh](j)}(hjh]hconst}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j)}(hu8h]hu8}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjamodnameN classnameNjBjE)}jH]jc.i2c_smbus_write_block_dataasbuh1hhj=ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj_)}(hjbh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj=ubj)}(hvaluesh]hvalues}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjЃhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj̃hhhjhKubah}(h]jǃah ](j jeh"]h$]h&]jj)jhuh1jhjhKhjɃhhubj)}(hhh]h)}(hSMBus "block write" protocolh]h SMBus “block write” protocol}(hj…hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjɃhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jڅj8jڅj9j:j;uh1jhhhhhNhNubj=)}(hXf**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave ``u8 length`` Size of data block; SMBus allows at most 32 bytes ``const u8 *values`` Byte array which will be written. **Description** This executes the SMBus "block write" protocol, returning negative errno else zero on success.h](h)}(h**Parameters**h]jG)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjޅubj])}(hhh](jb)}(h;``const struct i2c_client *client`` Handle to slave device h](jh)}(h#``const struct i2c_client *client``h]h)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhKhjubjb)}(h)``u8 command`` Byte interpreted by slave h](jh)}(h``u8 command``h]h)}(hj<h]h u8 command}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj6ubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jahjQhKhjubjb)}(h@``u8 length`` Size of data block; SMBus allows at most 32 bytes h](jh)}(h ``u8 length``h]h)}(hjuh]h u8 length}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjoubj)}(hhh]h)}(h1Size of data block; SMBus allows at most 32 bytesh]h1Size of data block; SMBus allows at most 32 bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jahjhKhjubjb)}(h7``const u8 *values`` Byte array which will be written. h](jh)}(h``const u8 *values``h]h)}(hjh]hconst u8 *values}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubj)}(hhh]h)}(h!Byte array which will be written.h]h!Byte array which will be written.}(hjdžhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjÆhKhjĆubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjÆhKhjubeh}(h]h ]h"]h$]h&]uh1j\hjޅubh)}(h**Description**h]jG)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjޅubh)}(h^This executes the SMBus "block write" protocol, returning negative errno else zero on success.h]hbThis executes the SMBus “block write” protocol, returning negative errno else zero on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjޅubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_smbus_xfer (C function)c.i2c_smbus_xferhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hs32 i2c_smbus_xfer (struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int protocol, union i2c_smbus_data *data)h]j)}(hs32 i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int protocol, union i2c_smbus_data *data)h](h)}(hhh]j)}(hs32h]hs32}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj3modnameN classnameNjBjE)}jH]jK)}j>i2c_smbus_xfersbc.i2c_smbus_xferasbuh1hhj*hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhjRhMubj)}(hi2c_smbus_xferh]j)}(hjOh]hi2c_smbus_xfer}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jhj*hhhjRhMubj)}(h(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command, int protocol, union i2c_smbus_data *data)h](j)}(hstruct i2c_adapter *adapterh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjmodnameN classnameNjBjE)}jH]jMc.i2c_smbus_xferasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj_)}(hjbh]h*}(hjʇhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj|ubj)}(hadapterh]hadapter}(hjׇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hu16 addrh](h)}(hhh]j)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjmodnameN classnameNjBjE)}jH]jMc.i2c_smbus_xferasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hunsigned short flagsh](j)}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hshorth]hshort}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hflagsh]hflags}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hchar read_writeh](j)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h read_writeh]h read_write}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjÈmodnameN classnameNjBjE)}jH]jMc.i2c_smbus_xferasbuh1hhjubj)}(h h]h }(hj߈hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcommandh]hcommand}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h int protocolh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprotocolh]hprotocol}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hunion i2c_smbus_data *datah](j)}(hunionh]hunion}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j)}(hi2c_smbus_datah]hi2c_smbus_data}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj\modnameN classnameNjBjE)}jH]jMc.i2c_smbus_xferasbuh1hhj7ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj_)}(hjbh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj7ubj)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhj*hhhjRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj&hhhjRhMubah}(h]j!ah ](j jeh"]h$]h&]jj)jhuh1jhjRhMhj#hhubj)}(hhh]h)}(h!execute SMBus protocol operationsh]h!execute SMBus protocol operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jՉj8jՉj9j:j;uh1jhhhhhNhNubj=)}(hXV**Parameters** ``struct i2c_adapter *adapter`` Handle to I2C bus ``u16 addr`` Address of SMBus slave on that bus ``unsigned short flags`` I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC) ``char read_write`` I2C_SMBUS_READ or I2C_SMBUS_WRITE ``u8 command`` Byte interpreted by slave, for protocols which use such bytes ``int protocol`` SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL ``union i2c_smbus_data *data`` Data to be read or written **Description** This executes an SMBus protocol operation, and returns a negative errno code else zero on success.h](h)}(h**Parameters**h]jG)}(hj߉h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj݉ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjىubj])}(hhh](jb)}(h2``struct i2c_adapter *adapter`` Handle to I2C bus h](jh)}(h``struct i2c_adapter *adapter``h]h)}(hjh]hstruct i2c_adapter *adapter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM hjubj)}(hhh]h)}(hHandle to I2C bush]hHandle to I2C bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhM hjubjb)}(h0``u16 addr`` Address of SMBus slave on that bus h](jh)}(h ``u16 addr``h]h)}(hj7h]hu16 addr}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM hj1ubj)}(hhh]h)}(h"Address of SMBus slave on that bush]h"Address of SMBus slave on that bus}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jahjLhM hjubjb)}(hM``unsigned short flags`` I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC) h](jh)}(h``unsigned short flags``h]h)}(hjph]hunsigned short flags}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjjubj)}(hhh]h)}(h3I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC)h]h3I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(h6``char read_write`` I2C_SMBUS_READ or I2C_SMBUS_WRITE h](jh)}(h``char read_write``h]h)}(hjh]hchar read_write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj)}(hhh]h)}(h!I2C_SMBUS_READ or I2C_SMBUS_WRITEh]h!I2C_SMBUS_READ or I2C_SMBUS_WRITE}(hjŠhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(hM``u8 command`` Byte interpreted by slave, for protocols which use such bytes h](jh)}(h``u8 command``h]h)}(hjh]h u8 command}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhj܊ubj)}(hhh]h)Zb}(h=Byte interpreted by slave, for protocols which use such bytesh]h=Byte interpreted by slave, for protocols which use such bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj܊ubeh}(h]h ]h"]h$]h&]uh1jahjhMhjubjb)}(hR``int protocol`` SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL h](jh)}(h``int protocol``h]h)}(hjh]h int protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj)}(hhh]h)}(h@SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALLh]h@SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahj0hMhjubjb)}(h:``union i2c_smbus_data *data`` Data to be read or written h](jh)}(h``union i2c_smbus_data *data``h]h)}(hjTh]hunion i2c_smbus_data *data}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjNubj)}(hhh]h)}(hData to be read or writtenh]hData to be read or written}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jahjihMhjubeh}(h]h ]h"]h$]h&]uh1j\hjىubh)}(h**Description**h]jG)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjىubh)}(hbThis executes an SMBus protocol operation, and returns a negative errno code else zero on success.h]hbThis executes an SMBus protocol operation, and returns a negative errno code else zero on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjىubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j6i2c_smbus_read_i2c_block_data_or_emulated (C function)+c.i2c_smbus_read_i2c_block_data_or_emulatedhNtauh1jxhhhhhNhNubj)}(hhh](j)}(hrs32 i2c_smbus_read_i2c_block_data_or_emulated (const struct i2c_client *client, u8 command, u8 length, u8 *values)h]j)}(hqs32 i2c_smbus_read_i2c_block_data_or_emulated(const struct i2c_client *client, u8 command, u8 length, u8 *values)h](h)}(hhh]j)}(hs32h]hs32}(hj׋hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԋubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjًmodnameN classnameNjBjE)}jH]jK)}j>)i2c_smbus_read_i2c_block_data_or_emulatedsb+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhjЋhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЋhhhjhMubj)}(h)i2c_smbus_read_i2c_block_data_or_emulatedh]j)}(hjh]h)i2c_smbus_read_i2c_block_data_or_emulated}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjЋhhhjhMubj)}(hD(const struct i2c_client *client, u8 command, u8 length, u8 *values)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hj h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjamodnameN classnameNjBjE)}jH]j+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhj"ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj_)}(hjbh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj"ubj)}(hclienth]hclient}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjmodnameN classnameNjBjE)}jH]j+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhjubj)}(h h]h }(hjҌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcommandh]hcommand}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 lengthh](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjmodnameN classnameNjBjE)}jH]j+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlengthh]hlength}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 *valuesh](h)}(hhh]j)}(hu8h]hu8}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjFmodnameN classnameNjBjE)}jH]j+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhj=ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj_)}(hjbh]h*}(hjphhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj=ubj)}(hvaluesh]hvalues}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjЋhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hj̋hhhjhMubah}(h]jNjah ](j jeh"]h$]h&]jj)jhuh1jhjhMhjɋhhubj)}(hhh]h)}(hread block or emulateh]hread block or emulate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMnhjhhubah}(h]h ]h"]h$]h&]uh1jhjɋhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jj8jj9j:j;uh1jhhhhhNhNubj=)}(hXn**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave ``u8 length`` Size of data block; SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes ``u8 *values`` Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes. **Description** This executes the SMBus "block read" protocol if supported by the adapter. If block read is not supported, it emulates it using either word or byte read protocols depending on availability. The addresses of the I2C slave device that are accessed with this function must be mapped to a linear region, so that a block read will have the same effect as a byte read. Before using this function you must double-check if the I2C slave does support exchanging a block transfer with a byte transfer.h](h)}(h**Parameters**h]jG)}(hjɍh]h Parameters}(hjˍhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjǍubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMrhjÍubj])}(hhh](jb)}(h;``const struct i2c_client *client`` Handle to slave device h](jh)}(h#``const struct i2c_client *client``h]h)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMohjubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMohjߍubjb)}(h)``u8 command`` Byte interpreted by slave h](jh)}(h``u8 command``h]h)}(hj!h]h u8 command}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMphjubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMphj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahj6hMphjߍubjb)}(hQ``u8 length`` Size of data block; SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes h](jh)}(h ``u8 length``h]h)}(hjZh]h u8 length}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMqhjTubj)}(hhh]h)}(hBSize of data block; SMBus allows at most I2C_SMBUS_BLOCK_MAX bytesh]hBSize of data block; SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMqhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jahjohMqhjߍubjb)}(h``u8 *values`` Byte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes. h](jh)}(h``u8 *values``h]h)}(hjh]h u8 *values}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMthjubj)}(hhh]h)}(hByte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes.h]hByte array into which data will be read; big enough to hold the data returned by the slave. SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMthjߍubeh}(h]h ]h"]h$]h&]uh1j\hjÍubh)}(h**Description**h]jG)}(hjώh]h Description}(hjюhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj͎ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMvhjÍubh)}(hThis executes the SMBus "block read" protocol if supported by the adapter. If block read is not supported, it emulates it using either word or byte read protocols depending on availability.h]hThis executes the SMBus “block read” protocol if supported by the adapter. If block read is not supported, it emulates it using either word or byte read protocols depending on availability.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMvhjÍubh)}(hX-The addresses of the I2C slave device that are accessed with this function must be mapped to a linear region, so that a block read will have the same effect as a byte read. Before using this function you must double-check if the I2C slave does support exchanging a block transfer with a byte transfer.h]hX-The addresses of the I2C slave device that are accessed with this function must be mapped to a linear region, so that a block read will have the same effect as a byte read. Before using this function you must double-check if the I2C slave does support exchanging a block transfer with a byte transfer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMzhjÍubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubjy)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_new_smbus_alert_device (C function)c.i2c_new_smbus_alert_devicehNtauh1jxhhhhhNhNubj)}(hhh](j)}(hqstruct i2c_client * i2c_new_smbus_alert_device (struct i2c_adapter *adapter, struct i2c_smbus_alert_setup *setup)h]j)}(hostruct i2c_client *i2c_new_smbus_alert_device(struct i2c_adapter *adapter, struct i2c_smbus_alert_setup *setup)h](j)}(hj h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hMubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjDmodnameN classnameNjBjE)}jH]jK)}j>i2c_new_smbus_alert_devicesbc.i2c_new_smbus_alert_deviceasbuh1hhjhhhj0hMubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hMubj_)}(hjbh]h*}(hjqhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjhhhj0hMubj)}(hi2c_new_smbus_alert_deviceh]j)}(hj`h]hi2c_new_smbus_alert_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj0hMubj)}(hB(struct i2c_adapter *adapter, struct i2c_smbus_alert_setup *setup)h](j)}(hstruct i2c_adapter *adapterh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetjmodnameN classnameNjBjE)}jH]j^c.i2c_new_smbus_alert_deviceasbuh1hhjubj)}(h h]h }(hjُhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj_)}(hjbh]h*}(hjhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hjubj)}(hadapterh]hadapter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h#struct i2c_smbus_alert_setup *setuph](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hi2c_smbus_alert_setuph]hi2c_smbus_alert_setup}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej> reftargetj-modnameN classnameNjBjE)}jH]j^c.i2c_new_smbus_alert_deviceasbuh1hhj ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj_)}(hjbh]h*}(hjWhhhNhNubah}(h]h ]jkah"]h$]h&]uh1j^hj ubj)}(hsetuph]hsetup}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hMubeh}(h]h ]h"]h$]h&]jjjuh1jjj hjhhhj0hMubah}(h]jah ](j jeh"]h$]h&]jj)jhuh1jhj0hMhjhhubj)}(hhh]h)}(h&get ara client for SMBus alert supporth]h&get ara client for SMBus alert support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hMubeh}(h]h ](jfunctioneh"]h$]h&]j6jj7jj8jj9j:j;uh1jhhhhhNhNubj=)}(hX-**Parameters** ``struct i2c_adapter *adapter`` the target adapter ``struct i2c_smbus_alert_setup *setup`` setup data for the SMBus alert handler **Context** can sleep **Description** Setup handling of the SMBus alert protocol on a given I2C bus segment. Handling can be done either through our IRQ handler, or by the adapter (from its handler, periodic polling, or whatever). This returns the ara client, which should be saved for later use with i2c_handle_smbus_alert() and ultimately i2c_unregister_device(); or an ERRPTR to indicate an error.h](h)}(h**Parameters**h]jG)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj])}(hhh](jb)}(h3``struct i2c_adapter *adapter`` the target adapter h](jh)}(h``struct i2c_adapter *adapter``h]h)}(hjϐh]hstruct i2c_adapter *adapter}(hjѐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj͐ubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjɐubj)}(hhh]h)}(hthe target adapterh]hthe target adapter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjɐubeh}(h]h ]h"]h$]h&]uh1jahjhMhjƐubjb)}(hO``struct i2c_smbus_alert_setup *setup`` setup data for the SMBus alert handler h](jh)}(h'``struct i2c_smbus_alert_setup *setup``h]h)}(hjh]h#struct i2c_smbus_alert_setup *setup}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jgh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj)}(hhh]h)}(h&setup data for the SMBus alert handlerh]h&setup data for the SMBus alert handler}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jahjhMhjƐubeh}(h]h ]h"]h$]h&]uh1j\hjubh)}(h **Context**h]jG)}(hjCh]hContext}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjAubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubh)}(h can sleeph]h can sleep}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubh)}(h**Description**h]jG)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubh)}(hFSetup handling of the SMBus alert protocol on a given I2C bus segment.h]hFSetup handling of the SMBus alert protocol on a given I2C bus segment.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubh)}(hyHandling can be done either through our IRQ handler, or by the adapter (from its handler, periodic polling, or whatever).h]hyHandling can be done either through our IRQ handler, or by the adapter (from its handler, periodic polling, or whatever).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubh)}(hThis returns the ara client, which should be saved for later use with i2c_handle_smbus_alert() and ultimately i2c_unregister_device(); or an ERRPTR to indicate an error.h]hThis returns the ara client, which should be saved for later use with i2c_handle_smbus_alert() and ultimately i2c_unregister_device(); or an ERRPTR to indicate an error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j<hhhhhNhNubeh}(h]i2c-and-smbus-subsystemah ]h"]i2c and smbus subsystemah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjߑerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehʌ _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}jjs nametypes}jsh}(jhjjjRjWjjjw j| j j j j jrjwjjj+j0jjjjjjj!j!j$j$j'j'j#*j(*j,j ,j.j.j/j/jx1j}1j 3j3j 5j5j6j6j!7j&7j9j9j;j;j<>jA>j?j?j0Bj5BjDjDjGjGjJjJjLjLjNjNjPjPjRjRjPTjUTjVjVjYjYjd[ji[j]j^j}_j_j%bj*bjdjdjgjgjjjjj ljljnjnjpjpjXsj]sjuj uj7wj