Home
last modified time | relevance | path

Searched refs:ramp_table (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/leds/
H A Dleds-ti-lmu-common.c14 static const unsigned int ramp_table[16] = {2048, 262000, 524000, 1049000, variable
59 int size = ARRAY_SIZE(ramp_table); in ti_lmu_common_convert_ramp_to_index()
62 if (usec <= ramp_table[0]) in ti_lmu_common_convert_ramp_to_index()
65 if (usec > ramp_table[size - 1]) in ti_lmu_common_convert_ramp_to_index()
69 if (usec == ramp_table[i]) in ti_lmu_common_convert_ramp_to_index()
73 if (usec > ramp_table[i - 1] && usec < ramp_table[i]) { in ti_lmu_common_convert_ramp_to_index()
74 if (usec - ramp_table[i - 1] < ramp_table[i] - usec) in ti_lmu_common_convert_ramp_to_index()
H A Dleds-lm3532.c282 static const int ramp_table[LM3532_NUM_RAMP_VALS] = { 8, 1024, 2048, 4096, 8192, variable
286 if (ramp_time <= ramp_table[0]) in lm3532_get_ramp_index()
289 if (ramp_time > ramp_table[LM3532_NUM_RAMP_VALS - 1]) in lm3532_get_ramp_index()
292 return lm3532_get_index(&ramp_table[0], LM3532_NUM_RAMP_VALS, in lm3532_get_ramp_index()