Home
last modified time | relevance | path

Searched refs:in_min (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.1.9/drivers/hwmon/
Dsmsc47m192.c94 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 …]
Dadm1025.c105 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 …]
Dlm87.c152 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 …]
Dlm78.c125 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 …]
Dvt8231.c155 u8 in_min[6]; /* Register value */ member
193 data->in_min[i] = vt8231_read_value(data, in vt8231_update_device()
265 return sprintf(buf, "%d\n", ((data->in_min[nr] - 3) * 10000) / 958); in in_min_show()
292 data->in_min[nr] = clamp_val(((val * 958) / 10000) + 3, 0, 255); in in_min_store()
293 vt8231_write_value(data, regvoltmin[nr], data->in_min[nr]); in in_min_store()
334 (((data->in_min[5] - 3) * 10000 * 54) / (958 * 34))); in in5_min_show()
359 data->in_min[5] = clamp_val(((val * 958 * 34) / (10000 * 54)) + 3, in in5_min_store()
361 vt8231_write_value(data, regvoltmin[5], data->in_min[5]); in in5_min_store()
387 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0);
390 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1);
[all …]
Dpc87360.c208 u8 in_min[14]; /* Register value */ member
338 data->in_min[i] = pc87360_read_value(data, in pc87360_update_device()
452 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in in_min_show()
470 data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); in in_min_store()
472 data->in_min[attr->index]); in in_min_store()
477 static struct sensor_device_attribute in_min[] = { variable
478 SENSOR_ATTR_RW(in0_min, in_min, 0),
479 SENSOR_ATTR_RW(in1_min, in_min, 1),
480 SENSOR_ATTR_RW(in2_min, in_min, 2),
481 SENSOR_ATTR_RW(in3_min, in_min, 3),
[all …]
Dadm1026.c268 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 …]
Dvia686a.c314 u8 in_min[5]; /* Register value */ member
356 data->in_min[i] = via686a_read_value(data, in via686a_update_device()
424 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_min[nr], nr)); in in_min_show()
448 data->in_min[nr] = IN_TO_REG(val, nr); in in_min_store()
450 data->in_min[nr]); in in_min_store()
475 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0);
478 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1);
481 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2);
484 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3);
487 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4);
Dsis5595.c183 u8 in_min[5]; /* Register value */ member
228 data->in_min[i] = in sis5595_update_device()
281 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr])); in in_min_show()
307 data->in_min[nr] = IN_TO_REG(val); in in_min_store()
308 sis5595_write_value(data, SIS5595_REG_IN_MIN(nr), data->in_min[nr]); in in_min_store()
334 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0);
337 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1);
340 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2);
343 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3);
346 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4);
Dgl520sm.c73 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);
Dw83627hf.c363 u8 in_min[9]; /* Register value */ member
495 data->in_min[i] = in w83627hf_update_device()
600 data->in_min[i]); in w83627hf_resume()
833 return show_in_0(data, buf, data->in_min[0]); in in0_min_show()
855 data->in_min[0] = in in0_min_store()
859 data->in_min[0] = IN_TO_REG(val); in in0_min_store()
861 w83627hf_write_value(data, W83781D_REG_IN_MIN(0), data->in_min[0]); in in0_min_store()
1019 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_min[nr])); in in_min_show()
1036 data->in_min[nr] = IN_TO_REG(val); in in_min_store()
1037 w83627hf_write_value(data, W83781D_REG_IN_MIN(nr), data->in_min[nr]); in in_min_store()
[all …]
Dmenf21bmc_hwmon.c40 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()
Dlm85.c303 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 …]
Dlm93.c1175 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 …]
Df75375s.c95 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()
Dvt1211.c114 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()
Dw83l786ng.c123 u8 in_min[3]; member
166 data->in_min[i] = w83l786ng_read_value(client, in w83l786ng_update_device()
233 show_in_reg(in_min)
Dadcxx.c137 SENSOR_ATTR_RO(in_min, adcxx_min, 0),
Dasb100.c192 u8 in_min[7]; /* Register value */ member
244 show_in_reg(in_min)
952 data->in_min[i] = asb100_read_value(client, in asb100_update_device()
Dw83791d.c279 u8 in_min[NUMBER_OF_VIN]; /* Register value */ member
361 show_in_reg(in_min);
1495 data->in_min[i] = w83791d_read(client, in w83791d_update_device()
1618 dev_dbg(dev, "vin[%d] min is: 0x%02x\n", i, data->in_min[i]); in w83791d_print_debug()
Dw83792d.c269 u8 in_min[9]; /* Register value */ member
361 show_in_reg(in_min);
1498 data->in_min[i] = w83792d_read_value(client, in w83792d_update_device()
1611 dev_dbg(dev, "vin[%d] min is: 0x%x\n", i, data->in_min[i]); in w83792d_print_debug()
Ddme1737.c218 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()
Dw83627ehf.c331 u8 in_min[10]; /* Register value */ member
582 data->in_min[i] = w83627ehf_read_value(data, in w83627ehf_update_device()
1473 *val = in_from_reg(data->in_min[channel], channel, in w83627ehf_do_read_in()
1972 data->in_min[i]); in w83627ehf_resume()
Dw83781d.c214 u8 in_min[9]; /* Register value - 8 & 9 for 782D only */ member
256 show_in_reg(in_min);
1461 data->in_min[i] = in w83781d_update_device()
Dnct6683.c694 SENSOR_TEMPLATE_2(in_min, "in%d_min", S_IRUGO, show_in_reg, NULL, 0, 1);

12