| /Linux-v5.4/drivers/thermal/ |
| D | thermal_hwmon.c | 39 struct thermal_hwmon_attr temp_crit; /* hwmon sys attr */ member 73 temp_crit); in temp_crit_show() 178 snprintf(temp->temp_crit.name, in thermal_add_hwmon_sysfs() 179 sizeof(temp->temp_crit.name), in thermal_add_hwmon_sysfs() 181 temp->temp_crit.attr.attr.name = temp->temp_crit.name; in thermal_add_hwmon_sysfs() 182 temp->temp_crit.attr.attr.mode = 0444; in thermal_add_hwmon_sysfs() 183 temp->temp_crit.attr.show = temp_crit_show; in thermal_add_hwmon_sysfs() 184 sysfs_attr_init(&temp->temp_crit.attr.attr); in thermal_add_hwmon_sysfs() 186 &temp->temp_crit.attr); in thermal_add_hwmon_sysfs() 235 device_remove_file(hwmon->device, &temp->temp_crit.attr); in thermal_remove_hwmon_sysfs()
|
| /Linux-v5.4/drivers/hwmon/ |
| D | sch5627.c | 72 u8 temp_crit[SCH5627_NO_TEMPS]; member 162 data->temp_crit[i] = val; in sch5627_read_limits() 245 val = reg_to_temp_limit(data->temp_crit[attr->index]); in temp_crit_show() 341 static SENSOR_DEVICE_ATTR_RO(temp1_crit, temp_crit, 0); 342 static SENSOR_DEVICE_ATTR_RO(temp2_crit, temp_crit, 1); 343 static SENSOR_DEVICE_ATTR_RO(temp3_crit, temp_crit, 2); 344 static SENSOR_DEVICE_ATTR_RO(temp4_crit, temp_crit, 3); 345 static SENSOR_DEVICE_ATTR_RO(temp5_crit, temp_crit, 4); 346 static SENSOR_DEVICE_ATTR_RO(temp6_crit, temp_crit, 5); 347 static SENSOR_DEVICE_ATTR_RO(temp7_crit, temp_crit, 6); [all …]
|
| D | pc87427.c | 67 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);
|
| D | adm1031.c | 93 s8 temp_crit[3]; member 157 data->temp_crit[chan] = in adm1031_update_device() 704 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in temp_crit_show() 788 data->temp_crit[nr] = TEMP_TO_REG(val); in temp_crit_store() 790 data->temp_crit[nr]); in temp_crit_store() 799 static SENSOR_DEVICE_ATTR_RW(temp1_crit, temp_crit, 0); 804 static SENSOR_DEVICE_ATTR_RW(temp2_crit, temp_crit, 1); 809 static SENSOR_DEVICE_ATTR_RW(temp3_crit, temp_crit, 2);
|
| D | pc87360.c | 208 s8 temp_crit[3]; /* Register value */ member 874 TEMP_FROM_REG(data->temp_crit[attr->index])); in temp_crit_show() 941 data->temp_crit[attr->index] = TEMP_TO_REG(val); in temp_crit_store() 943 data->temp_crit[attr->index]); in temp_crit_store() 968 static struct sensor_device_attribute temp_crit[] = { variable 969 SENSOR_ATTR_RW(temp1_crit, temp_crit, 0), 970 SENSOR_ATTR_RW(temp2_crit, temp_crit, 1), 971 SENSOR_ATTR_RW(temp3_crit, temp_crit, 2), 1057 &temp_crit[X].dev_attr.attr, \ 1664 data->temp_crit[i] = pc87360_read_value(data, in pc87360_update_device()
|
| D | k10temp.c | 193 static SENSOR_DEVICE_ATTR_RO(temp1_crit, temp_crit, 0); 194 static SENSOR_DEVICE_ATTR_RO(temp1_crit_hyst, temp_crit, 1);
|
| D | adm1026.c | 273 s8 temp_crit[3]; /* Register value */ member 410 data->temp_crit[i] = adm1026_read_value(client, in adm1026_update_device() 1012 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in temp_crit_show() 1030 data->temp_crit[nr] = TEMP_TO_REG(val); in temp_crit_store() 1032 data->temp_crit[nr]); in temp_crit_store() 1037 static SENSOR_DEVICE_ATTR_RW(temp1_crit, temp_crit, 0); 1038 static SENSOR_DEVICE_ATTR_RW(temp2_crit, temp_crit, 1); 1039 static SENSOR_DEVICE_ATTR_RW(temp3_crit, temp_crit, 2);
|
| D | max6639.c | 340 static SENSOR_DEVICE_ATTR_RW(temp1_crit, temp_crit, 0); 341 static SENSOR_DEVICE_ATTR_RW(temp2_crit, temp_crit, 1);
|
| D | nct6683.c | 885 SENSOR_TEMPLATE_2(temp_crit, "temp%d_crit", S_IRUGO, show_temp8, NULL, 0, 3);
|
| D | nct6775.c | 2485 SENSOR_TEMPLATE_2(temp_crit, "temp%d_crit", S_IRUGO | S_IWUSR, show_temp,
|
| /Linux-v5.4/drivers/net/ethernet/sfc/falcon/ |
| D | falcon_boards.c | 124 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-v5.4/Documentation/hwmon/ |
| D | sysfs-interface.rst | 489 corresponding temp_crit values.
|