/drivers/hwmon/ |
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() 592 data->in_max[i] = i2c_smbus_read_byte_data(client, in adm1025_update_device()
|
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] = SENSORS_LIMIT(((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] = SENSORS_LIMIT(((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() 906 data->in_max[i] = vt8231_read_value(data, in vt8231_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() 633 data->in_max[i] = i2c_smbus_read_byte_data(client, in smsc47m192_update_device()
|
D | via686a.c | 328 u8 in_max[5]; /* Register value */ member 382 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_max[nr], nr)); in show_in_max() 417 data->in_max[nr] = IN_TO_REG(val, nr); in set_in_max() 419 data->in_max[nr]); in set_in_max() 790 data->in_max[i] = in via686a_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() 732 data->in_max[i] = in sis5595_update_device()
|
D | adm9240.c | 170 u8 in_max[6]; /* rw in0_max */ member 252 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index], in show_in_max() 293 data->in_max[attr->index] = IN_TO_REG(val, attr->index); in set_in_max() 295 data->in_max[attr->index]); in set_in_max() 796 data->in_max[i] = i2c_smbus_read_byte_data(client, in adm9240_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 | 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() 1669 data->in_max[i] = pc87360_read_value(data, in pc87360_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) 650 data->in_max[i] = rv; in lm80_update_device()
|
D | w83627hf.c | 370 u8 in_max[9]; /* Register value */ member 432 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_max[nr])); in show_in_max() 467 data->in_max[nr] = IN_TO_REG(val); in store_in_max() 468 w83627hf_write_value(data, W83781D_REG_IN_MAX(nr), data->in_max[nr]); in store_in_max() 522 return show_in_0(data, buf, data->in_max[0]); in show_regs_in_max0() 573 data->in_max[0] = in store_regs_in_max0() 578 data->in_max[0] = IN_TO_REG(val); in store_regs_in_max0() 580 w83627hf_write_value(data, W83781D_REG_IN_MAX(0), data->in_max[0]); in store_regs_in_max0() 1786 data->in_max[i] = in w83627hf_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() 801 data->in_max[i] = in lm78_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() 921 data->in_max[i] = (val >> 8) & 0xff; in gl520_update_device() 962 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() 1640 data->in_max[i] = in lm85_update_device() 1649 data->in_max[4] = lm85_read_value(client, in lm85_update_device() 1657 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) 761 data->in_max[i] = w83l786ng_read_value(client, in w83l786ng_update_device()
|
D | adcxx.c | 153 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) 971 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); 1542 data->in_max[i] = w83791d_read(client, in w83791d_update_device() 1668 dev_dbg(dev, "vin[%d] max is: 0x%02x\n", i, data->in_max[i]); in w83791d_print_debug()
|
D | it87.c | 251 u8 in_max[8]; /* Register value */ member 470 return sprintf(buf, "%d\n", in_from_reg(data, nr, data->in_max[nr])); in show_in_max() 505 data->in_max[nr] = in_to_reg(data, nr, val); in set_in_max() 507 data->in_max[nr]); in set_in_max() 2212 data->in_max[i] = in it87_update_device()
|
D | dme1737.c | 230 u8 in_max[8]; member 638 data->in_max[ix] = dme1737_read(data, in dme1737_update_device() 826 res = IN_FROM_REG(data->in_max[ix], data->in_nominal[ix], 8); in show_in() 862 data->in_max[ix] = IN_TO_REG(val, data->in_nominal[ix]); in set_in() 864 data->in_max[ix]); in set_in()
|
D | w83792d.c | 284 u8 in_max[9]; /* Register value */ member 383 show_in_reg(in_max); 1579 data->in_max[i] = w83792d_read_value(client, in w83792d_update_device() 1695 dev_dbg(dev, "vin[%d] max is: 0x%x\n", i, data->in_max[i]); in w83792d_print_debug()
|
D | w83781d.c | 227 u8 in_max[9]; /* Register value - 8 & 9 for 782D only */ member 271 show_in_reg(in_max); 1489 data->in_max[i] = in w83781d_update_device()
|
D | w83627ehf.c | 461 u8 in_max[10]; /* Register value */ member 808 data->in_max[i] = w83627ehf_read_value(data, in w83627ehf_update_device() 941 show_in_reg(in_max) in show_in_reg()
|