Lines Matching full:smbus
11 * NOTE of the IDT 89HPESx SMBus-slave interface driver
13 * IDT PCIe-switches. IDT provides a simple SMBus interface to perform IO-
15 * SMBus of switches. Using that interface this the driver creates a simple
20 * Additionally IDT 89HPESx SMBus interface has an ability to write/read
55 #define IDT_89HPESX_DESC "IDT 89HPESx SMBus-slave interface driver"
80 * @smb_write: SMBus write method
81 * @smb_read: SMBus read method
82 * @smb_mtx: SMBus mutex
112 * @ccode: SMBus command code
149 * SMBus command code macros
235 * @idt_smb_safe: Generate a retry loop on corresponding SMBus method
253 * idt_smb_write_byte() - SMBus write method when I2C_SMBUS_BYTE_DATA operation
285 * idt_smb_read_byte() - SMBus read method when I2C_SMBUS_BYTE_DATA operation
318 * idt_smb_write_word() - SMBus write method when I2C_SMBUS_BYTE_DATA and
367 * idt_smb_read_word() - SMBus read method when I2C_SMBUS_BYTE_DATA and
418 * idt_smb_write_block() - SMBus write method when I2C_SMBUS_BLOCK_DATA
441 * idt_smb_read_block() - SMBus read method when I2C_SMBUS_BLOCK_DATA
468 * idt_smb_write_i2c_block() - SMBus write method when I2C_SMBUS_I2C_BLOCK_DATA
473 * NOTE It's usual SMBus write block operation, except the actual data length is
498 * idt_smb_read_i2c_block() - SMBus read method when I2C_SMBUS_I2C_BLOCK_DATA
503 * NOTE It's usual SMBus read block operation, except the actual data length is
552 /* Initialize SMBus sequence fields */ in idt_eeprom_read_byte()
625 /* Initialize SMBus sequence fields */ in idt_eeprom_write()
631 /* Lock IDT SMBus device */ in idt_eeprom_write()
665 /* Unlock IDT SMBus device */ in idt_eeprom_write()
690 /* Lock IDT SMBus device */ in idt_eeprom_read()
696 /* Unlock IDT SMBus device */ in idt_eeprom_read()
726 /* Initialize SMBus sequence fields */ in idt_csr_write()
730 /* Lock IDT SMBus device */ in idt_csr_write()
771 /* Unlock IDT SMBus device */ in idt_csr_write()
791 /* Initialize SMBus sequence fields */ in idt_csr_read()
795 /* Lock IDT SMBus device */ in idt_csr_read()
828 /* Unlock IDT SMBus device */ in idt_csr_read()
1177 * idt_set_smbus_ops() - set supported SMBus operations
1179 * Return status of smbus check operations
1190 dev_dbg(dev, "SMBus block-read op chosen"); in idt_set_smbus_ops()
1194 dev_dbg(dev, "SMBus i2c-block-read op chosen"); in idt_set_smbus_ops()
1200 dev_warn(dev, "Use slow word/byte SMBus read ops"); in idt_set_smbus_ops()
1204 dev_warn(dev, "Use slow byte SMBus read op"); in idt_set_smbus_ops()
1205 } else /* no supported smbus read operations */ { in idt_set_smbus_ops()
1206 dev_err(dev, "No supported SMBus read op"); in idt_set_smbus_ops()
1214 dev_dbg(dev, "SMBus block-write op chosen"); in idt_set_smbus_ops()
1218 dev_dbg(dev, "SMBus i2c-block-write op chosen"); in idt_set_smbus_ops()
1224 dev_warn(dev, "Use slow word/byte SMBus write op"); in idt_set_smbus_ops()
1228 dev_warn(dev, "Use slow byte SMBus write op"); in idt_set_smbus_ops()
1229 } else /* no supported smbus write operations */ { in idt_set_smbus_ops()
1230 dev_err(dev, "No supported SMBus write op"); in idt_set_smbus_ops()
1234 /* Initialize IDT SMBus slave interface mutex */ in idt_set_smbus_ops()
1369 /* Set SMBus operations */ in idt_probe()
1460 /* { "89hpes3t3" }, // No SMBus-slave iface */
1463 /* { "89hpes4t4" }, // No SMBus-slave iface */