Lines Matching refs:msg

951 static int az6027_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num)  in az6027_i2c_xfer()  argument
975 if (msg[i].addr == 0x99) { in az6027_i2c_xfer()
978 if (msg[i].len < 1) { in az6027_i2c_xfer()
982 value = msg[i].buf[0] & 0x00ff; in az6027_i2c_xfer()
987 if (msg[i].addr == 0xd0) { in az6027_i2c_xfer()
989 if (i + 1 < num && (msg[i + 1].flags & I2C_M_RD)) { in az6027_i2c_xfer()
991 if (msg[i].len < 1) { in az6027_i2c_xfer()
995 index = (((msg[i].buf[0] << 8) & 0xff00) | (msg[i].buf[1] & 0x00ff)); in az6027_i2c_xfer()
996 value = msg[i].addr + (msg[i].len << 8); in az6027_i2c_xfer()
997 length = msg[i + 1].len + 6; in az6027_i2c_xfer()
999 len = msg[i + 1].len; in az6027_i2c_xfer()
1001 msg[i + 1].buf[j] = data[j + 5]; in az6027_i2c_xfer()
1008 if (msg[i].len < 1) { in az6027_i2c_xfer()
1012 index = (((msg[i].buf[0] << 8) & 0xff00) | (msg[i].buf[1] & 0x00ff)); in az6027_i2c_xfer()
1013 value = msg[i].addr + (2 << 8); in az6027_i2c_xfer()
1014 length = msg[i].len - 2; in az6027_i2c_xfer()
1015 len = msg[i].len - 2; in az6027_i2c_xfer()
1017 data[j] = msg[i].buf[j + 2]; in az6027_i2c_xfer()
1022 if (msg[i].addr == 0xc0) { in az6027_i2c_xfer()
1023 if (msg[i].flags & I2C_M_RD) { in az6027_i2c_xfer()
1027 value = msg[i].addr; in az6027_i2c_xfer()
1028 length = msg[i].len + 6; in az6027_i2c_xfer()
1030 len = msg[i].len; in az6027_i2c_xfer()
1032 msg[i].buf[j] = data[j + 5]; in az6027_i2c_xfer()
1037 if (msg[i].len < 1) { in az6027_i2c_xfer()
1041 index = msg[i].buf[0] & 0x00FF; in az6027_i2c_xfer()
1042 value = msg[i].addr + (1 << 8); in az6027_i2c_xfer()
1043 length = msg[i].len - 1; in az6027_i2c_xfer()
1044 len = msg[i].len - 1; in az6027_i2c_xfer()
1047 data[j] = msg[i].buf[j + 1]; in az6027_i2c_xfer()