Lines Matching defs:tmp

588 	long tmp;
591 err = kstrtol(buf, 10, &tmp);
596 data->temp[index][nr] = TEMP_TO_REG(tmp, -128, 127);
629 u8 tmp;
632 tmp = (data->temp_mode[index] >> shift) & mask;
635 if (tmp == 1)
636 tmp = index == 0 ? 3 : 4;
638 tmp = TO_TEMP_MODE[tmp];
640 return sprintf(buf, "%d\n", tmp);
1502 int i, tmp;
1526 tmp = w83793_read_value(client, W83793_REG_CONFIG);
1527 w83793_write_value(client, W83793_REG_CONFIG, tmp & ~0x04);
1566 u8 tmp;
1586 tmp = w83793_read_value(client, W83793_REG_I2C_SUBADDR);
1588 if (!(tmp & 0x88) && (tmp & 0x7) == ((tmp >> 4) & 0x7)) {
1590 "duplicate addresses 0x%x, use force_subclient\n", 0x48 + (tmp & 0x7));
1594 if (!(tmp & 0x08))
1595 devm_i2c_new_dummy_device(&client->dev, adapter, 0x48 + (tmp & 0x7));
1597 if (!(tmp & 0x80))
1598 devm_i2c_new_dummy_device(&client->dev, adapter, 0x48 + ((tmp >> 4) & 0x7));
1607 u8 tmp, bank, chip_id;
1616 tmp = bank & 0x80 ? 0x5c : 0xa3;
1618 if (tmp != i2c_smbus_read_byte_data(client, W83793_REG_VENDORID)) {
1651 int i, tmp, val, err;
1689 tmp = w83793_read_value(client, W83793_REG_MFC);
1693 if (tmp & 0x80) {
1705 if (!(tmp & 0x40) && (val & 0x04)) { /* fan 8 */
1712 if (!(tmp & 0x29))
1714 if (0x08 == (tmp & 0x0c)) {
1720 if (0x20 == (tmp & 0x30)) {
1727 if ((tmp & 0x01) && (val & 0x04)) { /* fan 8, second location */
1732 tmp = w83793_read_value(client, W83793_REG_FANIN_SEL);
1733 if ((tmp & 0x01) && (val & 0x08)) { /* fan 9, second location */
1736 if ((tmp & 0x02) && (val & 0x10)) { /* fan 10, second location */
1739 if ((tmp & 0x04) && (val & 0x20)) { /* fan 11, second location */
1742 if ((tmp & 0x08) && (val & 0x40)) { /* fan 12, second location */
1747 tmp = w83793_read_value(client, W83793_REG_TEMP_MODE[0]);
1748 if (tmp & 0x01)
1750 if (tmp & 0x04)
1752 if (tmp & 0x10)
1754 if (tmp & 0x40)
1757 tmp = w83793_read_value(client, W83793_REG_TEMP_MODE[1]);
1758 if (tmp & 0x01)
1760 if (tmp & 0x02)
1852 tmp = w83793_read_value(client, W83793_REG_CONFIG);
1853 w83793_write_value(client, W83793_REG_CONFIG, tmp | 0x04);