Lines Matching refs:lookup_table
20 s32 *lookup_table; member
29 if (!gti->lookup_table) 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()
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->lookup_table[2 * i + 1]; in gadc_thermal_adc_to_temp()
45 temp_hi = gti->lookup_table[2 * i - 2]; in gadc_thermal_adc_to_temp()
46 temp_lo = gti->lookup_table[2 * i]; in gadc_thermal_adc_to_temp()
98 gti->lookup_table = devm_kcalloc(dev, in gadc_thermal_read_linear_lookup_table()
99 ntable, sizeof(*gti->lookup_table), in gadc_thermal_read_linear_lookup_table()
101 if (!gti->lookup_table) in gadc_thermal_read_linear_lookup_table()
105 (u32 *)gti->lookup_table, ntable); in gadc_thermal_read_linear_lookup_table()