/drivers/hwmon/ |
D | smsc47m192.c | 94 u8 in_min[8]; /* Register value */ member 121 data->in_min[i] = i2c_smbus_read_byte_data(client, in smsc47m192_update_device() 184 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr], nr)); in in_min_show() 211 data->in_min[nr] = IN_TO_REG(val, nr); in in_min_store() 213 data->in_min[nr]); in in_min_store() 241 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0); 244 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 247 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); 250 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3); 253 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4); [all …]
|
D | adm1025.c | 105 u8 in_min[6]; /* register value */ member 128 data->in_min[i] = i2c_smbus_read_byte_data(client, in adm1025_update_device() 177 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[index], in in_min_show() 228 data->in_min[index] = IN_TO_REG(val, in_scale[index]); in in_min_store() 230 data->in_min[index]); in in_min_store() 257 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0); 260 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 263 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); 266 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3); 269 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4); [all …]
|
D | lm87.c | 152 u8 in_min[8]; /* register value */ member 200 data->in_min[i] = lm87_read_value(client, in lm87_update_device() 212 data->in_min[6+i] = lm87_read_value(client, in lm87_update_device() 282 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[nr], in in_min_show() 310 data->in_min[nr] = IN_TO_REG(val, data->in_scale[nr]); in in_min_store() 312 LM87_REG_AIN_MIN(nr - 6), data->in_min[nr]); in in_min_store() 339 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0); 342 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 345 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); 348 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3); [all …]
|
D | lm78.c | 125 u8 in_min[7]; /* Register value */ member 155 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index])); in in_min_show() 180 data->in_min[nr] = IN_TO_REG(val); in in_min_store() 181 lm78_write_value(data, LM78_REG_IN_MIN(nr), data->in_min[nr]); in in_min_store() 207 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0); 210 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 213 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); 216 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3); 219 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4); 222 static SENSOR_DEVICE_ATTR_RW(in5_min, in_min, 5); [all …]
|
D | adm9240.c | 135 u8 in_min[6]; /* rw in0_min */ member 233 &data->in_min[i], 1); in adm9240_update_config() 376 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index], in in_min_show() 407 data->in_min[attr->index] = IN_TO_REG(val, attr->index); in in_min_store() 409 data->in_min[attr->index]); in in_min_store() 436 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0); 439 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 442 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); 445 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3); 448 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4); [all …]
|
D | pc87360.c | 196 u8 in_min[14]; /* Register value */ member 405 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in in_min_show() 437 data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); in in_min_store() 439 data->in_min[attr->index]); in in_min_store() 491 static struct sensor_device_attribute in_min[] = { variable 492 SENSOR_ATTR_RW(in0_min, in_min, 0), 493 SENSOR_ATTR_RW(in1_min, in_min, 1), 494 SENSOR_ATTR_RW(in2_min, in_min, 2), 495 SENSOR_ATTR_RW(in3_min, in_min, 3), 496 SENSOR_ATTR_RW(in4_min, in_min, 4), [all …]
|
D | vt8231.c | 153 u8 in_min[6]; /* Register value */ member 199 return sprintf(buf, "%d\n", ((data->in_min[nr] - 3) * 10000) / 958); in in_min_show() 226 data->in_min[nr] = clamp_val(((val * 958) / 10000) + 3, 0, 255); in in_min_store() 227 vt8231_write_value(data, regvoltmin[nr], data->in_min[nr]); in in_min_store() 268 (((data->in_min[5] - 3) * 10000 * 54) / (958 * 34))); in in5_min_show() 293 data->in_min[5] = clamp_val(((val * 958 * 34) / (10000 * 54)) + 3, in in5_min_store() 295 vt8231_write_value(data, regvoltmin[5], data->in_min[5]); in in5_min_store() 321 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0); 324 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 327 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); [all …]
|
D | adm1026.c | 268 u8 in_min[17]; /* Register value */ member 383 data->in_min[i] = adm1026_read_value(client, in adm1026_update_device() 481 return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_min[nr])); in in_min_show() 498 data->in_min[nr] = INS_TO_REG(nr, val); in in_min_store() 499 adm1026_write_value(client, ADM1026_REG_IN_MIN[nr], data->in_min[nr]); in in_min_store() 533 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0); 536 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 539 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); 542 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3); 545 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4); [all …]
|
D | via686a.c | 312 u8 in_min[5]; /* Register value */ member 357 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_min[nr], nr)); in in_min_show() 381 data->in_min[nr] = IN_TO_REG(val, nr); in in_min_store() 383 data->in_min[nr]); in in_min_store() 408 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0); 411 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 414 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); 417 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3); 420 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4); 759 data->in_min[i] = via686a_read_value(data, in via686a_update_device()
|
D | sis5595.c | 182 u8 in_min[5]; /* Register value */ member 226 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr])); in in_min_show() 252 data->in_min[nr] = IN_TO_REG(val); in in_min_store() 253 sis5595_write_value(data, SIS5595_REG_IN_MIN(nr), data->in_min[nr]); in in_min_store() 279 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0); 282 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 285 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); 288 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3); 291 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4); 702 data->in_min[i] = in sis5595_update_device()
|
D | gl520sm.c | 73 u8 in_min[5]; /* [0] = VDD */ member 130 data->in_min[i] = val & 0xff; in gl520_update_device() 170 data->in_min[4] = gl520_read_value(client, in gl520_update_device() 223 u8 r = data->in_min[n]; in in_min_show() 265 data->in_min[n] = r; in in_min_store() 317 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0); 318 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 319 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); 320 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3); 321 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4);
|
D | w83627hf.c | 363 u8 in_min[9]; /* Register value */ member 430 data->in_min[i]); in w83627hf_resume() 488 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_min[nr])); in in_min_show() 511 data->in_min[nr] = IN_TO_REG(val); in in_min_store() 512 w83627hf_write_value(data, W83781D_REG_IN_MIN(nr), data->in_min[nr]); in in_min_store() 537 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 540 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); 543 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3); 546 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4); 549 static SENSOR_DEVICE_ATTR_RW(in5_min, in_min, 5); [all …]
|
D | lm85.c | 303 u8 in_min[8]; /* Register value */ member 475 data->in_min[i] = in lm85_update_device() 484 data->in_min[4] = lm85_read_value(client, in lm85_update_device() 492 data->in_min[i] = lm85_read_value(client, in lm85_update_device() 857 return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_min[nr])); in in_min_show() 874 data->in_min[nr] = INS_TO_REG(nr, val); in in_min_store() 875 lm85_write_value(client, LM85_REG_IN_MIN(nr), data->in_min[nr]); in in_min_store() 909 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0); 912 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1); 915 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2); [all …]
|
D | menf21bmc_hwmon.c | 40 int in_min[BMC_VOLT_COUNT]; member 87 drv_data->in_min[i] = val; in menf21bmc_hwmon_get_volt_limits() 125 return sprintf(buf, "%d\n", drv_data->in_min[attr->index]); in min_show()
|
D | lm93.c | 1175 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 0); 1176 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 1); 1177 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 2); 1178 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 3); 1179 static SENSOR_DEVICE_ATTR_RW(in5_min, in_min, 4); 1180 static SENSOR_DEVICE_ATTR_RW(in6_min, in_min, 5); 1181 static SENSOR_DEVICE_ATTR_RW(in7_min, in_min, 6); 1182 static SENSOR_DEVICE_ATTR_RW(in8_min, in_min, 7); 1183 static SENSOR_DEVICE_ATTR_RW(in9_min, in_min, 8); 1184 static SENSOR_DEVICE_ATTR_RW(in10_min, in_min, 9); [all …]
|
D | f75375s.c | 95 u8 in_min[4]; member 202 data->in_min[nr] = in f75375_update_device() 528 return sprintf(buf, "%d\n", VOLT_FROM_REG(data->in_min[nr])); in show_in_min() 567 data->in_min[nr] = val; in set_in_min() 568 f75375_write8(client, F75375_REG_VOLT_LOW(nr), data->in_min[nr]); in set_in_min()
|
D | vt1211.c | 114 u8 in_min[6]; member 264 data->in_min[ix] = vt1211_read8(data, in vt1211_update_device() 355 res = IN_FROM_REG(ix, data->in_min[ix]); in show_in() 389 data->in_min[ix] = IN_TO_REG(ix, val); in set_in() 390 vt1211_write8(data, VT1211_REG_IN_MIN(ix), data->in_min[ix]); in set_in()
|
D | w83l786ng.c | 123 u8 in_min[3]; member 166 data->in_min[i] = w83l786ng_read_value(client, in w83l786ng_update_device() 233 show_in_reg(in_min)
|
D | adcxx.c | 137 SENSOR_ATTR_RO(in_min, adcxx_min, 0),
|
D | asb100.c | 192 u8 in_min[7]; /* Register value */ member 244 show_in_reg(in_min) 954 data->in_min[i] = asb100_read_value(client, in asb100_update_device()
|
D | w83791d.c | 279 u8 in_min[NUMBER_OF_VIN]; /* Register value */ member 361 show_in_reg(in_min); 1497 data->in_min[i] = w83791d_read(client, in w83791d_update_device() 1620 dev_dbg(dev, "vin[%d] min is: 0x%02x\n", i, data->in_min[i]); in w83791d_print_debug()
|
D | w83792d.c | 269 u8 in_min[9]; /* Register value */ member 361 show_in_reg(in_min); 1500 data->in_min[i] = w83792d_read_value(client, in w83792d_update_device() 1613 dev_dbg(dev, "vin[%d] min is: 0x%x\n", i, data->in_min[i]); in w83792d_print_debug()
|
D | dme1737.c | 218 u8 in_min[8]; member 627 data->in_min[ix] = dme1737_read(data, in dme1737_update_device() 814 res = IN_FROM_REG(data->in_min[ix], data->in_nominal[ix], 8); in show_in() 848 data->in_min[ix] = IN_TO_REG(val, data->in_nominal[ix]); in set_in() 850 data->in_min[ix]); in set_in()
|
D | w83627ehf.c | 331 u8 in_min[10]; /* Register value */ member 584 data->in_min[i] = w83627ehf_read_value(data, in w83627ehf_update_device() 1475 *val = in_from_reg(data->in_min[channel], channel, in w83627ehf_do_read_in() 2002 data->in_min[i]); in w83627ehf_resume()
|
D | w83781d.c | 214 u8 in_min[9]; /* Register value - 8 & 9 for 782D only */ member 256 show_in_reg(in_min); 1463 data->in_min[i] = in w83781d_update_device()
|