Lines Matching full:smbus

3  * Linux I2C core SMBus and SMBus emulation code
5 * This file contains the SMBus functions which are always included in the I2C
6 * core because they can be emulated via I2C. SMBus specific extensions
7 * (e.g. smbalert) are handled in a separate i2c-smbus module.
9 * All SMBus-related things are written by Frodo Looijaard <frodol@dds.nl>
10 * SMBus 2.0 support by Mark Studebaker <mdsxyz123@yahoo.com> and
16 #include <linux/i2c-smbus.h>
23 #include <trace/events/smbus.h>
26 /* The SMBus parts */
59 /* Assume a 7-bit address, which is reasonable for SMBus */
96 * i2c_smbus_read_byte - SMBus "receive byte" protocol
99 * This executes the SMBus "receive byte" protocol, returning negative errno
115 * i2c_smbus_write_byte - SMBus "send byte" protocol
119 * This executes the SMBus "send byte" protocol, returning negative errno
130 * i2c_smbus_read_byte_data - SMBus "read byte" protocol
134 * This executes the SMBus "read byte" protocol, returning negative errno
150 * i2c_smbus_write_byte_data - SMBus "write byte" protocol
155 * This executes the SMBus "write byte" protocol, returning negative errno
170 * i2c_smbus_read_word_data - SMBus "read word" protocol
174 * This executes the SMBus "read word" protocol, returning negative errno
190 * i2c_smbus_write_word_data - SMBus "write word" protocol
195 * This executes the SMBus "write word" protocol, returning negative errno
210 * i2c_smbus_read_block_data - SMBus "block read" protocol
214 * the data returned by the slave. SMBus allows at most 32 bytes.
216 * This executes the SMBus "block read" protocol, returning negative errno
242 * i2c_smbus_write_block_data - SMBus "block write" protocol
245 * @length: Size of data block; SMBus allows at most 32 bytes
248 * This executes the SMBus "block write" protocol, returning negative errno
319 * Simulate a SMBus command using the I2C protocol.
523 * i2c_smbus_xfer - execute SMBus protocol operations
525 * @addr: Address of SMBus slave on that bus
529 * @protocol: SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL
532 * This executes an SMBus protocol operation, and returns a negative
603 * implement native support for the SMBus operation. in __i2c_smbus_xfer()
625 * @length: Size of data block; SMBus allows at most I2C_SMBUS_BLOCK_MAX bytes
627 * the data returned by the slave. SMBus allows at most
630 * This executes the SMBus "block read" protocol if supported by the adapter.
679 * i2c_new_smbus_alert_device - get ara client for SMBus alert support
681 * @setup: setup data for the SMBus alert handler
684 * Setup handling of the SMBus alert protocol on a given I2C bus segment.
711 /* Adapter instantiated without parent, skip the SMBus alert setup */ in i2c_setup_smbus_alert()