MCPcopy Create free account
hub / github.com/coreboot/coreboot / i2c_write_raw

Function i2c_write_raw

src/include/device/i2c_simple.h:72–80  ·  view source on GitHub ↗

* Write a raw chunk of data in one segment and one frame. * * [start][slave addr][w][data][stop] */

Source from the content-addressed store, hash-verified

70 * [start][slave addr][w][data][stop]
71 */
72static inline int i2c_write_raw(unsigned int bus, uint8_t slave, uint8_t *data,
73 int len)
74{
75 struct i2c_msg seg = {
76 .flags = 0, .slave = slave, .buf = data, .len = len
77 };
78
79 return i2c_transfer(bus, &seg, 1);
80}
81
82/**
83 * Read multi-bytes with two segments in one frame

Callers 9

starlabs_touchpad_resetFunction · 0.85
iic_tpm_readFunction · 0.85
iic_tpm_write_genericFunction · 0.85
i2c_tis_sendrecvFunction · 0.85
cr50_i2c_readFunction · 0.85
cr50_i2c_writeFunction · 0.85
mt6360_i2c_write_byteFunction · 0.85
google_chromeec_commandFunction · 0.85

Calls 1

i2c_transferFunction · 0.85

Tested by

no test coverage detected