/drivers/hwmon/ |
D | vt8231.c | 165 u8 in_max[6]; /* Register value */ member 222 return sprintf(buf, "%d\n", (((data->in_max[nr] - 3) * 10000) / 958)); in show_in_max() 259 data->in_max[nr] = clamp_val(((val * 958) / 10000) + 3, 0, 255); in set_in_max() 260 vt8231_write_value(data, regvoltmax[nr], data->in_max[nr]); in set_in_max() 290 (((data->in_max[5] - 3) * 10000 * 54) / (958 * 34))); in show_in5_max() 324 data->in_max[5] = clamp_val(((val * 958 * 34) / (10000 * 54)) + 3, in set_in5_max() 326 vt8231_write_value(data, regvoltmax[5], data->in_max[5]); in set_in5_max() 895 data->in_max[i] = vt8231_read_value(data, in vt8231_update_device()
|
D | adm1025.c | 151 u8 in_max[6]; /* register value */ member 188 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[index], in show_in_max() 251 data->in_max[index] = IN_TO_REG(val, in_scale[index]); in set_in_max() 253 data->in_max[index]); in set_in_max() 587 data->in_max[i] = i2c_smbus_read_byte_data(client, in adm1025_update_device()
|
D | smsc47m192.c | 104 u8 in_max[8]; /* Register value */ member 165 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr], nr)); in show_in_max() 205 data->in_max[nr] = IN_TO_REG(val, nr); in set_in_max() 207 data->in_max[nr]); in set_in_max() 627 data->in_max[i] = i2c_smbus_read_byte_data(client, in smsc47m192_update_device()
|
D | adm9240.c | 171 u8 in_max[6]; /* rw in0_max */ member 253 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index], in show_in_max() 294 data->in_max[attr->index] = IN_TO_REG(val, attr->index); in set_in_max() 296 data->in_max[attr->index]); in set_in_max() 766 data->in_max[i] = i2c_smbus_read_byte_data(client, in adm9240_update_device()
|
D | sis5595.c | 193 u8 in_max[5]; /* Register value */ member 248 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr])); in show_in_max() 285 data->in_max[nr] = IN_TO_REG(val); in set_in_max() 286 sis5595_write_value(data, SIS5595_REG_IN_MAX(nr), data->in_max[nr]); in set_in_max() 721 data->in_max[i] = in sis5595_update_device()
|
D | via686a.c | 325 u8 in_max[5]; /* Register value */ member 379 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_max[nr], nr)); in show_in_max() 414 data->in_max[nr] = IN_TO_REG(val, nr); in set_in_max() 416 data->in_max[nr]); in set_in_max() 778 data->in_max[i] = in via686a_update_device()
|
D | lm87.c | 166 u8 in_max[8]; /* register value */ member 215 data->in_max[i] = lm87_read_value(client, in lm87_update_device() 223 data->in_max[6+i] = lm87_read_value(client, in lm87_update_device() 305 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[nr], in show_in_max() 344 data->in_max[nr] = IN_TO_REG(val, data->in_scale[nr]); in set_in_max() 346 LM87_REG_AIN_MAX(nr - 6), data->in_max[nr]); in set_in_max()
|
D | w83627hf.c | 369 u8 in_max[9]; /* Register value */ member 436 data->in_max[i]); in w83627hf_resume() 504 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_max[nr])); in show_in_max() 539 data->in_max[nr] = IN_TO_REG(val); in store_in_max() 540 w83627hf_write_value(data, W83781D_REG_IN_MAX(nr), data->in_max[nr]); in store_in_max() 594 return show_in_0(data, buf, data->in_max[0]); in show_regs_in_max0() 644 data->in_max[0] = in store_regs_in_max0() 648 data->in_max[0] = IN_TO_REG(val); in store_regs_in_max0() 650 w83627hf_write_value(data, W83781D_REG_IN_MAX(0), data->in_max[0]); in store_regs_in_max0() 1844 data->in_max[i] = in w83627hf_update_device()
|
D | pc87360.c | 210 u8 in_max[14]; /* Register value */ member 427 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in show_in_max() 469 data->in_max[attr->index] = IN_TO_REG(val, in set_in_max() 472 data->in_max[attr->index]); in set_in_max() 516 static struct sensor_device_attribute in_max[] = { variable 589 &in_max[X].dev_attr.attr, \ 673 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in show_therm_max() 727 data->in_max[attr->index] = IN_TO_REG(val, data->in_vref); in set_therm_max() 729 data->in_max[attr->index]); in set_therm_max() 1653 data->in_max[i] = pc87360_read_value(data, in pc87360_update_device()
|
D | lm78.c | 137 u8 in_max[7]; /* Register value */ member 178 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index])); in show_in_max() 215 data->in_max[nr] = IN_TO_REG(val); in set_in_max() 216 lm78_write_value(data, LM78_REG_IN_MAX(nr), data->in_max[nr]); in set_in_max() 800 data->in_max[i] = in lm78_update_device()
|
D | f75375s.c | 108 u8 in_max[4]; member 215 data->in_max[nr] = in f75375_update_device() 535 return sprintf(buf, "%d\n", VOLT_FROM_REG(data->in_max[nr])); in show_in_max() 561 data->in_max[nr] = val; in set_in_max() 562 f75375_write8(client, F75375_REG_VOLT_HIGH(nr), data->in_max[nr]); in set_in_max()
|
D | lm80.c | 122 u8 in_max[7]; /* Register value */ member 186 show_in(max, in_max) in show_in() 208 set_in(max, in_max, LM80_REG_IN_MAX) 645 data->in_max[i] = rv; in lm80_update_device()
|
D | gl520sm.c | 119 u8 in_max[5]; /* [0] = VDD */ member 183 u8 r = data->in_max[n]; in get_in_max() 246 data->in_max[n] = r; in set_in_max() 915 data->in_max[i] = (val >> 8) & 0xff; in gl520_update_device() 956 data->in_max[4] = gl520_read_value(client, in gl520_update_device()
|
D | vt1211.c | 126 u8 in_max[6]; member 273 data->in_max[ix] = vt1211_read8(data, in vt1211_update_device() 365 res = IN_FROM_REG(ix, data->in_max[ix]); in show_in() 400 data->in_max[ix] = IN_TO_REG(ix, val); in set_in() 401 vt1211_write8(data, VT1211_REG_IN_MAX(ix), data->in_max[ix]); in set_in()
|
D | lm85.c | 321 u8 in_max[8]; /* Register value */ member 709 return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_max[nr])); in show_in_max() 726 data->in_max[nr] = INS_TO_REG(nr, val); in set_in_max() 727 lm85_write_value(client, LM85_REG_IN_MAX(nr), data->in_max[nr]); in set_in_max() 1637 data->in_max[i] = in lm85_update_device() 1646 data->in_max[4] = lm85_read_value(client, in lm85_update_device() 1654 data->in_max[i] = lm85_read_value(client, in lm85_update_device()
|
D | adm1026.c | 277 u8 in_max[17]; /* Register value */ member 628 data->in_max[i] = adm1026_read_value(client, in adm1026_update_device() 752 return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_max[nr])); in show_in_max() 769 data->in_max[nr] = INS_TO_REG(nr, val); in set_in_max() 770 adm1026_write_value(client, ADM1026_REG_IN_MAX[nr], data->in_max[nr]); in set_in_max() 837 return sprintf(buf, "%d\n", INS_FROM_REG(16, data->in_max[16]) in show_in16_max() 853 data->in_max[16] = INS_TO_REG(16, val+NEG12_OFFSET); in set_in16_max() 854 adm1026_write_value(client, ADM1026_REG_IN_MAX[16], data->in_max[16]); in set_in16_max()
|
D | w83l786ng.c | 135 u8 in_max[3]; member 202 show_in_reg(in_max) 756 data->in_max[i] = w83l786ng_read_value(client, in w83l786ng_update_device()
|
D | adcxx.c | 150 SENSOR_ATTR(in_max, S_IWUSR | S_IRUGO, adcxx_show_max,
|
D | asb100.c | 204 u8 in_max[7]; /* Register value */ member 259 show_in_reg(in_max) 967 data->in_max[i] = asb100_read_value(client, in asb100_update_device()
|
D | w83791d.c | 297 u8 in_max[NUMBER_OF_VIN]; /* Register value */ member 382 show_in_reg(in_max); 1537 data->in_max[i] = w83791d_read(client, in w83791d_update_device() 1663 dev_dbg(dev, "vin[%d] max is: 0x%02x\n", i, data->in_max[i]); in w83791d_print_debug()
|
D | w83792d.c | 284 u8 in_max[9]; /* Register value */ member 382 show_in_reg(in_max); 1522 data->in_max[i] = w83792d_read_value(client, in w83792d_update_device() 1636 dev_dbg(dev, "vin[%d] max is: 0x%x\n", i, data->in_max[i]); in w83792d_print_debug()
|
D | dme1737.c | 232 u8 in_max[8]; member 639 data->in_max[ix] = dme1737_read(data, in dme1737_update_device() 827 res = IN_FROM_REG(data->in_max[ix], data->in_nominal[ix], 8); in show_in() 863 data->in_max[ix] = IN_TO_REG(val, data->in_nominal[ix]); in set_in() 865 data->in_max[ix]); in set_in()
|
D | w83781d.c | 226 u8 in_max[9]; /* Register value - 8 & 9 for 782D only */ member 270 show_in_reg(in_max); 1483 data->in_max[i] = in w83781d_update_device()
|
D | w83627ehf.c | 460 u8 in_max[10]; /* Register value */ member 815 data->in_max[i] = w83627ehf_read_value(data, in w83627ehf_update_device() 950 show_in_reg(in_max) in show_in_reg() 2653 data->in_max[i]); in w83627ehf_resume()
|