Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/iio/adc/
H A Dat91_adc.c146 #define MAX_POS_BITS 12 macro
302 /* x position = (x / xscale) * max, max = 2^MAX_POS_BITS - 1 */ in at91_ts_sample()
305 x = (xpos << MAX_POS_BITS) - xpos; in at91_ts_sample()
313 /* y position = (y / yscale) * max, max = 2^MAX_POS_BITS - 1 */ in at91_ts_sample()
316 y = (ypos << MAX_POS_BITS) - ypos; in at91_ts_sample()
1113 input_set_abs_params(input, ABS_X, 0, (1 << MAX_POS_BITS) - 1, in at91_ts_register()
1115 input_set_abs_params(input, ABS_Y, 0, (1 << MAX_POS_BITS) - 1, in at91_ts_register()
/kernel/linux/linux-6.6/drivers/iio/adc/
H A Dat91_adc.c143 #define MAX_POS_BITS 12 macro
320 /* x position = (x / xscale) * max, max = 2^MAX_POS_BITS - 1 */ in at91_ts_sample()
323 x = (xpos << MAX_POS_BITS) - xpos; in at91_ts_sample()
331 /* y position = (y / yscale) * max, max = 2^MAX_POS_BITS - 1 */ in at91_ts_sample()
334 y = (ypos << MAX_POS_BITS) - ypos; in at91_ts_sample()
958 input_set_abs_params(input, ABS_X, 0, (1 << MAX_POS_BITS) - 1, in at91_ts_register()
960 input_set_abs_params(input, ABS_Y, 0, (1 << MAX_POS_BITS) - 1, in at91_ts_register()

Completed in 4 milliseconds