Lines Matching refs:input

189 static int psxpad_spi_poll_open(struct input_dev *input)  in psxpad_spi_poll_open()  argument
191 struct psxpad *pad = input_get_drvdata(input); in psxpad_spi_poll_open()
198 static void psxpad_spi_poll_close(struct input_dev *input) in psxpad_spi_poll_close() argument
200 struct psxpad *pad = input_get_drvdata(input); in psxpad_spi_poll_close()
205 static void psxpad_spi_poll(struct input_dev *input) in psxpad_spi_poll() argument
207 struct psxpad *pad = input_get_drvdata(input); in psxpad_spi_poll()
229 input_report_abs(input, ABS_X, REVERSE_BIT(pad->response[7])); in psxpad_spi_poll()
230 input_report_abs(input, ABS_Y, REVERSE_BIT(pad->response[8])); in psxpad_spi_poll()
231 input_report_abs(input, ABS_RX, REVERSE_BIT(pad->response[5])); in psxpad_spi_poll()
232 input_report_abs(input, ABS_RY, REVERSE_BIT(pad->response[6])); in psxpad_spi_poll()
233 input_report_key(input, BTN_DPAD_UP, b_rsp3 & BIT(3)); in psxpad_spi_poll()
234 input_report_key(input, BTN_DPAD_DOWN, b_rsp3 & BIT(1)); in psxpad_spi_poll()
235 input_report_key(input, BTN_DPAD_LEFT, b_rsp3 & BIT(0)); in psxpad_spi_poll()
236 input_report_key(input, BTN_DPAD_RIGHT, b_rsp3 & BIT(2)); in psxpad_spi_poll()
237 input_report_key(input, BTN_X, b_rsp4 & BIT(3)); in psxpad_spi_poll()
238 input_report_key(input, BTN_A, b_rsp4 & BIT(2)); in psxpad_spi_poll()
239 input_report_key(input, BTN_B, b_rsp4 & BIT(1)); in psxpad_spi_poll()
240 input_report_key(input, BTN_Y, b_rsp4 & BIT(0)); in psxpad_spi_poll()
241 input_report_key(input, BTN_TL, b_rsp4 & BIT(5)); in psxpad_spi_poll()
242 input_report_key(input, BTN_TR, b_rsp4 & BIT(4)); in psxpad_spi_poll()
243 input_report_key(input, BTN_TL2, b_rsp4 & BIT(7)); in psxpad_spi_poll()
244 input_report_key(input, BTN_TR2, b_rsp4 & BIT(6)); in psxpad_spi_poll()
245 input_report_key(input, BTN_THUMBL, b_rsp3 & BIT(6)); in psxpad_spi_poll()
246 input_report_key(input, BTN_THUMBR, b_rsp3 & BIT(5)); in psxpad_spi_poll()
247 input_report_key(input, BTN_SELECT, b_rsp3 & BIT(7)); in psxpad_spi_poll()
248 input_report_key(input, BTN_START, b_rsp3 & BIT(4)); in psxpad_spi_poll()
256 input_report_abs(input, ABS_X, 0x80); in psxpad_spi_poll()
257 input_report_abs(input, ABS_Y, 0x80); in psxpad_spi_poll()
258 input_report_abs(input, ABS_RX, 0x80); in psxpad_spi_poll()
259 input_report_abs(input, ABS_RY, 0x80); in psxpad_spi_poll()
260 input_report_key(input, BTN_DPAD_UP, b_rsp3 & BIT(3)); in psxpad_spi_poll()
261 input_report_key(input, BTN_DPAD_DOWN, b_rsp3 & BIT(1)); in psxpad_spi_poll()
262 input_report_key(input, BTN_DPAD_LEFT, b_rsp3 & BIT(0)); in psxpad_spi_poll()
263 input_report_key(input, BTN_DPAD_RIGHT, b_rsp3 & BIT(2)); in psxpad_spi_poll()
264 input_report_key(input, BTN_X, b_rsp4 & BIT(3)); in psxpad_spi_poll()
265 input_report_key(input, BTN_A, b_rsp4 & BIT(2)); in psxpad_spi_poll()
266 input_report_key(input, BTN_B, b_rsp4 & BIT(1)); in psxpad_spi_poll()
267 input_report_key(input, BTN_Y, b_rsp4 & BIT(0)); in psxpad_spi_poll()
268 input_report_key(input, BTN_TL, b_rsp4 & BIT(5)); in psxpad_spi_poll()
269 input_report_key(input, BTN_TR, b_rsp4 & BIT(4)); in psxpad_spi_poll()
270 input_report_key(input, BTN_TL2, b_rsp4 & BIT(7)); in psxpad_spi_poll()
271 input_report_key(input, BTN_TR2, b_rsp4 & BIT(6)); in psxpad_spi_poll()
272 input_report_key(input, BTN_THUMBL, false); in psxpad_spi_poll()
273 input_report_key(input, BTN_THUMBR, false); in psxpad_spi_poll()
274 input_report_key(input, BTN_SELECT, b_rsp3 & BIT(7)); in psxpad_spi_poll()
275 input_report_key(input, BTN_START, b_rsp3 & BIT(4)); in psxpad_spi_poll()
279 input_sync(input); in psxpad_spi_poll()