/drivers/hwmon/ |
D | vt8231.c | 166 u8 in_min[6]; /* Register value */ member 212 return sprintf(buf, "%d\n", ((data->in_min[nr] - 3) * 10000) / 958); in show_in_min() 239 data->in_min[nr] = clamp_val(((val * 958) / 10000) + 3, 0, 255); in set_in_min() 240 vt8231_write_value(data, regvoltmin[nr], data->in_min[nr]); in set_in_min() 281 (((data->in_min[5] - 3) * 10000 * 54) / (958 * 34))); in show_in5_min() 305 data->in_min[5] = clamp_val(((val * 958 * 34) / (10000 * 54)) + 3, in set_in5_min() 307 vt8231_write_value(data, regvoltmin[5], data->in_min[5]); in set_in5_min() 893 data->in_min[i] = vt8231_read_value(data, in vt8231_update_device()
|
D | adm1025.c | 152 u8 in_min[6]; /* register value */ member 179 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[index], in show_in_min() 230 data->in_min[index] = IN_TO_REG(val, in_scale[index]); in set_in_min() 232 data->in_min[index]); in set_in_min() 585 data->in_min[i] = i2c_smbus_read_byte_data(client, in adm1025_update_device()
|
D | smsc47m192.c | 105 u8 in_min[8]; /* Register value */ member 156 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr], nr)); in show_in_min() 183 data->in_min[nr] = IN_TO_REG(val, nr); in set_in_min() 185 data->in_min[nr]); in set_in_min() 625 data->in_min[i] = i2c_smbus_read_byte_data(client, in smsc47m192_update_device()
|
D | adm9240.c | 172 u8 in_min[6]; /* rw in0_min */ member 244 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index], in show_in_min() 272 data->in_min[attr->index] = IN_TO_REG(val, attr->index); in set_in_min() 274 data->in_min[attr->index]); in set_in_min() 764 data->in_min[i] = i2c_smbus_read_byte_data(client, in adm9240_update_device()
|
D | sis5595.c | 194 u8 in_min[5]; /* Register value */ member 239 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr])); in show_in_min() 265 data->in_min[nr] = IN_TO_REG(val); in set_in_min() 266 sis5595_write_value(data, SIS5595_REG_IN_MIN(nr), data->in_min[nr]); in set_in_min() 718 data->in_min[i] = in sis5595_update_device()
|
D | via686a.c | 326 u8 in_min[5]; /* Register value */ member 371 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_min[nr], nr)); in show_in_min() 395 data->in_min[nr] = IN_TO_REG(val, nr); in set_in_min() 397 data->in_min[nr]); in set_in_min() 775 data->in_min[i] = via686a_read_value(data, in via686a_update_device()
|
D | lm87.c | 167 u8 in_min[8]; /* register value */ member 213 data->in_min[i] = lm87_read_value(client, in lm87_update_device() 225 data->in_min[6+i] = lm87_read_value(client, in lm87_update_device() 295 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[nr], in show_in_min() 323 data->in_min[nr] = IN_TO_REG(val, data->in_scale[nr]); in set_in_min() 325 LM87_REG_AIN_MIN(nr - 6), data->in_min[nr]); in set_in_min()
|
D | w83627hf.c | 370 u8 in_min[9]; /* Register value */ member 438 data->in_min[i]); in w83627hf_resume() 497 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_min[nr])); in show_in_min() 520 data->in_min[nr] = IN_TO_REG(val); in store_in_min() 521 w83627hf_write_value(data, W83781D_REG_IN_MIN(nr), data->in_min[nr]); in store_in_min() 588 return show_in_0(data, buf, data->in_min[0]); in show_regs_in_min0() 615 data->in_min[0] = in store_regs_in_min0() 619 data->in_min[0] = IN_TO_REG(val); in store_regs_in_min0() 621 w83627hf_write_value(data, W83781D_REG_IN_MIN(0), data->in_min[0]); in store_regs_in_min0() 1841 data->in_min[i] = in w83627hf_update_device()
|
D | pc87360.c | 209 u8 in_min[14]; /* Register value */ member 419 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in show_in_min() 450 data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); in set_in_min() 452 data->in_min[attr->index]); in set_in_min() 503 static struct sensor_device_attribute in_min[] = { variable 588 &in_min[X].dev_attr.attr, \ 665 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in show_therm_min() 706 data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); in set_therm_min() 708 data->in_min[attr->index]); in set_therm_min() 1650 data->in_min[i] = pc87360_read_value(data, in pc87360_update_device()
|
D | lm78.c | 138 u8 in_min[7]; /* Register value */ member 170 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index])); in show_in_min() 195 data->in_min[nr] = IN_TO_REG(val); in set_in_min() 196 lm78_write_value(data, LM78_REG_IN_MIN(nr), data->in_min[nr]); in set_in_min() 798 data->in_min[i] = in lm78_update_device()
|
D | f75375s.c | 109 u8 in_min[4]; member 217 data->in_min[nr] = in f75375_update_device() 543 return sprintf(buf, "%d\n", VOLT_FROM_REG(data->in_min[nr])); in show_in_min() 582 data->in_min[nr] = val; in set_in_min() 583 f75375_write8(client, F75375_REG_VOLT_LOW(nr), data->in_min[nr]); in set_in_min()
|
D | lm80.c | 123 u8 in_min[7]; /* Register value */ member 185 show_in(min, in_min) in show_in() argument 207 set_in(min, in_min, LM80_REG_IN_MIN) 640 data->in_min[i] = rv; in lm80_update_device()
|
D | gl520sm.c | 118 u8 in_min[5]; /* [0] = VDD */ member 170 u8 r = data->in_min[n]; in get_in_min() 212 data->in_min[n] = r; in set_in_min() 914 data->in_min[i] = val & 0xff; in gl520_update_device() 954 data->in_min[4] = gl520_read_value(client, in gl520_update_device()
|
D | vt1211.c | 127 u8 in_min[6]; member 271 data->in_min[ix] = vt1211_read8(data, in vt1211_update_device() 362 res = IN_FROM_REG(ix, data->in_min[ix]); in show_in() 396 data->in_min[ix] = IN_TO_REG(ix, val); in set_in() 397 vt1211_write8(data, VT1211_REG_IN_MIN(ix), data->in_min[ix]); in set_in()
|
D | lm85.c | 322 u8 in_min[8]; /* Register value */ member 681 return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_min[nr])); in show_in_min() 698 data->in_min[nr] = INS_TO_REG(nr, val); in set_in_min() 699 lm85_write_value(client, LM85_REG_IN_MIN(nr), data->in_min[nr]); in set_in_min() 1635 data->in_min[i] = in lm85_update_device() 1644 data->in_min[4] = lm85_read_value(client, in lm85_update_device() 1652 data->in_min[i] = lm85_read_value(client, in lm85_update_device()
|
D | adm1026.c | 278 u8 in_min[17]; /* Register value */ member 626 data->in_min[i] = adm1026_read_value(client, in adm1026_update_device() 724 return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_min[nr])); in show_in_min() 741 data->in_min[nr] = INS_TO_REG(nr, val); in set_in_min() 742 adm1026_write_value(client, ADM1026_REG_IN_MIN[nr], data->in_min[nr]); in set_in_min() 812 return sprintf(buf, "%d\n", INS_FROM_REG(16, data->in_min[16]) in show_in16_min() 828 data->in_min[16] = INS_TO_REG(16, val + NEG12_OFFSET); in set_in16_min() 829 adm1026_write_value(client, ADM1026_REG_IN_MIN[16], data->in_min[16]); in set_in16_min()
|
D | w83l786ng.c | 136 u8 in_min[3]; member 201 show_in_reg(in_min) 754 data->in_min[i] = w83l786ng_read_value(client, in w83l786ng_update_device()
|
D | adcxx.c | 149 SENSOR_ATTR(in_min, S_IRUGO, adcxx_show_min, NULL, 0),
|
D | asb100.c | 205 u8 in_min[7]; /* Register value */ member 258 show_in_reg(in_min) 965 data->in_min[i] = asb100_read_value(client, in asb100_update_device()
|
D | w83791d.c | 298 u8 in_min[NUMBER_OF_VIN]; /* Register value */ member 381 show_in_reg(in_min); 1539 data->in_min[i] = w83791d_read(client, in w83791d_update_device() 1662 dev_dbg(dev, "vin[%d] min is: 0x%02x\n", i, data->in_min[i]); in w83791d_print_debug()
|
D | w83792d.c | 285 u8 in_min[9]; /* Register value */ member 381 show_in_reg(in_min); 1524 data->in_min[i] = w83792d_read_value(client, in w83792d_update_device() 1637 dev_dbg(dev, "vin[%d] min is: 0x%x\n", i, data->in_min[i]); in w83792d_print_debug()
|
D | dme1737.c | 231 u8 in_min[8]; member 637 data->in_min[ix] = dme1737_read(data, in dme1737_update_device() 824 res = IN_FROM_REG(data->in_min[ix], data->in_nominal[ix], 8); in show_in() 858 data->in_min[ix] = IN_TO_REG(val, data->in_nominal[ix]); in set_in() 860 data->in_min[ix]); in set_in()
|
D | w83781d.c | 227 u8 in_min[9]; /* Register value - 8 & 9 for 782D only */ member 269 show_in_reg(in_min); 1481 data->in_min[i] = in w83781d_update_device()
|
D | w83627ehf.c | 461 u8 in_min[10]; /* Register value */ member 813 data->in_min[i] = w83627ehf_read_value(data, in w83627ehf_update_device() 949 show_in_reg(in_min) in show_in_reg() argument 2651 data->in_min[i]); in w83627ehf_resume()
|