Home
last modified time | relevance | path

Searched refs:temp_input (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.10/drivers/thermal/
Dthermal_hwmon.c40 struct thermal_hwmon_attr temp_input; /* hwmon sys attr */ member
57 temp_input); in temp_input_show()
169 snprintf(temp->temp_input.name, sizeof(temp->temp_input.name), in thermal_add_hwmon_sysfs()
171 temp->temp_input.attr.attr.name = temp->temp_input.name; in thermal_add_hwmon_sysfs()
172 temp->temp_input.attr.attr.mode = 0444; in thermal_add_hwmon_sysfs()
173 temp->temp_input.attr.show = temp_input_show; in thermal_add_hwmon_sysfs()
174 sysfs_attr_init(&temp->temp_input.attr.attr); in thermal_add_hwmon_sysfs()
175 result = device_create_file(hwmon->device, &temp->temp_input.attr); in thermal_add_hwmon_sysfs()
202 device_remove_file(hwmon->device, &temp->temp_input.attr); in thermal_add_hwmon_sysfs()
235 device_remove_file(hwmon->device, &temp->temp_input.attr); in thermal_remove_hwmon_sysfs()
/Linux-v5.10/drivers/hwmon/
Dtc74.c33 s8 temp_input; /* Temp value in dC */ member
74 data->temp_input = value; in tc74_update_device()
95 return sprintf(buf, "%d\n", data->temp_input * 1000); in temp_input_show()
97 static SENSOR_DEVICE_ATTR_RO(temp1_input, temp_input, 0);
Dad7414.c42 s16 temp_input; /* Register values */ member
86 data->temp_input = value; in ad7414_update_device()
110 return sprintf(buf, "%d\n", ad7414_temp_from_reg(data->temp_input)); in temp_input_show()
112 static SENSOR_DEVICE_ATTR_RO(temp1_input, temp_input, 0);
154 int value = (data->temp_input >> bitnr) & 1; in alarm_show()
Dmax6642.c83 u16 temp_input[2]; /* local/remote */ member
172 data->temp_input[0] = val; in max6642_update_device()
179 data->temp_input[1] = val; in max6642_update_device()
203 temp_from_reg10(data->temp_input[attr->index])); in temp_max10_show()
Dmax6697.c391 static SENSOR_DEVICE_ATTR_RO(temp1_input, temp_input, 0);
395 static SENSOR_DEVICE_ATTR_RO(temp2_input, temp_input, 1);
399 static SENSOR_DEVICE_ATTR_RO(temp3_input, temp_input, 2);
403 static SENSOR_DEVICE_ATTR_RO(temp4_input, temp_input, 3);
407 static SENSOR_DEVICE_ATTR_RO(temp5_input, temp_input, 4);
411 static SENSOR_DEVICE_ATTR_RO(temp6_input, temp_input, 5);
415 static SENSOR_DEVICE_ATTR_RO(temp7_input, temp_input, 6);
419 static SENSOR_DEVICE_ATTR_RO(temp8_input, temp_input, 7);
Dthmc50.c68 s8 temp_input[3]; member
94 data->temp_input[i] = i2c_smbus_read_byte_data(client, in thmc50_update_device()
168 return sprintf(buf, "%d\n", data->temp_input[nr] * 1000); in temp_show()
Dgl520sm.c79 u8 temp_input[2]; member
142 data->temp_input[0] = gl520_read_value(client, in gl520_update_device()
161 data->temp_input[1] = gl520_read_value(client, in gl520_update_device()
507 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_input[n])); in temp_input_show()
571 static SENSOR_DEVICE_ATTR_RO(temp1_input, temp_input, 0);
572 static SENSOR_DEVICE_ATTR_RO(temp2_input, temp_input, 1);
Dpc87427.c779 static SENSOR_DEVICE_ATTR_RO(temp1_input, temp_input, 0);
780 static SENSOR_DEVICE_ATTR_RO(temp2_input, temp_input, 1);
781 static SENSOR_DEVICE_ATTR_RO(temp3_input, temp_input, 2);
782 static SENSOR_DEVICE_ATTR_RO(temp4_input, temp_input, 3);
783 static SENSOR_DEVICE_ATTR_RO(temp5_input, temp_input, 4);
784 static SENSOR_DEVICE_ATTR_RO(temp6_input, temp_input, 5);
Dftsteutates.c77 u8 temp_input[FTS_NO_TEMP_SENSORS]; member
203 data->temp_input[i] = err; in fts_update_device()
370 return sprintf(buf, "%u\n", data->temp_input[index]); in temp_value_show()
385 return sprintf(buf, "%d\n", data->temp_input[index] == 0); in temp_fault_show()
Dmax6639.c334 static SENSOR_DEVICE_ATTR_RO(temp1_input, temp_input, 0);
335 static SENSOR_DEVICE_ATTR_RO(temp2_input, temp_input, 1);
Dpc87360.c948 static struct sensor_device_attribute temp_input[] = { variable
949 SENSOR_ATTR_RO(temp1_input, temp_input, 0),
950 SENSOR_ATTR_RO(temp2_input, temp_input, 1),
951 SENSOR_ATTR_RO(temp3_input, temp_input, 2),
1053 { &temp_input[X].dev_attr.attr, \
Dlm87.c434 static SENSOR_DEVICE_ATTR_RO(temp1_input, temp_input, 0);
437 static SENSOR_DEVICE_ATTR_RO(temp2_input, temp_input, 1);
440 static SENSOR_DEVICE_ATTR_RO(temp3_input, temp_input, 2);
Dnct6683.c879 SENSOR_TEMPLATE(temp_input, "temp%d_input", S_IRUGO, show_temp16, NULL, 0);
Dnct6775.c2479 SENSOR_TEMPLATE_2(temp_input, "temp%d_input", S_IRUGO, show_temp, NULL, 0, 0);
/Linux-v5.10/drivers/media/i2c/
Dvpx3220.c340 int temp_input; in vpx3220_s_std() local
345 temp_input = vpx3220_fp_read(sd, 0xf2); in vpx3220_s_std()
364 vpx3220_fp_write(sd, 0xf2, temp_input | 0x0010); in vpx3220_s_std()