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]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget"/translations/pt_BR/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 }(hjhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]hliteral)}(hj h]hstruct i2c_adapter}(hjhhhNhNubah}(h]h ](xrefcc-typeeh"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]refdocdriver-api/i2c refdomainjreftypetype refexplicitrefwarn reftarget i2c_adapteruh1hhhhKhjubhl representing each I2C bus segment it manages. On each I2C bus segment will be I2C devices represented by a }(hjhhhNhNubh)}(h(:c:type:`struct i2c_client `h]j)}(hj4h]hstruct i2c_client}(hj6hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hj2ubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnj, i2c_clientuh1hhhhKhjubh#. Those devices will be bound to a }(hjhhhNhNubh)}(h(:c:type:`struct i2c_driver `h]j)}(hjWh]hstruct i2c_driver}(hjYhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjUubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnj, i2c_driveruh1hhhhKhjubh, 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.}(hjhhhNhNubeh}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlei2c_master_recv (C function)c.i2c_master_recvhNtauh1jhhhhhNhNubhdesc)}(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.hhKEubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhjhKEubh 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:spacepreserveuh1jhjhhhjhKEubhdesc_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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetj>modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]jW ASTIdentifier)}jRjsbc.i2c_master_recvasbuh1hhjubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubhdesc_sig_punctuation)}(h*h]h*}(hjthhhNhNubah}(h]h ]pah"]h$]h&]uh1jrhjubj)}(hclienth]hclient}(hjhhhNhNubah}(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&]uh1jhjubjs)}(hjvh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjubj)}(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&]jjuh1jhjhhhjhKEubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1jsphinx_line_type declaratorhjhhhjhKEubah}(h]jah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jhjhKEhjhhubh desc_content)}(hhh]h)}(h1issue a single I2C message in master receive modeh]h1issue a single I2C message in master receive mode}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKEhj+hhubah}(h]h ]h"]h$]h&]uh1j)hjhhhjhKEubeh}(h]h ](jfunctioneh"]h$]h&]domainjobjtypejFdesctypejFnoindex 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)}(hjXh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKIhjRubhdefinition_list)}(hhh](hdefinition_list_item)}(h;``const struct i2c_client *client`` Handle to slave device h](hterm)}(h#``const struct i2c_client *client``h]j)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj}ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKFhjwubh definition)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKFhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1juhjhKFhjrubjv)}(h2``char *buf`` Where to store data read from slave h](j|)}(h ``char *buf``h]j)}(hjh]h char *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhKGhjrubjv)}(hQ``int count`` How many bytes to read, must be less than 64k since msg.len is u16 h](j|)}(h ``int count``h]j)}(hjh]h int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKHhjrubeh}(h]h ]h"]h$]h&]uh1jphjRubh)}(h**Description**h]j[)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj,ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKJhjRubh)}(h9Returns negative errno, or else the number of bytes read.h]h9Returns negative errno, or else the number of bytes read.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKIhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$i2c_master_recv_dmasafe (C function)c.i2c_master_recv_dmasafehNtauh1jhhhhhNhNubj)}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhKSubj)}(hi2c_master_recv_dmasafeh]j)}(hi2c_master_recv_dmasafeh]hi2c_master_recv_dmasafe}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjohhhjhKSubj)}(h7(const struct i2c_client *client, char *buf, int count)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]j_)}jRjsbc.i2c_master_recv_dmasafeasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjs)}(hjvh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjubj)}(hclienth]hclient}(hj$hhhNhNubah}(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&]uh1jhj9ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjs)}(hjvh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj9ubj)}(hbufh]hbuf}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int counth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjhKSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhKSubah}(h]jfah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhKShjhhhubj*)}(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&]uh1j)hjhhhhjhKSubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjjLjjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKWhjubjq)}(hhh](jv)}(h;``const struct i2c_client *client`` Handle to slave device h](j|)}(h#``const struct i2c_client *client``h]j)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKUhjubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKUhjubjv)}(hP``char *buf`` Where to store data read from slave, must be safe to use with DMA h](j|)}(h ``char *buf``h]j)}(hj?h]h char *buf}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj=ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKVhj9ubj)}(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}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKVhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1juhjThKVhjubjv)}(hQ``int count`` How many bytes to read, must be less than 64k since msg.len is u16 h](j|)}(h ``int count``h]j)}(hjxh]h int count}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjvubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKWhjrubj)}(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&]uh1hhjhKWhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1juhjhKWhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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.hhKXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_master_send (C function)c.i2c_master_sendhNtauh1jhhhhhNhNubj)}(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.hhKcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKcubj)}(hi2c_master_sendh]j)}(hi2c_master_sendh]hi2c_master_send}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKcubj)}(h=(const struct i2c_client *client, const char *buf, int count)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjpmodnameN classnameNjVjY)}j\]j_)}jRjsbc.i2c_master_sendasbuh1hhj1ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjs)}(hjvh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj1ubj)}(hclienth]hclient}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hconst char *bufh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j ah"]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&]uh1jhjubjs)}(hjvh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(h int counth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcounth]hcount}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKcubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhKchjhhubj*)}(hhh]h)}(h2issue a single I2C message in master transmit modeh]h2issue a single I2C message in master transmit mode}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKchjbhhubah}(h]h ]h"]h$]h&]uh1j)hjhhhjhKcubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj}jLj}jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKghjubjq)}(hhh](jv)}(h;``const struct i2c_client *client`` Handle to slave device h](j|)}(h#``const struct i2c_client *client``h]j)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhKdhjubjv)}(h;``const char *buf`` Data that will be written to the slave h](j|)}(h``const char *buf``h]j)}(hjh]hconst char *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhKehjubjv)}(hR``int count`` How many bytes to write, must be less than 64k since msg.len is u16 h](j|)}(h ``int count``h]j)}(hj h]h int count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKfhj 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}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj- hKfhj. ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1juhj- hKfhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjS h]h Description}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQ ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhhjubh)}(h`h](h)}(h**Definition**::h](j[)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh:}(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]j[)}(hj#h]hMembers}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj!ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubjq)}(hhh](jv)}(h>``class`` What kind of i2c device we instantiate (for detect) h](j|)}(h ``class``h]j)}(hjBh]hclass}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj@ubah}(h]h ]h"]h$]h&]uh1j{hR/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)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1juhjWhKhj9ubjv)}(h&``probe`` Callback for device binding h](j|)}(h ``probe``h]j)}(hj{h]hprobe}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjyubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjuubj)}(hhh]h)}(hCallback for device bindingh]hCallback for device binding}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1juhjhKhj9ubjv)}(h)``remove`` Callback for device unbinding h](j|)}(h ``remove``h]j)}(hjh]hremove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhKhj9ubjv)}(h*``shutdown`` Callback for device shutdown h](j|)}(h ``shutdown``h]j)}(hjh]hshutdown}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhKhj9ubjv)}(hC``alert`` Alert callback, for example for the SMBus alert protocol h](j|)}(h ``alert``h]j)}(hj&h]halert}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj$ubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhj;hKhj9ubjv)}(h7``command`` Callback for bus-wide signaling (optional) h](j|)}(h ``command``h]j)}(hj_h]hcommand}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j hj]ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjYubj)}(hhh]h)}(h*Callback for bus-wide signaling (optional)h]h*Callback for bus-wide signaling (optional)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1juhjthKhj9ubjv)}(h&``driver`` Device driver model driver h](j|)}(h ``driver``h]j)}(hjh]hdriver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(hDevice driver model driverh]hDevice driver model driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhj9ubjv)}(h:``id_table`` List of I2C devices supported by this driver h](j|)}(h ``id_table``h]j)}(hjh]hid_table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhKhj9ubjv)}(h)``detect`` Callback for device detection h](j|)}(h ``detect``h]j)}(hj h]hdetect}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(hCallback for device detectionh]hCallback for device detection}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhj9ubjv)}(h9``address_list`` The I2C addresses to probe (for detect) h](j|)}(h``address_list``h]j)}(hjCh]h address_list}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjAubah}(h]h ]h"]h$]h&]uh1j{hR/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)}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1juhjXhKhj9ubjv)}(hH``clients`` List of detected clients we created (for i2c-core use only) h](j|)}(h ``clients``h]j)}(hj|h]hclients}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjzubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjvubj)}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1juhjhKhj9ubjv)}(hZ``flags`` A bitmask of flags defined in :c:type:`enum i2c_driver_flags `h](j|)}(h ``flags``h]j)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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]j)}(hjh]henum i2c_driver_flags}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjY)}j\]sbj,i2c_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&]uh1juhjhKhj9ubeh}(h]h ]h"]h$]h&]uh1jphjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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.}(hj0hhhNhNubah}(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?hhhNhNubj[)}(h **detect**h]hdetect}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?ubh and }(hj?hhhNhNubj[)}(h**address_list**h]h address_list}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?ubh must be defined. }(hj?hhhNhNubj[)}(h **class**h]hclass}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?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 }(hjhhhNhNubj[)}(h **detect**h]hdetect}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh 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.}(hjhhhNhNubeh}(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 }(hjhhhNhNubj[)}(h **detect**h]hdetect}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh 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.hhMhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_client (C struct) c.i2c_clienthNtauh1jhhhhhNhNubj)}(hhh](j)}(h i2c_clienth]j)}(hstruct i2c_clienth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]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&]jjjuh1jjjhjhhhjhMubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhMhjhhubj*)}(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.hhM5hjhhubah}(h]h ]h"]h$]h&]uh1j)hjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jJjjKj9jLj9jMjNjOuh1jhhhhhNhNubjQ)}(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](j[)}(h**Definition**h]h Definition}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjAubh:}(hjAhhhNhNubeh}(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; };}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]j[)}(hjoh]hMembers}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMQhj=ubjq)}(hhh](jv)}(h.``flags`` see I2C_CLIENT_* for possible flags h](j|)}(h ``flags``h]j)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM7hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhM7hjubjv)}(hF``addr`` Address used on the I2C bus connected to the parent adapter. h](j|)}(h``addr``h]j)}(hjh]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhM>hjubjv)}(hW``detected`` member of an i2c_driver.clients list or i2c-core's userspace_devices list h](j|)}(h ``detected``h]j)}(hjh]hdetected}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM?hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj3hM@hjubjv)}(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](j|)}(h ``slave_cb``h]j)}(hjXh]hslave_cb}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjVubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMBhjRubj)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMAhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1juhjmhMBhjubjv)}(hq``devres_group_id`` id of the devres group that will be created for resources acquired when probing this device. h](j|)}(h``devres_group_id``h]j)}(hjh]hdevres_group_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMDhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMDhjubjv)}(h[``debugfs`` pointer to the debugfs subdirectory which the I2C core created for this client.h](j|)}(h ``debugfs``h]j)}(hjh]hdebugfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhMEhjubeh}(h]h ]h"]h$]h&]uh1jphj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj ubah}(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.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMFhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_board_info (C struct)c.i2c_board_infohNtauh1jhhhhhNhNubj)}(hhh](j)}(hi2c_board_infoh]j)}(hstruct i2c_board_infoh](j)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjHhhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMMubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjYhMMubj)}(hi2c_board_infoh]j)}(hjFh]hi2c_board_info}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jhjHhhhjYhMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjYhMMubah}(h]j?ah ](j!j"eh"]h$]h&]j&j')j(huh1jhjYhMMhjAhhubj*)}(hhh]h)}(htemplate for device creationh]htemplate for device creation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j)hjAhhhjYhMMubeh}(h]h ](jstructeh"]h$]h&]jJjjKjjLjjMjNjOuh1jhhhhhNhNubjQ)}(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 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 ``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](j[)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj )}(hXEstruct i2c_board_info { char type[I2C_NAME_SIZE]; unsigned short flags; unsigned short addr; const char *dev_name; void *platform_data; struct fwnode_handle *fwnode; const struct software_node *swnode; const struct resource *resources; unsigned int num_resources; int irq; };h]hXEstruct i2c_board_info { char type[I2C_NAME_SIZE]; unsigned short flags; unsigned short addr; const char *dev_name; void *platform_data; 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]j[)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubjq)}(hhh](jv)}(h2``type`` chip type, to initialize i2c_client.name h](j|)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhMhjubjv)}(h)``flags`` to initialize i2c_client.flags h](j|)}(h ``flags``h]j)}(hj4h]hflags}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj2ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj.ubj)}(hhh]h)}(hto initialize i2c_client.flagsh]hto initialize i2c_client.flags}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1juhjIhMhjubjv)}(h#``addr`` stored in i2c_client.addr h](j|)}(h``addr``h]j)}(hjmh]haddr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j hjkubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjgubj)}(hhh]h)}(hstored in i2c_client.addrh]hstored in i2c_client.addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(hB``dev_name`` Overrides the default - dev_name if set h](j|)}(h ``dev_name``h]j)}(hjh]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhMhjubjv)}(h9``platform_data`` stored in i2c_client.dev.platform_data h](j|)}(h``platform_data``h]j)}(hjh]h platform_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhMhjubjv)}(h9``fwnode`` device node supplied by the platform firmware h](j|)}(h ``fwnode``h]j)}(hjh]hfwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h-device node supplied by the platform firmwareh]h-device node supplied by the platform firmware}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj-hMhjubjv)}(h(``swnode`` software node for the device h](j|)}(h ``swnode``h]j)}(hjQh]hswnode}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j hjOubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjKubj)}(hhh]h)}(hsoftware node for the deviceh]hsoftware node for the device}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1juhjfhMhjubjv)}(h3``resources`` resources associated with the device h](j|)}(h ``resources``h]j)}(hjh]h resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhMhjubjv)}(hA``num_resources`` number of resources in the **resources** array h](j|)}(h``num_resources``h]j)}(hjh]h num_resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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 }(hjhhhNhNubj[)}(h **resources**h]h resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubh array}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(h ``irq`` stored in i2c_client.irqh](j|)}(h``irq``h]j)}(hjh]hirq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(hstored in i2c_client.irqh]hstored in i2c_client.irq}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj#hMhjubeh}(h]h ]h"]h$]h&]uh1jphjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubh)}(h**Description**h]j[)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjOubah}(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.}(hjghhhNhNubah}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jI2C_BOARD_INFO (C macro)c.I2C_BOARD_INFOhNtauh1jhhhhhNhNubj)}(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&]jjjuh1jjjhjhhhjhMubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhMhjhhubj*)}(hhh]h}(h]h ]h"]h$]h&]uh1j)hjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jJjjKjjLjjMjNjOuh1jhhhhhNhNubh)}(h'``I2C_BOARD_INFO (dev_type, dev_addr)``h]j)}(hjh]h#I2C_BOARD_INFO (dev_type, dev_addr)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(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&]uh1jhjhMhhhhubjQ)}(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]j[)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubjq)}(hhh](jv)}(h(``dev_type`` identifies the device type h](j|)}(h ``dev_type``h]j)}(hj*h]hdev_type}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj(ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj$ubj)}(hhh]h)}(hidentifies the device typeh]hidentifies the device type}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1juhj?hMhj!ubjv)}(h.``dev_addr`` the device's address on the bus. h](j|)}(h ``dev_addr``h]j)}(hjch]hdev_addr}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j hjaubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj]ubj)}(hhh]h)}(h the device's address on the bus.h]h"the device’s address on the bus.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1juhjxhMhj!ubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubh)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_algorithm (C struct)c.i2c_algorithmhNtauh1jhhhhhNhNubj)}(hhh](j)}(h i2c_algorithmh]j)}(hstruct i2c_algorithmh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhMhjhhubj*)}(hhh]h)}(hrepresent I2C transfer methodsh]hrepresent I2C transfer methods}(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&]uh1j)hjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jJjjKj=jLj=jMjNjOuh1jhhhhhNhNubjQ)}(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](j[)}(h**Definition**h]h Definition}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEubh:}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjAubj )}(hX 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; };h]hX 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; };}hjbsbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjAubh)}(h **Members**h]j[)}(hjsh]hMembers}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM!hjAubjq)}(hhh](jv)}(h``{unnamed_union}`` anonymous h](j|)}(h``{unnamed_union}``h]j)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhjubjv)}(hb``xfer`` Transfer a given number of messages defined by the msgs array via the specified adapter. h](j|)}(h``xfer``h]j)}(hjh]hxfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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.}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(h)``master_xfer`` deprecated, use **xfer** h](j|)}(h``master_xfer``h]j)}(hjh]h master_xfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(hdeprecated, use **xfer**h](hdeprecated, use }(hjhhhNhNubj[)}(h**xfer**h]hxfer}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(h``{unnamed_union}`` anonymous h](j|)}(h``{unnamed_union}``h]j)}(hjLh]h{unnamed_union}}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjJubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjFubj)}(hhh]h)}(h anonymoush]h anonymous}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1juhjahKhjubjv)}(h``xfer_atomic`` Same as **xfer**. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional. h](j|)}(h``xfer_atomic``h]j)}(hjh]h xfer_atomic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(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 }(hjhhhNhNubj[)}(h**xfer**h]hxfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubhc. 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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(h7``master_xfer_atomic`` deprecated, use **xfer_atomic** h](j|)}(h``master_xfer_atomic``h]j)}(hjh]hmaster_xfer_atomic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(hdeprecated, use **xfer_atomic**h](hdeprecated, use }(hjhhhNhNubj[)}(h**xfer_atomic**h]h xfer_atomic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(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](j|)}(h``smbus_xfer``h]j)}(hjh]h smbus_xfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjubj)}(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.}(hj1hhhNhNubah}(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&]uh1juhj-hM hjubjv)}(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](j|)}(h``smbus_xfer_atomic``h]j)}(hjRh]hsmbus_xfer_atomic}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j hjPubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjLubj)}(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 }(hjkhhhNhNubj[)}(h**smbus_xfer**h]h smbus_xfer}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjkubhc. Yet, only using atomic context so e.g. PMICs can be accessed very late before shutdown. Optional.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1juhjghM hjubjv)}(hl``functionality`` Return the flags that this algorithm/adapter pair supports from the ``I2C_FUNC_*`` flags. h](j|)}(h``functionality``h]j)}(hjh]h functionality}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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 }(hjhhhNhNubj)}(h``I2C_FUNC_*``h]h I2C_FUNC_*}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh 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&]uh1juhjhMhjubjv)}(h``{unnamed_union}`` anonymous h](j|)}(h``{unnamed_union}``h]j)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhjubjv)}(hJ``reg_target`` Register given client to local target mode of this adapter h](j|)}(h``reg_target``h]j)}(hj#h]h reg_target}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj!ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h:Register given client to local target mode of this adapterh]h:Register given client to local target mode of this adapter}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj8hMhjubjv)}(h-``reg_slave`` deprecated, use **reg_target** h](j|)}(h ``reg_slave``h]j)}(hj\h]h reg_slave}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjZubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjVubj)}(hhh]h)}(hdeprecated, use **reg_target**h](hdeprecated, use }(hjuhhhNhNubj[)}(h**reg_target**h]h reg_target}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjuubeh}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1juhjqhMhjubjv)}(h``{unnamed_union}`` anonymous h](j|)}(h``{unnamed_union}``h]j)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhKhjubj)}(hhh]h)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhjubjv)}(hP``unreg_target`` Unregister given client from local target mode of this adapter h](j|)}(h``unreg_target``h]j)}(hjh]h unreg_target}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhjhMhjubjv)}(h0``unreg_slave`` deprecated, use **unreg_target**h](j|)}(h``unreg_slave``h]j)}(hjh]h unreg_slave}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjubj)}(hhh]h)}(h deprecated, use **unreg_target**h](hdeprecated, use }(hj.hhhNhNubj[)}(h**unreg_target**h]h unreg_target}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.ubeh}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj*hMhjubeh}(h]h ]h"]h$]h&]uh1jphjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubh)}(h**Description**h]j[)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdubah}(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.}(hj|hhhNhNubah}(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 }(hjhhhNhNubj)}(h``xfer{_atomic}``h]h xfer{_atomic}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh 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.hhMhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_lock_operations (C struct)c.i2c_lock_operationshNtauh1jhhhhhNhNubj)}(hhh](j)}(hi2c_lock_operationsh]j)}(hstruct i2c_lock_operationsh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM"ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM"ubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhM"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.hhMJhj hhubah}(h]h ]h"]h$]h&]uh1j)hjhhhjhM"ubeh}(h]h ](jstructeh"]h$]h&]jJjjKj jLj jMjNjOuh1jhhhhhNhNubjQ)}(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](j[)}(h**Definition**h]h Definition}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj' ubh:}(hj' hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMNhj# 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); };}hjD sbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMPhj# ubh)}(h **Members**h]j[)}(hjU h]hMembers}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjS ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMVhj# ubjq)}(hhh](jv)}(h8``lock_bus`` Get exclusive access to an I2C bus segment h](j|)}(h ``lock_bus``h]j)}(hjt h]hlock_bus}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjr ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMLhjn 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 hMLhj ubah}(h]h ]h"]h$]h&]uh1jhjn ubeh}(h]h ]h"]h$]h&]uh1juhj hMLhjk ubjv)}(hB``trylock_bus`` Try to get exclusive access to an I2C bus segment h](j|)}(h``trylock_bus``h]j)}(hj h]h trylock_bus}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMMhj 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 hMMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1juhj hMMhjk ubjv)}(h=``unlock_bus`` Release exclusive access to an I2C bus segmenth](j|)}(h``unlock_bus``h]j)}(hj h]h unlock_bus}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMMhj 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.hhMNhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1juhj hMMhjk ubeh}(h]h ]h"]h$]h&]uh1jphj# ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubh)}(h**Description**h]j[)}(hj)!h]h Description}(hj+!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj'!ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMQhhhhubh)}(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.}(hj?!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMNhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_timings (C struct) c.i2c_timingshNtauh1jhhhhhNhNubj)}(hhh](j)}(h i2c_timingsh]j)}(hstruct i2c_timingsh](j)}(hjh]hstruct}(hjg!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjc!hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMSubj)}(h h]h }(hju!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc!hhhjt!hMSubj)}(h i2c_timingsh]j)}(hja!h]h i2c_timings}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjc!hhhjt!hMSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_!hhhjt!hMSubah}(h]jZ!ah ](j!j"eh"]h$]h&]j&j')j(huh1jhjt!hMShj\!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.hhMXhj!hhubah}(h]h ]h"]h$]h&]uh1j)hj\!hhhjt!hMSubeh}(h]h ](jstructeh"]h$]h&]jJjjKj!jLj!jMjNjOuh1jhhhhhNhNubjQ)}(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](j[)}(h**Definition**h]h Definition}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj!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]j[)}(hj!h]hMembers}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj!ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMihj!ubjq)}(hhh](jv)}(h(``bus_freq_hz`` the bus frequency in Hz h](j|)}(h``bus_freq_hz``h]j)}(hj"h]h bus_freq_hz}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj"ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMZhj"ubj)}(hhh]h)}(hthe bus frequency in Hzh]hthe bus frequency in Hz}(hj/"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+"hMZhj,"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1juhj+"hMZhj "ubjv)}(hS``scl_rise_ns`` time SCL signal takes to rise in ns; t(r) in the I2C specification h](j|)}(h``scl_rise_ns``h]j)}(hjO"h]h scl_rise_ns}(hjQ"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjM"ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM[hjI"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}(hjh"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd"hM[hje"ubah}(h]h ]h"]h$]h&]uh1jhjI"ubeh}(h]h ]h"]h$]h&]uh1juhjd"hM[hj "ubjv)}(hS``scl_fall_ns`` time SCL signal takes to fall in ns; t(f) in the I2C specification h](j|)}(h``scl_fall_ns``h]j)}(hj"h]h scl_fall_ns}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj"ubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhj"hM\hj "ubjv)}(hH``scl_int_delay_ns`` time IP core additionally needs to setup SCL in ns h](j|)}(h``scl_int_delay_ns``h]j)}(hj"h]hscl_int_delay_ns}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj"ubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhj"hM]hj "ubjv)}(hS``sda_fall_ns`` time SDA signal takes to fall in ns; t(f) in the I2C specification h](j|)}(h``sda_fall_ns``h]j)}(hj"h]h sda_fall_ns}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj"ubah}(h]h ]h"]h$]h&]uh1j{hR/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}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM^hj#ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1juhj#hM^hj "ubjv)}(hB``sda_hold_ns`` time IP core additionally needs to hold SDA in ns h](j|)}(h``sda_hold_ns``h]j)}(hj3#h]h sda_hold_ns}(hj5#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj1#ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM_hj-#ubj)}(hhh]h)}(h1time IP core additionally needs to hold SDA in nsh]h1time IP core additionally needs to hold SDA in ns}(hjL#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH#hM_hjI#ubah}(h]h ]h"]h$]h&]uh1jhj-#ubeh}(h]h ]h"]h$]h&]uh1juhjH#hM_hj "ubjv)}(hn``digital_filter_width_ns`` width in ns of spikes on i2c lines that the IP core digital filter can filter out h](j|)}(h``digital_filter_width_ns``h]j)}(hjl#h]hdigital_filter_width_ns}(hjn#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjj#ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMahjf#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.hhM`hj#ubah}(h]h ]h"]h$]h&]uh1jhjf#ubeh}(h]h ]h"]h$]h&]uh1juhj#hMahj "ubjv)}(h[``analog_filter_cutoff_freq_hz`` threshold frequency for the low pass IP core analog filterh](j|)}(h ``analog_filter_cutoff_freq_hz``h]j)}(hj#h]hanalog_filter_cutoff_freq_hz}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj#ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMbhj#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 ]Th"]h$]h&]uh1hhj#hMbhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1juhj#hMbhj "ubeh}(h]h ]h"]h$]h&]uh1jphj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j i2c_bus_recovery_info (C struct)c.i2c_bus_recovery_infohNtauh1jhhhhhNhNubj)}(hhh](j)}(hi2c_bus_recovery_infoh]j)}(hstruct i2c_bus_recovery_infoh](j)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMiubj)}(h h]h }(hj $hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj $hMiubj)}(hi2c_bus_recovery_infoh]j)}(hj#h]hi2c_bus_recovery_info}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj#hhhj $hMiubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj $hMiubah}(h]j#ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj $hMihj#hhubj*)}(hhh]h)}(hI2C bus recovery informationh]hI2C bus recovery information}(hjA$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMphj>$hhubah}(h]h ]h"]h$]h&]uh1j)hj#hhhj $hMiubeh}(h]h ](jstructeh"]h$]h&]jJjjKjY$jLjY$jMjNjOuh1jhhhhhNhNubjQ)}(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](j[)}(h**Definition**h]h Definition}(hje$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhja$ubh:}(hja$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMthj]$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.hhMvhj]$ubh)}(h **Members**h]j[)}(hj$h]hMembers}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj$ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj]$ubjq)}(hhh](jv)}(hl``recover_bus`` Recover routine. Either pass driver's recover_bus() routine, or i2c_generic_scl_recovery(). h](j|)}(h``recover_bus``h]j)}(hj$h]h recover_bus}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj$ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMshj$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.hhMrhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1juhj$hMshj$ubjv)}(h``get_scl`` This gets current value of SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery. h](j|)}(h ``get_scl``h]j)}(hj$h]hget_scl}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj$ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMuhj$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.hhMthj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1juhj$hMuhj$ubjv)}(h``set_scl`` This sets/clears the SCL line. Mandatory for generic SCL recovery. Populated internally for generic GPIO recovery. h](j|)}(h ``set_scl``h]j)}(hj"%h]hset_scl}(hj$%hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj %ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMwhj%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.hhMvhj8%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1juhj7%hMwhj$ubjv)}(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](j|)}(h ``get_sda``h]j)}(hj\%h]hget_sda}(hj^%hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjZ%ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMzhjV%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.}(hju%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMxhjr%ubah}(h]h ]h"]h$]h&]uh1jhjV%ubeh}(h]h ]h"]h$]h&]uh1juhjq%hMzhj$ubjv)}(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](j|)}(h ``set_sda``h]j)}(hj%h]hset_sda}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj%ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM}hj%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&]uh1juhj%hM}hj$ubjv)}(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](j|)}(h``get_bus_free``h]j)}(hj%h]h get_bus_free}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj%ubah}(h]h ]h"]h$]h&]uh1j{hR/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.hhM~hj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1juhj%hMhj$ubjv)}(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](j|)}(h``prepare_recovery``h]j)}(hj &h]hprepare_recovery}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj&ubah}(h]h ]h"]h$]h&]uh1j{hR/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.}(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&]uh1juhj&hMhj$ubjv)}(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](j|)}(h``unprepare_recovery``h]j)}(hjD&h]hunprepare_recovery}(hjF&hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjB&ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj>&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.hhMhjZ&ubah}(h]h ]h"]h$]h&]uh1jhj>&ubeh}(h]h ]h"]h$]h&]uh1juhjY&hMhj$ubjv)}(hF``scl_gpiod`` gpiod of the SCL line. Only required for GPIO recovery. h](j|)}(h ``scl_gpiod``h]j)}(hj~&h]h scl_gpiod}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj|&ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjx&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&]uh1jhjx&ubeh}(h]h ]h"]h$]h&]uh1juhj&hMhj$ubjv)}(hF``sda_gpiod`` gpiod of the SDA line. Only required for GPIO recovery. h](j|)}(h ``sda_gpiod``h]j)}(hj&h]h sda_gpiod}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj&ubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhj&hMhj$ubjv)}(hY``pinctrl`` pinctrl used by GPIO recovery to change the state of the I2C pins. Optional. h](j|)}(h ``pinctrl``h]j)}(hj&h]hpinctrl}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj&ubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhj'hMhj$ubjv)}(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](j|)}(h``pins_default``h]j)}(hj*'h]h pins_default}(hj,'hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj('ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj$'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.}(hjC'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&]uh1juhj?'hMhj$ubjv)}(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](j|)}(h ``pins_gpio``h]j)}(hjd'h]h pins_gpio}(hjf'hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjb'ubah}(h]h ]h"]h$]h&]uh1j{hR/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.hhMhjz'ubah}(h]h ]h"]h$]h&]uh1jhj^'ubeh}(h]h ]h"]h$]h&]uh1juhjy'hMhj$ubeh}(h]h ]h"]h$]h&]uh1jphj]$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_adapter_quirks (C struct)c.i2c_adapter_quirkshNtauh1jhhhhhNhNubj)}(hhh](j)}(hi2c_adapter_quirksh]j)}(hstruct i2c_adapter_quirksh](j)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]j ah"]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&]jjjuh1jjjhj'hhhj'hMubah}(h]j'ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj'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&]uh1j)hj'hhhj'hMubeh}(h]h ](jstructeh"]h$]h&]jJjjKj(jLj(jMjNjOuh1jhhhhhNhNubjQ)}(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](j[)}(h**Definition**h]h Definition}(hj$(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj (ubh:}(hj (hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj(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; };}hj=(sbah}(h]h ]h"]h$]h&]jjuh1j hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj(ubh)}(h **Members**h]j[)}(hjN(h]hMembers}(hjP(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjL(ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj(ubjq)}(hhh](jv)}(h9``flags`` see I2C_AQ_* for possible flags and read below h](j|)}(h ``flags``h]j)}(hjm(h]hflags}(hjo(hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjk(ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjg(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&]uh1jhjg(ubeh}(h]h ]h"]h$]h&]uh1juhj(hMhjd(ubjv)}(h9``max_num_msgs`` maximum number of messages per transfer h](j|)}(h``max_num_msgs``h]j)}(hj(h]h max_num_msgs}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj(ubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhj(hMhjd(ubjv)}(h4``max_write_len`` maximum length of a write message h](j|)}(h``max_write_len``h]j)}(hj(h]h max_write_len}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj(ubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhj(hMhjd(ubjv)}(h2``max_read_len`` maximum length of a read message h](j|)}(h``max_read_len``h]j)}(hj)h]h max_read_len}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj)ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj)ubj)}(hhh]h)}(h maximum length of a read messageh]h maximum length of a read message}(hj1)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-)hMhj.)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1juhj-)hMhjd(ubjv)}(hO``max_comb_1st_msg_len`` maximum length of the first msg in a combined message h](j|)}(h``max_comb_1st_msg_len``h]j)}(hjQ)h]hmax_comb_1st_msg_len}(hjS)hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjO)ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjK)ubj)}(hhh]h)}(h5maximum length of the first msg in a combined messageh]h5maximum length of the first msg in a combined message}(hjj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjf)hMhjg)ubah}(h]h ]h"]h$]h&]uh1jhjK)ubeh}(h]h ]h"]h$]h&]uh1juhjf)hMhjd(ubjv)}(hO``max_comb_2nd_msg_len`` maximum length of the second msg in a combined messageh](j|)}(h``max_comb_2nd_msg_len``h]j)}(hj)h]hmax_comb_2nd_msg_len}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj)ubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhj)hMhjd(ubeh}(h]h ]h"]h$]h&]uh1jphj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubh)}(h**Description**h]j[)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj)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.hhMhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_lock_bus (C function)c.i2c_lock_bushNtauh1jhhhhhNhNubj)}(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}(hj *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}(hj,*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(*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)}(hjh]hstruct}(hjH*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjD*ubj)}(h h]h }(hjU*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD*ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjf*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc*ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjh*modnameN classnameNjVjY)}j\]j_)}jRj.*sbc.i2c_lock_busasbuh1hhjD*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD*ubjs)}(hjvh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjD*ubj)}(hadapterh]hadapter}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@*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&]noemphjjuh1jhj@*ubeh}(h]h ]h"]h$]h&]jjuh1jhj*hhhj*hM!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj*hM!ubah}(h]j)ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj*hM!hj*hhubj*)}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM!hj+hhubah}(h]h ]h"]h$]h&]uh1j)hj*hhhj*hM!ubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj4+jLj4+jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj>+h]h Parameters}(hj@+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj<+ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM%hj8+ubjq)}(hhh](jv)}(h7``struct i2c_adapter *adapter`` Target I2C bus segment h](j|)}(h``struct i2c_adapter *adapter``h]j)}(hj]+h]hstruct i2c_adapter *adapter}(hj_+hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj[+ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM"hjW+ubj)}(hhh]h)}(hTarget I2C bus segmenth]hTarget I2C bus segment}(hjv+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr+hM"hjs+ubah}(h]h ]h"]h$]h&]uh1jhjW+ubeh}(h]h ]h"]h$]h&]uh1juhjr+hM"hjT+ubjv)}(h``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT locks only this branch in the adapter treeh](j|)}(h``unsigned int flags``h]j)}(hj+h]hunsigned int flags}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj+ubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhj+hM#hjT+ubeh}(h]h ]h"]h$]h&]uh1jphj8+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_trylock_bus (C function)c.i2c_trylock_bushNtauh1jhhhhhNhNubj)}(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.hhM-ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj+hM-ubj)}(hi2c_trylock_bush]j)}(hi2c_trylock_bush]hi2c_trylock_bus}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ,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)}(hjh]hstruct}(hj,,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj(,ubj)}(h h]h }(hj9,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(,ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjJ,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG,ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjL,modnameN classnameNjVjY)}j\]j_)}jRj,sbc.i2c_trylock_busasbuh1hhj(,ubj)}(h h]h }(hjj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(,ubjs)}(hjvh]h*}(hjx,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj(,ubj)}(hadapterh]hadapter}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$,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&]noemphjjuh1jhj$,ubeh}(h]h ]h"]h$]h&]jjuh1jhj+hhhj+hM-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+hhhj+hM-ubah}(h]j+ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj+hM-hj+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&]uh1j)hj+hhhj+hM-ubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj-jLj-jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj"-h]h Parameters}(hj$-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj -ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM1hj-ubjq)}(hhh](jv)}(h7``struct i2c_adapter *adapter`` Target I2C bus segment h](j|)}(h``struct i2c_adapter *adapter``h]j)}(hjA-h]hstruct i2c_adapter *adapter}(hjC-hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj?-ubah}(h]h ]h"]h$]h&]uh1j{hR/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}(hjZ-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV-hM.hjW-ubah}(h]h ]h"]h$]h&]uh1jhj;-ubeh}(h]h ]h"]h$]h&]uh1juhjV-hM.hj8-ubjv)}(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](j|)}(h``unsigned int flags``h]j)}(hjz-h]hunsigned int flags}(hj|-hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjx-ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM0hjt-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.hhM/hj-ubah}(h]h ]h"]h$]h&]uh1jhjt-ubeh}(h]h ]h"]h$]h&]uh1juhj-hM0hj8-ubeh}(h]h ]h"]h$]h&]uh1jphj-ubh)}(h **Return**h]j[)}(hj-h]hReturn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM2hj-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.hhM2hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_unlock_bus (C function)c.i2c_unlock_bushNtauh1jhhhhhNhNubj)}(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.hhM;ubj)}(h h]h }(hj .hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj .hM;ubj)}(hi2c_unlock_bush]j)}(hi2c_unlock_bush]hi2c_unlock_bus}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.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)}(hjh]hstruct}(hj8.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj4.ubj)}(h h]h }(hjE.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4.ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjV.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS.ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjX.modnameN classnameNjVjY)}j\]j_)}jRj.sbc.i2c_unlock_busasbuh1hhj4.ubj)}(h h]h }(hjv.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4.ubjs)}(hjvh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj4.ubj)}(hadapterh]hadapter}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0.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&]noemphjjuh1jhj0.ubeh}(h]h ]h"]h$]h&]jjuh1jhj-hhhj .hM;ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj .hM;ubah}(h]j-ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj .hM;hj-hhubj*)}(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.hhM;hj /hhubah}(h]h ]h"]h$]h&]uh1j)hj-hhhj .hM;ubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj$/jLj$/jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj./h]h Parameters}(hj0/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj,/ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM?hj(/ubjq)}(hhh](jv)}(h7``struct i2c_adapter *adapter`` Target I2C bus segment h](j|)}(h``struct i2c_adapter *adapter``h]j)}(hjM/h]hstruct i2c_adapter *adapter}(hjO/hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjK/ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM<hjG/ubj)}(hhh]h)}(hTarget I2C bus segmenth]hTarget I2C bus segment}(hjf/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb/hM<hjc/ubah}(h]h ]h"]h$]h&]uh1jhjG/ubeh}(h]h ]h"]h$]h&]uh1juhjb/hM<hjD/ubjv)}(h``unsigned int flags`` I2C_LOCK_ROOT_ADAPTER unlocks the root i2c adapter, I2C_LOCK_SEGMENT unlocks only this branch in the adapter treeh](j|)}(h``unsigned int flags``h]j)}(hj/h]hunsigned int flags}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj/ubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhj/hM=hjD/ubeh}(h]h ]h"]h$]h&]uh1jphj(/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_mark_adapter_suspended (C function)c.i2c_mark_adapter_suspendedhNtauh1jhhhhhNhNubj)}(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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMGubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj/hMGubj)}(hi2c_mark_adapter_suspendedh]j)}(hi2c_mark_adapter_suspendedh]hi2c_mark_adapter_suspended}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj/hhhj/hMGubj)}(h(struct i2c_adapter *adap)h]j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj)0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hj:0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj70ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj<0modnameN classnameNjVjY)}j\]j_)}jRj0sbc.i2c_mark_adapter_suspendedasbuh1hhj0ubj)}(h h]h }(hjZ0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjs)}(hjvh]h*}(hjh0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj0ubj)}(hadaph]hadap}(hju0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubah}(h]h ]h"]h$]h&]jjuh1jhj/hhhj/hMGubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhj/hMGubah}(h]j/ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj/hMGhj/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.hhMGhj0hhubah}(h]h ]h"]h$]h&]uh1j)hj/hhhj/hMGubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj0jLj0jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMKhj0ubjq)}(hhh]jv)}(h:``struct i2c_adapter *adap`` Adapter to mark as suspended h](j|)}(h``struct i2c_adapter *adap``h]j)}(hj0h]hstruct i2c_adapter *adap}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj0ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMHhj0ubj)}(hhh]h)}(hAdapter to mark as suspendedh]hAdapter to mark as suspended}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMHhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1juhj0hMHhj0ubah}(h]h ]h"]h$]h&]uh1jphj0ubh)}(h**Description**h]j[)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMJhj0ubh)}(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.}(hj11hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMIhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_mark_adapter_resumed (C function)c.i2c_mark_adapter_resumedhNtauh1jhhhhhNhNubj)}(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}(hj`1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\1hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMXubj)}(h h]h }(hjo1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\1hhhjn1hMXubj)}(hi2c_mark_adapter_resumedh]j)}(hi2c_mark_adapter_resumedh]hi2c_mark_adapter_resumed}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}1ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj\1hhhjn1hMXubj)}(h(struct i2c_adapter *adap)h]j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetj1modnameN classnameNjVjY)}j\]j_)}jRj1sbc.i2c_mark_adapter_resumedasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjs)}(hjvh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj1ubj)}(hadaph]hadap}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubah}(h]h ]h"]h$]h&]jjuh1jhj\1hhhjn1hMXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjX1hhhjn1hMXubah}(h]jS1ah ](j!j"eh"]h$]h&]j&j')j(huh1jhjn1hMXhjU1hhubj*)}(hhh]h)}(h/Report resumed state of the adapter to the coreh]h/Report resumed state of the adapter to the core}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMXhj2hhubah}(h]h ]h"]h$]h&]uh1j)hjU1hhhjn1hMXubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj82jLj82jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjB2h]h Parameters}(hjD2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@2ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM\hj<2ubjq)}(hhh]jv)}(h8``struct i2c_adapter *adap`` Adapter to mark as resumed h](j|)}(h``struct i2c_adapter *adap``h]j)}(hja2h]hstruct i2c_adapter *adap}(hjc2hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj_2ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMYhj[2ubj)}(hhh]h)}(hAdapter to mark as resumedh]hAdapter to mark as resumed}(hjz2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv2hMYhjw2ubah}(h]h ]h"]h$]h&]uh1jhj[2ubeh}(h]h ]h"]h$]h&]uh1juhjv2hMYhjX2ubah}(h]h ]h"]h$]h&]uh1jphj<2ubh)}(h**Description**h]j[)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhM[hj<2ubh)}(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 }(hj2hhhNhNubj[)}(h"**i2c_mark_adapter_suspended\(\)**h]hi2c_mark_adapter_suspended()}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2ubh.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMZhj<2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_check_quirks (C function)c.i2c_check_quirkshNtauh1jhhhhhNhNubj)}(hhh](j)}(h4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj:4ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj64ubj)}(hhh]h)}(h i2c adapterh]h i2c adapter}(hjU4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ4hMhjR4ubah}(h]h ]h"]h$]h&]uh1jhj64ubeh}(h]h ]h"]h$]h&]uh1juhjQ4hMhj34ubjv)}(h``u64 quirks`` quirk flags h](j|)}(h``u64 quirks``h]j)}(hju4h]h u64 quirks}(hjw4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjs4ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjo4ubj)}(hhh]h)}(h quirk flagsh]h quirk flags}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjo4ubeh}(h]h ]h"]h$]h&]uh1juhj4hMhj34ubeh}(h]h ]h"]h$]h&]uh1jphj4ubh)}(h **Return**h]j[)}(hj4h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj4ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhj4ubh)}(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.hhMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jmodule_i2c_driver (C macro)c.module_i2c_driverhNtauh1jhhhhhNhNubj)}(hhh](j)}(hmodule_i2c_driverh]j)}(hmodule_i2c_driverh]j)}(hmodule_i2c_driverh]j)}(hj4h]hmodule_i2c_driver}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj4hhhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhj 5hMubah}(h]j4ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj 5hMhj4hhubj*)}(hhh]h}(h]h ]h"]h$]h&]uh1j)hj4hhhj 5hMubeh}(h]h ](jmacroeh"]h$]h&]jJjjKj%5jLj%5jMjNjOuh1jhhhhhNhNubh)}(h$``module_i2c_driver (__i2c_driver)``h]j)}(hj+5h]h module_i2c_driver (__i2c_driver)}(hj-5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj)5ubah}(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}(hjE5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjA5ubah}(h]h ]h"]h$]h&]uh1jhjS5hMhhhhubjQ)}(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]j[)}(hj`5h]h Parameters}(hjb5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^5ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjZ5ubjq)}(hhh]jv)}(h#``__i2c_driver`` i2c_driver struct h](j|)}(h``__i2c_driver``h]j)}(hj5h]h __i2c_driver}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj}5ubah}(h]h ]h"]h$]h&]uh1j{hR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjy5ubj)}(hhh]h)}(hi2c_driver structh]hi2c_driver struct}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjy5ubeh}(h]h ]h"]h$]h&]uh1juhj5hMhjv5ubah}(h]h ]h"]h$]h&]uh1jphjZ5ubh)}(h**Description**h]j[)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj5ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjZ5ubh)}(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.hhMhjZ5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jbuiltin_i2c_driver (C macro)c.builtin_i2c_driverhNtauh1jhhhhhNhNubj)}(hhh](j)}(hbuiltin_i2c_driverh]j)}(hbuiltin_i2c_driverh]j)}(hbuiltin_i2c_driverh]j)}(hj5h]hbuiltin_i2c_driver}(hj6hhhNhNubah}(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&]jjjuh1jjjhj5hhhj6hMubah}(h]j5ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj6hMhj5hhubj*)}(hhh]h}(h]h ]h"]h$]h&]uh1j)hj5hhhj6hMubeh}(h]h ](jmacroeh"]h$]h&]jJjjKj/6jLj/6jMjNjOuh1jhhhhhNhNubh)}(h%``builtin_i2c_driver (__i2c_driver)``h]j)}(hj56h]h!builtin_i2c_driver (__i2c_driver)}(hj76hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj36ubah}(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}(hjO6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjK6ubah}(h]h ]h"]h$]h&]uh1jhj]6hMhhhhubjQ)}(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]j[)}(hjj6h]h Parameters}(hjl6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjh6ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjd6ubjq)}(hhh]jv)}(h#``__i2c_driver`` i2c_driver struct h](j|)}(h``__i2c_driver``h]j)}(hj6h]h __i2c_driver}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj6ubah}(h]h ]h"]h$]h&]uh1j{hR/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&]uh1juhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jphjd6ubh)}(h**Description**h]j[)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:38: ./include/linux/i2c.hhMhjd6ubh)}(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.hhMhjd6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$i2c_register_board_info (C function)c.i2c_register_board_infohNtauh1jhhhhhNhNubj)}(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&]uh1jhj7hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chKubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj7hKubj)}(hi2c_register_board_infoh]j)}(hi2c_register_board_infoh]hi2c_register_board_info}(hj*7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&7ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj7hhhj7hKubj)}(h=(int busnum, struct i2c_board_info const *info, unsigned len)h](j)}(h int busnumh](j)}(hinth]hint}(hjF7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB7ubj)}(h h]h }(hjT7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB7ubj)}(hbusnumh]hbusnum}(hjb7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>7ubj)}(h!struct i2c_board_info const *infoh](j)}(hjh]hstruct}(hj{7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjw7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw7ubh)}(hhh]j)}(hi2c_board_infoh]hi2c_board_info}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj7modnameN classnameNjVjY)}j\]j_)}jRj,7sbc.i2c_register_board_infoasbuh1hhjw7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw7ubj)}(hjh]hconst}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjw7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw7ubjs)}(hjvh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjw7ubj)}(hinfoh]hinfo}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>7ubj)}(h unsigned lenh](j)}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hlenh]hlen}(hj$8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>7ubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hKubah}(h]j6ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj7hKhj6hhubj*)}(hhh]h)}(hstatically declare I2C devicesh]hstatically declare I2C devices}(hjN8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chKhjK8hhubah}(h]h ]h"]h$]h&]uh1j)hj6hhhj7hKubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjf8jLjf8jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjp8h]h Parameters}(hjr8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjn8ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK"hjj8ubjq)}(hhh](jv)}(h@``int busnum`` identifies the bus to which these devices belong h](j|)}(h``int busnum``h]j)}(hj8h]h int busnum}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj8ubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhj8hKhj8ubjv)}(hG``struct i2c_board_info const *info`` vector of i2c device descriptors h](j|)}(h%``struct i2c_board_info const *info``h]j)}(hj8h]h!struct i2c_board_info const *info}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj8ubah}(h]h ]h"]h$]h&]uh1j{hZ/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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hK hj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1juhj8hK hj8ubjv)}(hf``unsigned len`` how many descriptors in the vector; may be zero to reserve the specified bus number. h](j|)}(h``unsigned len``h]j)}(hj9h]h unsigned len}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj8ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK"hj8ubj)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK!hj9ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1juhj9hK"hj8ubeh}(h]h ]h"]h$]h&]uh1jphjj8ubh)}(h**Description**h]j[)}(hj=9h]h Description}(hj?9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj;9ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK$hjj8ubh)}(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.}(hjS9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK#hjj8ubh)}(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.}(hjb9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK)hjj8ubh)}(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.}(hjq9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:41: ./drivers/i2c/i2c-boardinfo.chK/hjj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_verify_client (C function)c.i2c_verify_clienthNtauh1jhhhhhNhNubj)}(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)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetj9modnameN classnameNjVjY)}j\]j_)}jRi2c_verify_clientsbc.i2c_verify_clientasbuh1hhj9hhhj9hMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hMubjs)}(hjvh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj9hhhj9hMubj)}(hi2c_verify_clienth]j)}(hj9h]hi2c_verify_client}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj9hhhj9hMubj)}(h(struct device *dev)h]j)}(hstruct device *devh](j)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj':hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j)}(hdeviceh]hdevice}(hj8:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5:ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj::modnameN classnameNjVjY)}j\]j9c.i2c_verify_clientasbuh1hhj:ubj)}(h h]h }(hjV:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjs)}(hjvh]h*}(hjd:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj:ubj)}(hdevh]hdev}(hjq:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj9hMubah}(h]j9ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj9hMhj9hhubj*)}(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&]uh1j)hj9hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj:jLj:jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj:ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj:ubjq)}(hhh]jv)}(hH``struct device *dev`` device, probably from some driver model iterator h](j|)}(h``struct device *dev``h]j)}(hj:h]hstruct device *dev}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj:ubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jphj:ubh)}(h**Description**h]j[)}(hj;h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj;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 }(hj-;hhhNhNubj[)}(h**device_for_each_child\(\)**h]hdevice_for_each_child()}(hj5;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-;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.}(hj-;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&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"i2c_new_client_device (C function)c.i2c_new_client_devicehNtauh1jhhhhhNhNubj)}(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)}(hjh]hstruct}(hjn;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjj;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&]uh1jhjj;hhhj{;hMubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj;modnameN classnameNjVjY)}j\]j_)}jRi2c_new_client_devicesbc.i2c_new_client_deviceasbuh1hhjj;hhhj{;hMubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj;hhhj{;hMubjs)}(hjvh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjj;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&]jjuh1jhjj;hhhj{;hMubj)}(h=(struct i2c_adapter *adap, struct i2c_board_info const *info)h](j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetj<modnameN classnameNjVjY)}j\]j;c.i2c_new_client_deviceasbuh1hhj;ubj)}(h h]h }(hj$<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjs)}(hjvh]h*}(hj2<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj;ubj)}(hadaph]hadap}(hj?<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(h!struct i2c_board_info const *infoh](j)}(hjh]hstruct}(hjX<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjT<ubj)}(h h]h }(hje<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT<ubh)}(hhh]j)}(hi2c_board_infoh]hi2c_board_info}(hjv<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs<ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjx<modnameN classnameNjVjY)}j\]j;c.i2c_new_client_deviceasbuh1hhjT<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT<ubj)}(hjh]hconst}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjT<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT<ubjs)}(hjvh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjT<ubj)}(hinfoh]hinfo}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubeh}(h]h ]h"]h$]h&]jjuh1jhjj;hhhj{;hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjf;hhhj{;hMubah}(h]ja;ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj{;hMhjc;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&]uh1j)hjc;hhhj{;hMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj =jLj =jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj=ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj=ubjq)}(hhh](jv)}(h=``struct i2c_adapter *adap`` the adapter managing the device h](j|)}(h``struct i2c_adapter *adap``h]j)}(hj5=h]hstruct i2c_adapter *adap}(hj7=hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj3=ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj/=ubj)}(hhh]h)}(hthe adapter managing the deviceh]hthe adapter managing the device}(hjN=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJ=hMhjK=ubah}(h]h ]h"]h$]h&]uh1jhj/=ubeh}(h]h ]h"]h$]h&]uh1juhjJ=hMhj,=ubjv)}(hS``struct i2c_board_info const *info`` describes one I2C device; bus_num is ignored h](j|)}(h%``struct i2c_board_info const *info``h]j)}(hjn=h]h!struct i2c_board_info const *info}(hjp=hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjl=ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjh=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&]uh1jhjh=ubeh}(h]h ]h"]h$]h&]uh1juhj=hMhj,=ubeh}(h]h ]h"]h$]h&]uh1jphj=ubh)}(h **Context**h]j[)}(hj=h]hContext}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj=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=ubh)}(h**Description**h]j[)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj=ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj=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.chMhj=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.chMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"i2c_unregister_device (C function)c.i2c_unregister_devicehNtauh1jhhhhhNhNubj)}(hhh](j)}(h6void i2c_unregister_device (struct i2c_client *client)h]j)}(h5void i2c_unregister_device(struct i2c_client *client)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 }(hj3>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj >hhhj2>hMubj)}(hi2c_unregister_deviceh]j)}(hi2c_unregister_deviceh]hi2c_unregister_device}(hjE>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA>ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj >hhhj2>hMubj)}(h(struct i2c_client *client)h]j)}(hstruct i2c_client *clienth](j)}(hjh]hstruct}(hja>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj]>ubj)}(h h]h }(hjn>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&] refdomainjreftypejR reftargetj>modnameN classnameNjVjY)}j\]j_)}jRjG>sbc.i2c_unregister_deviceasbuh1hhj]>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]>ubjs)}(hjvh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj]>ubj)}(hclienth]hclient}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjY>ubah}(h]h ]h"]h$]h&]jjuh1jhj >hhhj2>hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj2>hMubah}(h]j>ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj2>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&]uh1j)hj>hhhj2>hMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj>jLj>jMjNjOuh1jhhhhhNhNubjQ)}(hn**Parameters** ``struct i2c_client *client`` value returned from i2c_new_*_device() **Context** can sleeph](h)}(h**Parameters**h]j[)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj?ubjq)}(hhh]jv)}(hE``struct i2c_client *client`` value returned from i2c_new_*_device() h](j|)}(h``struct i2c_client *client``h]j)}(hj%?h]hstruct i2c_client *client}(hj'?hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj#?ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj?ubj)}(hhh]h)}(h&value returned from i2c_new_*_device()h]h&value returned from i2c_new_*_device()}(hj>?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:?hMhj;?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1juhj:?hMhj?ubah}(h]h ]h"]h$]h&]uh1jphj?ubh)}(h **Context**h]j[)}(hj`?h]hContext}(hjb?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^?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}(hjv?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&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_find_device_by_fwnode (C function)c.i2c_find_device_by_fwnodehNtauh1jhhhhhNhNubj)}(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)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj?hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM7ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj?hM7ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj?modnameN classnameNjVjY)}j\]j_)}jRi2c_find_device_by_fwnodesbc.i2c_find_device_by_fwnodeasbuh1hhj?hhhj?hM7ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj?hM7ubjs)}(hjvh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj?hhhj?hM7ubj)}(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?hM7ubj)}(h(struct fwnode_handle *fwnode)h]j)}(hstruct fwnode_handle *fwnodeh](j)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj@ubj)}(h h]h }(hj,@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hj=@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:@ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj?@modnameN classnameNjVjY)}j\]j?c.i2c_find_device_by_fwnodeasbuh1hhj@ubj)}(h h]h }(hj[@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjs)}(hjvh]h*}(hji@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj@ubj)}(hfwnodeh]hfwnode}(hjv@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubah}(h]h ]h"]h$]h&]jjuh1jhj?hhhj?hM7ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhj?hM7ubah}(h]j?ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj?hM7hj?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.chM7hj@hhubah}(h]h ]h"]h$]h&]uh1j)hj?hhhj?hM7ubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj@jLj@jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM;hj@ubjq)}(hhh]jv)}(h``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_client ` h](j|)}(h ``struct fwnode_handle *fwnode``h]j)}(hj@h]hstruct fwnode_handle *fwnode}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj@ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM8hj@ubj)}(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]j)}(hjAh]hstruct fwnode_handle}(hjAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hj@ubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjj, fwnode_handleuh1hhj@hM8hj@ubh corresponding to the }(hj@hhhNhNubh)}(h(:c:type:`struct i2c_client `h]j)}(hj#Ah]hstruct i2c_client}(hj%AhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hj!Aubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjj, i2c_clientuh1hhj@hM8hj@ubeh}(h]h ]h"]h$]h&]uh1hhj@hM8hj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1juhj@hM8hj@ubah}(h]h ]h"]h$]h&]uh1jphj@ubh)}(h**Description**h]j[)}(hjZAh]h Description}(hj\AhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjXAubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM:hj@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 }(hjpAhhhNhNubh)}(h(:c:type:`struct i2c_client `h]j)}(hjzAh]hstruct i2c_client}(hj|AhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjxAubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjj, i2c_clientuh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM9hjpAubh corresponding to the }(hjpAhhhNhNubj[)}(h **fwnode**h]hfwnode}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjpAubh . If no client can be found, or }(hjpAhhhNhNubj[)}(h **fwnode**h]hfwnode}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjpAubh is NULL, this returns NULL.}(hjpAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhM9hj@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]j)}(hjAh]h client->dev}(hjAhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjAubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjj,clientuh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM<hjAubh ) once done with the i2c client.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjAhM<hj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!i2c_new_dummy_device (C function)c.i2c_new_dummy_devicehNtauh1jhhhhhNhNubj)}(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)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMfubj)}(h h]h }(hj&BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhj%BhMfubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hj7BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Bubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj9BmodnameN classnameNjVjY)}j\]j_)}jRi2c_new_dummy_devicesbc.i2c_new_dummy_deviceasbuh1hhjBhhhj%BhMfubj)}(h h]h }(hjXBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhj%BhMfubjs)}(hjvh]h*}(hjfBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjBhhhj%BhMfubj)}(hi2c_new_dummy_deviceh]j)}(hjUBh]hi2c_new_dummy_device}(hjwBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsBubah}(h]h ](jjeh"]h$]h&]jjuh1jhjBhhhj%BhMfubj)}(h*(struct i2c_adapter *adapter, u16 address)h](j)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetjBmodnameN classnameNjVjY)}j\]jSBc.i2c_new_dummy_deviceasbuh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjs)}(hjvh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjBubj)}(hadapterh]hadapter}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(h u16 addressh](h)}(hhh]j)}(hu16h]hu16}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjCmodnameN classnameNjVjY)}j\]jSBc.i2c_new_dummy_deviceasbuh1hhjBubj)}(h h]h }(hj#ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(haddressh]haddress}(hj1ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhj%BhMfubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhj%BhMfubah}(h]j Bah ](j!j"eh"]h$]h&]j&j')j(huh1jhj%BhMfhj Bhhubj*)}(hhh]h)}(h/return a new i2c device bound to a dummy driverh]h/return a new i2c device bound to a dummy driver}(hj[ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMfhjXChhubah}(h]h ]h"]h$]h&]uh1j)hj Bhhhj%BhMfubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjsCjLjsCjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj}Ch]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{Cubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMjhjwCubjq)}(hhh](jv)}(h@``struct i2c_adapter *adapter`` the adapter managing the device h](j|)}(h``struct i2c_adapter *adapter``h]j)}(hjCh]hstruct i2c_adapter *adapter}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j hjCubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMghjCubj)}(hhh]h)}(hthe adapter managing the deviceh]hthe adapter managing the device}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMghjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1juhjChMghjCubjv)}(h-``u16 address`` seven bit address to be used h](j|)}(h``u16 address``h]j)}(hjCh]h u16 address}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j hjCubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhhjCubj)}(hhh]h)}(hseven bit address to be usedh]hseven bit address to be used}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1juhjChMhhjCubeh}(h]h ]h"]h$]h&]uh1jphjwCubh)}(h **Context**h]j[)}(hjDh]hContext}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMjhjwCubh)}(h can sleeph]h can sleep}(hj&DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMihjwCubh)}(h**Description**h]j[)}(hj7Dh]h Description}(hj9DhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj5Dubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMkhjwCubh)}(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).}(hjMDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMjhjwCubh)}(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.}(hj\DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMnhjwCubh)}(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.}(hjkDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMshjwCubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&devm_i2c_new_dummy_device (C function)c.devm_i2c_new_dummy_devicehNtauh1jhhhhhNhNubj)}(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)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetjDmodnameN classnameNjVjY)}j\]j_)}jRdevm_i2c_new_dummy_devicesbc.devm_i2c_new_dummy_deviceasbuh1hhjDhhhjDhMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjDhMubjs)}(hjvh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjDhhhjDhMubj)}(hdevm_i2c_new_dummy_deviceh]j)}(hjDh]hdevm_i2c_new_dummy_device}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jhjDhhhjDhMubj)}(h>(struct device *dev, struct i2c_adapter *adapter, u16 address)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjEubj)}(h h]h }(hj!EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j)}(hdeviceh]hdevice}(hj2EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Eubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj4EmodnameN classnameNjVjY)}j\]jDc.devm_i2c_new_dummy_deviceasbuh1hhjEubj)}(h h]h }(hjPEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjs)}(hjvh]h*}(hj^EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjEubj)}(hdevh]hdev}(hjkEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Eubj)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetjEmodnameN classnameNjVjY)}j\]jDc.devm_i2c_new_dummy_deviceasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjs)}(hjvh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjEubj)}(hadapterh]hadapter}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Eubj)}(h u16 addressh](h)}(hhh]j)}(hu16h]hu16}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjEmodnameN classnameNjVjY)}j\]jDc.devm_i2c_new_dummy_deviceasbuh1hhjEubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(haddressh]haddress}(hj#FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Eubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhjDhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjDhMubah}(h]jDah ](j!j"eh"]h$]h&]j&j')j(huh1jhjDhMhjDhhubj*)}(hhh]h)}(h/return a new i2c device bound to a dummy driverh]h/return a new i2c device bound to a dummy driver}(hjMFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjJFhhubah}(h]h ]h"]h$]h&]uh1j)hjDhhhjDhMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjeFjLjeFjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjoFh]h Parameters}(hjqFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjiFubjq)}(hhh](jv)}(h?``struct device *dev`` device the managed resource is bound to h](j|)}(h``struct device *dev``h]j)}(hjFh]hstruct device *dev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjFubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhjFhMhjFubjv)}(h@``struct i2c_adapter *adapter`` the adapter managing the device h](j|)}(h``struct i2c_adapter *adapter``h]j)}(hjFh]hstruct i2c_adapter *adapter}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjFubah}(h]h ]h"]h$]h&]uh1j{hZ/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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1juhjFhMhjFubjv)}(h-``u16 address`` seven bit address to be used h](j|)}(h``u16 address``h]j)}(hjGh]h u16 address}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjFubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjFubj)}(hhh]h)}(hseven bit address to be usedh]hseven bit address to be used}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1juhjGhMhjFubeh}(h]h ]h"]h$]h&]uh1jphjiFubh)}(h **Context**h]j[)}(hj;Gh]hContext}(hj=GhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9Gubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjiFubh)}(h can sleeph]h can sleep}(hjQGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjiFubh)}(h**Description**h]j[)}(hjbGh]h Description}(hjdGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj`Gubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjiFubh)}(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 }(hjxGhhhNhNubj[)}(h**i2c_new_dummy_device**h]hi2c_new_dummy_device}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjxGubhB. It returns the new i2c client or an ERR_PTR in case of an error.}(hjxGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjiFubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_new_ancillary_device (C function)c.i2c_new_ancillary_devicehNtauh1jhhhhhNhNubj)}(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)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetjGmodnameN classnameNjVjY)}j\]j_)}jRi2c_new_ancillary_devicesbc.i2c_new_ancillary_deviceasbuh1hhjGhhhjGhMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjGhMubjs)}(hjvh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjGhhhjGhMubj)}(hi2c_new_ancillary_deviceh]j)}(hjGh]hi2c_new_ancillary_device}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jhjGhhhjGhMubj)}(h?(struct i2c_client *client, const char *name, u16 default_addr)h](j)}(hstruct i2c_client *clienth](j)}(hjh]hstruct}(hj3HhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj/Hubj)}(h h]h }(hj@HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Hubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjQHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNHubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjSHmodnameN classnameNjVjY)}j\]jGc.i2c_new_ancillary_deviceasbuh1hhj/Hubj)}(h h]h }(hjoHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Hubjs)}(hjvh]h*}(hj}HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj/Hubj)}(hclienth]hclient}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+Hubj)}(hconst char *nameh](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]j ah"]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&]uh1jhjHubjs)}(hjvh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjHubj)}(hnameh]hname}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+Hubj)}(hu16 default_addrh](h)}(hhh]j)}(hu16h]hu16}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjImodnameN classnameNjVjY)}j\]jGc.i2c_new_ancillary_deviceasbuh1hhjHubj)}(h h]h }(hj!IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h default_addrh]h default_addr}(hj/IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+Hubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhjGhMubah}(h]jGah ](j!j"eh"]h$]h&]j&j')j(huh1jhjGhMhjGhhubj*)}(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}(hjYIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjVIhhubah}(h]h ]h"]h$]h&]uh1j)hjGhhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjqIjLjqIjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj{Ih]h Parameters}(hj}IhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyIubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjuIubjq)}(hhh](jv)}(h;``struct i2c_client *client`` Handle to the primary client h](j|)}(h``struct i2c_client *client``h]j)}(hjIh]hstruct i2c_client *client}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjIubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhjIhMhjIubjv)}(hF``const char *name`` Handle to specify which secondary address to get h](j|)}(h``const char *name``h]j)}(hjIh]hconst char *name}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjIubah}(h]h ]h"]h$]h&]uh1j{hZ/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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1juhjIhMhjIubjv)}(hN``u16 default_addr`` Used as a fallback if no secondary address was specified h](j|)}(h``u16 default_addr``h]j)}(hj Jh]hu16 default_addr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj Jubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjJubj)}(hhh]h)}(h8Used as a fallback if no secondary address was specifiedh]h8Used as a fallback if no secondary address was specified}(hj%JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!JhMhj"Jubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1juhj!JhMhjIubeh}(h]h ]h"]h$]h&]uh1jphjuIubh)}(h **Context**h]j[)}(hjGJh]hContext}(hjIJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEJubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjuIubh)}(h can sleeph]h can sleep}(hj]JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjuIubh)}(h**Description**h]j[)}(hjnJh]h Description}(hjpJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlJubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjuIubh)}(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.h]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.chMhjuIubh)}(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.chMhjuIubh)}(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.chMhjuIubh)}(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.chMhjuIubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_verify_adapter (C function)c.i2c_verify_adapterhNtauh1jhhhhhNhNubj)}(hhh](j)}(hnr, and the specified adapter became available for clients. Otherwise, a negative errno value is returned.h](h)}(h**Parameters**h]j[)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjOubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMkhjOubjq)}(hhh]jv)}(h3``struct i2c_adapter *adapter`` the adapter to add h](j|)}(h``struct i2c_adapter *adapter``h]j)}(hjOh]hstruct i2c_adapter *adapter}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjOubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhhjOubj)}(hhh]h)}(hthe adapter to addh]hthe adapter to add}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1juhjOhMhhjOubah}(h]h ]h"]h$]h&]uh1jphjOubh)}(h **Context**h]j[)}(hjPh]hContext}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjPubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMjhjOubh)}(h can sleeph]h can sleep}(hj2PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMihjOubh)}(h**Description**h]j[)}(hjCPh]h Description}(hjEPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjAPubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMkhjOubh)}(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.}(hjYPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMjhjOubh)}(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.}(hjhPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMohjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_add_numbered_adapter (C function)c.i2c_add_numbered_adapterhNtauh1jhhhhhNhNubj)}(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)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjPmodnameN classnameNjVjY)}j\]j_)}jRjPsbc.i2c_add_numbered_adapterasbuh1hhjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjs)}(hjvh]h*}(hj QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjPubj)}(hadaph]hadap}(hj-QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhMubah}(h]jPah ](j!j"eh"]h$]h&]j&j')j(huh1jhjPhMhjPhhubj*)}(hhh]h)}(h*declare i2c adapter, use static bus numberh]h*declare i2c adapter, use static bus number}(hjWQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjTQhhubah}(h]h ]h"]h$]h&]uh1j)hjPhhhjPhMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjoQjLjoQjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjyQh]h Parameters}(hj{QhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjwQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjsQubjq)}(hhh]jv)}(hQ``struct i2c_adapter *adap`` the adapter to register (with adap->nr initialized) h](j|)}(h``struct i2c_adapter *adap``h]j)}(hjQh]hstruct i2c_adapter *adap}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjQubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jphjsQubh)}(h **Context**h]j[)}(hjQh]hContext}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjsQubh)}(h can sleeph]h can sleep}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjsQubh)}(h**Description**h]j[)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjsQubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjsQubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjsQubh)}(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.}(hj.RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjsQubh)}(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.}(hj=RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjsQubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_del_adapter (C function)c.i2c_del_adapterhNtauh1jhhhhhNhNubj)}(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}(hjlRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhRhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hj{RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhRhhhjzRhMubj)}(hi2c_del_adapterh]j)}(hi2c_del_adapterh]hi2c_del_adapter}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhRhhhjzRhMubj)}(h(struct i2c_adapter *adap)h]j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetjRmodnameN classnameNjVjY)}j\]j_)}jRjRsbc.i2c_del_adapterasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjs)}(hjvh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjRubj)}(hadaph]hadap}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubah}(h]h ]h"]h$]h&]jjuh1jhjhRhhhjzRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdRhhhjzRhMubah}(h]j_Rah ](j!j"eh"]h$]h&]j&j')j(huh1jhjzRhMhjaRhhubj*)}(hhh]h)}(hunregister I2C adapterh]hunregister I2C adapter}(hj,ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj)Shhubah}(h]h ]h"]h$]h&]uh1j)hjaRhhhjzRhMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjDSjLjDSjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjNSh]h Parameters}(hjPShhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLSubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjHSubjq)}(hhh]jv)}(h<``struct i2c_adapter *adap`` the adapter being unregistered h](j|)}(h``struct i2c_adapter *adap``h]j)}(hjmSh]hstruct i2c_adapter *adap}(hjoShhhNhNubah}(h]h ]h"]h$]h&]uh1j hjkSubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjgSubj)}(hhh]h)}(hthe adapter being unregisteredh]hthe adapter being unregistered}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1jhjgSubeh}(h]h ]h"]h$]h&]uh1juhjShMhjdSubah}(h]h ]h"]h$]h&]uh1jphjHSubh)}(h **Context**h]j[)}(hjSh]hContext}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjSubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjHSubh)}(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.chMhjHSubh)}(h**Description**h]j[)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjSubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjHSubh)}(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 }(hjShhhNhNubj[)}(h**i2c_add_adapter**h]hi2c_add_adapter}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjSubh or }(hjShhhNhNubj[)}(h**i2c_add_numbered_adapter**h]hi2c_add_numbered_adapter}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjSubh.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjHSubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!devm_i2c_add_adapter (C function)c.devm_i2c_add_adapterhNtauh1jhhhhhNhNubj)}(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}(hj8ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ThhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM(ubj)}(h h]h }(hjGThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ThhhjFThM(ubj)}(hdevm_i2c_add_adapterh]j)}(hdevm_i2c_add_adapterh]hdevm_i2c_add_adapter}(hjYThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUTubah}(h]h ](jjeh"]h$]h&]jjuh1jhj4ThhhjFThM(ubj)}(h1(struct device *dev, struct i2c_adapter *adapter)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjuThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjqTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqTubh)}(hhh]j)}(hdeviceh]hdevice}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjTmodnameN classnameNjVjY)}j\]j_)}jRj[Tsbc.devm_i2c_add_adapterasbuh1hhjqTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqTubjs)}(hjvh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjqTubj)}(hdevh]hdev}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmTubj)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjUmodnameN classnameNjVjY)}j\]jTc.devm_i2c_add_adapterasbuh1hhjTubj)}(h h]h }(hj#UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjs)}(hjvh]h*}(hj1UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjTubj)}(hadapterh]hadapter}(hj>UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmTubeh}(h]h ]h"]h$]h&]jjuh1jhj4ThhhjFThM(ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0ThhhjFThM(ubah}(h]j+Tah ](j!j"eh"]h$]h&]j&j')j(huh1jhjFThM(hj-Thhubj*)}(hhh]h)}(h+device-managed variant of i2c_add_adapter()h]h+device-managed variant of i2c_add_adapter()}(hjhUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM(hjeUhhubah}(h]h ]h"]h$]h&]uh1j)hj-ThhhjFThM(ubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjUjLjUjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjUubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM,hjUubjq)}(hhh](jv)}(hC``struct device *dev`` managing device for adding this I2C adapter h](j|)}(h``struct device *dev``h]j)}(hjUh]hstruct device *dev}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjUubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhjUhM)hjUubjv)}(h3``struct i2c_adapter *adapter`` the adapter to add h](j|)}(h``struct i2c_adapter *adapter``h]j)}(hjUh]hstruct i2c_adapter *adapter}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjUubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM*hjUubj)}(hhh]h)}(hthe adapter to addh]hthe adapter to add}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM*hjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1juhjUhM*hjUubeh}(h]h ]h"]h$]h&]uh1jphjUubh)}(h **Context**h]j[)}(hjVh]hContext}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVubah}(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}(hj3VhhhNhNubah}(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]j[)}(hjDVh]h Description}(hjFVhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBVubah}(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.}(hjZVhhhNhNubah}(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&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_find_adapter_by_fwnode (C function)c.i2c_find_adapter_by_fwnodehNtauh1jhhhhhNhNubj)}(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)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMHubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhMHubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjVmodnameN classnameNjVjY)}j\]j_)}jRi2c_find_adapter_by_fwnodesbc.i2c_find_adapter_by_fwnodeasbuh1hhjVhhhjVhMHubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhMHubjs)}(hjvh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjVhhhjVhMHubj)}(hi2c_find_adapter_by_fwnodeh]j)}(hjVh]hi2c_find_adapter_by_fwnode}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jhjVhhhjVhMHubj)}(h(struct fwnode_handle *fwnode)h]j)}(hstruct fwnode_handle *fwnodeh](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjVubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hj!WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj#WmodnameN classnameNjVjY)}j\]jVc.i2c_find_adapter_by_fwnodeasbuh1hhjVubj)}(h h]h }(hj?WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjs)}(hjvh]h*}(hjMWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjVubj)}(hfwnodeh]hfwnode}(hjZWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubah}(h]h ]h"]h$]h&]jjuh1jhjVhhhjVhMHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjVhMHubah}(h]j|Vah ](j!j"eh"]h$]h&]j&j')j(huh1jhjVhMHhj~Vhhubj*)}(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.chMHhjWhhubah}(h]h ]h"]h$]h&]uh1j)hj~VhhhjVhMHubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjWjLjWjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjWubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMLhjWubjq)}(hhh]jv)}(h``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter ` h](j|)}(h ``struct fwnode_handle *fwnode``h]j)}(hjWh]hstruct fwnode_handle *fwnode}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjWubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMIhjWubj)}(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]j)}(hjWh]hstruct fwnode_handle}(hjWhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjWubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjj, fwnode_handleuh1hhjWhMIhjWubh corresponding to the }(hjWhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]j)}(hjXh]hstruct i2c_adapter}(hj XhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjXubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjj, i2c_adapteruh1hhjWhMIhjWubeh}(h]h ]h"]h$]h&]uh1hhjWhMIhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1juhjWhMIhjWubah}(h]h ]h"]h$]h&]uh1jphjWubh)}(h**Description**h]j[)}(hj>Xh]h Description}(hj@XhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj` corresponding to the **fwnode**. If no adapter can be found, or **fwnode** is NULL, this returns NULL.h](hLook up and return the }(hjTXhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]j)}(hj^Xh]hstruct i2c_adapter}(hj`XhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hj\Xubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjj, i2c_adapteruh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMJhjTXubh corresponding to the }(hjTXhhhNhNubj[)}(h **fwnode**h]hfwnode}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjTXubh!. If no adapter can be found, or }(hjTXhhhNhNubj[)}(h **fwnode**h]hfwnode}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjTXubh is NULL, this returns NULL.}(hjTXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj{XhMJhjWubh)}(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]j)}(hjXh]h adapter->dev}(hjXhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjXubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjj,adapteruh1hhZ/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&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_get_adapter_by_fwnode (C function)c.i2c_get_adapter_by_fwnodehNtauh1jhhhhhNhNubj)}(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)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjXhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMfubj)}(h h]h }(hj YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhj YhMfubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjYmodnameN classnameNjVjY)}j\]j_)}jRi2c_get_adapter_by_fwnodesbc.i2c_get_adapter_by_fwnodeasbuh1hhjXhhhj YhMfubj)}(h h]h }(hj` 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]j[)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjZubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMjhjZubjq)}(hhh]jv)}(h``struct fwnode_handle *fwnode`` :c:type:`struct fwnode_handle ` corresponding to the :c:type:`struct i2c_adapter ` h](j|)}(h ``struct fwnode_handle *fwnode``h]j)}(hj8Zh]hstruct fwnode_handle *fwnode}(hj:ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj6Zubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMghj2Zubj)}(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]j)}(hjWZh]hstruct fwnode_handle}(hjYZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjUZubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjj, fwnode_handleuh1hhjMZhMghjQZubh corresponding to the }(hjQZhhhNhNubh)}(h*:c:type:`struct i2c_adapter `h]j)}(hjzZh]hstruct i2c_adapter}(hj|ZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjxZubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjj, i2c_adapteruh1hhjMZhMghjQZubeh}(h]h ]h"]h$]h&]uh1hhjMZhMghjNZubah}(h]h ]h"]h$]h&]uh1jhj2Zubeh}(h]h ]h"]h$]h&]uh1juhjMZhMghj/Zubah}(h]h ]h"]h$]h&]uh1jphjZubh)}(h**Description**h]j[)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjZubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMihjZubh)}(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]j)}(hjZh]hstruct i2c_adapter}(hjZhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjZubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjVjj, i2c_adapteruh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhhjZubh corresponding to the }(hjZhhhNhNubj[)}(h **fwnode**h]hfwnode}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjZubhQ, and increment the adapter module’s use count. If no adapter can be found, or }(hjZhhhNhNubj[)}(h **fwnode**h]hfwnode}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjZubh is NULL, this returns NULL.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjZhMhhjZubh)}(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().}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMlhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!i2c_parse_fw_timings (C function)c.i2c_parse_fw_timingshNtauh1jhhhhhNhNubj)}(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}(hjL[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH[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&]uh1jhjH[hhhjZ[hMubj)}(hi2c_parse_fw_timingsh]j)}(hi2c_parse_fw_timingsh]hi2c_parse_fw_timings}(hjm[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji[ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjH[hhhjZ[hMubj)}(h>(struct device *dev, struct i2c_timings *t, bool use_defaults)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetj[modnameN classnameNjVjY)}j\]j_)}jRjo[sbc.i2c_parse_fw_timingsasbuh1hhj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjs)}(hjvh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj[ubj)}(hdevh]hdev}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hstruct i2c_timings *th](j)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetj\modnameN classnameNjVjY)}j\]j[c.i2c_parse_fw_timingsasbuh1hhj[ubj)}(h h]h }(hj7\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjs)}(hjvh]h*}(hjE\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj[ubj)}(hth]ht}(hjR\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hbool use_defaultsh](j)}(hj2h]hbool}(hjk\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg\ubj)}(h h]h }(hjx\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg\ubj)}(h use_defaultsh]h use_defaults}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhjH[hhhjZ[hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjD[hhhjZ[hMubah}(h]j?[ah ](j!j"eh"]h$]h&]j&j')j(huh1jhjZ[hMhjA[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&]uh1j)hjA[hhhjZ[hMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj\jLj\jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj\ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj\ubjq)}(hhh](jv)}(hD``struct device *dev`` The device to scan for I2C timing properties h](j|)}(h``struct device *dev``h]j)}(hj\h]hstruct device *dev}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj\ubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhj]hMhj\ubjv)}(hJ``struct i2c_timings *t`` the i2c_timings struct to be filled with values h](j|)}(h``struct i2c_timings *t``h]j)}(hj*]h]hstruct i2c_timings *t}(hj,]hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj(]ubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj$]ubj)}(hhh]h)}(h/the i2c_timings struct to be filled with valuesh]h/the i2c_timings struct to be filled with values}(hjC]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?]hMhj@]ubah}(h]h ]h"]h$]h&]uh1jhj$]ubeh}(h]h ]h"]h$]h&]uh1juhj?]hMhj\ubjv)}(h``bool use_defaults`` bool to use sane defaults derived from the I2C specification when properties are not found, otherwise don't update h](j|)}(h``bool use_defaults``h]j)}(hjc]h]hbool use_defaults}(hje]hhhNhNubah}(h]h ]h"]h$]h&]uh1j hja]ubah}(h]h ]h"]h$]h&]uh1j{hZ/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.chMhjy]ubah}(h]h ]h"]h$]h&]uh1jhj]]ubeh}(h]h ]h"]h$]h&]uh1juhjx]hMhj\ubeh}(h]h ]h"]h$]h&]uh1jphj\ubh)}(h**Description**h]j[)}(hj]h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj]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&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_del_driver (C function)c.i2c_del_driverhNtauh1jhhhhhNhNubj)}(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)}(hjh]hstruct}(hj!^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj^ubj)}(h h]h }(hj.^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]j)}(h i2c_driverh]h i2c_driver}(hj?^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<^ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjA^modnameN classnameNjVjY)}j\]j_)}jRj^sbc.i2c_del_driverasbuh1hhj^ubj)}(h h]h }(hj_^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjs)}(hjvh]h*}(hjm^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj^ubj)}(hdriverh]hdriver}(hjz^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubah}(h]h ]h"]h$]h&]jjuh1jhj]hhhj]hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhj]hMubah}(h]j]ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj]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&]uh1j)hj]hhhj]hMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj^jLj^jMjNjOuh1jhhhhhNhNubjQ)}(he**Parameters** ``struct i2c_driver *driver`` the driver being unregistered **Context** can sleeph](h)}(h**Parameters**h]j[)}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj^ubjq)}(hhh]jv)}(h<``struct i2c_driver *driver`` the driver being unregistered h](j|)}(h``struct i2c_driver *driver``h]j)}(hj^h]hstruct i2c_driver *driver}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj^ubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jphj^ubh)}(h **Context**h]j[)}(hj _h]hContext}(hj"_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj_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}(hj6_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&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j__i2c_transfer (C function)c.__i2c_transferhNtauh1jhhhhhNhNubj)}(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}(hje_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja_hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMubj)}(h h]h }(hjt_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja_hhhjs_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&]jjuh1jhja_hhhjs_hMubj)}(h9(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h](j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetj_modnameN classnameNjVjY)}j\]j_)}jRj_sbc.__i2c_transferasbuh1hhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjs)}(hjvh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj_ubj)}(hadaph]hadap}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hstruct i2c_msg *msgsh](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj`ubj)}(h h]h }(hj!`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j)}(hi2c_msgh]hi2c_msg}(hj2`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/`ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj4`modnameN classnameNjVjY)}j\]j_c.__i2c_transferasbuh1hhj`ubj)}(h h]h }(hjP`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjs)}(hjvh]h*}(hj^`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj`ubj)}(hmsgsh]hmsgs}(hjk`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`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&]jjuh1jhja_hhhjs_hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]_hhhjs_hMubah}(h]jX_ah ](j!j"eh"]h$]h&]j&j')j(huh1jhjs_hMhjZ_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&]uh1j)hjZ_hhhjs_hMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj`jLj`jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj`ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj`ubjq)}(hhh](jv)}(h/``struct i2c_adapter *adap`` Handle to I2C bus h](j|)}(h``struct i2c_adapter *adap``h]j)}(hj ah]hstruct i2c_adapter *adap}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1j hj aubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjaubj)}(hhh]h)}(hHandle to I2C bush]hHandle to I2C bus}(hj$ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ahMhj!aubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1juhj ahMhjaubjv)}(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](j|)}(h``struct i2c_msg *msgs``h]j)}(hjDah]hstruct i2c_msg *msgs}(hjFahhhNhNubah}(h]h ]h"]h$]h&]uh1j hjBaubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj>aubj)}(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]ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjZaubah}(h]h ]h"]h$]h&]uh1jhj>aubeh}(h]h ]h"]h$]h&]uh1juhjYahMhjaubjv)}(h/``int num`` Number of messages to be executed. h](j|)}(h ``int num``h]j)}(hj~ah]hint num}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j hj|aubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjxaubj)}(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&]uh1jhjxaubeh}(h]h ]h"]h$]h&]uh1juhjahMhjaubeh}(h]h ]h"]h$]h&]uh1jphj`ubh)}(h**Description**h]j[)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj`ubh)}(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`ubh)}(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.}(hjahhhNhNubah}(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&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_transfer (C function)c.i2c_transferhNtauh1jhhhhhNhNubj)}(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}(hj bhhhNhNubah}(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 }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj bhhhjbhMubj)}(h i2c_transferh]j)}(h i2c_transferh]h i2c_transfer}(hj.bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*bubah}(h]h ](jjeh"]h$]h&]jjuh1jhj bhhhjbhMubj)}(h9(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)h](j)}(hstruct i2c_adapter *adaph](j)}(hjh]hstruct}(hjJbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjFbubj)}(h h]h }(hjWbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFbubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjhbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjebubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjjbmodnameN classnameNjVjY)}j\]j_)}jRj0bsbc.i2c_transferasbuh1hhjFbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFbubjs)}(hjvh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjFbubj)}(hadaph]hadap}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBbubj)}(hstruct i2c_msg *msgsh](j)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetjbmodnameN classnameNjVjY)}j\]jbc.i2c_transferasbuh1hhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjs)}(hjvh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjbubj)}(hmsgsh]hmsgs}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBbubj)}(hint numh](j)}(hinth]hint}(hj,chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(cubj)}(h h]h }(hj:chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(cubj)}(hnumh]hnum}(hjHchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBbubeh}(h]h ]h"]h$]h&]jjuh1jhj bhhhjbhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhMubah}(h]jbah ](j!j"eh"]h$]h&]j&j')j(huh1jhjbhMhjbhhubj*)}(hhh]h)}(h(execute a single or combined I2C messageh]h(execute a single or combined I2C message}(hjrchhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjochhubah}(h]h ]h"]h$]h&]uh1j)hjbhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjcjLjcjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjcubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjcubjq)}(hhh](jv)}(h/``struct i2c_adapter *adap`` Handle to I2C bus h](j|)}(h``struct i2c_adapter *adap``h]j)}(hjch]hstruct i2c_adapter *adap}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j hjcubah}(h]h ]h"]h$]h&]uh1j{hZ/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&]uh1juhjchMhjcubjv)}(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](j|)}(h``struct i2c_msg *msgs``h]j)}(hjch]hstruct i2c_msg *msgs}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j hjcubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjcubj)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhjdubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1juhjdhMhjcubjv)}(h/``int num`` Number of messages to be executed. h](j|)}(h ``int num``h]j)}(hj&dh]hint num}(hj(dhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj$dubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMhj dubj)}(hhh]h)}(h"Number of messages to be executed.h]h"Number of messages to be executed.}(hj?dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;dhMhjiubjv)}(h;``struct i2c_device_identity *id`` The queried information h](j|)}(h"``struct i2c_device_identity *id``h]j)}(hjih]hstruct i2c_device_identity *id}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j hj~iubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM5 hjziubj)}(hhh]h)}(hThe queried informationh]hThe queried information}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM5 hjiubah}(h]h ]h"]h$]h&]uh1jhjziubeh}(h]h ]h"]h$]h&]uh1juhjihM5 hj>iubeh}(h]h ]h"]h$]h&]uh1jphj"iubh)}(h**Description**h]j[)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chM7 hj"iubh)}(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 hj"iubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_client_get_device_id (C function)c.i2c_client_get_device_idhNtauh1jhhhhhNhNubj)}(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}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjihhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMR ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj jhMR ubj)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjihhhj jhMR ubj)}(h h]h }(hj)jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj jhMR ubh)}(hhh]j)}(h i2c_device_idh]h i2c_device_id}(hj:jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7jubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjbuf 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]j[)}(hjEmh]h Parameters}(hjGmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjCmubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMM hj?mubjq)}(hhh](jv)}(h2``struct i2c_msg *msg`` the message to be checked h](j|)}(h``struct i2c_msg *msg``h]j)}(hjdmh]hstruct i2c_msg *msg}(hjfmhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjbmubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMJ hj^mubj)}(hhh]h)}(hthe message to be checkedh]hthe message to be checked}(hj}mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjymhMJ hjzmubah}(h]h ]h"]h$]h&]uh1jhj^mubeh}(h]h ]h"]h$]h&]uh1juhjymhMJ hj[mubjv)}(hn``unsigned int threshold`` the minimum number of bytes for which using DMA makes sense. Should at least be 1. h](j|)}(h``unsigned int threshold``h]j)}(hjmh]hunsigned int threshold}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjmubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chML 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.chMK hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1juhjmhML hj[mubeh}(h]h ]h"]h$]h&]uh1jphj?mubh)}(h **Return**h]j[)}(hjmh]hReturn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMN hj?mubh)}(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]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().}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMN hj?mubh)}(h**Description**h]j[)}(hjnh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMR hj?mubh)}(h7This function must only be called from process context!h]h7This function must only be called from process context!}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMQ hj?mubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_put_dma_safe_msg_buf (C function)c.i2c_put_dma_safe_msg_bufhNtauh1jhhhhhNhNubj)}(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}(hjEnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAnhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMk ubj)}(h h]h }(hjTnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAnhhhjSnhMk ubj)}(hi2c_put_dma_safe_msg_bufh]j)}(hi2c_put_dma_safe_msg_bufh]hi2c_put_dma_safe_msg_buf}(hjfnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbnubah}(h]h ](jjeh"]h$]h&]jjuh1jhjAnhhhjSnhMk 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&] refdomainjreftypejR reftargetjnmodnameN classnameNjVjY)}j\]j_)}jRjhnsbc.i2c_put_dma_safe_msg_bufasbuh1hhj~nubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~nubjs)}(hjvh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj~nubj)}(hbufh]hbuf}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjznubj)}(hstruct i2c_msg *msgh](j)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j)}(hi2c_msgh]hi2c_msg}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjnmodnameN classnameNjVjY)}j\]jnc.i2c_put_dma_safe_msg_bufasbuh1hhjnubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjs)}(hjvh]h*}(hj#ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjnubj)}(hmsgh]hmsg}(hj0ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjznubj)}(h bool xferredh](j)}(hj2h]hbool}(hjIohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEoubj)}(h h]h }(hjVohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEoubj)}(hxferredh]hxferred}(hjdohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjznubeh}(h]h ]h"]h$]h&]jjuh1jhjAnhhhjSnhMk ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=nhhhjSnhMk ubah}(h]j8nah ](j!j"eh"]h$]h&]j&j')j(huh1jhjSnhMk hj:nhhubj*)}(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.chMk hjohhubah}(h]h ]h"]h$]h&]uh1j)hj:nhhhjSnhMk ubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjojLjojMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjoubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMo hjoubjq)}(hhh](jv)}(hN``u8 *buf`` the buffer obtained from i2c_get_dma_safe_msg_buf(). May be NULL. h](j|)}(h ``u8 *buf``h]j)}(hjoh]hu8 *buf}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j hjoubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMl hjoubj)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMl hjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1juhjohMl hjoubjv)}(hD``struct i2c_msg *msg`` the message which the buffer corresponds to h](j|)}(h``struct i2c_msg *msg``h]j)}(hjph]hstruct i2c_msg *msg}(hj phhhNhNubah}(h]h ]h"]h$]h&]uh1j hjpubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMm hjpubj)}(hhh]h)}(h+the message which the buffer corresponds toh]h+the message which the buffer corresponds to}(hj!phhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMm hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1juhjphMm hjoubjv)}(h;``bool xferred`` bool saying if the message was transferredh](j|)}(h``bool xferred``h]j)}(hjAph]h bool xferred}(hjCphhhNhNubah}(h]h ]h"]h$]h&]uh1j hj?pubah}(h]h ]h"]h$]h&]uh1j{hZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMo hj;pubj)}(hhh]h)}(h*bool saying if the message was transferredh]h*bool saying if the message was transferred}(hjZphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:44: ./drivers/i2c/i2c-core-base.chMn hjWpubah}(h]h ]h"]h$]h&]uh1jhj;pubeh}(h]h ]h"]h$]h&]uh1juhjVphMo hjoubeh}(h]h ]h"]h$]h&]uh1jphjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_smbus_pec (C function)c.i2c_smbus_pechNtauh1jhhhhhNhNubj)}(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&] refdomainjreftypejR reftargetjpmodnameN classnameNjVjY)}j\]j_)}jR i2c_smbus_pecsbc.i2c_smbus_pecasbuh1hhjphhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK+ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjphK+ubj)}(h i2c_smbus_pech]j)}(hjph]h i2c_smbus_pec}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jhjphhhjphK+ubj)}(h(u8 crc, u8 *p, size_t count)h](j)}(hu8 crch](h)}(hhh]j)}(hu8h]hu8}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjpmodnameN classnameNjVjY)}j\]jpc.i2c_smbus_pecasbuh1hhjpubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hcrch]hcrc}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hu8 *ph](h)}(hhh]j)}(hu8h]hu8}(hj8qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5qubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj:qmodnameN classnameNjVjY)}j\]jpc.i2c_smbus_pecasbuh1hhj1qubj)}(h h]h }(hjVqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1qubjs)}(hjvh]h*}(hjdqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj1qubj)}(hjh]hp}(hjqqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjqmodnameN classnameNjVjY)}j\]jpc.i2c_smbus_pecasbuh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hcounth]hcount}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhjphhhjphK+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjphK+ubah}(h]jpah ](j!j"eh"]h$]h&]j&j')j(huh1jhjphK+hjphhubj*)}(hhh]h)}(h0Incremental CRC8 over the given input data arrayh]h0Incremental CRC8 over the given input data array}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK+hjqhhubah}(h]h ]h"]h$]h&]uh1j)hjphhhjphK+ubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjqjLjqjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK/hjqubjq)}(hhh](jv)}(h&``u8 crc`` previous return crc8 value h](j|)}(h ``u8 crc``h]j)}(hj#rh]hu8 crc}(hj%rhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj!rubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK,hjrubj)}(hhh]h)}(hprevious return crc8 valueh]hprevious return crc8 value}(hjIncremental CRC8 over count bytes in the array pointed to by ph]h>Incremental CRC8 over count bytes in the array pointed to by p}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chK/hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j i2c_smbus_read_byte (C function)c.i2c_smbus_read_bytehNtauh1jhhhhhNhNubj)}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjsmodnameN classnameNjVjY)}j\]j_)}jRi2c_smbus_read_bytesbc.i2c_smbus_read_byteasbuh1hhjshhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKaubj)}(h h]h }(hj:shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhj9shKaubj)}(hi2c_smbus_read_byteh]j)}(hj6sh]hi2c_smbus_read_byte}(hjLshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHsubah}(h]h ](jjeh"]h$]h&]jjuh1jhjshhhj9shKaubj)}(h!(const struct i2c_client *client)h]j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjgshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcsubj)}(h h]h }(hjtshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcsubj)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjcsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcsubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjsmodnameN classnameNjVjY)}j\]j4sc.i2c_smbus_read_byteasbuh1hhjcsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcsubjs)}(hjvh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjcsubj)}(hclienth]hclient}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_subah}(h]h ]h"]h$]h&]jjuh1jhjshhhj9shKaubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj shhhj9shKaubah}(h]jsah ](j!j"eh"]h$]h&]j&j')j(huh1jhj9shKahj shhubj*)}(hhh]h)}(hSMBus "receive byte" protocolh]h!SMBus “receive byte” protocol}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKahjthhubah}(h]h ]h"]h$]h&]uh1j)hj shhhj9shKaubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjtjLjtjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj%th]h Parameters}(hj'thhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj#tubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKehjtubjq)}(hhh]jv)}(h;``const struct i2c_client *client`` Handle to slave device h](j|)}(h#``const struct i2c_client *client``h]j)}(hjDth]hconst struct i2c_client *client}(hjFthhhNhNubah}(h]h ]h"]h$]h&]uh1j hjBtubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKbhj>tubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hj]thhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYthKbhjZtubah}(h]h ]h"]h$]h&]uh1jhj>tubeh}(h]h ]h"]h$]h&]uh1juhjYthKbhj;tubah}(h]h ]h"]h$]h&]uh1jphjtubh)}(h**Description**h]j[)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj}tubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKdhjtubh)}(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.chKchjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!i2c_smbus_write_byte (C function)c.i2c_smbus_write_bytehNtauh1jhhhhhNhNubj)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjtmodnameN classnameNjVjY)}j\]j_)}jRi2c_smbus_write_bytesbc.i2c_smbus_write_byteasbuh1hhjthhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthKtubj)}(hi2c_smbus_write_byteh]j)}(hjth]hi2c_smbus_write_byte}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jhjthhhjthKtubj)}(h+(const struct i2c_client *client, u8 value)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubj)}(h h]h }(hj#uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hjh]hstruct}(hj1uhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjuubj)}(h h]h }(hj>uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjOuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLuubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjQumodnameN classnameNjVjY)}j\]jtc.i2c_smbus_write_byteasbuh1hhjuubj)}(h h]h }(hjmuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjs)}(hjvh]h*}(hj{uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjuubj)}(hclienth]hclient}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hu8 valueh](h)}(hhh]j)}(hu8h]hu8}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjumodnameN classnameNjVjY)}j\]jtc.i2c_smbus_write_byteasbuh1hhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hvalueh]hvalue}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhjthhhjthKtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjthKtubah}(h]jtah ](j!j"eh"]h$]h&]j&j')j(huh1jhjthKthjthhubj*)}(hhh]h)}(hSMBus "send byte" protocolh]hSMBus “send byte” protocol}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKthjuhhubah}(h]h ]h"]h$]h&]uh1j)hjthhhjthKtubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjvjLjvjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjvubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKxhjvubjq)}(hhh](jv)}(h;``const struct i2c_client *client`` Handle to slave device h](j|)}(h#``const struct i2c_client *client``h]j)}(hj;vh]hconst struct i2c_client *client}(hj=vhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj9vubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKuhj5vubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjTvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPvhKuhjQvubah}(h]h ]h"]h$]h&]uh1jhj5vubeh}(h]h ]h"]h$]h&]uh1juhjPvhKuhj2vubjv)}(h``u8 value`` Byte to be sent h](j|)}(h ``u8 value``h]j)}(hjtvh]hu8 value}(hjvvhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjrvubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKvhjnvubj)}(hhh]h)}(hByte to be senth]hByte to be sent}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKvhjvubah}(h]h ]h"]h$]h&]uh1jhjnvubeh}(h]h ]h"]h$]h&]uh1juhjvhKvhj2vubeh}(h]h ]h"]h$]h&]uh1jphjvubh)}(h**Description**h]j[)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjvubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKxhjvubh)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKwhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_smbus_read_byte_data (C function)c.i2c_smbus_read_byte_datahNtauh1jhhhhhNhNubj)}(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}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjvmodnameN classnameNjVjY)}j\]j_)}jRi2c_smbus_read_byte_datasbc.i2c_smbus_read_byte_dataasbuh1hhjvhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjwhKubj)}(hi2c_smbus_read_byte_datah]j)}(hjwh]hi2c_smbus_read_byte_data}(hj+whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'wubah}(h]h ](jjeh"]h$]h&]jjuh1jhjvhhhjwhKubj)}(h-(const struct i2c_client *client, u8 command)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjFwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBwubj)}(h h]h }(hjSwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBwubj)}(hjh]hstruct}(hjawhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjBwubj)}(h h]h }(hjnwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBwubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|wubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjwmodnameN classnameNjVjY)}j\]jwc.i2c_smbus_read_byte_dataasbuh1hhjBwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBwubjs)}(hjvh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjBwubj)}(hclienth]hclient}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>wubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjwmodnameN classnameNjVjY)}j\]jwc.i2c_smbus_read_byte_dataasbuh1hhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hcommandh]hcommand}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>wubeh}(h]h ]h"]h$]h&]jjuh1jhjvhhhjwhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjwhKubah}(h]jvah ](j!j"eh"]h$]h&]j&j')j(huh1jhjwhKhjvhhubj*)}(hhh]h)}(hSMBus "read byte" protocolh]hSMBus “read byte” protocol}(hj*xhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj'xhhubah}(h]h ]h"]h$]h&]uh1j)hjvhhhjwhKubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjBxjLjBxjMjNjOuh1jhhhhhNhNubjQ)}(h**Parameters** ``const struct i2c_client *client`` Handle to slave device ``u8 command`` Byte interpreted by slave **Description** This executes the SMBus "read byte" protocol, returning negative errno else a data byte received from the device.h](h)}(h**Parameters**h]j[)}(hjLxh]h Parameters}(hjNxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJxubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjFxubjq)}(hhh](jv)}(h;``const struct i2c_client *client`` Handle to slave device h](j|)}(h#``const struct i2c_client *client``h]j)}(hjkxh]hconst struct i2c_client *client}(hjmxhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjixubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjexubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhKhjxubah}(h]h ]h"]h$]h&]uh1jhjexubeh}(h]h ]h"]h$]h&]uh1juhjxhKhjbxubjv)}(h)``u8 command`` Byte interpreted by slave h](j|)}(h``u8 command``h]j)}(hjxh]h u8 command}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjxubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjxubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhKhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1juhjxhKhjbxubeh}(h]h ]h"]h$]h&]uh1jphjFxubh)}(h**Description**h]j[)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjxubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjFxubh)}(hqThis executes the SMBus "read byte" protocol, returning negative errno else a data byte received from the device.h]huThis executes the SMBus “read byte” protocol, returning negative errno else a data byte received from the device.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjFxubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_smbus_write_byte_data (C function)c.i2c_smbus_write_byte_datahNtauh1jhhhhhNhNubj)}(hhh](j)}(hUs32 i2c_smbus_write_byte_data (const struct i2c_client *client, u8 command, u8 value)h]j)}(hTs32 i2c_smbus_write_byte_data(const struct i2c_client *client, u8 command, u8 value)h](h)}(hhh]j)}(hs32h]hs32}(hj'yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$yubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj)ymodnameN classnameNjVjY)}j\]j_)}jRi2c_smbus_write_byte_datasbc.i2c_smbus_write_byte_dataasbuh1hhj yhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKubj)}(h h]h }(hjIyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj yhhhjHyhKubj)}(hi2c_smbus_write_byte_datah]j)}(hjEyh]hi2c_smbus_write_byte_data}(hj[yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWyubah}(h]h ](jjeh"]h$]h&]jjuh1jhj yhhhjHyhKubj)}(h7(const struct i2c_client *client, u8 command, u8 value)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjvyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjryubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjryubj)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjryubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjryubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjymodnameN classnameNjVjY)}j\]jCyc.i2c_smbus_write_byte_dataasbuh1hhjryubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjryubjs)}(hjvh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjryubj)}(hclienth]hclient}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjryubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnyubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjzmodnameN classnameNjVjY)}j\]jCyc.i2c_smbus_write_byte_dataasbuh1hhjyubj)}(h h]h }(hj"zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hcommandh]hcommand}(hj0zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnyubj)}(hu8 valueh](h)}(hhh]j)}(hu8h]hu8}(hjLzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIzubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjNzmodnameN classnameNjVjY)}j\]jCyc.i2c_smbus_write_byte_dataasbuh1hhjEzubj)}(h h]h }(hjjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEzubj)}(hvalueh]hvalue}(hjxzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnyubeh}(h]h ]h"]h$]h&]jjuh1jhj yhhhjHyhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjHyhKubah}(h]jyah ](j!j"eh"]h$]h&]j&j')j(huh1jhjHyhKhjyhhubj*)}(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&]uh1j)hjyhhhjHyhKubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjzjLjzjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjzubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjzubjq)}(hhh](jv)}(h;``const struct i2c_client *client`` Handle to slave device h](j|)}(h#``const struct i2c_client *client``h]j)}(hjzh]hconst struct i2c_client *client}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjzubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjzubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1juhjzhKhjzubjv)}(h)``u8 command`` Byte interpreted by slave h](j|)}(h``u8 command``h]j)}(hj{h]h u8 command}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj{ubah}(h]h ]h"]h$]h&]uh1j{h[/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}(hj5{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1{hKhj2{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1juhj1{hKhjzubjv)}(h ``u8 value`` Byte being written h](j|)}(h ``u8 value``h]j)}(hjU{h]hu8 value}(hjW{hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjS{ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjO{ubj)}(hhh]h)}(hByte being writtenh]hByte being written}(hjn{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj{hKhjk{ubah}(h]h ]h"]h$]h&]uh1jhjO{ubeh}(h]h ]h"]h$]h&]uh1juhjj{hKhjzubeh}(h]h ]h"]h$]h&]uh1jphjzubh)}(h**Description**h]j[)}(hj{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjzubh)}(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.chKhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%i2c_smbus_read_word_data (C function)c.i2c_smbus_read_word_datahNtauh1jhhhhhNhNubj)}(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&] refdomainjreftypejR reftargetj{modnameN classnameNjVjY)}j\]j_)}jRi2c_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 }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhj{hKubj)}(hi2c_smbus_read_word_datah]j)}(hj{h]hi2c_smbus_read_word_data}(hj |hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj{hhhj{hKubj)}(h-(const struct i2c_client *client, u8 command)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hj'|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#|ubj)}(h h]h }(hj4|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#|ubj)}(hjh]hstruct}(hjB|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj#|ubj)}(h h]h }(hjO|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&] refdomainjreftypejR reftargetjb|modnameN classnameNjVjY)}j\]j{c.i2c_smbus_read_word_dataasbuh1hhj#|ubj)}(h h]h }(hj~|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#|ubjs)}(hjvh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj#|ubj)}(hclienth]hclient}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj|modnameN classnameNjVjY)}j\]j{c.i2c_smbus_read_word_dataasbuh1hhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hcommandh]hcommand}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhj{hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhj{hKubah}(h]j{ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj{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.chKhj}hhubah}(h]h ]h"]h$]h&]uh1j)hj{hhhj{hKubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKj#}jLj#}jMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj-}h]h Parameters}(hj/}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj+}ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj'}ubjq)}(hhh](jv)}(h;``const struct i2c_client *client`` Handle to slave device h](j|)}(h#``const struct i2c_client *client``h]j)}(hjL}h]hconst struct i2c_client *client}(hjN}hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjJ}ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjF}ubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hje}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja}hKhjb}ubah}(h]h ]h"]h$]h&]uh1jhjF}ubeh}(h]h ]h"]h$]h&]uh1juhja}hKhjC}ubjv)}(h)``u8 command`` Byte interpreted by slave h](j|)}(h``u8 command``h]j)}(hj}h]h u8 command}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj}ubah}(h]h ]h"]h$]h&]uh1j{h[/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&]uh1juhj}hKhjC}ubeh}(h]h ]h"]h$]h&]uh1jphj'}ubh)}(h**Description**h]j[)}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj}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 "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.chKhj'}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_smbus_write_word_data (C function)c.i2c_smbus_write_word_datahNtauh1jhhhhhNhNubj)}(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}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj ~modnameN classnameNjVjY)}j\]j_)}jRi2c_smbus_write_word_datasbc.i2c_smbus_write_word_dataasbuh1hhj~hhh[/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&]uh1jhj~hhhj)~hKubj)}(hi2c_smbus_write_word_datah]j)}(hj&~h]hi2c_smbus_write_word_data}(hj<~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8~ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj~hhhj)~hKubj)}(h8(const struct i2c_client *client, u8 command, u16 value)h](j)}(hconst struct i2c_client *clienth](j)}(hjh]hconst}(hjW~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjS~ubj)}(h h]h }(hjd~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS~ubj)}(hjh]hstruct}(hjr~hhhNhNubah}(h]h ]j ah"]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&] refdomainjreftypejR reftargetj~modnameN classnameNjVjY)}j\]j$~c.i2c_smbus_write_word_dataasbuh1hhjS~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS~ubjs)}(hjvh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjS~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&] refdomainjreftypejR reftargetj~modnameN classnameNjVjY)}j\]j$~c.i2c_smbus_write_word_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&]noemphjjuh1jhjO~ubj)}(h u16 valueh](h)}(hhh]j)}(hu16h]hu16}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj/modnameN classnameNjVjY)}j\]j$~c.i2c_smbus_write_word_dataasbuh1hhj&ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hvalueh]hvalue}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO~ubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhj)~hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhj)~hKubah}(h]j}ah ](j!j"eh"]h$]h&]j&j')j(huh1jhj)~hKhj}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&]uh1j)hj}hhhj)~hKubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjjLjjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubjq)}(hhh](jv)}(h;``const struct i2c_client *client`` Handle to slave device h](j|)}(h#``const struct i2c_client *client``h]j)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/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&]uh1juhjhKhjubjv)}(h)``u8 command`` Byte interpreted by slave h](j|)}(h``u8 command``h]j)}(hjh]h u8 command}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhjubjv)}(h*``u16 value`` 16-bit "word" being written h](j|)}(h ``u16 value``h]j)}(hj6h]h u16 value}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj4ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj0ubj)}(hhh]h)}(h16-bit "word" being writtenh]h16-bit “word” being written}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1juhjKhKhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjoubah}(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.}(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&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&i2c_smbus_read_block_data (C function)c.i2c_smbus_read_block_datahNtauh1jhhhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]j_)}jRi2c_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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjCmodnameN classnameNjVjY)}j\]jՀc.i2c_smbus_read_block_dataasbuh1hhjubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjs)}(hjvh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjubj)}(hclienth]hclient}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]jՀc.i2c_smbus_read_block_dataasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcommandh]hcommand}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 *valuesh](h)}(hhh]j)}(hu8h]hu8}(hjށhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjہubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]jՀc.i2c_smbus_read_block_dataasbuh1hhjׁubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjׁubjs)}(hjvh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjׁubj)}(hvaluesh]hvalues}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjׁubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjڀhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjڀhKubah}(h]jah ](j!j"eh"]h$]h&]j&j')j(huh1jhjڀhKhjhhubj*)}(hhh]h)}(hSMBus "block read" protocolh]hSMBus “block read” protocol}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj>hhubah}(h]h ]h"]h$]h&]uh1j)hjhhhjڀhKubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjYjLjYjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjaubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj]ubjq)}(hhh](jv)}(h;``const struct i2c_client *client`` Handle to slave device h](j|)}(h#``const struct i2c_client *client``h]j)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1juhjhKhjyubjv)}(h)``u8 command`` Byte interpreted by slave h](j|)}(h``u8 command``h]j)}(hjh]h u8 command}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/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&]uh1juhjЂhKhjyubjv)}(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](j|)}(h``u8 *values``h]j)}(hjh]h u8 *values}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubj)}(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.chKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj hKhjyubeh}(h]h ]h"]h$]h&]uh1jphj]ubh)}(h**Description**h]j[)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.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 "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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhj]ubh)}(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.}(hjUhhhNhNubah}(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&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_smbus_write_block_data (C function)c.i2c_smbus_write_block_datahNtauh1jhhhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]j_)}jRi2c_smbus_write_block_datasbc.i2c_smbus_write_block_dataasbuh1hhjhhh[/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&]uh1jhjhhhjhKubj)}(hi2c_smbus_write_block_datah]j)}(hjh]hi2c_smbus_write_block_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKubj)}(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 ]j ah"]h$]h&]uh1jhj҃ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҃ubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj҃ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҃ubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]jc.i2c_smbus_write_block_dataasbuh1hhj҃ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҃ubjs)}(hjvh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj҃ubj)}(hclienth]hclient}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҃ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj΃ubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjfmodnameN classnameNjVjY)}j\]jc.i2c_smbus_write_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&]noemphjjuh1jhj΃ubj)}(h u8 lengthh](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]jc.i2c_smbus_write_block_dataasbuh1hhjubj)}(h h]h }(hjʄhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlengthh]hlength}(hj؄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj΃ubj)}(hconst u8 *valuesh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]jc.i2c_smbus_write_block_dataasbuh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjs)}(hjvh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjubj)}(hvaluesh]hvalues}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj΃ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhKubah}(h]jwah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhKhjyhhubj*)}(hhh]h)}(hSMBus "block write" protocolh]h SMBus “block write” protocol}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjohhubah}(h]h ]h"]h$]h&]uh1j)hjyhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjjLjjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubjq)}(hhh](jv)}(h;``const struct i2c_client *client`` Handle to slave device h](j|)}(h#``const struct i2c_client *client``h]j)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/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&]uh1juhjȅhKhjubjv)}(h)``u8 command`` Byte interpreted by slave h](j|)}(h``u8 command``h]j)}(hjh]h u8 command}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhKhjubjv)}(h@``u8 length`` Size of data block; SMBus allows at most 32 bytes h](j|)}(h ``u8 length``h]j)}(hj%h]h u8 length}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj#ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjubj)}(hhh]h)}(h1Size of data block; SMBus allows at most 32 bytesh]h1Size of data block; SMBus allows at most 32 bytes}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj:hKhjubjv)}(h7``const u8 *values`` Byte array which will be written. h](j|)}(h``const u8 *values``h]j)}(hj^h]hconst u8 *values}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj\ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chKhjXubj)}(hhh]h)}(h!Byte array which will be written.h]h!Byte array which will be written.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1juhjshKhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(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 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.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](ji2c_smbus_xfer (C function)c.i2c_smbus_xferhNtauh1jhhhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjކubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]j_)}jRi2c_smbus_xfersbc.i2c_smbus_xferasbuh1hhjچhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjچhhhjhM ubj)}(hi2c_smbus_xferh]j)}(hjh]hi2c_smbus_xfer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjچhhhjhM ubj)}(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)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjPmodnameN classnameNjVjY)}j\]jc.i2c_smbus_xferasbuh1hhj,ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjs)}(hjvh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhj,ubj)}(hadapterh]hadapter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hu16 addrh](h)}(hhh]j)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]jc.i2c_smbus_xferasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjχhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hunsigned short flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshorth]hshort}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflagsh]hflags}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hchar read_writeh](j)}(hcharh]hchar}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h read_writeh]h read_write}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjsmodnameN classnameNjVjY)}j\]jc.i2c_smbus_xferasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hcommandh]hcommand}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(h int protocolh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjĈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprotocolh]hprotocol}(hj҈hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hunion i2c_smbus_data *datah](j)}(hunionh]hunion}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hi2c_smbus_datah]hi2c_smbus_data}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetj modnameN classnameNjVjY)}j\]jc.i2c_smbus_xferasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjs)}(hjvh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjubj)}(hdatah]hdata}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubeh}(h]h ]h"]h$]h&]jjuh1jhjچhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjֆhhhjhM ubah}(h]jцah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhM hjӆhhubj*)}(hhh]h)}(h!execute SMBus protocol operationsh]h!execute SMBus protocol operations}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM hjjhhubah}(h]h ]h"]h$]h&]uh1j)hjӆhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjjLjjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubjq)}(hhh](jv)}(h2``struct i2c_adapter *adapter`` Handle to I2C bus h](j|)}(h``struct i2c_adapter *adapter``h]j)}(hjh]hstruct i2c_adapter *adapter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/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}(hjljhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjÉhM hjĉubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjÉhM hjubjv)}(h0``u16 addr`` Address of SMBus slave on that bus h](j|)}(h ``u16 addr``h]j)}(hjh]hu16 addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj)}(hhh]h)}(h"Address of SMBus slave on that bush]h"Address of SMBus slave on that bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeih}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(hM``unsigned short flags`` I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC) h](j|)}(h``unsigned short flags``h]j)}(hj h]hunsigned short flags}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj)}(hhh]h)}(h3I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC)h]h3I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj5hMhjubjv)}(h6``char read_write`` I2C_SMBUS_READ or I2C_SMBUS_WRITE h](j|)}(h``char read_write``h]j)}(hjYh]hchar read_write}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjWubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjSubj)}(hhh]h)}(h!I2C_SMBUS_READ or I2C_SMBUS_WRITEh]h!I2C_SMBUS_READ or I2C_SMBUS_WRITE}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1juhjnhMhjubjv)}(hM``u8 command`` Byte interpreted by slave, for protocols which use such bytes h](j|)}(h``u8 command``h]j)}(hjh]h u8 command}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj)}(hhh]h)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(hR``int protocol`` SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL h](j|)}(h``int protocol``h]j)}(hjˊh]h int protocol}(hj͊hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjɊubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjŊubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjŊubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubjv)}(h:``union i2c_smbus_data *data`` Data to be read or written h](j|)}(h``union i2c_smbus_data *data``h]j)}(hjh]hunion i2c_smbus_data *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubj)}(hhh]h)}(hData to be read or writtenh]hData to be read or written}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhMhjubeh}(h]h ]h"]h$]h&]uh1jphjubh)}(h**Description**h]j[)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj=ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjubh)}(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.}(hjUhhhNhNubah}(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&]uh1jPhhhhhNhNubj)}(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_emulatedhNtauh1jhhhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]j_)}jR)i2c_smbus_read_i2c_block_data_or_emulatedsb+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM{ubj)}(h)i2c_smbus_read_i2c_block_data_or_emulatedh]j)}(hjh]h)i2c_smbus_read_i2c_block_data_or_emulated}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM{ubj)}(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 ]j ah"]h$]h&]uh1jhjҋubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҋubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjҋubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҋubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]j+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhjҋubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҋubjs)}(hjvh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjҋubj)}(hclienth]hclient}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҋubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj΋ubj)}(h u8 commandh](h)}(hhh]j)}(hu8h]hu8}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjfmodnameN classnameNjVjY)}j\]j+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhj]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&]noemphjjuh1jhj΋ubj)}(h u8 lengthh](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]j+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhjubj)}(h h]h }(hjʌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlengthh]hlength}(hj،hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj΋ubj)}(h u8 *valuesh](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]j+c.i2c_smbus_read_i2c_block_data_or_emulatedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjs)}(hjvh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjubj)}(hvaluesh]hvalues}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj΋ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM{ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhM{ubah}(h]jwah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhM{hjyhhubj*)}(hhh]h)}(hread block or emulateh]hread block or emulate}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM{hjThhubah}(h]h ]h"]h$]h&]uh1j)hjyhhhjhM{ubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjojLjojMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjwubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjsubjq)}(hhh](jv)}(h;``const struct i2c_client *client`` Handle to slave device h](j|)}(h#``const struct i2c_client *client``h]j)}(hjh]hconst struct i2c_client *client}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM|hjubj)}(hhh]h)}(hHandle to slave deviceh]hHandle to slave device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhM|hjubjv)}(h)``u8 command`` Byte interpreted by slave h](j|)}(h``u8 command``h]j)}(hjэh]h u8 command}(hjӍhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjύubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM}hjˍubj)}(hhh]h)}(hByte interpreted by slaveh]hByte interpreted by slave}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1jhjˍubeh}(h]h ]h"]h$]h&]uh1juhjhM}hjubjv)}(hQ``u8 length`` Size of data block; SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes h](j|)}(h ``u8 length``h]j)}(hj h]h u8 length}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chM~hjubj)}(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}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM~hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhjhM~hjubjv)}(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](j|)}(h``u8 *values``h]j)}(hjCh]h u8 *values}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjAubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhj=ubj)}(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.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1juhjXhMhjubeh}(h]h ]h"]h$]h&]uh1jphjsubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj}ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjsubh)}(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.chMhjsubh)}(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.chMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'i2c_new_smbus_alert_device (C function)c.i2c_new_smbus_alert_devicehNtauh1jhhhhhNhNubj)}(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)}(hjh]hstruct}(hjӎhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjώ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ώhhhjhMubh)}(hhh]j)}(h i2c_clienth]h i2c_client}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmodnameN classnameNjVjY)}j\]j_)}jRi2c_new_smbus_alert_devicesbc.i2c_new_smbus_alert_deviceasbuh1hhjώhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjώhhhjhMubjs)}(hjvh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjώhhhjhMubj)}(hi2c_new_smbus_alert_deviceh]j)}(hjh]hi2c_new_smbus_alert_device}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjώhhhjhMubj)}(hB(struct i2c_adapter *adapter, struct i2c_smbus_alert_setup *setup)h](j)}(hstruct i2c_adapter *adapterh](j)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j)}(h i2c_adapterh]h i2c_adapter}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjmmodnameN classnameNjVjY)}j\]jc.i2c_new_smbus_alert_deviceasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjs)}(hjvh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjIubj)}(hadapterh]hadapter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(h#struct i2c_smbus_alert_setup *setuph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1jhjubj)}(h h]h }(hjʏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hi2c_smbus_alert_setuph]hi2c_smbus_alert_setup}(hjۏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؏ubah}(h]h ]h"]h$]h&] refdomainjreftypejR reftargetjݏmodnameN classnameNjVjY)}j\]jc.i2c_new_smbus_alert_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjs)}(hjvh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jrhjubj)}(hsetuph]hsetup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubeh}(h]h ]h"]h$]h&]jjuh1jhjώhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjˎhhhjhMubah}(h]jƎah ](j!j"eh"]h$]h&]j&j')j(huh1jhjhMhjȎhhubj*)}(hhh]h)}(h&get ara client for SMBus alert supporth]h&get ara client for SMBus alert support}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhj;hhubah}(h]h ]h"]h$]h&]uh1j)hjȎhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jJjjKjVjLjVjMjNjOuh1jhhhhhNhNubjQ)}(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]j[)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjZubjq)}(hhh](jv)}(h3``struct i2c_adapter *adapter`` the target adapter h](j|)}(h``struct i2c_adapter *adapter``h]j)}(hjh]hstruct i2c_adapter *adapter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj}ubah}(h]h ]h"]h$]h&]uh1j{h[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjyubj)}(hhh]h)}(hthe target adapterh]hthe target adapter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1juhjhMhjvubjv)}(hO``struct i2c_smbus_alert_setup *setup`` setup data for the SMBus alert handler h](j|)}(h'``struct i2c_smbus_alert_setup *setup``h]j)}(hjh]h#struct i2c_smbus_alert_setup *setup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1j{h[/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&]uh1hhj͐hMhjΐubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1juhj͐hMhjvubeh}(h]h ]h"]h$]h&]uh1jphjZubh)}(h **Context**h]j[)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjZubh)}(h can sleeph]h can sleep}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjZubh)}(h**Description**h]j[)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjZubh)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjZubh)}(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).}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjZubh)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/driver-api/i2c:47: ./drivers/i2c/i2c-core-smbus.chMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jPhhhhhNhNubeh}(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_handlerjerror_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}jijfs nametypes}jish}(jfhjjjfjkjjj j j+ j0 j j jjjjj?jDjjjjjjjZ!j_!j#j#j'j'j)j*j+j+j-j-j/j/jS1jX1j2j2j4j4j5j5j6j7j9j9ja;jf;j>j>j?j?j BjBjDjDjGjGjJjJjLjLjNjNjPjPj_RjdRj+Tj0Tj|VjVjXjXj?[jD[j]j]jX_j]_jbjbjdjdjgjgjijijkjkj8nj=njpjpjsj sjtjtjvjvjyjyj{j{j}j}jjjwj|jцjֆjwj|jƎjˎu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.