Lines Matching refs:val1
848 int i, val1 = 0, id; in w83781d_detect_subclients() local
875 val1 = w83781d_read_value(data, W83781D_REG_I2C_SUBADDR); in w83781d_detect_subclients()
876 sc_addr[0] = 0x48 + (val1 & 0x07); in w83781d_detect_subclients()
885 sc_addr[1] = 0x48 + ((val1 >> 4) & 0x07); in w83781d_detect_subclients()
1086 int val1, val2; in w83781d_detect() local
1110 val1 = i2c_smbus_read_byte_data(client, W83781D_REG_BANK); in w83781d_detect()
1113 if (!(val1 & 0x07) && in w83781d_detect()
1114 ((!(val1 & 0x80) && val2 != 0xa3 && val2 != 0xc3) || in w83781d_detect()
1115 ((val1 & 0x80) && val2 != 0x5c && val2 != 0x12))) { in w83781d_detect()
1124 if ((!(val1 & 0x80) && val2 == 0xa3) || in w83781d_detect()
1125 ((val1 & 0x80) && val2 == 0x5c)) { in w83781d_detect()
1152 val1 = i2c_smbus_read_byte_data(client, W83781D_REG_WCHIPID); in w83781d_detect()
1153 if ((val1 == 0x10 || val1 == 0x11) && vendid == winbond) in w83781d_detect()
1155 else if (val1 == 0x30 && vendid == winbond) in w83781d_detect()
1157 else if (val1 == 0x40 && vendid == winbond && address == 0x2d) in w83781d_detect()
1159 else if (val1 == 0x31) in w83781d_detect()
1164 if (val1 <= 0x30 && w83781d_alias_detect(client, val1)) { in w83781d_detect()