Home
last modified time | relevance | path

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

/openbmc/linux/drivers/input/joystick/
H A Dpsxpad-spi.c31 #define REVERSE_BIT(x) ((((x) & 0x80) >> 7) | (((x) & 0x40) >> 5) | \ macro
139 pad->motor2level = REVERSE_BIT(motor2level); in psxpad_set_motor_level()
232 input_report_abs(input, ABS_X, REVERSE_BIT(pad->response[7])); in psxpad_spi_poll()
233 input_report_abs(input, ABS_Y, REVERSE_BIT(pad->response[8])); in psxpad_spi_poll()
234 input_report_abs(input, ABS_RX, REVERSE_BIT(pad->response[5])); in psxpad_spi_poll()
235 input_report_abs(input, ABS_RY, REVERSE_BIT(pad->response[6])); in psxpad_spi_poll()