Home
last modified time | relevance | path

Searched refs:gti (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/thermal/
H A Dthermal-generic-adc.c24 static int gadc_thermal_adc_to_temp(struct gadc_thermal_info *gti, int val) in gadc_thermal_adc_to_temp() argument
29 if (!gti->lookup_table) in gadc_thermal_adc_to_temp()
32 for (i = 0; i < gti->nlookup_table; i++) { in gadc_thermal_adc_to_temp()
33 if (val >= gti->lookup_table[2 * i + 1]) in gadc_thermal_adc_to_temp()
38 temp = gti->lookup_table[0]; in gadc_thermal_adc_to_temp()
39 } else if (i >= gti->nlookup_table) { in gadc_thermal_adc_to_temp()
40 temp = gti->lookup_table[2 * (gti->nlookup_table - 1)]; in gadc_thermal_adc_to_temp()
42 adc_hi = gti->lookup_table[2 * i - 1]; in gadc_thermal_adc_to_temp()
43 adc_lo = gti in gadc_thermal_adc_to_temp()
57 struct gadc_thermal_info *gti = data; gadc_thermal_get_temp() local
75 gadc_thermal_read_linear_lookup_table(struct device *dev, struct gadc_thermal_info *gti) gadc_thermal_read_linear_lookup_table() argument
119 struct gadc_thermal_info *gti; gadc_thermal_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/thermal/
H A Dthermal-generic-adc.c26 static int gadc_thermal_adc_to_temp(struct gadc_thermal_info *gti, int val) in gadc_thermal_adc_to_temp() argument
31 if (!gti->lookup_table) in gadc_thermal_adc_to_temp()
34 for (i = 0; i < gti->nlookup_table; i++) { in gadc_thermal_adc_to_temp()
35 if (val >= gti->lookup_table[2 * i + 1]) in gadc_thermal_adc_to_temp()
40 temp = gti->lookup_table[0]; in gadc_thermal_adc_to_temp()
41 } else if (i >= gti->nlookup_table) { in gadc_thermal_adc_to_temp()
42 temp = gti->lookup_table[2 * (gti->nlookup_table - 1)]; in gadc_thermal_adc_to_temp()
44 adc_hi = gti->lookup_table[2 * i - 1]; in gadc_thermal_adc_to_temp()
45 adc_lo = gti in gadc_thermal_adc_to_temp()
59 struct gadc_thermal_info *gti = thermal_zone_device_priv(tz); gadc_thermal_get_temp() local
76 gadc_thermal_read_linear_lookup_table(struct device *dev, struct gadc_thermal_info *gti) gadc_thermal_read_linear_lookup_table() argument
120 struct gadc_thermal_info *gti; gadc_thermal_probe() local
[all...]

Completed in 1 milliseconds