Home
last modified time | relevance | path

Searched refs:QI2CDevice (Results 1 – 11 of 11) sorted by relevance

/openbmc/qemu/tests/qtest/libqos/
H A Di2c.h30 typedef struct QI2CDevice QI2CDevice; typedef
31 struct QI2CDevice { struct
50 void qi2c_send(QI2CDevice *dev, const uint8_t *buf, uint16_t len); argument
51 void qi2c_recv(QI2CDevice *dev, uint8_t *buf, uint16_t len);
53 void i2c_read_block(QI2CDevice *dev, uint8_t reg,
55 void i2c_write_block(QI2CDevice *dev, uint8_t reg,
57 uint8_t i2c_get8(QI2CDevice *dev, uint8_t reg);
58 uint16_t i2c_get16(QI2CDevice *dev, uint8_t reg);
59 void i2c_set8(QI2CDevice *dev, uint8_t reg, uint8_t value);
60 void i2c_set16(QI2CDevice *dev, uint8_t reg, uint16_t value);
H A Di2c.c13 void qi2c_send(QI2CDevice *i2cdev, const uint8_t *buf, uint16_t len) in qi2c_send()
18 void qi2c_recv(QI2CDevice *i2cdev, uint8_t *buf, uint16_t len) in qi2c_recv()
23 void i2c_read_block(QI2CDevice *i2cdev, uint8_t reg, in i2c_read_block()
30 void i2c_write_block(QI2CDevice *i2cdev, uint8_t reg, in i2c_write_block()
40 uint8_t i2c_get8(QI2CDevice *i2cdev, uint8_t reg) in i2c_get8()
47 uint16_t i2c_get16(QI2CDevice *i2cdev, uint8_t reg) in i2c_get16()
54 void i2c_set8(QI2CDevice *i2cdev, uint8_t reg, uint8_t value) in i2c_set8()
59 void i2c_set16(QI2CDevice *i2cdev, uint8_t reg, uint16_t value) in i2c_set16()
70 QI2CDevice *i2cdev = g_new0(QI2CDevice, 1); in i2c_device_create()
/openbmc/qemu/tests/qtest/
H A Dmax34451-test.c69 static uint16_t max34451_i2c_get16(QI2CDevice *i2cdev, uint8_t reg) in max34451_i2c_get16()
77 static void max34451_i2c_set16(QI2CDevice *i2cdev, uint8_t reg, uint16_t value) in max34451_i2c_set16()
90 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_defaults()
150 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_temperature()
177 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_voltage()
206 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_rw_regs()
253 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_ro_regs()
280 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_ov_faults()
302 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_ot_faults()
326 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_all_pages()
H A Dadm1266-test.c48 static void compare_string(QI2CDevice *i2cdev, uint8_t reg, in compare_string()
58 static void write_and_compare_string(QI2CDevice *i2cdev, uint8_t reg, in write_and_compare_string()
71 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_defaults()
87 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_rw_regs()
H A Dpca9552-test.c20 static void pca9552_init(QI2CDevice *i2cdev) in pca9552_init()
29 QI2CDevice *i2cdev = (QI2CDevice *)obj; in receive_autoinc()
56 QI2CDevice *i2cdev = (QI2CDevice *)obj; in send_and_receive()
H A Disl_pmbus_vr-test.c57 static uint16_t isl_pmbus_vr_i2c_get16(QI2CDevice *i2cdev, uint8_t reg) in isl_pmbus_vr_i2c_get16()
65 static void isl_pmbus_vr_i2c_set16(QI2CDevice *i2cdev, uint8_t reg, in isl_pmbus_vr_i2c_set16()
78 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_defaults()
157 QI2CDevice *i2cdev = (QI2CDevice *)obj; in raa228000_test_defaults()
221 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_tx_rx()
274 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_rw_regs()
349 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_pages_rw()
364 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_ro_regs()
417 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_voltage_faults()
H A Dadm1272-test.c173 static uint16_t adm1272_i2c_get16(QI2CDevice *i2cdev, uint8_t reg) in adm1272_i2c_get16()
181 static void adm1272_i2c_set16(QI2CDevice *i2cdev, uint8_t reg, uint16_t value) in adm1272_i2c_set16()
194 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_defaults()
252 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_tx_rx()
296 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_rw_regs()
371 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_ro_regs()
404 QI2CDevice *i2cdev = (QI2CDevice *)obj; in test_voltage_faults()
H A Dlsm303dlhc-mag-test.c54 QI2CDevice *i2cdev = (QI2CDevice *)obj; in send_and_receive()
112 QI2CDevice *i2cdev = (QI2CDevice *)obj; in reg_wraparound()
H A Dds1338-test.c33 QI2CDevice *i2cdev = (QI2CDevice *)obj; in send_and_receive()
H A Demc141x-test.c44 QI2CDevice *i2cdev = (QI2CDevice *)obj; in send_and_receive()
H A Dtmp105-test.c48 QI2CDevice *i2cdev = (QI2CDevice *)obj; in send_and_receive()