Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/hid/
H A Dhid-input.c1261 int hi_res, lo_res; in hidinput_handle_scroll() local
1280 lo_res = usage->wheel_accumulated/120; in hidinput_handle_scroll()
1281 if (lo_res) in hidinput_handle_scroll()
1282 usage->wheel_accumulated -= lo_res * 120; in hidinput_handle_scroll()
1284 input_event(input, EV_REL, code, lo_res); in hidinput_handle_scroll()
/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-input.c1468 int hi_res, lo_res; in hidinput_handle_scroll() local
1487 lo_res = usage->wheel_accumulated/120; in hidinput_handle_scroll()
1488 if (lo_res) in hidinput_handle_scroll()
1489 usage->wheel_accumulated -= lo_res * 120; in hidinput_handle_scroll()
1491 input_event(input, EV_REL, code, lo_res); in hidinput_handle_scroll()

Completed in 5 milliseconds