Home
last modified time | relevance | path

Searched refs:temp_crit (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/hwmon/
H A Demc1403.c158 enum emc1403_reg_map {temp_min, temp_max, temp_crit, temp_input}; enumerator
163 [hwmon_temp_crit] = temp_crit,
171 [temp_crit] = 0x20,
177 [temp_crit] = 0x19,
183 [temp_crit] = 0x1a,
189 [temp_crit] = 0x30,
195 [temp_crit] = 0x64,
201 [temp_crit] = 0x65,
207 [temp_crit] = 0x66,
213 [temp_crit] = 0x67,
[all …]
H A Dpc87427.c67 s8 temp_crit[6]; /* register values */ member
311 data->temp_crit[nr] = inb(iobase + PC87427_REG_TEMP_CRIT); in pc87427_readall_temp()
724 return sprintf(buf, "%ld\n", temp_from_reg8(data->temp_crit[nr])); in temp_crit_show()
800 static SENSOR_DEVICE_ATTR_RO(temp1_crit, temp_crit, 0);
801 static SENSOR_DEVICE_ATTR_RO(temp2_crit, temp_crit, 1);
802 static SENSOR_DEVICE_ATTR_RO(temp3_crit, temp_crit, 2);
803 static SENSOR_DEVICE_ATTR_RO(temp4_crit, temp_crit, 3);
804 static SENSOR_DEVICE_ATTR_RO(temp5_crit, temp_crit, 4);
805 static SENSOR_DEVICE_ATTR_RO(temp6_crit, temp_crit, 5);
H A Dadm1031.c93 s8 temp_crit[3]; member
157 data->temp_crit[chan] = in adm1031_update_device()
703 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in temp_crit_show()
787 data->temp_crit[nr] = TEMP_TO_REG(val); in temp_crit_store()
789 data->temp_crit[nr]); in temp_crit_store()
798 static SENSOR_DEVICE_ATTR_RW(temp1_crit, temp_crit, 0);
803 static SENSOR_DEVICE_ATTR_RW(temp2_crit, temp_crit, 1);
808 static SENSOR_DEVICE_ATTR_RW(temp3_crit, temp_crit, 2);
H A Ddrivetemp.c126 int temp_crit; /* critical limit */ member
419 st->temp_crit = temp_from_sct(buf[7]); in drivetemp_identify_sata()
475 *val = st->temp_crit; in drivetemp_read()
H A Dpc87360.c220 s8 temp_crit[3]; /* Register value */ member
386 data->temp_crit[i] = pc87360_read_value(data, in pc87360_update_device()
985 TEMP_FROM_REG(data->temp_crit[attr->index])); in temp_crit_show()
1002 data->temp_crit[attr->index] = TEMP_TO_REG(val); in temp_crit_store()
1004 data->temp_crit[attr->index]); in temp_crit_store()
1009 static struct sensor_device_attribute temp_crit[] = { variable
1010 SENSOR_ATTR_RW(temp1_crit, temp_crit, 0),
1011 SENSOR_ATTR_RW(temp2_crit, temp_crit, 1),
1012 SENSOR_ATTR_RW(temp3_crit, temp_crit, 2),
1089 &temp_crit[X].dev_attr.attr, \
H A Dadm1026.c281 s8 temp_crit[3]; /* Register value */ member
418 data->temp_crit[i] = adm1026_read_value(client, in adm1026_update_device()
1020 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in temp_crit_show()
1038 data->temp_crit[nr] = TEMP_TO_REG(val); in temp_crit_store()
1040 data->temp_crit[nr]); in temp_crit_store()
1045 static SENSOR_DEVICE_ATTR_RW(temp1_crit, temp_crit, 0);
1046 static SENSOR_DEVICE_ATTR_RW(temp2_crit, temp_crit, 1);
1047 static SENSOR_DEVICE_ATTR_RW(temp3_crit, temp_crit, 2);
H A Dcorsair-psu.c128 long temp_crit[TEMP_COUNT]; member
314 priv->temp_crit[rail] = tmp; in corsairpsu_get_criticals()
476 *val = priv->temp_crit[channel]; in corsairpsu_hwmon_temp_read()
/linux/drivers/thermal/
H A Dthermal_hwmon.c42 struct thermal_hwmon_attr temp_crit; /* hwmon sys attr */ member
76 temp_crit); in temp_crit_show()
183 snprintf(temp->temp_crit.name, in thermal_add_hwmon_sysfs()
184 sizeof(temp->temp_crit.name), in thermal_add_hwmon_sysfs()
186 temp->temp_crit.attr.attr.name = temp->temp_crit.name; in thermal_add_hwmon_sysfs()
187 temp->temp_crit.attr.attr.mode = 0444; in thermal_add_hwmon_sysfs()
188 temp->temp_crit.attr.show = temp_crit_show; in thermal_add_hwmon_sysfs()
189 sysfs_attr_init(&temp->temp_crit.attr.attr); in thermal_add_hwmon_sysfs()
191 &temp->temp_crit.attr); in thermal_add_hwmon_sysfs()
239 device_remove_file(hwmon->device, &temp->temp_crit.attr); in thermal_remove_hwmon_sysfs()
/linux/drivers/net/ethernet/sfc/falcon/
H A Dfalcon_boards.c124 bool temp_crit, elec_fault, is_failure; in ef4_check_lm87() local
142 temp_crit = false; in ef4_check_lm87()
148 temp_crit = true; in ef4_check_lm87()
155 temp_crit = true; in ef4_check_lm87()
158 is_failure = temp_crit || elec_fault; in ef4_check_lm87()
170 temp_crit ? "; reached critical temperature" : "", in ef4_check_lm87()
/linux/drivers/hwmon/peci/
H A Ddimmtemp.c66 long temp_crit; member
133 priv->dimm[dimm_no].thresholds.temp_crit = GET_TEMP_CRIT(data) * MILLIDEGREE_PER_DEGREE; in update_thresholds()
154 *val = priv->dimm[dimm_no].thresholds.temp_crit; in get_dimm_thresholds()
/linux/Documentation/ABI/testing/
H A Dsysfs-class-hwmon481 corresponding temp_crit values.