Lines Matching refs:idev

62 	struct input_dev *idev;  member
139 static int psxpad_spi_play_effect(struct input_dev *idev, in psxpad_spi_play_effect() argument
142 struct psxpad *pad = input_get_drvdata(idev); in psxpad_spi_play_effect()
159 input_set_capability(pad->idev, EV_FF, FF_RUMBLE); in psxpad_spi_init_ff()
161 err = input_ff_create_memless(pad->idev, NULL, psxpad_spi_play_effect); in psxpad_spi_init_ff()
285 struct input_dev *idev; in psxpad_spi_probe() local
292 idev = devm_input_allocate_device(&spi->dev); in psxpad_spi_probe()
293 if (!idev) { in psxpad_spi_probe()
299 pad->idev = idev; in psxpad_spi_probe()
303 input_set_drvdata(idev, pad); in psxpad_spi_probe()
305 idev->name = "PlayStation 1/2 joypad"; in psxpad_spi_probe()
307 idev->id.bustype = BUS_SPI; in psxpad_spi_probe()
309 idev->open = psxpad_spi_poll_open; in psxpad_spi_probe()
310 idev->close = psxpad_spi_poll_close; in psxpad_spi_probe()
313 input_set_abs_params(idev, ABS_X, 0, 255, 0, 0); in psxpad_spi_probe()
314 input_set_abs_params(idev, ABS_Y, 0, 255, 0, 0); in psxpad_spi_probe()
315 input_set_abs_params(idev, ABS_RX, 0, 255, 0, 0); in psxpad_spi_probe()
316 input_set_abs_params(idev, ABS_RY, 0, 255, 0, 0); in psxpad_spi_probe()
317 input_set_capability(idev, EV_KEY, BTN_DPAD_UP); in psxpad_spi_probe()
318 input_set_capability(idev, EV_KEY, BTN_DPAD_DOWN); in psxpad_spi_probe()
319 input_set_capability(idev, EV_KEY, BTN_DPAD_LEFT); in psxpad_spi_probe()
320 input_set_capability(idev, EV_KEY, BTN_DPAD_RIGHT); in psxpad_spi_probe()
321 input_set_capability(idev, EV_KEY, BTN_A); in psxpad_spi_probe()
322 input_set_capability(idev, EV_KEY, BTN_B); in psxpad_spi_probe()
323 input_set_capability(idev, EV_KEY, BTN_X); in psxpad_spi_probe()
324 input_set_capability(idev, EV_KEY, BTN_Y); in psxpad_spi_probe()
325 input_set_capability(idev, EV_KEY, BTN_TL); in psxpad_spi_probe()
326 input_set_capability(idev, EV_KEY, BTN_TR); in psxpad_spi_probe()
327 input_set_capability(idev, EV_KEY, BTN_TL2); in psxpad_spi_probe()
328 input_set_capability(idev, EV_KEY, BTN_TR2); in psxpad_spi_probe()
329 input_set_capability(idev, EV_KEY, BTN_THUMBL); in psxpad_spi_probe()
330 input_set_capability(idev, EV_KEY, BTN_THUMBR); in psxpad_spi_probe()
331 input_set_capability(idev, EV_KEY, BTN_SELECT); in psxpad_spi_probe()
332 input_set_capability(idev, EV_KEY, BTN_START); in psxpad_spi_probe()
350 err = input_setup_polling(idev, psxpad_spi_poll); in psxpad_spi_probe()
357 input_set_poll_interval(idev, 16); in psxpad_spi_probe()
358 input_set_min_poll_interval(idev, 8); in psxpad_spi_probe()
359 input_set_max_poll_interval(idev, 32); in psxpad_spi_probe()
362 err = input_register_device(idev); in psxpad_spi_probe()