Lines Matching defs:msg
26 static int mantis_i2c_read(struct mantis_pci *mantis, const struct i2c_msg *msg)
31 __func__, msg->addr);
33 for (i = 0; i < msg->len; i++) {
34 rxd = (msg->addr << 25) | (1 << 24)
39 if (i == (msg->len - 1))
64 msg->buf[i] = (u8)((rxd >> 8) & 0xFF);
65 dprintk(MANTIS_INFO, 0, "%02x ", msg->buf[i]);
72 static int mantis_i2c_write(struct mantis_pci *mantis, const struct i2c_msg *msg)
78 __func__, msg->addr);
80 for (i = 0; i < msg->len; i++) {
81 dprintk(MANTIS_INFO, 0, "%02x ", msg->buf[i]);
82 txd = (msg->addr << 25) | (msg->buf[i] << 8)
87 if (i == (msg->len - 1))