Lines Matching refs:val1
863 int i, val1 = 0, id; in w83781d_detect_subclients() local
890 val1 = w83781d_read_value(data, W83781D_REG_I2C_SUBADDR); in w83781d_detect_subclients()
891 sc_addr[0] = 0x48 + (val1 & 0x07); in w83781d_detect_subclients()
900 sc_addr[1] = 0x48 + ((val1 >> 4) & 0x07); in w83781d_detect_subclients()
1101 int val1, val2; in w83781d_detect() local
1125 val1 = i2c_smbus_read_byte_data(client, W83781D_REG_BANK); in w83781d_detect()
1128 if (!(val1 & 0x07) && in w83781d_detect()
1129 ((!(val1 & 0x80) && val2 != 0xa3 && val2 != 0xc3) || in w83781d_detect()
1130 ((val1 & 0x80) && val2 != 0x5c && val2 != 0x12))) { in w83781d_detect()
1139 if ((!(val1 & 0x80) && val2 == 0xa3) || in w83781d_detect()
1140 ((val1 & 0x80) && val2 == 0x5c)) { in w83781d_detect()
1167 val1 = i2c_smbus_read_byte_data(client, W83781D_REG_WCHIPID); in w83781d_detect()
1168 if ((val1 == 0x10 || val1 == 0x11) && vendid == winbond) in w83781d_detect()
1170 else if (val1 == 0x30 && vendid == winbond) in w83781d_detect()
1172 else if (val1 == 0x40 && vendid == winbond && address == 0x2d) in w83781d_detect()
1174 else if (val1 == 0x31) in w83781d_detect()
1179 if (val1 <= 0x30 && w83781d_alias_detect(client, val1)) { in w83781d_detect()