Lines Matching refs:i
184 int i; in DIV_TO_REG() local
187 for (i = 0; i < 7; i++) { in DIV_TO_REG()
192 return i; in DIV_TO_REG()
848 int i, val1 = 0, id; in w83781d_detect_subclients() local
860 for (i = 2; i <= 3; i++) { in w83781d_detect_subclients()
861 if (force_subclients[i] < 0x48 || in w83781d_detect_subclients()
862 force_subclients[i] > 0x4f) { in w83781d_detect_subclients()
865 force_subclients[i]); in w83781d_detect_subclients()
896 for (i = 0; i < num_sc; i++) { in w83781d_detect_subclients()
897 data->lm75[i] = i2c_new_dummy_device(adapter, sc_addr[i]); in w83781d_detect_subclients()
898 if (IS_ERR(data->lm75[i])) { in w83781d_detect_subclients()
901 i, sc_addr[i]); in w83781d_detect_subclients()
902 err = PTR_ERR(data->lm75[i]); in w83781d_detect_subclients()
903 if (i == 1) in w83781d_detect_subclients()
1336 int i, p; in w83781d_init_device() local
1356 i = w83781d_read_value(data, W83781D_REG_BEEP_CONFIG); in w83781d_init_device()
1367 w83781d_write_value(data, W83781D_REG_BEEP_CONFIG, i | 0x80); in w83781d_init_device()
1382 i = w83781d_read_value(data, W83781D_REG_BEEP_CONFIG); in w83781d_init_device()
1383 w83781d_write_value(data, W83781D_REG_BEEP_CONFIG, i | 0x80); in w83781d_init_device()
1390 for (i = 1; i <= 3; i++) { in w83781d_init_device()
1391 if (!(tmp & BIT_SCFG1[i - 1])) { in w83781d_init_device()
1392 data->sens[i - 1] = 4; in w83781d_init_device()
1396 W83781D_REG_SCFG2) & BIT_SCFG2[i - 1]) in w83781d_init_device()
1397 data->sens[i - 1] = 1; in w83781d_init_device()
1399 data->sens[i - 1] = 2; in w83781d_init_device()
1401 if (type == w83783s && i == 2) in w83781d_init_device()
1436 for (i = 0; i < 3; i++) { in w83781d_init_device()
1437 data->fan_min[i] = w83781d_read_value(data, in w83781d_init_device()
1438 W83781D_REG_FAN_MIN(i)); in w83781d_init_device()
1448 int i; in w83781d_update_device() local
1456 for (i = 0; i <= 8; i++) { in w83781d_update_device()
1457 if (data->type == w83783s && i == 1) in w83781d_update_device()
1459 data->in[i] = in w83781d_update_device()
1460 w83781d_read_value(data, W83781D_REG_IN(i)); in w83781d_update_device()
1461 data->in_min[i] = in w83781d_update_device()
1462 w83781d_read_value(data, W83781D_REG_IN_MIN(i)); in w83781d_update_device()
1463 data->in_max[i] = in w83781d_update_device()
1464 w83781d_read_value(data, W83781D_REG_IN_MAX(i)); in w83781d_update_device()
1465 if ((data->type != w83782d) && (i == 6)) in w83781d_update_device()
1468 for (i = 0; i < 3; i++) { in w83781d_update_device()
1469 data->fan[i] = in w83781d_update_device()
1470 w83781d_read_value(data, W83781D_REG_FAN(i)); in w83781d_update_device()
1471 data->fan_min[i] = in w83781d_update_device()
1472 w83781d_read_value(data, W83781D_REG_FAN_MIN(i)); in w83781d_update_device()
1475 for (i = 0; i < 4; i++) { in w83781d_update_device()
1476 data->pwm[i] = in w83781d_update_device()
1478 W83781D_REG_PWM[i]); in w83781d_update_device()
1481 && i == 1) in w83781d_update_device()
1510 i = w83781d_read_value(data, W83781D_REG_VID_FANDIV); in w83781d_update_device()
1511 data->vid = i & 0x0f; in w83781d_update_device()
1514 data->fan_div[0] = (i >> 4) & 0x03; in w83781d_update_device()
1515 data->fan_div[1] = (i >> 6) & 0x03; in w83781d_update_device()
1519 i = w83781d_read_value(data, W83781D_REG_VBAT); in w83781d_update_device()
1520 data->fan_div[0] |= (i >> 3) & 0x04; in w83781d_update_device()
1521 data->fan_div[1] |= (i >> 4) & 0x04; in w83781d_update_device()
1522 data->fan_div[2] |= (i >> 5) & 0x04; in w83781d_update_device()
1546 i = w83781d_read_value(data, W83781D_REG_BEEP_INTS2); in w83781d_update_device()
1547 data->beep_mask = (i << 8) + in w83781d_update_device()
1626 int i; in w83781d_alias_detect() local
1642 for (i = 0x2b; i <= 0x3d; i++) { in w83781d_alias_detect()
1643 if (w83781d_read_value(isa, i) != in w83781d_alias_detect()
1644 i2c_smbus_read_byte_data(client, i)) in w83781d_alias_detect()
1650 for (i = 0x43; i <= 0x46; i++) { in w83781d_alias_detect()
1651 if (w83781d_read_value(isa, i) != in w83781d_alias_detect()
1652 i2c_smbus_read_byte_data(client, i)) in w83781d_alias_detect()