Lines Matching refs:lookup_table
22 s32 *lookup_table; member
31 if (!gti->lookup_table) 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()
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->lookup_table[2 * i + 1]; in gadc_thermal_adc_to_temp()
47 temp_hi = gti->lookup_table[2 * i - 2]; in gadc_thermal_adc_to_temp()
48 temp_lo = gti->lookup_table[2 * i]; in gadc_thermal_adc_to_temp()
99 gti->lookup_table = devm_kcalloc(dev, in gadc_thermal_read_linear_lookup_table()
100 ntable, sizeof(*gti->lookup_table), in gadc_thermal_read_linear_lookup_table()
102 if (!gti->lookup_table) in gadc_thermal_read_linear_lookup_table()
106 (u32 *)gti->lookup_table, ntable); in gadc_thermal_read_linear_lookup_table()