Lines Matching refs:val1
251 #define TEMP_ADD_FROM_REG(val1, val2) \ argument
252 ((((val1) & 0x80 ? (val1)-0x100 \
253 : (val1)) * 1000) + ((val2 & 0x80) ? 500 : 0))
1326 int val1, val2; in w83792d_detect() local
1335 val1 = w83792d_read_value(client, W83792D_REG_BANK); in w83792d_detect()
1338 if (!(val1 & 0x07)) { /* is Bank0 */ in w83792d_detect()
1339 if ((!(val1 & 0x80) && val2 != 0xa3) || in w83792d_detect()
1340 ((val1 & 0x80) && val2 != 0x5c)) in w83792d_detect()
1357 val1 = w83792d_read_value(client, W83792D_REG_WCHIPID); in w83792d_detect()
1359 if (val1 != 0x7a || val2 != 0x5c) in w83792d_detect()
1372 int i, val1, err; in w83792d_probe() local
1403 val1 = w83792d_read_value(client, W83792D_REG_GPIO_EN); in w83792d_probe()
1405 if (!(val1 & 0x40)) { in w83792d_probe()
1411 if (!(val1 & 0x20)) { in w83792d_probe()
1417 val1 = w83792d_read_value(client, W83792D_REG_PIN); in w83792d_probe()
1418 if (val1 & 0x40) { in w83792d_probe()
1424 if (val1 & 0x04) { in w83792d_probe()