Home
last modified time | relevance | path

Searched refs:in_max (Results 1 – 25 of 27) sorted by relevance

12

/linux-5.19.10/drivers/hwmon/
Dsmsc47m192.c93 u8 in_max[8]; /* Register value */ member
123 data->in_max[i] = i2c_smbus_read_byte_data(client, in smsc47m192_update_device()
193 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr], nr)); in in_max_show()
233 data->in_max[nr] = IN_TO_REG(val, nr); in in_max_store()
235 data->in_max[nr]); in in_max_store()
242 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
245 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
248 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
251 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 3);
254 static SENSOR_DEVICE_ATTR_RW(in4_max, in_max, 4);
[all …]
Dadm1025.c104 u8 in_max[6]; /* register value */ member
130 data->in_max[i] = i2c_smbus_read_byte_data(client, in adm1025_update_device()
186 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[index], in in_max_show()
249 data->in_max[index] = IN_TO_REG(val, in_scale[index]); in in_max_store()
251 data->in_max[index]); in in_max_store()
258 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
261 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
264 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
267 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 3);
270 static SENSOR_DEVICE_ATTR_RW(in4_max, in_max, 4);
[all …]
Dlm87.c151 u8 in_max[8]; /* register value */ member
202 data->in_max[i] = lm87_read_value(client, in lm87_update_device()
210 data->in_max[6+i] = lm87_read_value(client, in lm87_update_device()
292 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[nr], in in_max_show()
331 data->in_max[nr] = IN_TO_REG(val, data->in_scale[nr]); in in_max_store()
333 LM87_REG_AIN_MAX(nr - 6), data->in_max[nr]); in in_max_store()
340 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
343 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
346 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
349 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 3);
[all …]
Dlm78.c124 u8 in_max[7]; /* Register value */ member
163 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index])); in in_max_show()
200 data->in_max[nr] = IN_TO_REG(val); in in_max_store()
201 lm78_write_value(data, LM78_REG_IN_MAX(nr), data->in_max[nr]); in in_max_store()
208 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
211 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
214 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
217 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 3);
220 static SENSOR_DEVICE_ATTR_RW(in4_max, in_max, 4);
223 static SENSOR_DEVICE_ATTR_RW(in5_max, in_max, 5);
[all …]
Dvt8231.c152 u8 in_max[6]; /* Register value */ member
209 return sprintf(buf, "%d\n", (((data->in_max[nr] - 3) * 10000) / 958)); in in_max_show()
246 data->in_max[nr] = clamp_val(((val * 958) / 10000) + 3, 0, 255); in in_max_store()
247 vt8231_write_value(data, regvoltmax[nr], data->in_max[nr]); in in_max_store()
277 (((data->in_max[5] - 3) * 10000 * 54) / (958 * 34))); in in5_max_show()
313 data->in_max[5] = clamp_val(((val * 958 * 34) / (10000 * 54)) + 3, in in5_max_store()
315 vt8231_write_value(data, regvoltmax[5], data->in_max[5]); in in5_max_store()
322 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
325 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
328 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
[all …]
Dpc87360.c197 u8 in_max[14]; /* Register value */ member
413 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in in_max_show()
457 data->in_max[attr->index] = IN_TO_REG(val, in in_max_store()
460 data->in_max[attr->index]); in in_max_store()
504 static struct sensor_device_attribute in_max[] = { variable
505 SENSOR_ATTR_RW(in0_max, in_max, 0),
506 SENSOR_ATTR_RW(in1_max, in_max, 1),
507 SENSOR_ATTR_RW(in2_max, in_max, 2),
508 SENSOR_ATTR_RW(in3_max, in_max, 3),
509 SENSOR_ATTR_RW(in4_max, in_max, 4),
[all …]
Dadm1026.c267 u8 in_max[17]; /* Register value */ member
385 data->in_max[i] = adm1026_read_value(client, in adm1026_update_device()
509 return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_max[nr])); in in_max_show()
526 data->in_max[nr] = INS_TO_REG(nr, val); in in_max_store()
527 adm1026_write_value(client, ADM1026_REG_IN_MAX[nr], data->in_max[nr]); in in_max_store()
534 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
537 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
540 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
543 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 3);
546 static SENSOR_DEVICE_ATTR_RW(in4_max, in_max, 4);
[all …]
Dsis5595.c181 u8 in_max[5]; /* Register value */ member
235 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr])); in in_max_show()
272 data->in_max[nr] = IN_TO_REG(val); in in_max_store()
273 sis5595_write_value(data, SIS5595_REG_IN_MAX(nr), data->in_max[nr]); in in_max_store()
280 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
283 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
286 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
289 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 3);
292 static SENSOR_DEVICE_ATTR_RW(in4_max, in_max, 4);
705 data->in_max[i] = in sis5595_update_device()
Dvia686a.c311 u8 in_max[5]; /* Register value */ member
365 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_max[nr], nr)); in in_max_show()
400 data->in_max[nr] = IN_TO_REG(val, nr); in in_max_store()
402 data->in_max[nr]); in in_max_store()
409 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
412 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
415 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
418 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 3);
421 static SENSOR_DEVICE_ATTR_RW(in4_max, in_max, 4);
762 data->in_max[i] = in via686a_update_device()
Dgl520sm.c74 u8 in_max[5]; /* [0] = VDD */ member
131 data->in_max[i] = (val >> 8) & 0xff; in gl520_update_device()
172 data->in_max[4] = gl520_read_value(client, in gl520_update_device()
236 u8 r = data->in_max[n]; in in_max_show()
299 data->in_max[n] = r; in in_max_store()
322 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
323 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
324 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
325 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 3);
326 static SENSOR_DEVICE_ATTR_RW(in4_max, in_max, 4);
Dw83627hf.c362 u8 in_max[9]; /* Register value */ member
428 data->in_max[i]); in w83627hf_resume()
495 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_max[nr])); in in_max_show()
530 data->in_max[nr] = IN_TO_REG(val); in in_max_store()
531 w83627hf_write_value(data, W83781D_REG_IN_MAX(nr), data->in_max[nr]); in in_max_store()
538 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
541 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
544 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 3);
547 static SENSOR_DEVICE_ATTR_RW(in4_max, in_max, 4);
550 static SENSOR_DEVICE_ATTR_RW(in5_max, in_max, 5);
[all …]
Dmenf21bmc_hwmon.c41 int in_max[BMC_VOLT_COUNT]; member
94 drv_data->in_max[i] = val; in menf21bmc_hwmon_get_volt_limits()
134 return sprintf(buf, "%d\n", drv_data->in_max[attr->index]); in max_show()
Dlm85.c302 u8 in_max[8]; /* Register value */ member
477 data->in_max[i] = in lm85_update_device()
486 data->in_max[4] = lm85_read_value(client, in lm85_update_device()
494 data->in_max[i] = lm85_read_value(client, in lm85_update_device()
885 return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_max[nr])); in in_max_show()
902 data->in_max[nr] = INS_TO_REG(nr, val); in in_max_store()
903 lm85_write_value(client, LM85_REG_IN_MAX(nr), data->in_max[nr]); in in_max_store()
910 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
913 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
916 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
[all …]
Dlm93.c1240 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 0);
1241 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 1);
1242 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 2);
1243 static SENSOR_DEVICE_ATTR_RW(in4_max, in_max, 3);
1244 static SENSOR_DEVICE_ATTR_RW(in5_max, in_max, 4);
1245 static SENSOR_DEVICE_ATTR_RW(in6_max, in_max, 5);
1246 static SENSOR_DEVICE_ATTR_RW(in7_max, in_max, 6);
1247 static SENSOR_DEVICE_ATTR_RW(in8_max, in_max, 7);
1248 static SENSOR_DEVICE_ATTR_RW(in9_max, in_max, 8);
1249 static SENSOR_DEVICE_ATTR_RW(in10_max, in_max, 9);
[all …]
Df75375s.c94 u8 in_max[4]; member
200 data->in_max[nr] = in f75375_update_device()
520 return sprintf(buf, "%d\n", VOLT_FROM_REG(data->in_max[nr])); in show_in_max()
546 data->in_max[nr] = val; in set_in_max()
547 f75375_write8(client, F75375_REG_VOLT_HIGH(nr), data->in_max[nr]); in set_in_max()
Dvt1211.c113 u8 in_max[6]; member
266 data->in_max[ix] = vt1211_read8(data, in vt1211_update_device()
358 res = IN_FROM_REG(ix, data->in_max[ix]); in show_in()
393 data->in_max[ix] = IN_TO_REG(ix, val); in set_in()
394 vt1211_write8(data, VT1211_REG_IN_MAX(ix), data->in_max[ix]); in set_in()
Dw83l786ng.c122 u8 in_max[3]; member
168 data->in_max[i] = w83l786ng_read_value(client, in w83l786ng_update_device()
234 show_in_reg(in_max)
Dadcxx.c138 SENSOR_ATTR_RW(in_max, adcxx_max, 0),
Dasb100.c191 u8 in_max[7]; /* Register value */ member
245 show_in_reg(in_max)
956 data->in_max[i] = asb100_read_value(client, in asb100_update_device()
Dw83791d.c278 u8 in_max[NUMBER_OF_VIN]; /* Register value */ member
362 show_in_reg(in_max);
1495 data->in_max[i] = w83791d_read(client, in w83791d_update_device()
1621 dev_dbg(dev, "vin[%d] max is: 0x%02x\n", i, data->in_max[i]); in w83791d_print_debug()
Dw83792d.c268 u8 in_max[9]; /* Register value */ member
362 show_in_reg(in_max);
1498 data->in_max[i] = w83792d_read_value(client, in w83792d_update_device()
1612 dev_dbg(dev, "vin[%d] max is: 0x%x\n", i, data->in_max[i]); in w83792d_print_debug()
Ddme1737.c219 u8 in_max[8]; member
629 data->in_max[ix] = dme1737_read(data, in dme1737_update_device()
817 res = IN_FROM_REG(data->in_max[ix], data->in_nominal[ix], 8); in show_in()
853 data->in_max[ix] = IN_TO_REG(val, data->in_nominal[ix]); in set_in()
855 data->in_max[ix]); in set_in()
Dw83627ehf.c330 u8 in_max[10]; /* Register value */ member
584 data->in_max[i] = w83627ehf_read_value(data, in w83627ehf_update_device()
1477 *val = in_from_reg(data->in_max[channel], channel, in w83627ehf_do_read_in()
1974 data->in_max[i]); in w83627ehf_resume()
Dw83781d.c213 u8 in_max[9]; /* Register value - 8 & 9 for 782D only */ member
257 show_in_reg(in_max);
1465 data->in_max[i] = in w83781d_update_device()
/linux-5.19.10/sound/soc/intel/skylake/
Dskl-messages.c1093 int in_max = dst_mcfg->module->max_input_pins; in skl_unbind_modules() local
1107 dst_index = skl_get_queue_index(dst_mcfg->m_in_pin, src_id, in_max); in skl_unbind_modules()
1157 int in_max = dst_mcfg->module->max_input_pins; in skl_bind_modules() local
1176 dst_index = skl_alloc_queue(dst_mcfg->m_in_pin, src_mcfg, in_max); in skl_bind_modules()

12