Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/thermal/
Dthermal_hwmon.c54 struct thermal_hwmon_attr temp_crit; /* hwmon sys attr */ member
96 temp_crit); in temp_crit_show()
199 snprintf(temp->temp_crit.name, in thermal_add_hwmon_sysfs()
200 sizeof(temp->temp_crit.name), in thermal_add_hwmon_sysfs()
202 temp->temp_crit.attr.attr.name = temp->temp_crit.name; in thermal_add_hwmon_sysfs()
203 temp->temp_crit.attr.attr.mode = 0444; in thermal_add_hwmon_sysfs()
204 temp->temp_crit.attr.show = temp_crit_show; in thermal_add_hwmon_sysfs()
205 sysfs_attr_init(&temp->temp_crit.attr.attr); in thermal_add_hwmon_sysfs()
207 &temp->temp_crit.attr); in thermal_add_hwmon_sysfs()
257 device_remove_file(hwmon->device, &temp->temp_crit.attr); in thermal_remove_hwmon_sysfs()
/linux-4.4.14/drivers/hwmon/
Dlm92.c271 u16 temp_low, temp_high, temp_hyst, temp_crit; in max6635_check() local
290 temp_crit = i2c_smbus_read_word_data(client, LM92_REG_TEMP_CRIT); in max6635_check()
291 if ((temp_hyst & 0x7f00) || (temp_crit & 0x7f00)) in max6635_check()
304 || temp_crit != i2c_smbus_read_word_data(client, in max6635_check()
Dadm1031.c106 s8 temp_crit[3]; member
170 data->temp_crit[chan] = in adm1031_update_device()
727 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in show_temp_crit()
808 data->temp_crit[nr] = TEMP_TO_REG(val); in set_temp_crit()
810 data->temp_crit[nr]); in set_temp_crit()
Dsch5627.c85 u8 temp_crit[SCH5627_NO_TEMPS]; member
175 data->temp_crit[i] = val; in sch5627_read_limits()
258 val = reg_to_temp_limit(data->temp_crit[attr->index]); in show_temp_crit()
Dpc87360.c221 s8 temp_crit[3]; /* Register value */ member
900 TEMP_FROM_REG(data->temp_crit[attr->index])); in show_temp_crit()
967 data->temp_crit[attr->index] = TEMP_TO_REG(val); in set_temp_crit()
969 data->temp_crit[attr->index]); in set_temp_crit()
1000 static struct sensor_device_attribute temp_crit[] = { variable
1089 &temp_crit[X].dev_attr.attr, \
1696 data->temp_crit[i] = pc87360_read_value(data, in pc87360_update_device()
Dadm1026.c284 s8 temp_crit[3]; /* Register value */ member
421 data->temp_crit[i] = adm1026_read_value(client, in adm1026_update_device()
997 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in show_temp_crit()
1014 data->temp_crit[nr] = TEMP_TO_REG(val); in set_temp_crit()
1016 data->temp_crit[nr]); in set_temp_crit()
Dpc87427.c75 s8 temp_crit[6]; /* register values */ member
311 data->temp_crit[nr] = inb(iobase + PC87427_REG_TEMP_CRIT); in pc87427_readall_temp()
734 return sprintf(buf, "%ld\n", temp_from_reg8(data->temp_crit[nr])); in show_temp_crit()
Dnct6683.c886 SENSOR_TEMPLATE_2(temp_crit, "temp%d_crit", S_IRUGO, show_temp8, NULL, 0, 3);
Dnct6775.c2227 SENSOR_TEMPLATE_2(temp_crit, "temp%d_crit", S_IRUGO | S_IWUSR, show_temp,
/linux-4.4.14/drivers/net/ethernet/sfc/
Dfalcon_boards.c127 bool temp_crit, elec_fault, is_failure; in efx_check_lm87() local
145 temp_crit = false; in efx_check_lm87()
151 temp_crit = true; in efx_check_lm87()
158 temp_crit = true; in efx_check_lm87()
161 is_failure = temp_crit || elec_fault; in efx_check_lm87()
173 temp_crit ? "; reached critical temperature" : "", in efx_check_lm87()
/linux-4.4.14/Documentation/hwmon/
Dsysfs-interface356 corresponding temp_crit values.